@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,2201 @@
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 `Comment` 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 Comment
17
+ *
18
+ */
19
+ export type CommentModel = runtime.Types.Result.DefaultSelection<Prisma.$CommentPayload>
20
+
21
+ export type AggregateComment = {
22
+ _count: CommentCountAggregateOutputType | null
23
+ _min: CommentMinAggregateOutputType | null
24
+ _max: CommentMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type CommentMinAggregateOutputType = {
28
+ id: string | null
29
+ prdId: string | null
30
+ pageId: string | null
31
+ elementId: string | null
32
+ userId: string | null
33
+ content: string | null
34
+ parentId: string | null
35
+ resolved: boolean | null
36
+ createdAt: Date | null
37
+ updatedAt: Date | null
38
+ }
39
+
40
+ export type CommentMaxAggregateOutputType = {
41
+ id: string | null
42
+ prdId: string | null
43
+ pageId: string | null
44
+ elementId: string | null
45
+ userId: string | null
46
+ content: string | null
47
+ parentId: string | null
48
+ resolved: boolean | null
49
+ createdAt: Date | null
50
+ updatedAt: Date | null
51
+ }
52
+
53
+ export type CommentCountAggregateOutputType = {
54
+ id: number
55
+ prdId: number
56
+ pageId: number
57
+ elementId: number
58
+ userId: number
59
+ content: number
60
+ parentId: number
61
+ position: number
62
+ resolved: number
63
+ createdAt: number
64
+ updatedAt: number
65
+ _all: number
66
+ }
67
+
68
+
69
+ export type CommentMinAggregateInputType = {
70
+ id?: true
71
+ prdId?: true
72
+ pageId?: true
73
+ elementId?: true
74
+ userId?: true
75
+ content?: true
76
+ parentId?: true
77
+ resolved?: true
78
+ createdAt?: true
79
+ updatedAt?: true
80
+ }
81
+
82
+ export type CommentMaxAggregateInputType = {
83
+ id?: true
84
+ prdId?: true
85
+ pageId?: true
86
+ elementId?: true
87
+ userId?: true
88
+ content?: true
89
+ parentId?: true
90
+ resolved?: true
91
+ createdAt?: true
92
+ updatedAt?: true
93
+ }
94
+
95
+ export type CommentCountAggregateInputType = {
96
+ id?: true
97
+ prdId?: true
98
+ pageId?: true
99
+ elementId?: true
100
+ userId?: true
101
+ content?: true
102
+ parentId?: true
103
+ position?: true
104
+ resolved?: true
105
+ createdAt?: true
106
+ updatedAt?: true
107
+ _all?: true
108
+ }
109
+
110
+ export type CommentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
111
+ /**
112
+ * Filter which Comment to aggregate.
113
+ */
114
+ where?: Prisma.CommentWhereInput
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
117
+ *
118
+ * Determine the order of Comments to fetch.
119
+ */
120
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
123
+ *
124
+ * Sets the start position
125
+ */
126
+ cursor?: Prisma.CommentWhereUniqueInput
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Take `±n` Comments from the position of the cursor.
131
+ */
132
+ take?: number
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
+ *
136
+ * Skip the first `n` Comments.
137
+ */
138
+ skip?: number
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Count returned Comments
143
+ **/
144
+ _count?: true | CommentCountAggregateInputType
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the minimum value
149
+ **/
150
+ _min?: CommentMinAggregateInputType
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to find the maximum value
155
+ **/
156
+ _max?: CommentMaxAggregateInputType
157
+ }
158
+
159
+ export type GetCommentAggregateType<T extends CommentAggregateArgs> = {
160
+ [P in keyof T & keyof AggregateComment]: P extends '_count' | 'count'
161
+ ? T[P] extends true
162
+ ? number
163
+ : Prisma.GetScalarType<T[P], AggregateComment[P]>
164
+ : Prisma.GetScalarType<T[P], AggregateComment[P]>
165
+ }
166
+
167
+
168
+
169
+
170
+ export type CommentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
171
+ where?: Prisma.CommentWhereInput
172
+ orderBy?: Prisma.CommentOrderByWithAggregationInput | Prisma.CommentOrderByWithAggregationInput[]
173
+ by: Prisma.CommentScalarFieldEnum[] | Prisma.CommentScalarFieldEnum
174
+ having?: Prisma.CommentScalarWhereWithAggregatesInput
175
+ take?: number
176
+ skip?: number
177
+ _count?: CommentCountAggregateInputType | true
178
+ _min?: CommentMinAggregateInputType
179
+ _max?: CommentMaxAggregateInputType
180
+ }
181
+
182
+ export type CommentGroupByOutputType = {
183
+ id: string
184
+ prdId: string
185
+ pageId: string | null
186
+ elementId: string | null
187
+ userId: string
188
+ content: string
189
+ parentId: string | null
190
+ position: runtime.JsonValue | null
191
+ resolved: boolean
192
+ createdAt: Date
193
+ updatedAt: Date
194
+ _count: CommentCountAggregateOutputType | null
195
+ _min: CommentMinAggregateOutputType | null
196
+ _max: CommentMaxAggregateOutputType | null
197
+ }
198
+
199
+ export type GetCommentGroupByPayload<T extends CommentGroupByArgs> = Prisma.PrismaPromise<
200
+ Array<
201
+ Prisma.PickEnumerable<CommentGroupByOutputType, T['by']> &
202
+ {
203
+ [P in ((keyof T) & (keyof CommentGroupByOutputType))]: P extends '_count'
204
+ ? T[P] extends boolean
205
+ ? number
206
+ : Prisma.GetScalarType<T[P], CommentGroupByOutputType[P]>
207
+ : Prisma.GetScalarType<T[P], CommentGroupByOutputType[P]>
208
+ }
209
+ >
210
+ >
211
+
212
+
213
+
214
+ export type CommentWhereInput = {
215
+ AND?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[]
216
+ OR?: Prisma.CommentWhereInput[]
217
+ NOT?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[]
218
+ id?: Prisma.StringFilter<"Comment"> | string
219
+ prdId?: Prisma.StringFilter<"Comment"> | string
220
+ pageId?: Prisma.StringNullableFilter<"Comment"> | string | null
221
+ elementId?: Prisma.StringNullableFilter<"Comment"> | string | null
222
+ userId?: Prisma.StringFilter<"Comment"> | string
223
+ content?: Prisma.StringFilter<"Comment"> | string
224
+ parentId?: Prisma.StringNullableFilter<"Comment"> | string | null
225
+ position?: Prisma.JsonNullableFilter<"Comment">
226
+ resolved?: Prisma.BoolFilter<"Comment"> | boolean
227
+ createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string
228
+ updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string
229
+ prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
230
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
231
+ parent?: Prisma.XOR<Prisma.CommentNullableScalarRelationFilter, Prisma.CommentWhereInput> | null
232
+ replies?: Prisma.CommentListRelationFilter
233
+ ignores?: Prisma.CommentIgnoreListRelationFilter
234
+ }
235
+
236
+ export type CommentOrderByWithRelationInput = {
237
+ id?: Prisma.SortOrder
238
+ prdId?: Prisma.SortOrder
239
+ pageId?: Prisma.SortOrderInput | Prisma.SortOrder
240
+ elementId?: Prisma.SortOrderInput | Prisma.SortOrder
241
+ userId?: Prisma.SortOrder
242
+ content?: Prisma.SortOrder
243
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
244
+ position?: Prisma.SortOrderInput | Prisma.SortOrder
245
+ resolved?: Prisma.SortOrder
246
+ createdAt?: Prisma.SortOrder
247
+ updatedAt?: Prisma.SortOrder
248
+ prd?: Prisma.PRDOrderByWithRelationInput
249
+ user?: Prisma.UserOrderByWithRelationInput
250
+ parent?: Prisma.CommentOrderByWithRelationInput
251
+ replies?: Prisma.CommentOrderByRelationAggregateInput
252
+ ignores?: Prisma.CommentIgnoreOrderByRelationAggregateInput
253
+ }
254
+
255
+ export type CommentWhereUniqueInput = Prisma.AtLeast<{
256
+ id?: string
257
+ AND?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[]
258
+ OR?: Prisma.CommentWhereInput[]
259
+ NOT?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[]
260
+ prdId?: Prisma.StringFilter<"Comment"> | string
261
+ pageId?: Prisma.StringNullableFilter<"Comment"> | string | null
262
+ elementId?: Prisma.StringNullableFilter<"Comment"> | string | null
263
+ userId?: Prisma.StringFilter<"Comment"> | string
264
+ content?: Prisma.StringFilter<"Comment"> | string
265
+ parentId?: Prisma.StringNullableFilter<"Comment"> | string | null
266
+ position?: Prisma.JsonNullableFilter<"Comment">
267
+ resolved?: Prisma.BoolFilter<"Comment"> | boolean
268
+ createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string
269
+ updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string
270
+ prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
271
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
272
+ parent?: Prisma.XOR<Prisma.CommentNullableScalarRelationFilter, Prisma.CommentWhereInput> | null
273
+ replies?: Prisma.CommentListRelationFilter
274
+ ignores?: Prisma.CommentIgnoreListRelationFilter
275
+ }, "id">
276
+
277
+ export type CommentOrderByWithAggregationInput = {
278
+ id?: Prisma.SortOrder
279
+ prdId?: Prisma.SortOrder
280
+ pageId?: Prisma.SortOrderInput | Prisma.SortOrder
281
+ elementId?: Prisma.SortOrderInput | Prisma.SortOrder
282
+ userId?: Prisma.SortOrder
283
+ content?: Prisma.SortOrder
284
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
285
+ position?: Prisma.SortOrderInput | Prisma.SortOrder
286
+ resolved?: Prisma.SortOrder
287
+ createdAt?: Prisma.SortOrder
288
+ updatedAt?: Prisma.SortOrder
289
+ _count?: Prisma.CommentCountOrderByAggregateInput
290
+ _max?: Prisma.CommentMaxOrderByAggregateInput
291
+ _min?: Prisma.CommentMinOrderByAggregateInput
292
+ }
293
+
294
+ export type CommentScalarWhereWithAggregatesInput = {
295
+ AND?: Prisma.CommentScalarWhereWithAggregatesInput | Prisma.CommentScalarWhereWithAggregatesInput[]
296
+ OR?: Prisma.CommentScalarWhereWithAggregatesInput[]
297
+ NOT?: Prisma.CommentScalarWhereWithAggregatesInput | Prisma.CommentScalarWhereWithAggregatesInput[]
298
+ id?: Prisma.StringWithAggregatesFilter<"Comment"> | string
299
+ prdId?: Prisma.StringWithAggregatesFilter<"Comment"> | string
300
+ pageId?: Prisma.StringNullableWithAggregatesFilter<"Comment"> | string | null
301
+ elementId?: Prisma.StringNullableWithAggregatesFilter<"Comment"> | string | null
302
+ userId?: Prisma.StringWithAggregatesFilter<"Comment"> | string
303
+ content?: Prisma.StringWithAggregatesFilter<"Comment"> | string
304
+ parentId?: Prisma.StringNullableWithAggregatesFilter<"Comment"> | string | null
305
+ position?: Prisma.JsonNullableWithAggregatesFilter<"Comment">
306
+ resolved?: Prisma.BoolWithAggregatesFilter<"Comment"> | boolean
307
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Comment"> | Date | string
308
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Comment"> | Date | string
309
+ }
310
+
311
+ export type CommentCreateInput = {
312
+ id?: string
313
+ pageId?: string | null
314
+ elementId?: string | null
315
+ content: string
316
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
317
+ resolved?: boolean
318
+ createdAt?: Date | string
319
+ updatedAt?: Date | string
320
+ prd: Prisma.PRDCreateNestedOneWithoutCommentsInput
321
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
322
+ parent?: Prisma.CommentCreateNestedOneWithoutRepliesInput
323
+ replies?: Prisma.CommentCreateNestedManyWithoutParentInput
324
+ ignores?: Prisma.CommentIgnoreCreateNestedManyWithoutCommentInput
325
+ }
326
+
327
+ export type CommentUncheckedCreateInput = {
328
+ id?: string
329
+ prdId: string
330
+ pageId?: string | null
331
+ elementId?: string | null
332
+ userId: string
333
+ content: string
334
+ parentId?: string | null
335
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
336
+ resolved?: boolean
337
+ createdAt?: Date | string
338
+ updatedAt?: Date | string
339
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutParentInput
340
+ ignores?: Prisma.CommentIgnoreUncheckedCreateNestedManyWithoutCommentInput
341
+ }
342
+
343
+ export type CommentUpdateInput = {
344
+ id?: Prisma.StringFieldUpdateOperationsInput | string
345
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
346
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
347
+ content?: Prisma.StringFieldUpdateOperationsInput | string
348
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
349
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
350
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
351
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
352
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
353
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
354
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
355
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
356
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
357
+ }
358
+
359
+ export type CommentUncheckedUpdateInput = {
360
+ id?: Prisma.StringFieldUpdateOperationsInput | string
361
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
362
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
363
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
364
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
365
+ content?: Prisma.StringFieldUpdateOperationsInput | string
366
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
367
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
368
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
369
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
370
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
371
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
372
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
373
+ }
374
+
375
+ export type CommentCreateManyInput = {
376
+ id?: string
377
+ prdId: string
378
+ pageId?: string | null
379
+ elementId?: string | null
380
+ userId: string
381
+ content: string
382
+ parentId?: string | null
383
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
384
+ resolved?: boolean
385
+ createdAt?: Date | string
386
+ updatedAt?: Date | string
387
+ }
388
+
389
+ export type CommentUpdateManyMutationInput = {
390
+ id?: Prisma.StringFieldUpdateOperationsInput | string
391
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
392
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
393
+ content?: Prisma.StringFieldUpdateOperationsInput | string
394
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
395
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
396
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
397
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
398
+ }
399
+
400
+ export type CommentUncheckedUpdateManyInput = {
401
+ id?: Prisma.StringFieldUpdateOperationsInput | string
402
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
403
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
404
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
405
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
406
+ content?: Prisma.StringFieldUpdateOperationsInput | string
407
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
408
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
409
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
410
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
411
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
412
+ }
413
+
414
+ export type CommentListRelationFilter = {
415
+ every?: Prisma.CommentWhereInput
416
+ some?: Prisma.CommentWhereInput
417
+ none?: Prisma.CommentWhereInput
418
+ }
419
+
420
+ export type CommentOrderByRelationAggregateInput = {
421
+ _count?: Prisma.SortOrder
422
+ }
423
+
424
+ export type CommentNullableScalarRelationFilter = {
425
+ is?: Prisma.CommentWhereInput | null
426
+ isNot?: Prisma.CommentWhereInput | null
427
+ }
428
+
429
+ export type CommentCountOrderByAggregateInput = {
430
+ id?: Prisma.SortOrder
431
+ prdId?: Prisma.SortOrder
432
+ pageId?: Prisma.SortOrder
433
+ elementId?: Prisma.SortOrder
434
+ userId?: Prisma.SortOrder
435
+ content?: Prisma.SortOrder
436
+ parentId?: Prisma.SortOrder
437
+ position?: Prisma.SortOrder
438
+ resolved?: Prisma.SortOrder
439
+ createdAt?: Prisma.SortOrder
440
+ updatedAt?: Prisma.SortOrder
441
+ }
442
+
443
+ export type CommentMaxOrderByAggregateInput = {
444
+ id?: Prisma.SortOrder
445
+ prdId?: Prisma.SortOrder
446
+ pageId?: Prisma.SortOrder
447
+ elementId?: Prisma.SortOrder
448
+ userId?: Prisma.SortOrder
449
+ content?: Prisma.SortOrder
450
+ parentId?: Prisma.SortOrder
451
+ resolved?: Prisma.SortOrder
452
+ createdAt?: Prisma.SortOrder
453
+ updatedAt?: Prisma.SortOrder
454
+ }
455
+
456
+ export type CommentMinOrderByAggregateInput = {
457
+ id?: Prisma.SortOrder
458
+ prdId?: Prisma.SortOrder
459
+ pageId?: Prisma.SortOrder
460
+ elementId?: Prisma.SortOrder
461
+ userId?: Prisma.SortOrder
462
+ content?: Prisma.SortOrder
463
+ parentId?: Prisma.SortOrder
464
+ resolved?: Prisma.SortOrder
465
+ createdAt?: Prisma.SortOrder
466
+ updatedAt?: Prisma.SortOrder
467
+ }
468
+
469
+ export type CommentScalarRelationFilter = {
470
+ is?: Prisma.CommentWhereInput
471
+ isNot?: Prisma.CommentWhereInput
472
+ }
473
+
474
+ export type CommentCreateNestedManyWithoutUserInput = {
475
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutUserInput, Prisma.CommentUncheckedCreateWithoutUserInput> | Prisma.CommentCreateWithoutUserInput[] | Prisma.CommentUncheckedCreateWithoutUserInput[]
476
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutUserInput | Prisma.CommentCreateOrConnectWithoutUserInput[]
477
+ createMany?: Prisma.CommentCreateManyUserInputEnvelope
478
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
479
+ }
480
+
481
+ export type CommentUncheckedCreateNestedManyWithoutUserInput = {
482
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutUserInput, Prisma.CommentUncheckedCreateWithoutUserInput> | Prisma.CommentCreateWithoutUserInput[] | Prisma.CommentUncheckedCreateWithoutUserInput[]
483
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutUserInput | Prisma.CommentCreateOrConnectWithoutUserInput[]
484
+ createMany?: Prisma.CommentCreateManyUserInputEnvelope
485
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
486
+ }
487
+
488
+ export type CommentUpdateManyWithoutUserNestedInput = {
489
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutUserInput, Prisma.CommentUncheckedCreateWithoutUserInput> | Prisma.CommentCreateWithoutUserInput[] | Prisma.CommentUncheckedCreateWithoutUserInput[]
490
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutUserInput | Prisma.CommentCreateOrConnectWithoutUserInput[]
491
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutUserInput | Prisma.CommentUpsertWithWhereUniqueWithoutUserInput[]
492
+ createMany?: Prisma.CommentCreateManyUserInputEnvelope
493
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
494
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
495
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
496
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
497
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutUserInput | Prisma.CommentUpdateWithWhereUniqueWithoutUserInput[]
498
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutUserInput | Prisma.CommentUpdateManyWithWhereWithoutUserInput[]
499
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
500
+ }
501
+
502
+ export type CommentUncheckedUpdateManyWithoutUserNestedInput = {
503
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutUserInput, Prisma.CommentUncheckedCreateWithoutUserInput> | Prisma.CommentCreateWithoutUserInput[] | Prisma.CommentUncheckedCreateWithoutUserInput[]
504
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutUserInput | Prisma.CommentCreateOrConnectWithoutUserInput[]
505
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutUserInput | Prisma.CommentUpsertWithWhereUniqueWithoutUserInput[]
506
+ createMany?: Prisma.CommentCreateManyUserInputEnvelope
507
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
508
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
509
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
510
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
511
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutUserInput | Prisma.CommentUpdateWithWhereUniqueWithoutUserInput[]
512
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutUserInput | Prisma.CommentUpdateManyWithWhereWithoutUserInput[]
513
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
514
+ }
515
+
516
+ export type CommentCreateNestedManyWithoutPrdInput = {
517
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutPrdInput, Prisma.CommentUncheckedCreateWithoutPrdInput> | Prisma.CommentCreateWithoutPrdInput[] | Prisma.CommentUncheckedCreateWithoutPrdInput[]
518
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPrdInput | Prisma.CommentCreateOrConnectWithoutPrdInput[]
519
+ createMany?: Prisma.CommentCreateManyPrdInputEnvelope
520
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
521
+ }
522
+
523
+ export type CommentUncheckedCreateNestedManyWithoutPrdInput = {
524
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutPrdInput, Prisma.CommentUncheckedCreateWithoutPrdInput> | Prisma.CommentCreateWithoutPrdInput[] | Prisma.CommentUncheckedCreateWithoutPrdInput[]
525
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPrdInput | Prisma.CommentCreateOrConnectWithoutPrdInput[]
526
+ createMany?: Prisma.CommentCreateManyPrdInputEnvelope
527
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
528
+ }
529
+
530
+ export type CommentUpdateManyWithoutPrdNestedInput = {
531
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutPrdInput, Prisma.CommentUncheckedCreateWithoutPrdInput> | Prisma.CommentCreateWithoutPrdInput[] | Prisma.CommentUncheckedCreateWithoutPrdInput[]
532
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPrdInput | Prisma.CommentCreateOrConnectWithoutPrdInput[]
533
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutPrdInput | Prisma.CommentUpsertWithWhereUniqueWithoutPrdInput[]
534
+ createMany?: Prisma.CommentCreateManyPrdInputEnvelope
535
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
536
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
537
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
538
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
539
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutPrdInput | Prisma.CommentUpdateWithWhereUniqueWithoutPrdInput[]
540
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutPrdInput | Prisma.CommentUpdateManyWithWhereWithoutPrdInput[]
541
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
542
+ }
543
+
544
+ export type CommentUncheckedUpdateManyWithoutPrdNestedInput = {
545
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutPrdInput, Prisma.CommentUncheckedCreateWithoutPrdInput> | Prisma.CommentCreateWithoutPrdInput[] | Prisma.CommentUncheckedCreateWithoutPrdInput[]
546
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPrdInput | Prisma.CommentCreateOrConnectWithoutPrdInput[]
547
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutPrdInput | Prisma.CommentUpsertWithWhereUniqueWithoutPrdInput[]
548
+ createMany?: Prisma.CommentCreateManyPrdInputEnvelope
549
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
550
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
551
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
552
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
553
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutPrdInput | Prisma.CommentUpdateWithWhereUniqueWithoutPrdInput[]
554
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutPrdInput | Prisma.CommentUpdateManyWithWhereWithoutPrdInput[]
555
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
556
+ }
557
+
558
+ export type CommentCreateNestedOneWithoutRepliesInput = {
559
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>
560
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutRepliesInput
561
+ connect?: Prisma.CommentWhereUniqueInput
562
+ }
563
+
564
+ export type CommentCreateNestedManyWithoutParentInput = {
565
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutParentInput, Prisma.CommentUncheckedCreateWithoutParentInput> | Prisma.CommentCreateWithoutParentInput[] | Prisma.CommentUncheckedCreateWithoutParentInput[]
566
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutParentInput | Prisma.CommentCreateOrConnectWithoutParentInput[]
567
+ createMany?: Prisma.CommentCreateManyParentInputEnvelope
568
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
569
+ }
570
+
571
+ export type CommentUncheckedCreateNestedManyWithoutParentInput = {
572
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutParentInput, Prisma.CommentUncheckedCreateWithoutParentInput> | Prisma.CommentCreateWithoutParentInput[] | Prisma.CommentUncheckedCreateWithoutParentInput[]
573
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutParentInput | Prisma.CommentCreateOrConnectWithoutParentInput[]
574
+ createMany?: Prisma.CommentCreateManyParentInputEnvelope
575
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
576
+ }
577
+
578
+ export type CommentUpdateOneWithoutRepliesNestedInput = {
579
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>
580
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutRepliesInput
581
+ upsert?: Prisma.CommentUpsertWithoutRepliesInput
582
+ disconnect?: Prisma.CommentWhereInput | boolean
583
+ delete?: Prisma.CommentWhereInput | boolean
584
+ connect?: Prisma.CommentWhereUniqueInput
585
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CommentUpdateToOneWithWhereWithoutRepliesInput, Prisma.CommentUpdateWithoutRepliesInput>, Prisma.CommentUncheckedUpdateWithoutRepliesInput>
586
+ }
587
+
588
+ export type CommentUpdateManyWithoutParentNestedInput = {
589
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutParentInput, Prisma.CommentUncheckedCreateWithoutParentInput> | Prisma.CommentCreateWithoutParentInput[] | Prisma.CommentUncheckedCreateWithoutParentInput[]
590
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutParentInput | Prisma.CommentCreateOrConnectWithoutParentInput[]
591
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutParentInput | Prisma.CommentUpsertWithWhereUniqueWithoutParentInput[]
592
+ createMany?: Prisma.CommentCreateManyParentInputEnvelope
593
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
594
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
595
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
596
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
597
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutParentInput | Prisma.CommentUpdateWithWhereUniqueWithoutParentInput[]
598
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutParentInput | Prisma.CommentUpdateManyWithWhereWithoutParentInput[]
599
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
600
+ }
601
+
602
+ export type CommentUncheckedUpdateManyWithoutParentNestedInput = {
603
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutParentInput, Prisma.CommentUncheckedCreateWithoutParentInput> | Prisma.CommentCreateWithoutParentInput[] | Prisma.CommentUncheckedCreateWithoutParentInput[]
604
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutParentInput | Prisma.CommentCreateOrConnectWithoutParentInput[]
605
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutParentInput | Prisma.CommentUpsertWithWhereUniqueWithoutParentInput[]
606
+ createMany?: Prisma.CommentCreateManyParentInputEnvelope
607
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
608
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
609
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
610
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[]
611
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutParentInput | Prisma.CommentUpdateWithWhereUniqueWithoutParentInput[]
612
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutParentInput | Prisma.CommentUpdateManyWithWhereWithoutParentInput[]
613
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
614
+ }
615
+
616
+ export type CommentCreateNestedOneWithoutIgnoresInput = {
617
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutIgnoresInput, Prisma.CommentUncheckedCreateWithoutIgnoresInput>
618
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutIgnoresInput
619
+ connect?: Prisma.CommentWhereUniqueInput
620
+ }
621
+
622
+ export type CommentUpdateOneRequiredWithoutIgnoresNestedInput = {
623
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutIgnoresInput, Prisma.CommentUncheckedCreateWithoutIgnoresInput>
624
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutIgnoresInput
625
+ upsert?: Prisma.CommentUpsertWithoutIgnoresInput
626
+ connect?: Prisma.CommentWhereUniqueInput
627
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CommentUpdateToOneWithWhereWithoutIgnoresInput, Prisma.CommentUpdateWithoutIgnoresInput>, Prisma.CommentUncheckedUpdateWithoutIgnoresInput>
628
+ }
629
+
630
+ export type CommentCreateWithoutUserInput = {
631
+ id?: string
632
+ pageId?: string | null
633
+ elementId?: string | null
634
+ content: string
635
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
636
+ resolved?: boolean
637
+ createdAt?: Date | string
638
+ updatedAt?: Date | string
639
+ prd: Prisma.PRDCreateNestedOneWithoutCommentsInput
640
+ parent?: Prisma.CommentCreateNestedOneWithoutRepliesInput
641
+ replies?: Prisma.CommentCreateNestedManyWithoutParentInput
642
+ ignores?: Prisma.CommentIgnoreCreateNestedManyWithoutCommentInput
643
+ }
644
+
645
+ export type CommentUncheckedCreateWithoutUserInput = {
646
+ id?: string
647
+ prdId: string
648
+ pageId?: string | null
649
+ elementId?: string | null
650
+ content: string
651
+ parentId?: string | null
652
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
653
+ resolved?: boolean
654
+ createdAt?: Date | string
655
+ updatedAt?: Date | string
656
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutParentInput
657
+ ignores?: Prisma.CommentIgnoreUncheckedCreateNestedManyWithoutCommentInput
658
+ }
659
+
660
+ export type CommentCreateOrConnectWithoutUserInput = {
661
+ where: Prisma.CommentWhereUniqueInput
662
+ create: Prisma.XOR<Prisma.CommentCreateWithoutUserInput, Prisma.CommentUncheckedCreateWithoutUserInput>
663
+ }
664
+
665
+ export type CommentCreateManyUserInputEnvelope = {
666
+ data: Prisma.CommentCreateManyUserInput | Prisma.CommentCreateManyUserInput[]
667
+ }
668
+
669
+ export type CommentUpsertWithWhereUniqueWithoutUserInput = {
670
+ where: Prisma.CommentWhereUniqueInput
671
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutUserInput, Prisma.CommentUncheckedUpdateWithoutUserInput>
672
+ create: Prisma.XOR<Prisma.CommentCreateWithoutUserInput, Prisma.CommentUncheckedCreateWithoutUserInput>
673
+ }
674
+
675
+ export type CommentUpdateWithWhereUniqueWithoutUserInput = {
676
+ where: Prisma.CommentWhereUniqueInput
677
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutUserInput, Prisma.CommentUncheckedUpdateWithoutUserInput>
678
+ }
679
+
680
+ export type CommentUpdateManyWithWhereWithoutUserInput = {
681
+ where: Prisma.CommentScalarWhereInput
682
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutUserInput>
683
+ }
684
+
685
+ export type CommentScalarWhereInput = {
686
+ AND?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
687
+ OR?: Prisma.CommentScalarWhereInput[]
688
+ NOT?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
689
+ id?: Prisma.StringFilter<"Comment"> | string
690
+ prdId?: Prisma.StringFilter<"Comment"> | string
691
+ pageId?: Prisma.StringNullableFilter<"Comment"> | string | null
692
+ elementId?: Prisma.StringNullableFilter<"Comment"> | string | null
693
+ userId?: Prisma.StringFilter<"Comment"> | string
694
+ content?: Prisma.StringFilter<"Comment"> | string
695
+ parentId?: Prisma.StringNullableFilter<"Comment"> | string | null
696
+ position?: Prisma.JsonNullableFilter<"Comment">
697
+ resolved?: Prisma.BoolFilter<"Comment"> | boolean
698
+ createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string
699
+ updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string
700
+ }
701
+
702
+ export type CommentCreateWithoutPrdInput = {
703
+ id?: string
704
+ pageId?: string | null
705
+ elementId?: string | null
706
+ content: string
707
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
708
+ resolved?: boolean
709
+ createdAt?: Date | string
710
+ updatedAt?: Date | string
711
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
712
+ parent?: Prisma.CommentCreateNestedOneWithoutRepliesInput
713
+ replies?: Prisma.CommentCreateNestedManyWithoutParentInput
714
+ ignores?: Prisma.CommentIgnoreCreateNestedManyWithoutCommentInput
715
+ }
716
+
717
+ export type CommentUncheckedCreateWithoutPrdInput = {
718
+ id?: string
719
+ pageId?: string | null
720
+ elementId?: string | null
721
+ userId: string
722
+ content: string
723
+ parentId?: string | null
724
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
725
+ resolved?: boolean
726
+ createdAt?: Date | string
727
+ updatedAt?: Date | string
728
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutParentInput
729
+ ignores?: Prisma.CommentIgnoreUncheckedCreateNestedManyWithoutCommentInput
730
+ }
731
+
732
+ export type CommentCreateOrConnectWithoutPrdInput = {
733
+ where: Prisma.CommentWhereUniqueInput
734
+ create: Prisma.XOR<Prisma.CommentCreateWithoutPrdInput, Prisma.CommentUncheckedCreateWithoutPrdInput>
735
+ }
736
+
737
+ export type CommentCreateManyPrdInputEnvelope = {
738
+ data: Prisma.CommentCreateManyPrdInput | Prisma.CommentCreateManyPrdInput[]
739
+ }
740
+
741
+ export type CommentUpsertWithWhereUniqueWithoutPrdInput = {
742
+ where: Prisma.CommentWhereUniqueInput
743
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutPrdInput, Prisma.CommentUncheckedUpdateWithoutPrdInput>
744
+ create: Prisma.XOR<Prisma.CommentCreateWithoutPrdInput, Prisma.CommentUncheckedCreateWithoutPrdInput>
745
+ }
746
+
747
+ export type CommentUpdateWithWhereUniqueWithoutPrdInput = {
748
+ where: Prisma.CommentWhereUniqueInput
749
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutPrdInput, Prisma.CommentUncheckedUpdateWithoutPrdInput>
750
+ }
751
+
752
+ export type CommentUpdateManyWithWhereWithoutPrdInput = {
753
+ where: Prisma.CommentScalarWhereInput
754
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutPrdInput>
755
+ }
756
+
757
+ export type CommentCreateWithoutRepliesInput = {
758
+ id?: string
759
+ pageId?: string | null
760
+ elementId?: string | null
761
+ content: string
762
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
763
+ resolved?: boolean
764
+ createdAt?: Date | string
765
+ updatedAt?: Date | string
766
+ prd: Prisma.PRDCreateNestedOneWithoutCommentsInput
767
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
768
+ parent?: Prisma.CommentCreateNestedOneWithoutRepliesInput
769
+ ignores?: Prisma.CommentIgnoreCreateNestedManyWithoutCommentInput
770
+ }
771
+
772
+ export type CommentUncheckedCreateWithoutRepliesInput = {
773
+ id?: string
774
+ prdId: string
775
+ pageId?: string | null
776
+ elementId?: string | null
777
+ userId: string
778
+ content: string
779
+ parentId?: string | null
780
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
781
+ resolved?: boolean
782
+ createdAt?: Date | string
783
+ updatedAt?: Date | string
784
+ ignores?: Prisma.CommentIgnoreUncheckedCreateNestedManyWithoutCommentInput
785
+ }
786
+
787
+ export type CommentCreateOrConnectWithoutRepliesInput = {
788
+ where: Prisma.CommentWhereUniqueInput
789
+ create: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>
790
+ }
791
+
792
+ export type CommentCreateWithoutParentInput = {
793
+ id?: string
794
+ pageId?: string | null
795
+ elementId?: string | null
796
+ content: string
797
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
798
+ resolved?: boolean
799
+ createdAt?: Date | string
800
+ updatedAt?: Date | string
801
+ prd: Prisma.PRDCreateNestedOneWithoutCommentsInput
802
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
803
+ replies?: Prisma.CommentCreateNestedManyWithoutParentInput
804
+ ignores?: Prisma.CommentIgnoreCreateNestedManyWithoutCommentInput
805
+ }
806
+
807
+ export type CommentUncheckedCreateWithoutParentInput = {
808
+ id?: string
809
+ prdId: string
810
+ pageId?: string | null
811
+ elementId?: string | null
812
+ userId: string
813
+ content: string
814
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
815
+ resolved?: boolean
816
+ createdAt?: Date | string
817
+ updatedAt?: Date | string
818
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutParentInput
819
+ ignores?: Prisma.CommentIgnoreUncheckedCreateNestedManyWithoutCommentInput
820
+ }
821
+
822
+ export type CommentCreateOrConnectWithoutParentInput = {
823
+ where: Prisma.CommentWhereUniqueInput
824
+ create: Prisma.XOR<Prisma.CommentCreateWithoutParentInput, Prisma.CommentUncheckedCreateWithoutParentInput>
825
+ }
826
+
827
+ export type CommentCreateManyParentInputEnvelope = {
828
+ data: Prisma.CommentCreateManyParentInput | Prisma.CommentCreateManyParentInput[]
829
+ }
830
+
831
+ export type CommentUpsertWithoutRepliesInput = {
832
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutRepliesInput, Prisma.CommentUncheckedUpdateWithoutRepliesInput>
833
+ create: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>
834
+ where?: Prisma.CommentWhereInput
835
+ }
836
+
837
+ export type CommentUpdateToOneWithWhereWithoutRepliesInput = {
838
+ where?: Prisma.CommentWhereInput
839
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutRepliesInput, Prisma.CommentUncheckedUpdateWithoutRepliesInput>
840
+ }
841
+
842
+ export type CommentUpdateWithoutRepliesInput = {
843
+ id?: Prisma.StringFieldUpdateOperationsInput | string
844
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
845
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
846
+ content?: Prisma.StringFieldUpdateOperationsInput | string
847
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
848
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
849
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
850
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
851
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
852
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
853
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
854
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
855
+ }
856
+
857
+ export type CommentUncheckedUpdateWithoutRepliesInput = {
858
+ id?: Prisma.StringFieldUpdateOperationsInput | string
859
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
860
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
861
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
862
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
863
+ content?: Prisma.StringFieldUpdateOperationsInput | string
864
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
865
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
866
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
867
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
868
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
869
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
870
+ }
871
+
872
+ export type CommentUpsertWithWhereUniqueWithoutParentInput = {
873
+ where: Prisma.CommentWhereUniqueInput
874
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutParentInput, Prisma.CommentUncheckedUpdateWithoutParentInput>
875
+ create: Prisma.XOR<Prisma.CommentCreateWithoutParentInput, Prisma.CommentUncheckedCreateWithoutParentInput>
876
+ }
877
+
878
+ export type CommentUpdateWithWhereUniqueWithoutParentInput = {
879
+ where: Prisma.CommentWhereUniqueInput
880
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutParentInput, Prisma.CommentUncheckedUpdateWithoutParentInput>
881
+ }
882
+
883
+ export type CommentUpdateManyWithWhereWithoutParentInput = {
884
+ where: Prisma.CommentScalarWhereInput
885
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutParentInput>
886
+ }
887
+
888
+ export type CommentCreateWithoutIgnoresInput = {
889
+ id?: string
890
+ pageId?: string | null
891
+ elementId?: string | null
892
+ content: string
893
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
894
+ resolved?: boolean
895
+ createdAt?: Date | string
896
+ updatedAt?: Date | string
897
+ prd: Prisma.PRDCreateNestedOneWithoutCommentsInput
898
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
899
+ parent?: Prisma.CommentCreateNestedOneWithoutRepliesInput
900
+ replies?: Prisma.CommentCreateNestedManyWithoutParentInput
901
+ }
902
+
903
+ export type CommentUncheckedCreateWithoutIgnoresInput = {
904
+ id?: string
905
+ prdId: string
906
+ pageId?: string | null
907
+ elementId?: string | null
908
+ userId: string
909
+ content: string
910
+ parentId?: string | null
911
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
912
+ resolved?: boolean
913
+ createdAt?: Date | string
914
+ updatedAt?: Date | string
915
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutParentInput
916
+ }
917
+
918
+ export type CommentCreateOrConnectWithoutIgnoresInput = {
919
+ where: Prisma.CommentWhereUniqueInput
920
+ create: Prisma.XOR<Prisma.CommentCreateWithoutIgnoresInput, Prisma.CommentUncheckedCreateWithoutIgnoresInput>
921
+ }
922
+
923
+ export type CommentUpsertWithoutIgnoresInput = {
924
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutIgnoresInput, Prisma.CommentUncheckedUpdateWithoutIgnoresInput>
925
+ create: Prisma.XOR<Prisma.CommentCreateWithoutIgnoresInput, Prisma.CommentUncheckedCreateWithoutIgnoresInput>
926
+ where?: Prisma.CommentWhereInput
927
+ }
928
+
929
+ export type CommentUpdateToOneWithWhereWithoutIgnoresInput = {
930
+ where?: Prisma.CommentWhereInput
931
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutIgnoresInput, Prisma.CommentUncheckedUpdateWithoutIgnoresInput>
932
+ }
933
+
934
+ export type CommentUpdateWithoutIgnoresInput = {
935
+ id?: Prisma.StringFieldUpdateOperationsInput | string
936
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
937
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
938
+ content?: Prisma.StringFieldUpdateOperationsInput | string
939
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
940
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
941
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
942
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
943
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
944
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
945
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
946
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
947
+ }
948
+
949
+ export type CommentUncheckedUpdateWithoutIgnoresInput = {
950
+ id?: Prisma.StringFieldUpdateOperationsInput | string
951
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
952
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
953
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
954
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
955
+ content?: Prisma.StringFieldUpdateOperationsInput | string
956
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
957
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
958
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
959
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
960
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
961
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
962
+ }
963
+
964
+ export type CommentCreateManyUserInput = {
965
+ id?: string
966
+ prdId: string
967
+ pageId?: string | null
968
+ elementId?: string | null
969
+ content: string
970
+ parentId?: string | null
971
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
972
+ resolved?: boolean
973
+ createdAt?: Date | string
974
+ updatedAt?: Date | string
975
+ }
976
+
977
+ export type CommentUpdateWithoutUserInput = {
978
+ id?: Prisma.StringFieldUpdateOperationsInput | string
979
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
980
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
981
+ content?: Prisma.StringFieldUpdateOperationsInput | string
982
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
983
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
984
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
985
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
986
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
987
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
988
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
989
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
990
+ }
991
+
992
+ export type CommentUncheckedUpdateWithoutUserInput = {
993
+ id?: Prisma.StringFieldUpdateOperationsInput | string
994
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
995
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
996
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
997
+ content?: Prisma.StringFieldUpdateOperationsInput | string
998
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
999
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1000
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1001
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1002
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1003
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
1004
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
1005
+ }
1006
+
1007
+ export type CommentUncheckedUpdateManyWithoutUserInput = {
1008
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1009
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
1010
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1011
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1012
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1013
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1014
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1015
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1016
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1017
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1018
+ }
1019
+
1020
+ export type CommentCreateManyPrdInput = {
1021
+ id?: string
1022
+ pageId?: string | null
1023
+ elementId?: string | null
1024
+ userId: string
1025
+ content: string
1026
+ parentId?: string | null
1027
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1028
+ resolved?: boolean
1029
+ createdAt?: Date | string
1030
+ updatedAt?: Date | string
1031
+ }
1032
+
1033
+ export type CommentUpdateWithoutPrdInput = {
1034
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1035
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1036
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1037
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1038
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1039
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1040
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1041
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1042
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
1043
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
1044
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
1045
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
1046
+ }
1047
+
1048
+ export type CommentUncheckedUpdateWithoutPrdInput = {
1049
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1050
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1051
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1052
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1053
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1054
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1055
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1056
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1057
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1058
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1059
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
1060
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
1061
+ }
1062
+
1063
+ export type CommentUncheckedUpdateManyWithoutPrdInput = {
1064
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1065
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1066
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1067
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1068
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1069
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1070
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1071
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1072
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1073
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1074
+ }
1075
+
1076
+ export type CommentCreateManyParentInput = {
1077
+ id?: string
1078
+ prdId: string
1079
+ pageId?: string | null
1080
+ elementId?: string | null
1081
+ userId: string
1082
+ content: string
1083
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1084
+ resolved?: boolean
1085
+ createdAt?: Date | string
1086
+ updatedAt?: Date | string
1087
+ }
1088
+
1089
+ export type CommentUpdateWithoutParentInput = {
1090
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1091
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1092
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1093
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1094
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1095
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1096
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1097
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1098
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
1099
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
1100
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
1101
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
1102
+ }
1103
+
1104
+ export type CommentUncheckedUpdateWithoutParentInput = {
1105
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1106
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
1107
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1108
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1109
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1110
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1111
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1112
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1113
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1114
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1115
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
1116
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
1117
+ }
1118
+
1119
+ export type CommentUncheckedUpdateManyWithoutParentInput = {
1120
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1121
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
1122
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1123
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1124
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1125
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1126
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1127
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1128
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1129
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1130
+ }
1131
+
1132
+
1133
+ /**
1134
+ * Count Type CommentCountOutputType
1135
+ */
1136
+
1137
+ export type CommentCountOutputType = {
1138
+ replies: number
1139
+ ignores: number
1140
+ }
1141
+
1142
+ export type CommentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1143
+ replies?: boolean | CommentCountOutputTypeCountRepliesArgs
1144
+ ignores?: boolean | CommentCountOutputTypeCountIgnoresArgs
1145
+ }
1146
+
1147
+ /**
1148
+ * CommentCountOutputType without action
1149
+ */
1150
+ export type CommentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1151
+ /**
1152
+ * Select specific fields to fetch from the CommentCountOutputType
1153
+ */
1154
+ select?: Prisma.CommentCountOutputTypeSelect<ExtArgs> | null
1155
+ }
1156
+
1157
+ /**
1158
+ * CommentCountOutputType without action
1159
+ */
1160
+ export type CommentCountOutputTypeCountRepliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1161
+ where?: Prisma.CommentWhereInput
1162
+ }
1163
+
1164
+ /**
1165
+ * CommentCountOutputType without action
1166
+ */
1167
+ export type CommentCountOutputTypeCountIgnoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1168
+ where?: Prisma.CommentIgnoreWhereInput
1169
+ }
1170
+
1171
+
1172
+ export type CommentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1173
+ id?: boolean
1174
+ prdId?: boolean
1175
+ pageId?: boolean
1176
+ elementId?: boolean
1177
+ userId?: boolean
1178
+ content?: boolean
1179
+ parentId?: boolean
1180
+ position?: boolean
1181
+ resolved?: boolean
1182
+ createdAt?: boolean
1183
+ updatedAt?: boolean
1184
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1185
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1186
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1187
+ replies?: boolean | Prisma.Comment$repliesArgs<ExtArgs>
1188
+ ignores?: boolean | Prisma.Comment$ignoresArgs<ExtArgs>
1189
+ _count?: boolean | Prisma.CommentCountOutputTypeDefaultArgs<ExtArgs>
1190
+ }, ExtArgs["result"]["comment"]>
1191
+
1192
+ export type CommentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1193
+ id?: boolean
1194
+ prdId?: boolean
1195
+ pageId?: boolean
1196
+ elementId?: boolean
1197
+ userId?: boolean
1198
+ content?: boolean
1199
+ parentId?: boolean
1200
+ position?: boolean
1201
+ resolved?: boolean
1202
+ createdAt?: boolean
1203
+ updatedAt?: boolean
1204
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1205
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1206
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1207
+ }, ExtArgs["result"]["comment"]>
1208
+
1209
+ export type CommentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1210
+ id?: boolean
1211
+ prdId?: boolean
1212
+ pageId?: boolean
1213
+ elementId?: boolean
1214
+ userId?: boolean
1215
+ content?: boolean
1216
+ parentId?: boolean
1217
+ position?: boolean
1218
+ resolved?: boolean
1219
+ createdAt?: boolean
1220
+ updatedAt?: boolean
1221
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1222
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1223
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1224
+ }, ExtArgs["result"]["comment"]>
1225
+
1226
+ export type CommentSelectScalar = {
1227
+ id?: boolean
1228
+ prdId?: boolean
1229
+ pageId?: boolean
1230
+ elementId?: boolean
1231
+ userId?: boolean
1232
+ content?: boolean
1233
+ parentId?: boolean
1234
+ position?: boolean
1235
+ resolved?: boolean
1236
+ createdAt?: boolean
1237
+ updatedAt?: boolean
1238
+ }
1239
+
1240
+ export type CommentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "prdId" | "pageId" | "elementId" | "userId" | "content" | "parentId" | "position" | "resolved" | "createdAt" | "updatedAt", ExtArgs["result"]["comment"]>
1241
+ export type CommentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1242
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1243
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1244
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1245
+ replies?: boolean | Prisma.Comment$repliesArgs<ExtArgs>
1246
+ ignores?: boolean | Prisma.Comment$ignoresArgs<ExtArgs>
1247
+ _count?: boolean | Prisma.CommentCountOutputTypeDefaultArgs<ExtArgs>
1248
+ }
1249
+ export type CommentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1250
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1251
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1252
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1253
+ }
1254
+ export type CommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1255
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1256
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1257
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1258
+ }
1259
+
1260
+ export type $CommentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1261
+ name: "Comment"
1262
+ objects: {
1263
+ prd: Prisma.$PRDPayload<ExtArgs>
1264
+ user: Prisma.$UserPayload<ExtArgs>
1265
+ parent: Prisma.$CommentPayload<ExtArgs> | null
1266
+ replies: Prisma.$CommentPayload<ExtArgs>[]
1267
+ ignores: Prisma.$CommentIgnorePayload<ExtArgs>[]
1268
+ }
1269
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1270
+ id: string
1271
+ prdId: string
1272
+ pageId: string | null
1273
+ elementId: string | null
1274
+ userId: string
1275
+ content: string
1276
+ parentId: string | null
1277
+ position: runtime.JsonValue | null
1278
+ resolved: boolean
1279
+ createdAt: Date
1280
+ updatedAt: Date
1281
+ }, ExtArgs["result"]["comment"]>
1282
+ composites: {}
1283
+ }
1284
+
1285
+ export type CommentGetPayload<S extends boolean | null | undefined | CommentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CommentPayload, S>
1286
+
1287
+ export type CommentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1288
+ Omit<CommentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1289
+ select?: CommentCountAggregateInputType | true
1290
+ }
1291
+
1292
+ export interface CommentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1293
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Comment'], meta: { name: 'Comment' } }
1294
+ /**
1295
+ * Find zero or one Comment that matches the filter.
1296
+ * @param {CommentFindUniqueArgs} args - Arguments to find a Comment
1297
+ * @example
1298
+ * // Get one Comment
1299
+ * const comment = await prisma.comment.findUnique({
1300
+ * where: {
1301
+ * // ... provide filter here
1302
+ * }
1303
+ * })
1304
+ */
1305
+ findUnique<T extends CommentFindUniqueArgs>(args: Prisma.SelectSubset<T, CommentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1306
+
1307
+ /**
1308
+ * Find one Comment that matches the filter or throw an error with `error.code='P2025'`
1309
+ * if no matches were found.
1310
+ * @param {CommentFindUniqueOrThrowArgs} args - Arguments to find a Comment
1311
+ * @example
1312
+ * // Get one Comment
1313
+ * const comment = await prisma.comment.findUniqueOrThrow({
1314
+ * where: {
1315
+ * // ... provide filter here
1316
+ * }
1317
+ * })
1318
+ */
1319
+ findUniqueOrThrow<T extends CommentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CommentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1320
+
1321
+ /**
1322
+ * Find the first Comment that matches the filter.
1323
+ * Note, that providing `undefined` is treated as the value not being there.
1324
+ * Read more here: https://pris.ly/d/null-undefined
1325
+ * @param {CommentFindFirstArgs} args - Arguments to find a Comment
1326
+ * @example
1327
+ * // Get one Comment
1328
+ * const comment = await prisma.comment.findFirst({
1329
+ * where: {
1330
+ * // ... provide filter here
1331
+ * }
1332
+ * })
1333
+ */
1334
+ findFirst<T extends CommentFindFirstArgs>(args?: Prisma.SelectSubset<T, CommentFindFirstArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1335
+
1336
+ /**
1337
+ * Find the first Comment that matches the filter or
1338
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1339
+ * Note, that providing `undefined` is treated as the value not being there.
1340
+ * Read more here: https://pris.ly/d/null-undefined
1341
+ * @param {CommentFindFirstOrThrowArgs} args - Arguments to find a Comment
1342
+ * @example
1343
+ * // Get one Comment
1344
+ * const comment = await prisma.comment.findFirstOrThrow({
1345
+ * where: {
1346
+ * // ... provide filter here
1347
+ * }
1348
+ * })
1349
+ */
1350
+ findFirstOrThrow<T extends CommentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CommentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1351
+
1352
+ /**
1353
+ * Find zero or more Comments that matches the filter.
1354
+ * Note, that providing `undefined` is treated as the value not being there.
1355
+ * Read more here: https://pris.ly/d/null-undefined
1356
+ * @param {CommentFindManyArgs} args - Arguments to filter and select certain fields only.
1357
+ * @example
1358
+ * // Get all Comments
1359
+ * const comments = await prisma.comment.findMany()
1360
+ *
1361
+ * // Get first 10 Comments
1362
+ * const comments = await prisma.comment.findMany({ take: 10 })
1363
+ *
1364
+ * // Only select the `id`
1365
+ * const commentWithIdOnly = await prisma.comment.findMany({ select: { id: true } })
1366
+ *
1367
+ */
1368
+ findMany<T extends CommentFindManyArgs>(args?: Prisma.SelectSubset<T, CommentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1369
+
1370
+ /**
1371
+ * Create a Comment.
1372
+ * @param {CommentCreateArgs} args - Arguments to create a Comment.
1373
+ * @example
1374
+ * // Create one Comment
1375
+ * const Comment = await prisma.comment.create({
1376
+ * data: {
1377
+ * // ... data to create a Comment
1378
+ * }
1379
+ * })
1380
+ *
1381
+ */
1382
+ create<T extends CommentCreateArgs>(args: Prisma.SelectSubset<T, CommentCreateArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1383
+
1384
+ /**
1385
+ * Create many Comments.
1386
+ * @param {CommentCreateManyArgs} args - Arguments to create many Comments.
1387
+ * @example
1388
+ * // Create many Comments
1389
+ * const comment = await prisma.comment.createMany({
1390
+ * data: [
1391
+ * // ... provide data here
1392
+ * ]
1393
+ * })
1394
+ *
1395
+ */
1396
+ createMany<T extends CommentCreateManyArgs>(args?: Prisma.SelectSubset<T, CommentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1397
+
1398
+ /**
1399
+ * Create many Comments and returns the data saved in the database.
1400
+ * @param {CommentCreateManyAndReturnArgs} args - Arguments to create many Comments.
1401
+ * @example
1402
+ * // Create many Comments
1403
+ * const comment = await prisma.comment.createManyAndReturn({
1404
+ * data: [
1405
+ * // ... provide data here
1406
+ * ]
1407
+ * })
1408
+ *
1409
+ * // Create many Comments and only return the `id`
1410
+ * const commentWithIdOnly = await prisma.comment.createManyAndReturn({
1411
+ * select: { id: true },
1412
+ * data: [
1413
+ * // ... provide data here
1414
+ * ]
1415
+ * })
1416
+ * Note, that providing `undefined` is treated as the value not being there.
1417
+ * Read more here: https://pris.ly/d/null-undefined
1418
+ *
1419
+ */
1420
+ createManyAndReturn<T extends CommentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CommentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1421
+
1422
+ /**
1423
+ * Delete a Comment.
1424
+ * @param {CommentDeleteArgs} args - Arguments to delete one Comment.
1425
+ * @example
1426
+ * // Delete one Comment
1427
+ * const Comment = await prisma.comment.delete({
1428
+ * where: {
1429
+ * // ... filter to delete one Comment
1430
+ * }
1431
+ * })
1432
+ *
1433
+ */
1434
+ delete<T extends CommentDeleteArgs>(args: Prisma.SelectSubset<T, CommentDeleteArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1435
+
1436
+ /**
1437
+ * Update one Comment.
1438
+ * @param {CommentUpdateArgs} args - Arguments to update one Comment.
1439
+ * @example
1440
+ * // Update one Comment
1441
+ * const comment = await prisma.comment.update({
1442
+ * where: {
1443
+ * // ... provide filter here
1444
+ * },
1445
+ * data: {
1446
+ * // ... provide data here
1447
+ * }
1448
+ * })
1449
+ *
1450
+ */
1451
+ update<T extends CommentUpdateArgs>(args: Prisma.SelectSubset<T, CommentUpdateArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1452
+
1453
+ /**
1454
+ * Delete zero or more Comments.
1455
+ * @param {CommentDeleteManyArgs} args - Arguments to filter Comments to delete.
1456
+ * @example
1457
+ * // Delete a few Comments
1458
+ * const { count } = await prisma.comment.deleteMany({
1459
+ * where: {
1460
+ * // ... provide filter here
1461
+ * }
1462
+ * })
1463
+ *
1464
+ */
1465
+ deleteMany<T extends CommentDeleteManyArgs>(args?: Prisma.SelectSubset<T, CommentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1466
+
1467
+ /**
1468
+ * Update zero or more Comments.
1469
+ * Note, that providing `undefined` is treated as the value not being there.
1470
+ * Read more here: https://pris.ly/d/null-undefined
1471
+ * @param {CommentUpdateManyArgs} args - Arguments to update one or more rows.
1472
+ * @example
1473
+ * // Update many Comments
1474
+ * const comment = await prisma.comment.updateMany({
1475
+ * where: {
1476
+ * // ... provide filter here
1477
+ * },
1478
+ * data: {
1479
+ * // ... provide data here
1480
+ * }
1481
+ * })
1482
+ *
1483
+ */
1484
+ updateMany<T extends CommentUpdateManyArgs>(args: Prisma.SelectSubset<T, CommentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1485
+
1486
+ /**
1487
+ * Update zero or more Comments and returns the data updated in the database.
1488
+ * @param {CommentUpdateManyAndReturnArgs} args - Arguments to update many Comments.
1489
+ * @example
1490
+ * // Update many Comments
1491
+ * const comment = await prisma.comment.updateManyAndReturn({
1492
+ * where: {
1493
+ * // ... provide filter here
1494
+ * },
1495
+ * data: [
1496
+ * // ... provide data here
1497
+ * ]
1498
+ * })
1499
+ *
1500
+ * // Update zero or more Comments and only return the `id`
1501
+ * const commentWithIdOnly = await prisma.comment.updateManyAndReturn({
1502
+ * select: { id: true },
1503
+ * where: {
1504
+ * // ... provide filter here
1505
+ * },
1506
+ * data: [
1507
+ * // ... provide data here
1508
+ * ]
1509
+ * })
1510
+ * Note, that providing `undefined` is treated as the value not being there.
1511
+ * Read more here: https://pris.ly/d/null-undefined
1512
+ *
1513
+ */
1514
+ updateManyAndReturn<T extends CommentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CommentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1515
+
1516
+ /**
1517
+ * Create or update one Comment.
1518
+ * @param {CommentUpsertArgs} args - Arguments to update or create a Comment.
1519
+ * @example
1520
+ * // Update or create a Comment
1521
+ * const comment = await prisma.comment.upsert({
1522
+ * create: {
1523
+ * // ... data to create a Comment
1524
+ * },
1525
+ * update: {
1526
+ * // ... in case it already exists, update
1527
+ * },
1528
+ * where: {
1529
+ * // ... the filter for the Comment we want to update
1530
+ * }
1531
+ * })
1532
+ */
1533
+ upsert<T extends CommentUpsertArgs>(args: Prisma.SelectSubset<T, CommentUpsertArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1534
+
1535
+
1536
+ /**
1537
+ * Count the number of Comments.
1538
+ * Note, that providing `undefined` is treated as the value not being there.
1539
+ * Read more here: https://pris.ly/d/null-undefined
1540
+ * @param {CommentCountArgs} args - Arguments to filter Comments to count.
1541
+ * @example
1542
+ * // Count the number of Comments
1543
+ * const count = await prisma.comment.count({
1544
+ * where: {
1545
+ * // ... the filter for the Comments we want to count
1546
+ * }
1547
+ * })
1548
+ **/
1549
+ count<T extends CommentCountArgs>(
1550
+ args?: Prisma.Subset<T, CommentCountArgs>,
1551
+ ): Prisma.PrismaPromise<
1552
+ T extends runtime.Types.Utils.Record<'select', any>
1553
+ ? T['select'] extends true
1554
+ ? number
1555
+ : Prisma.GetScalarType<T['select'], CommentCountAggregateOutputType>
1556
+ : number
1557
+ >
1558
+
1559
+ /**
1560
+ * Allows you to perform aggregations operations on a Comment.
1561
+ * Note, that providing `undefined` is treated as the value not being there.
1562
+ * Read more here: https://pris.ly/d/null-undefined
1563
+ * @param {CommentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1564
+ * @example
1565
+ * // Ordered by age ascending
1566
+ * // Where email contains prisma.io
1567
+ * // Limited to the 10 users
1568
+ * const aggregations = await prisma.user.aggregate({
1569
+ * _avg: {
1570
+ * age: true,
1571
+ * },
1572
+ * where: {
1573
+ * email: {
1574
+ * contains: "prisma.io",
1575
+ * },
1576
+ * },
1577
+ * orderBy: {
1578
+ * age: "asc",
1579
+ * },
1580
+ * take: 10,
1581
+ * })
1582
+ **/
1583
+ aggregate<T extends CommentAggregateArgs>(args: Prisma.Subset<T, CommentAggregateArgs>): Prisma.PrismaPromise<GetCommentAggregateType<T>>
1584
+
1585
+ /**
1586
+ * Group by Comment.
1587
+ * Note, that providing `undefined` is treated as the value not being there.
1588
+ * Read more here: https://pris.ly/d/null-undefined
1589
+ * @param {CommentGroupByArgs} args - Group by arguments.
1590
+ * @example
1591
+ * // Group by city, order by createdAt, get count
1592
+ * const result = await prisma.user.groupBy({
1593
+ * by: ['city', 'createdAt'],
1594
+ * orderBy: {
1595
+ * createdAt: true
1596
+ * },
1597
+ * _count: {
1598
+ * _all: true
1599
+ * },
1600
+ * })
1601
+ *
1602
+ **/
1603
+ groupBy<
1604
+ T extends CommentGroupByArgs,
1605
+ HasSelectOrTake extends Prisma.Or<
1606
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1607
+ Prisma.Extends<'take', Prisma.Keys<T>>
1608
+ >,
1609
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1610
+ ? { orderBy: CommentGroupByArgs['orderBy'] }
1611
+ : { orderBy?: CommentGroupByArgs['orderBy'] },
1612
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1613
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1614
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1615
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1616
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1617
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1618
+ InputErrors extends ByEmpty extends Prisma.True
1619
+ ? `Error: "by" must not be empty.`
1620
+ : HavingValid extends Prisma.False
1621
+ ? {
1622
+ [P in HavingFields]: P extends ByFields
1623
+ ? never
1624
+ : P extends string
1625
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1626
+ : [
1627
+ Error,
1628
+ 'Field ',
1629
+ P,
1630
+ ` in "having" needs to be provided in "by"`,
1631
+ ]
1632
+ }[HavingFields]
1633
+ : 'take' extends Prisma.Keys<T>
1634
+ ? 'orderBy' extends Prisma.Keys<T>
1635
+ ? ByValid extends Prisma.True
1636
+ ? {}
1637
+ : {
1638
+ [P in OrderFields]: P extends ByFields
1639
+ ? never
1640
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1641
+ }[OrderFields]
1642
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1643
+ : 'skip' extends Prisma.Keys<T>
1644
+ ? 'orderBy' extends Prisma.Keys<T>
1645
+ ? ByValid extends Prisma.True
1646
+ ? {}
1647
+ : {
1648
+ [P in OrderFields]: P extends ByFields
1649
+ ? never
1650
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1651
+ }[OrderFields]
1652
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1653
+ : ByValid extends Prisma.True
1654
+ ? {}
1655
+ : {
1656
+ [P in OrderFields]: P extends ByFields
1657
+ ? never
1658
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1659
+ }[OrderFields]
1660
+ >(args: Prisma.SubsetIntersection<T, CommentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCommentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1661
+ /**
1662
+ * Fields of the Comment model
1663
+ */
1664
+ readonly fields: CommentFieldRefs;
1665
+ }
1666
+
1667
+ /**
1668
+ * The delegate class that acts as a "Promise-like" for Comment.
1669
+ * Why is this prefixed with `Prisma__`?
1670
+ * Because we want to prevent naming conflicts as mentioned in
1671
+ * https://github.com/prisma/prisma-client-js/issues/707
1672
+ */
1673
+ export interface Prisma__CommentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1674
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1675
+ 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>
1676
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1677
+ parent<T extends Prisma.Comment$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Comment$parentArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1678
+ replies<T extends Prisma.Comment$repliesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Comment$repliesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1679
+ ignores<T extends Prisma.Comment$ignoresArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Comment$ignoresArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentIgnorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1680
+ /**
1681
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1682
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1683
+ * @param onrejected The callback to execute when the Promise is rejected.
1684
+ * @returns A Promise for the completion of which ever callback is executed.
1685
+ */
1686
+ 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>
1687
+ /**
1688
+ * Attaches a callback for only the rejection of the Promise.
1689
+ * @param onrejected The callback to execute when the Promise is rejected.
1690
+ * @returns A Promise for the completion of the callback.
1691
+ */
1692
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1693
+ /**
1694
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1695
+ * resolved value cannot be modified from the callback.
1696
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1697
+ * @returns A Promise for the completion of the callback.
1698
+ */
1699
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1700
+ }
1701
+
1702
+
1703
+
1704
+
1705
+ /**
1706
+ * Fields of the Comment model
1707
+ */
1708
+ export interface CommentFieldRefs {
1709
+ readonly id: Prisma.FieldRef<"Comment", 'String'>
1710
+ readonly prdId: Prisma.FieldRef<"Comment", 'String'>
1711
+ readonly pageId: Prisma.FieldRef<"Comment", 'String'>
1712
+ readonly elementId: Prisma.FieldRef<"Comment", 'String'>
1713
+ readonly userId: Prisma.FieldRef<"Comment", 'String'>
1714
+ readonly content: Prisma.FieldRef<"Comment", 'String'>
1715
+ readonly parentId: Prisma.FieldRef<"Comment", 'String'>
1716
+ readonly position: Prisma.FieldRef<"Comment", 'Json'>
1717
+ readonly resolved: Prisma.FieldRef<"Comment", 'Boolean'>
1718
+ readonly createdAt: Prisma.FieldRef<"Comment", 'DateTime'>
1719
+ readonly updatedAt: Prisma.FieldRef<"Comment", 'DateTime'>
1720
+ }
1721
+
1722
+
1723
+ // Custom InputTypes
1724
+ /**
1725
+ * Comment findUnique
1726
+ */
1727
+ export type CommentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1728
+ /**
1729
+ * Select specific fields to fetch from the Comment
1730
+ */
1731
+ select?: Prisma.CommentSelect<ExtArgs> | null
1732
+ /**
1733
+ * Omit specific fields from the Comment
1734
+ */
1735
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1736
+ /**
1737
+ * Choose, which related nodes to fetch as well
1738
+ */
1739
+ include?: Prisma.CommentInclude<ExtArgs> | null
1740
+ /**
1741
+ * Filter, which Comment to fetch.
1742
+ */
1743
+ where: Prisma.CommentWhereUniqueInput
1744
+ }
1745
+
1746
+ /**
1747
+ * Comment findUniqueOrThrow
1748
+ */
1749
+ export type CommentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1750
+ /**
1751
+ * Select specific fields to fetch from the Comment
1752
+ */
1753
+ select?: Prisma.CommentSelect<ExtArgs> | null
1754
+ /**
1755
+ * Omit specific fields from the Comment
1756
+ */
1757
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1758
+ /**
1759
+ * Choose, which related nodes to fetch as well
1760
+ */
1761
+ include?: Prisma.CommentInclude<ExtArgs> | null
1762
+ /**
1763
+ * Filter, which Comment to fetch.
1764
+ */
1765
+ where: Prisma.CommentWhereUniqueInput
1766
+ }
1767
+
1768
+ /**
1769
+ * Comment findFirst
1770
+ */
1771
+ export type CommentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1772
+ /**
1773
+ * Select specific fields to fetch from the Comment
1774
+ */
1775
+ select?: Prisma.CommentSelect<ExtArgs> | null
1776
+ /**
1777
+ * Omit specific fields from the Comment
1778
+ */
1779
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1780
+ /**
1781
+ * Choose, which related nodes to fetch as well
1782
+ */
1783
+ include?: Prisma.CommentInclude<ExtArgs> | null
1784
+ /**
1785
+ * Filter, which Comment to fetch.
1786
+ */
1787
+ where?: Prisma.CommentWhereInput
1788
+ /**
1789
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1790
+ *
1791
+ * Determine the order of Comments to fetch.
1792
+ */
1793
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
1794
+ /**
1795
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1796
+ *
1797
+ * Sets the position for searching for Comments.
1798
+ */
1799
+ cursor?: Prisma.CommentWhereUniqueInput
1800
+ /**
1801
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1802
+ *
1803
+ * Take `±n` Comments from the position of the cursor.
1804
+ */
1805
+ take?: number
1806
+ /**
1807
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1808
+ *
1809
+ * Skip the first `n` Comments.
1810
+ */
1811
+ skip?: number
1812
+ /**
1813
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1814
+ *
1815
+ * Filter by unique combinations of Comments.
1816
+ */
1817
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
1818
+ }
1819
+
1820
+ /**
1821
+ * Comment findFirstOrThrow
1822
+ */
1823
+ export type CommentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1824
+ /**
1825
+ * Select specific fields to fetch from the Comment
1826
+ */
1827
+ select?: Prisma.CommentSelect<ExtArgs> | null
1828
+ /**
1829
+ * Omit specific fields from the Comment
1830
+ */
1831
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1832
+ /**
1833
+ * Choose, which related nodes to fetch as well
1834
+ */
1835
+ include?: Prisma.CommentInclude<ExtArgs> | null
1836
+ /**
1837
+ * Filter, which Comment to fetch.
1838
+ */
1839
+ where?: Prisma.CommentWhereInput
1840
+ /**
1841
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1842
+ *
1843
+ * Determine the order of Comments to fetch.
1844
+ */
1845
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
1846
+ /**
1847
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1848
+ *
1849
+ * Sets the position for searching for Comments.
1850
+ */
1851
+ cursor?: Prisma.CommentWhereUniqueInput
1852
+ /**
1853
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1854
+ *
1855
+ * Take `±n` Comments from the position of the cursor.
1856
+ */
1857
+ take?: number
1858
+ /**
1859
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1860
+ *
1861
+ * Skip the first `n` Comments.
1862
+ */
1863
+ skip?: number
1864
+ /**
1865
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1866
+ *
1867
+ * Filter by unique combinations of Comments.
1868
+ */
1869
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
1870
+ }
1871
+
1872
+ /**
1873
+ * Comment findMany
1874
+ */
1875
+ export type CommentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1876
+ /**
1877
+ * Select specific fields to fetch from the Comment
1878
+ */
1879
+ select?: Prisma.CommentSelect<ExtArgs> | null
1880
+ /**
1881
+ * Omit specific fields from the Comment
1882
+ */
1883
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1884
+ /**
1885
+ * Choose, which related nodes to fetch as well
1886
+ */
1887
+ include?: Prisma.CommentInclude<ExtArgs> | null
1888
+ /**
1889
+ * Filter, which Comments to fetch.
1890
+ */
1891
+ where?: Prisma.CommentWhereInput
1892
+ /**
1893
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1894
+ *
1895
+ * Determine the order of Comments to fetch.
1896
+ */
1897
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
1898
+ /**
1899
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1900
+ *
1901
+ * Sets the position for listing Comments.
1902
+ */
1903
+ cursor?: Prisma.CommentWhereUniqueInput
1904
+ /**
1905
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1906
+ *
1907
+ * Take `±n` Comments from the position of the cursor.
1908
+ */
1909
+ take?: number
1910
+ /**
1911
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1912
+ *
1913
+ * Skip the first `n` Comments.
1914
+ */
1915
+ skip?: number
1916
+ /**
1917
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1918
+ *
1919
+ * Filter by unique combinations of Comments.
1920
+ */
1921
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
1922
+ }
1923
+
1924
+ /**
1925
+ * Comment create
1926
+ */
1927
+ export type CommentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1928
+ /**
1929
+ * Select specific fields to fetch from the Comment
1930
+ */
1931
+ select?: Prisma.CommentSelect<ExtArgs> | null
1932
+ /**
1933
+ * Omit specific fields from the Comment
1934
+ */
1935
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1936
+ /**
1937
+ * Choose, which related nodes to fetch as well
1938
+ */
1939
+ include?: Prisma.CommentInclude<ExtArgs> | null
1940
+ /**
1941
+ * The data needed to create a Comment.
1942
+ */
1943
+ data: Prisma.XOR<Prisma.CommentCreateInput, Prisma.CommentUncheckedCreateInput>
1944
+ }
1945
+
1946
+ /**
1947
+ * Comment createMany
1948
+ */
1949
+ export type CommentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1950
+ /**
1951
+ * The data used to create many Comments.
1952
+ */
1953
+ data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[]
1954
+ }
1955
+
1956
+ /**
1957
+ * Comment createManyAndReturn
1958
+ */
1959
+ export type CommentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1960
+ /**
1961
+ * Select specific fields to fetch from the Comment
1962
+ */
1963
+ select?: Prisma.CommentSelectCreateManyAndReturn<ExtArgs> | null
1964
+ /**
1965
+ * Omit specific fields from the Comment
1966
+ */
1967
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1968
+ /**
1969
+ * The data used to create many Comments.
1970
+ */
1971
+ data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[]
1972
+ /**
1973
+ * Choose, which related nodes to fetch as well
1974
+ */
1975
+ include?: Prisma.CommentIncludeCreateManyAndReturn<ExtArgs> | null
1976
+ }
1977
+
1978
+ /**
1979
+ * Comment update
1980
+ */
1981
+ export type CommentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1982
+ /**
1983
+ * Select specific fields to fetch from the Comment
1984
+ */
1985
+ select?: Prisma.CommentSelect<ExtArgs> | null
1986
+ /**
1987
+ * Omit specific fields from the Comment
1988
+ */
1989
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1990
+ /**
1991
+ * Choose, which related nodes to fetch as well
1992
+ */
1993
+ include?: Prisma.CommentInclude<ExtArgs> | null
1994
+ /**
1995
+ * The data needed to update a Comment.
1996
+ */
1997
+ data: Prisma.XOR<Prisma.CommentUpdateInput, Prisma.CommentUncheckedUpdateInput>
1998
+ /**
1999
+ * Choose, which Comment to update.
2000
+ */
2001
+ where: Prisma.CommentWhereUniqueInput
2002
+ }
2003
+
2004
+ /**
2005
+ * Comment updateMany
2006
+ */
2007
+ export type CommentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2008
+ /**
2009
+ * The data used to update Comments.
2010
+ */
2011
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyInput>
2012
+ /**
2013
+ * Filter which Comments to update
2014
+ */
2015
+ where?: Prisma.CommentWhereInput
2016
+ /**
2017
+ * Limit how many Comments to update.
2018
+ */
2019
+ limit?: number
2020
+ }
2021
+
2022
+ /**
2023
+ * Comment updateManyAndReturn
2024
+ */
2025
+ export type CommentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2026
+ /**
2027
+ * Select specific fields to fetch from the Comment
2028
+ */
2029
+ select?: Prisma.CommentSelectUpdateManyAndReturn<ExtArgs> | null
2030
+ /**
2031
+ * Omit specific fields from the Comment
2032
+ */
2033
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2034
+ /**
2035
+ * The data used to update Comments.
2036
+ */
2037
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyInput>
2038
+ /**
2039
+ * Filter which Comments to update
2040
+ */
2041
+ where?: Prisma.CommentWhereInput
2042
+ /**
2043
+ * Limit how many Comments to update.
2044
+ */
2045
+ limit?: number
2046
+ /**
2047
+ * Choose, which related nodes to fetch as well
2048
+ */
2049
+ include?: Prisma.CommentIncludeUpdateManyAndReturn<ExtArgs> | null
2050
+ }
2051
+
2052
+ /**
2053
+ * Comment upsert
2054
+ */
2055
+ export type CommentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2056
+ /**
2057
+ * Select specific fields to fetch from the Comment
2058
+ */
2059
+ select?: Prisma.CommentSelect<ExtArgs> | null
2060
+ /**
2061
+ * Omit specific fields from the Comment
2062
+ */
2063
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2064
+ /**
2065
+ * Choose, which related nodes to fetch as well
2066
+ */
2067
+ include?: Prisma.CommentInclude<ExtArgs> | null
2068
+ /**
2069
+ * The filter to search for the Comment to update in case it exists.
2070
+ */
2071
+ where: Prisma.CommentWhereUniqueInput
2072
+ /**
2073
+ * In case the Comment found by the `where` argument doesn't exist, create a new Comment with this data.
2074
+ */
2075
+ create: Prisma.XOR<Prisma.CommentCreateInput, Prisma.CommentUncheckedCreateInput>
2076
+ /**
2077
+ * In case the Comment was found with the provided `where` argument, update it with this data.
2078
+ */
2079
+ update: Prisma.XOR<Prisma.CommentUpdateInput, Prisma.CommentUncheckedUpdateInput>
2080
+ }
2081
+
2082
+ /**
2083
+ * Comment delete
2084
+ */
2085
+ export type CommentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2086
+ /**
2087
+ * Select specific fields to fetch from the Comment
2088
+ */
2089
+ select?: Prisma.CommentSelect<ExtArgs> | null
2090
+ /**
2091
+ * Omit specific fields from the Comment
2092
+ */
2093
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2094
+ /**
2095
+ * Choose, which related nodes to fetch as well
2096
+ */
2097
+ include?: Prisma.CommentInclude<ExtArgs> | null
2098
+ /**
2099
+ * Filter which Comment to delete.
2100
+ */
2101
+ where: Prisma.CommentWhereUniqueInput
2102
+ }
2103
+
2104
+ /**
2105
+ * Comment deleteMany
2106
+ */
2107
+ export type CommentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2108
+ /**
2109
+ * Filter which Comments to delete
2110
+ */
2111
+ where?: Prisma.CommentWhereInput
2112
+ /**
2113
+ * Limit how many Comments to delete.
2114
+ */
2115
+ limit?: number
2116
+ }
2117
+
2118
+ /**
2119
+ * Comment.parent
2120
+ */
2121
+ export type Comment$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2122
+ /**
2123
+ * Select specific fields to fetch from the Comment
2124
+ */
2125
+ select?: Prisma.CommentSelect<ExtArgs> | null
2126
+ /**
2127
+ * Omit specific fields from the Comment
2128
+ */
2129
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2130
+ /**
2131
+ * Choose, which related nodes to fetch as well
2132
+ */
2133
+ include?: Prisma.CommentInclude<ExtArgs> | null
2134
+ where?: Prisma.CommentWhereInput
2135
+ }
2136
+
2137
+ /**
2138
+ * Comment.replies
2139
+ */
2140
+ export type Comment$repliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2141
+ /**
2142
+ * Select specific fields to fetch from the Comment
2143
+ */
2144
+ select?: Prisma.CommentSelect<ExtArgs> | null
2145
+ /**
2146
+ * Omit specific fields from the Comment
2147
+ */
2148
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2149
+ /**
2150
+ * Choose, which related nodes to fetch as well
2151
+ */
2152
+ include?: Prisma.CommentInclude<ExtArgs> | null
2153
+ where?: Prisma.CommentWhereInput
2154
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
2155
+ cursor?: Prisma.CommentWhereUniqueInput
2156
+ take?: number
2157
+ skip?: number
2158
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
2159
+ }
2160
+
2161
+ /**
2162
+ * Comment.ignores
2163
+ */
2164
+ export type Comment$ignoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2165
+ /**
2166
+ * Select specific fields to fetch from the CommentIgnore
2167
+ */
2168
+ select?: Prisma.CommentIgnoreSelect<ExtArgs> | null
2169
+ /**
2170
+ * Omit specific fields from the CommentIgnore
2171
+ */
2172
+ omit?: Prisma.CommentIgnoreOmit<ExtArgs> | null
2173
+ /**
2174
+ * Choose, which related nodes to fetch as well
2175
+ */
2176
+ include?: Prisma.CommentIgnoreInclude<ExtArgs> | null
2177
+ where?: Prisma.CommentIgnoreWhereInput
2178
+ orderBy?: Prisma.CommentIgnoreOrderByWithRelationInput | Prisma.CommentIgnoreOrderByWithRelationInput[]
2179
+ cursor?: Prisma.CommentIgnoreWhereUniqueInput
2180
+ take?: number
2181
+ skip?: number
2182
+ distinct?: Prisma.CommentIgnoreScalarFieldEnum | Prisma.CommentIgnoreScalarFieldEnum[]
2183
+ }
2184
+
2185
+ /**
2186
+ * Comment without action
2187
+ */
2188
+ export type CommentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2189
+ /**
2190
+ * Select specific fields to fetch from the Comment
2191
+ */
2192
+ select?: Prisma.CommentSelect<ExtArgs> | null
2193
+ /**
2194
+ * Omit specific fields from the Comment
2195
+ */
2196
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2197
+ /**
2198
+ * Choose, which related nodes to fetch as well
2199
+ */
2200
+ include?: Prisma.CommentInclude<ExtArgs> | null
2201
+ }