@allbluecn/database 0.4.0 → 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,2206 @@
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
+ skipDuplicates?: boolean
668
+ }
669
+
670
+ export type CommentUpsertWithWhereUniqueWithoutUserInput = {
671
+ where: Prisma.CommentWhereUniqueInput
672
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutUserInput, Prisma.CommentUncheckedUpdateWithoutUserInput>
673
+ create: Prisma.XOR<Prisma.CommentCreateWithoutUserInput, Prisma.CommentUncheckedCreateWithoutUserInput>
674
+ }
675
+
676
+ export type CommentUpdateWithWhereUniqueWithoutUserInput = {
677
+ where: Prisma.CommentWhereUniqueInput
678
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutUserInput, Prisma.CommentUncheckedUpdateWithoutUserInput>
679
+ }
680
+
681
+ export type CommentUpdateManyWithWhereWithoutUserInput = {
682
+ where: Prisma.CommentScalarWhereInput
683
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutUserInput>
684
+ }
685
+
686
+ export type CommentScalarWhereInput = {
687
+ AND?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
688
+ OR?: Prisma.CommentScalarWhereInput[]
689
+ NOT?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[]
690
+ id?: Prisma.StringFilter<"Comment"> | string
691
+ prdId?: Prisma.StringFilter<"Comment"> | string
692
+ pageId?: Prisma.StringNullableFilter<"Comment"> | string | null
693
+ elementId?: Prisma.StringNullableFilter<"Comment"> | string | null
694
+ userId?: Prisma.StringFilter<"Comment"> | string
695
+ content?: Prisma.StringFilter<"Comment"> | string
696
+ parentId?: Prisma.StringNullableFilter<"Comment"> | string | null
697
+ position?: Prisma.JsonNullableFilter<"Comment">
698
+ resolved?: Prisma.BoolFilter<"Comment"> | boolean
699
+ createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string
700
+ updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string
701
+ }
702
+
703
+ export type CommentCreateWithoutPrdInput = {
704
+ id?: string
705
+ pageId?: string | null
706
+ elementId?: string | null
707
+ content: string
708
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
709
+ resolved?: boolean
710
+ createdAt?: Date | string
711
+ updatedAt?: Date | string
712
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
713
+ parent?: Prisma.CommentCreateNestedOneWithoutRepliesInput
714
+ replies?: Prisma.CommentCreateNestedManyWithoutParentInput
715
+ ignores?: Prisma.CommentIgnoreCreateNestedManyWithoutCommentInput
716
+ }
717
+
718
+ export type CommentUncheckedCreateWithoutPrdInput = {
719
+ id?: string
720
+ pageId?: string | null
721
+ elementId?: string | null
722
+ userId: string
723
+ content: string
724
+ parentId?: string | null
725
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
726
+ resolved?: boolean
727
+ createdAt?: Date | string
728
+ updatedAt?: Date | string
729
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutParentInput
730
+ ignores?: Prisma.CommentIgnoreUncheckedCreateNestedManyWithoutCommentInput
731
+ }
732
+
733
+ export type CommentCreateOrConnectWithoutPrdInput = {
734
+ where: Prisma.CommentWhereUniqueInput
735
+ create: Prisma.XOR<Prisma.CommentCreateWithoutPrdInput, Prisma.CommentUncheckedCreateWithoutPrdInput>
736
+ }
737
+
738
+ export type CommentCreateManyPrdInputEnvelope = {
739
+ data: Prisma.CommentCreateManyPrdInput | Prisma.CommentCreateManyPrdInput[]
740
+ skipDuplicates?: boolean
741
+ }
742
+
743
+ export type CommentUpsertWithWhereUniqueWithoutPrdInput = {
744
+ where: Prisma.CommentWhereUniqueInput
745
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutPrdInput, Prisma.CommentUncheckedUpdateWithoutPrdInput>
746
+ create: Prisma.XOR<Prisma.CommentCreateWithoutPrdInput, Prisma.CommentUncheckedCreateWithoutPrdInput>
747
+ }
748
+
749
+ export type CommentUpdateWithWhereUniqueWithoutPrdInput = {
750
+ where: Prisma.CommentWhereUniqueInput
751
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutPrdInput, Prisma.CommentUncheckedUpdateWithoutPrdInput>
752
+ }
753
+
754
+ export type CommentUpdateManyWithWhereWithoutPrdInput = {
755
+ where: Prisma.CommentScalarWhereInput
756
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutPrdInput>
757
+ }
758
+
759
+ export type CommentCreateWithoutRepliesInput = {
760
+ id?: string
761
+ pageId?: string | null
762
+ elementId?: string | null
763
+ content: string
764
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
765
+ resolved?: boolean
766
+ createdAt?: Date | string
767
+ updatedAt?: Date | string
768
+ prd: Prisma.PRDCreateNestedOneWithoutCommentsInput
769
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
770
+ parent?: Prisma.CommentCreateNestedOneWithoutRepliesInput
771
+ ignores?: Prisma.CommentIgnoreCreateNestedManyWithoutCommentInput
772
+ }
773
+
774
+ export type CommentUncheckedCreateWithoutRepliesInput = {
775
+ id?: string
776
+ prdId: string
777
+ pageId?: string | null
778
+ elementId?: string | null
779
+ userId: string
780
+ content: string
781
+ parentId?: string | null
782
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
783
+ resolved?: boolean
784
+ createdAt?: Date | string
785
+ updatedAt?: Date | string
786
+ ignores?: Prisma.CommentIgnoreUncheckedCreateNestedManyWithoutCommentInput
787
+ }
788
+
789
+ export type CommentCreateOrConnectWithoutRepliesInput = {
790
+ where: Prisma.CommentWhereUniqueInput
791
+ create: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>
792
+ }
793
+
794
+ export type CommentCreateWithoutParentInput = {
795
+ id?: string
796
+ pageId?: string | null
797
+ elementId?: string | null
798
+ content: string
799
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
800
+ resolved?: boolean
801
+ createdAt?: Date | string
802
+ updatedAt?: Date | string
803
+ prd: Prisma.PRDCreateNestedOneWithoutCommentsInput
804
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
805
+ replies?: Prisma.CommentCreateNestedManyWithoutParentInput
806
+ ignores?: Prisma.CommentIgnoreCreateNestedManyWithoutCommentInput
807
+ }
808
+
809
+ export type CommentUncheckedCreateWithoutParentInput = {
810
+ id?: string
811
+ prdId: string
812
+ pageId?: string | null
813
+ elementId?: string | null
814
+ userId: string
815
+ content: string
816
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
817
+ resolved?: boolean
818
+ createdAt?: Date | string
819
+ updatedAt?: Date | string
820
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutParentInput
821
+ ignores?: Prisma.CommentIgnoreUncheckedCreateNestedManyWithoutCommentInput
822
+ }
823
+
824
+ export type CommentCreateOrConnectWithoutParentInput = {
825
+ where: Prisma.CommentWhereUniqueInput
826
+ create: Prisma.XOR<Prisma.CommentCreateWithoutParentInput, Prisma.CommentUncheckedCreateWithoutParentInput>
827
+ }
828
+
829
+ export type CommentCreateManyParentInputEnvelope = {
830
+ data: Prisma.CommentCreateManyParentInput | Prisma.CommentCreateManyParentInput[]
831
+ skipDuplicates?: boolean
832
+ }
833
+
834
+ export type CommentUpsertWithoutRepliesInput = {
835
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutRepliesInput, Prisma.CommentUncheckedUpdateWithoutRepliesInput>
836
+ create: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>
837
+ where?: Prisma.CommentWhereInput
838
+ }
839
+
840
+ export type CommentUpdateToOneWithWhereWithoutRepliesInput = {
841
+ where?: Prisma.CommentWhereInput
842
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutRepliesInput, Prisma.CommentUncheckedUpdateWithoutRepliesInput>
843
+ }
844
+
845
+ export type CommentUpdateWithoutRepliesInput = {
846
+ id?: Prisma.StringFieldUpdateOperationsInput | string
847
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
848
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
849
+ content?: Prisma.StringFieldUpdateOperationsInput | string
850
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
851
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
852
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
853
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
854
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
855
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
856
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
857
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
858
+ }
859
+
860
+ export type CommentUncheckedUpdateWithoutRepliesInput = {
861
+ id?: Prisma.StringFieldUpdateOperationsInput | string
862
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
863
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
864
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
865
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
866
+ content?: Prisma.StringFieldUpdateOperationsInput | string
867
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
868
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
869
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
870
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
871
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
872
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
873
+ }
874
+
875
+ export type CommentUpsertWithWhereUniqueWithoutParentInput = {
876
+ where: Prisma.CommentWhereUniqueInput
877
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutParentInput, Prisma.CommentUncheckedUpdateWithoutParentInput>
878
+ create: Prisma.XOR<Prisma.CommentCreateWithoutParentInput, Prisma.CommentUncheckedCreateWithoutParentInput>
879
+ }
880
+
881
+ export type CommentUpdateWithWhereUniqueWithoutParentInput = {
882
+ where: Prisma.CommentWhereUniqueInput
883
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutParentInput, Prisma.CommentUncheckedUpdateWithoutParentInput>
884
+ }
885
+
886
+ export type CommentUpdateManyWithWhereWithoutParentInput = {
887
+ where: Prisma.CommentScalarWhereInput
888
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutParentInput>
889
+ }
890
+
891
+ export type CommentCreateWithoutIgnoresInput = {
892
+ id?: string
893
+ pageId?: string | null
894
+ elementId?: string | null
895
+ content: string
896
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
897
+ resolved?: boolean
898
+ createdAt?: Date | string
899
+ updatedAt?: Date | string
900
+ prd: Prisma.PRDCreateNestedOneWithoutCommentsInput
901
+ user: Prisma.UserCreateNestedOneWithoutCommentsInput
902
+ parent?: Prisma.CommentCreateNestedOneWithoutRepliesInput
903
+ replies?: Prisma.CommentCreateNestedManyWithoutParentInput
904
+ }
905
+
906
+ export type CommentUncheckedCreateWithoutIgnoresInput = {
907
+ id?: string
908
+ prdId: string
909
+ pageId?: string | null
910
+ elementId?: string | null
911
+ userId: string
912
+ content: string
913
+ parentId?: string | null
914
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
915
+ resolved?: boolean
916
+ createdAt?: Date | string
917
+ updatedAt?: Date | string
918
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutParentInput
919
+ }
920
+
921
+ export type CommentCreateOrConnectWithoutIgnoresInput = {
922
+ where: Prisma.CommentWhereUniqueInput
923
+ create: Prisma.XOR<Prisma.CommentCreateWithoutIgnoresInput, Prisma.CommentUncheckedCreateWithoutIgnoresInput>
924
+ }
925
+
926
+ export type CommentUpsertWithoutIgnoresInput = {
927
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutIgnoresInput, Prisma.CommentUncheckedUpdateWithoutIgnoresInput>
928
+ create: Prisma.XOR<Prisma.CommentCreateWithoutIgnoresInput, Prisma.CommentUncheckedCreateWithoutIgnoresInput>
929
+ where?: Prisma.CommentWhereInput
930
+ }
931
+
932
+ export type CommentUpdateToOneWithWhereWithoutIgnoresInput = {
933
+ where?: Prisma.CommentWhereInput
934
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutIgnoresInput, Prisma.CommentUncheckedUpdateWithoutIgnoresInput>
935
+ }
936
+
937
+ export type CommentUpdateWithoutIgnoresInput = {
938
+ id?: Prisma.StringFieldUpdateOperationsInput | string
939
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
940
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
941
+ content?: Prisma.StringFieldUpdateOperationsInput | string
942
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
943
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
944
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
945
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
946
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
947
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
948
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
949
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
950
+ }
951
+
952
+ export type CommentUncheckedUpdateWithoutIgnoresInput = {
953
+ id?: Prisma.StringFieldUpdateOperationsInput | string
954
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
955
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
956
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
957
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
958
+ content?: Prisma.StringFieldUpdateOperationsInput | string
959
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
960
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
961
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
962
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
963
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
964
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
965
+ }
966
+
967
+ export type CommentCreateManyUserInput = {
968
+ id?: string
969
+ prdId: string
970
+ pageId?: string | null
971
+ elementId?: string | null
972
+ content: string
973
+ parentId?: string | null
974
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
975
+ resolved?: boolean
976
+ createdAt?: Date | string
977
+ updatedAt?: Date | string
978
+ }
979
+
980
+ export type CommentUpdateWithoutUserInput = {
981
+ id?: Prisma.StringFieldUpdateOperationsInput | string
982
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
983
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
984
+ content?: Prisma.StringFieldUpdateOperationsInput | string
985
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
986
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
987
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
988
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
989
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
990
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
991
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
992
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
993
+ }
994
+
995
+ export type CommentUncheckedUpdateWithoutUserInput = {
996
+ id?: Prisma.StringFieldUpdateOperationsInput | string
997
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
998
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
999
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1000
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1001
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1002
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1003
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1004
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1005
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1006
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
1007
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
1008
+ }
1009
+
1010
+ export type CommentUncheckedUpdateManyWithoutUserInput = {
1011
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1012
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
1013
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1014
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1015
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1016
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1017
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1018
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1019
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1020
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1021
+ }
1022
+
1023
+ export type CommentCreateManyPrdInput = {
1024
+ id?: string
1025
+ pageId?: string | null
1026
+ elementId?: string | null
1027
+ userId: string
1028
+ content: string
1029
+ parentId?: string | null
1030
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1031
+ resolved?: boolean
1032
+ createdAt?: Date | string
1033
+ updatedAt?: Date | string
1034
+ }
1035
+
1036
+ export type CommentUpdateWithoutPrdInput = {
1037
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1038
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1039
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1040
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1041
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1042
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1043
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1044
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1045
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
1046
+ parent?: Prisma.CommentUpdateOneWithoutRepliesNestedInput
1047
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
1048
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
1049
+ }
1050
+
1051
+ export type CommentUncheckedUpdateWithoutPrdInput = {
1052
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1053
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1054
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1055
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1056
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1057
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1058
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1059
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1060
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1061
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1062
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
1063
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
1064
+ }
1065
+
1066
+ export type CommentUncheckedUpdateManyWithoutPrdInput = {
1067
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1068
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1069
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1070
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1071
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1072
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1073
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1074
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1075
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1076
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1077
+ }
1078
+
1079
+ export type CommentCreateManyParentInput = {
1080
+ id?: string
1081
+ prdId: string
1082
+ pageId?: string | null
1083
+ elementId?: string | null
1084
+ userId: string
1085
+ content: string
1086
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1087
+ resolved?: boolean
1088
+ createdAt?: Date | string
1089
+ updatedAt?: Date | string
1090
+ }
1091
+
1092
+ export type CommentUpdateWithoutParentInput = {
1093
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1094
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1095
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1096
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1097
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1098
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1099
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1100
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1101
+ prd?: Prisma.PRDUpdateOneRequiredWithoutCommentsNestedInput
1102
+ user?: Prisma.UserUpdateOneRequiredWithoutCommentsNestedInput
1103
+ replies?: Prisma.CommentUpdateManyWithoutParentNestedInput
1104
+ ignores?: Prisma.CommentIgnoreUpdateManyWithoutCommentNestedInput
1105
+ }
1106
+
1107
+ export type CommentUncheckedUpdateWithoutParentInput = {
1108
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1109
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
1110
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1111
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1112
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1113
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1114
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1115
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1116
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1117
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1118
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutParentNestedInput
1119
+ ignores?: Prisma.CommentIgnoreUncheckedUpdateManyWithoutCommentNestedInput
1120
+ }
1121
+
1122
+ export type CommentUncheckedUpdateManyWithoutParentInput = {
1123
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1124
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
1125
+ pageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1126
+ elementId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1127
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1128
+ content?: Prisma.StringFieldUpdateOperationsInput | string
1129
+ position?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1130
+ resolved?: Prisma.BoolFieldUpdateOperationsInput | boolean
1131
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1132
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1133
+ }
1134
+
1135
+
1136
+ /**
1137
+ * Count Type CommentCountOutputType
1138
+ */
1139
+
1140
+ export type CommentCountOutputType = {
1141
+ replies: number
1142
+ ignores: number
1143
+ }
1144
+
1145
+ export type CommentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1146
+ replies?: boolean | CommentCountOutputTypeCountRepliesArgs
1147
+ ignores?: boolean | CommentCountOutputTypeCountIgnoresArgs
1148
+ }
1149
+
1150
+ /**
1151
+ * CommentCountOutputType without action
1152
+ */
1153
+ export type CommentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ /**
1155
+ * Select specific fields to fetch from the CommentCountOutputType
1156
+ */
1157
+ select?: Prisma.CommentCountOutputTypeSelect<ExtArgs> | null
1158
+ }
1159
+
1160
+ /**
1161
+ * CommentCountOutputType without action
1162
+ */
1163
+ export type CommentCountOutputTypeCountRepliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1164
+ where?: Prisma.CommentWhereInput
1165
+ }
1166
+
1167
+ /**
1168
+ * CommentCountOutputType without action
1169
+ */
1170
+ export type CommentCountOutputTypeCountIgnoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1171
+ where?: Prisma.CommentIgnoreWhereInput
1172
+ }
1173
+
1174
+
1175
+ export type CommentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1176
+ id?: boolean
1177
+ prdId?: boolean
1178
+ pageId?: boolean
1179
+ elementId?: boolean
1180
+ userId?: boolean
1181
+ content?: boolean
1182
+ parentId?: boolean
1183
+ position?: boolean
1184
+ resolved?: boolean
1185
+ createdAt?: boolean
1186
+ updatedAt?: boolean
1187
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1188
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1189
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1190
+ replies?: boolean | Prisma.Comment$repliesArgs<ExtArgs>
1191
+ ignores?: boolean | Prisma.Comment$ignoresArgs<ExtArgs>
1192
+ _count?: boolean | Prisma.CommentCountOutputTypeDefaultArgs<ExtArgs>
1193
+ }, ExtArgs["result"]["comment"]>
1194
+
1195
+ export type CommentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1196
+ id?: boolean
1197
+ prdId?: boolean
1198
+ pageId?: boolean
1199
+ elementId?: boolean
1200
+ userId?: boolean
1201
+ content?: boolean
1202
+ parentId?: boolean
1203
+ position?: boolean
1204
+ resolved?: boolean
1205
+ createdAt?: boolean
1206
+ updatedAt?: boolean
1207
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1208
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1209
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1210
+ }, ExtArgs["result"]["comment"]>
1211
+
1212
+ export type CommentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1213
+ id?: boolean
1214
+ prdId?: boolean
1215
+ pageId?: boolean
1216
+ elementId?: boolean
1217
+ userId?: boolean
1218
+ content?: boolean
1219
+ parentId?: boolean
1220
+ position?: boolean
1221
+ resolved?: boolean
1222
+ createdAt?: boolean
1223
+ updatedAt?: boolean
1224
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1225
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1226
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1227
+ }, ExtArgs["result"]["comment"]>
1228
+
1229
+ export type CommentSelectScalar = {
1230
+ id?: boolean
1231
+ prdId?: boolean
1232
+ pageId?: boolean
1233
+ elementId?: boolean
1234
+ userId?: boolean
1235
+ content?: boolean
1236
+ parentId?: boolean
1237
+ position?: boolean
1238
+ resolved?: boolean
1239
+ createdAt?: boolean
1240
+ updatedAt?: boolean
1241
+ }
1242
+
1243
+ 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"]>
1244
+ export type CommentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1245
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1246
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1247
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1248
+ replies?: boolean | Prisma.Comment$repliesArgs<ExtArgs>
1249
+ ignores?: boolean | Prisma.Comment$ignoresArgs<ExtArgs>
1250
+ _count?: boolean | Prisma.CommentCountOutputTypeDefaultArgs<ExtArgs>
1251
+ }
1252
+ export type CommentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1253
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1254
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1255
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1256
+ }
1257
+ export type CommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1258
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
1259
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1260
+ parent?: boolean | Prisma.Comment$parentArgs<ExtArgs>
1261
+ }
1262
+
1263
+ export type $CommentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1264
+ name: "Comment"
1265
+ objects: {
1266
+ prd: Prisma.$PRDPayload<ExtArgs>
1267
+ user: Prisma.$UserPayload<ExtArgs>
1268
+ parent: Prisma.$CommentPayload<ExtArgs> | null
1269
+ replies: Prisma.$CommentPayload<ExtArgs>[]
1270
+ ignores: Prisma.$CommentIgnorePayload<ExtArgs>[]
1271
+ }
1272
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1273
+ id: string
1274
+ prdId: string
1275
+ pageId: string | null
1276
+ elementId: string | null
1277
+ userId: string
1278
+ content: string
1279
+ parentId: string | null
1280
+ position: runtime.JsonValue | null
1281
+ resolved: boolean
1282
+ createdAt: Date
1283
+ updatedAt: Date
1284
+ }, ExtArgs["result"]["comment"]>
1285
+ composites: {}
1286
+ }
1287
+
1288
+ export type CommentGetPayload<S extends boolean | null | undefined | CommentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CommentPayload, S>
1289
+
1290
+ export type CommentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1291
+ Omit<CommentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1292
+ select?: CommentCountAggregateInputType | true
1293
+ }
1294
+
1295
+ export interface CommentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1296
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Comment'], meta: { name: 'Comment' } }
1297
+ /**
1298
+ * Find zero or one Comment that matches the filter.
1299
+ * @param {CommentFindUniqueArgs} args - Arguments to find a Comment
1300
+ * @example
1301
+ * // Get one Comment
1302
+ * const comment = await prisma.comment.findUnique({
1303
+ * where: {
1304
+ * // ... provide filter here
1305
+ * }
1306
+ * })
1307
+ */
1308
+ 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>
1309
+
1310
+ /**
1311
+ * Find one Comment that matches the filter or throw an error with `error.code='P2025'`
1312
+ * if no matches were found.
1313
+ * @param {CommentFindUniqueOrThrowArgs} args - Arguments to find a Comment
1314
+ * @example
1315
+ * // Get one Comment
1316
+ * const comment = await prisma.comment.findUniqueOrThrow({
1317
+ * where: {
1318
+ * // ... provide filter here
1319
+ * }
1320
+ * })
1321
+ */
1322
+ 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>
1323
+
1324
+ /**
1325
+ * Find the first Comment that matches the filter.
1326
+ * Note, that providing `undefined` is treated as the value not being there.
1327
+ * Read more here: https://pris.ly/d/null-undefined
1328
+ * @param {CommentFindFirstArgs} args - Arguments to find a Comment
1329
+ * @example
1330
+ * // Get one Comment
1331
+ * const comment = await prisma.comment.findFirst({
1332
+ * where: {
1333
+ * // ... provide filter here
1334
+ * }
1335
+ * })
1336
+ */
1337
+ 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>
1338
+
1339
+ /**
1340
+ * Find the first Comment that matches the filter or
1341
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1342
+ * Note, that providing `undefined` is treated as the value not being there.
1343
+ * Read more here: https://pris.ly/d/null-undefined
1344
+ * @param {CommentFindFirstOrThrowArgs} args - Arguments to find a Comment
1345
+ * @example
1346
+ * // Get one Comment
1347
+ * const comment = await prisma.comment.findFirstOrThrow({
1348
+ * where: {
1349
+ * // ... provide filter here
1350
+ * }
1351
+ * })
1352
+ */
1353
+ 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>
1354
+
1355
+ /**
1356
+ * Find zero or more Comments that matches the filter.
1357
+ * Note, that providing `undefined` is treated as the value not being there.
1358
+ * Read more here: https://pris.ly/d/null-undefined
1359
+ * @param {CommentFindManyArgs} args - Arguments to filter and select certain fields only.
1360
+ * @example
1361
+ * // Get all Comments
1362
+ * const comments = await prisma.comment.findMany()
1363
+ *
1364
+ * // Get first 10 Comments
1365
+ * const comments = await prisma.comment.findMany({ take: 10 })
1366
+ *
1367
+ * // Only select the `id`
1368
+ * const commentWithIdOnly = await prisma.comment.findMany({ select: { id: true } })
1369
+ *
1370
+ */
1371
+ findMany<T extends CommentFindManyArgs>(args?: Prisma.SelectSubset<T, CommentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1372
+
1373
+ /**
1374
+ * Create a Comment.
1375
+ * @param {CommentCreateArgs} args - Arguments to create a Comment.
1376
+ * @example
1377
+ * // Create one Comment
1378
+ * const Comment = await prisma.comment.create({
1379
+ * data: {
1380
+ * // ... data to create a Comment
1381
+ * }
1382
+ * })
1383
+ *
1384
+ */
1385
+ 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>
1386
+
1387
+ /**
1388
+ * Create many Comments.
1389
+ * @param {CommentCreateManyArgs} args - Arguments to create many Comments.
1390
+ * @example
1391
+ * // Create many Comments
1392
+ * const comment = await prisma.comment.createMany({
1393
+ * data: [
1394
+ * // ... provide data here
1395
+ * ]
1396
+ * })
1397
+ *
1398
+ */
1399
+ createMany<T extends CommentCreateManyArgs>(args?: Prisma.SelectSubset<T, CommentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1400
+
1401
+ /**
1402
+ * Create many Comments and returns the data saved in the database.
1403
+ * @param {CommentCreateManyAndReturnArgs} args - Arguments to create many Comments.
1404
+ * @example
1405
+ * // Create many Comments
1406
+ * const comment = await prisma.comment.createManyAndReturn({
1407
+ * data: [
1408
+ * // ... provide data here
1409
+ * ]
1410
+ * })
1411
+ *
1412
+ * // Create many Comments and only return the `id`
1413
+ * const commentWithIdOnly = await prisma.comment.createManyAndReturn({
1414
+ * select: { id: true },
1415
+ * data: [
1416
+ * // ... provide data here
1417
+ * ]
1418
+ * })
1419
+ * Note, that providing `undefined` is treated as the value not being there.
1420
+ * Read more here: https://pris.ly/d/null-undefined
1421
+ *
1422
+ */
1423
+ createManyAndReturn<T extends CommentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CommentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1424
+
1425
+ /**
1426
+ * Delete a Comment.
1427
+ * @param {CommentDeleteArgs} args - Arguments to delete one Comment.
1428
+ * @example
1429
+ * // Delete one Comment
1430
+ * const Comment = await prisma.comment.delete({
1431
+ * where: {
1432
+ * // ... filter to delete one Comment
1433
+ * }
1434
+ * })
1435
+ *
1436
+ */
1437
+ 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>
1438
+
1439
+ /**
1440
+ * Update one Comment.
1441
+ * @param {CommentUpdateArgs} args - Arguments to update one Comment.
1442
+ * @example
1443
+ * // Update one Comment
1444
+ * const comment = await prisma.comment.update({
1445
+ * where: {
1446
+ * // ... provide filter here
1447
+ * },
1448
+ * data: {
1449
+ * // ... provide data here
1450
+ * }
1451
+ * })
1452
+ *
1453
+ */
1454
+ 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>
1455
+
1456
+ /**
1457
+ * Delete zero or more Comments.
1458
+ * @param {CommentDeleteManyArgs} args - Arguments to filter Comments to delete.
1459
+ * @example
1460
+ * // Delete a few Comments
1461
+ * const { count } = await prisma.comment.deleteMany({
1462
+ * where: {
1463
+ * // ... provide filter here
1464
+ * }
1465
+ * })
1466
+ *
1467
+ */
1468
+ deleteMany<T extends CommentDeleteManyArgs>(args?: Prisma.SelectSubset<T, CommentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1469
+
1470
+ /**
1471
+ * Update zero or more Comments.
1472
+ * Note, that providing `undefined` is treated as the value not being there.
1473
+ * Read more here: https://pris.ly/d/null-undefined
1474
+ * @param {CommentUpdateManyArgs} args - Arguments to update one or more rows.
1475
+ * @example
1476
+ * // Update many Comments
1477
+ * const comment = await prisma.comment.updateMany({
1478
+ * where: {
1479
+ * // ... provide filter here
1480
+ * },
1481
+ * data: {
1482
+ * // ... provide data here
1483
+ * }
1484
+ * })
1485
+ *
1486
+ */
1487
+ updateMany<T extends CommentUpdateManyArgs>(args: Prisma.SelectSubset<T, CommentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1488
+
1489
+ /**
1490
+ * Update zero or more Comments and returns the data updated in the database.
1491
+ * @param {CommentUpdateManyAndReturnArgs} args - Arguments to update many Comments.
1492
+ * @example
1493
+ * // Update many Comments
1494
+ * const comment = await prisma.comment.updateManyAndReturn({
1495
+ * where: {
1496
+ * // ... provide filter here
1497
+ * },
1498
+ * data: [
1499
+ * // ... provide data here
1500
+ * ]
1501
+ * })
1502
+ *
1503
+ * // Update zero or more Comments and only return the `id`
1504
+ * const commentWithIdOnly = await prisma.comment.updateManyAndReturn({
1505
+ * select: { id: true },
1506
+ * where: {
1507
+ * // ... provide filter here
1508
+ * },
1509
+ * data: [
1510
+ * // ... provide data here
1511
+ * ]
1512
+ * })
1513
+ * Note, that providing `undefined` is treated as the value not being there.
1514
+ * Read more here: https://pris.ly/d/null-undefined
1515
+ *
1516
+ */
1517
+ updateManyAndReturn<T extends CommentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CommentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1518
+
1519
+ /**
1520
+ * Create or update one Comment.
1521
+ * @param {CommentUpsertArgs} args - Arguments to update or create a Comment.
1522
+ * @example
1523
+ * // Update or create a Comment
1524
+ * const comment = await prisma.comment.upsert({
1525
+ * create: {
1526
+ * // ... data to create a Comment
1527
+ * },
1528
+ * update: {
1529
+ * // ... in case it already exists, update
1530
+ * },
1531
+ * where: {
1532
+ * // ... the filter for the Comment we want to update
1533
+ * }
1534
+ * })
1535
+ */
1536
+ 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>
1537
+
1538
+
1539
+ /**
1540
+ * Count the number of Comments.
1541
+ * Note, that providing `undefined` is treated as the value not being there.
1542
+ * Read more here: https://pris.ly/d/null-undefined
1543
+ * @param {CommentCountArgs} args - Arguments to filter Comments to count.
1544
+ * @example
1545
+ * // Count the number of Comments
1546
+ * const count = await prisma.comment.count({
1547
+ * where: {
1548
+ * // ... the filter for the Comments we want to count
1549
+ * }
1550
+ * })
1551
+ **/
1552
+ count<T extends CommentCountArgs>(
1553
+ args?: Prisma.Subset<T, CommentCountArgs>,
1554
+ ): Prisma.PrismaPromise<
1555
+ T extends runtime.Types.Utils.Record<'select', any>
1556
+ ? T['select'] extends true
1557
+ ? number
1558
+ : Prisma.GetScalarType<T['select'], CommentCountAggregateOutputType>
1559
+ : number
1560
+ >
1561
+
1562
+ /**
1563
+ * Allows you to perform aggregations operations on a Comment.
1564
+ * Note, that providing `undefined` is treated as the value not being there.
1565
+ * Read more here: https://pris.ly/d/null-undefined
1566
+ * @param {CommentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1567
+ * @example
1568
+ * // Ordered by age ascending
1569
+ * // Where email contains prisma.io
1570
+ * // Limited to the 10 users
1571
+ * const aggregations = await prisma.user.aggregate({
1572
+ * _avg: {
1573
+ * age: true,
1574
+ * },
1575
+ * where: {
1576
+ * email: {
1577
+ * contains: "prisma.io",
1578
+ * },
1579
+ * },
1580
+ * orderBy: {
1581
+ * age: "asc",
1582
+ * },
1583
+ * take: 10,
1584
+ * })
1585
+ **/
1586
+ aggregate<T extends CommentAggregateArgs>(args: Prisma.Subset<T, CommentAggregateArgs>): Prisma.PrismaPromise<GetCommentAggregateType<T>>
1587
+
1588
+ /**
1589
+ * Group by Comment.
1590
+ * Note, that providing `undefined` is treated as the value not being there.
1591
+ * Read more here: https://pris.ly/d/null-undefined
1592
+ * @param {CommentGroupByArgs} args - Group by arguments.
1593
+ * @example
1594
+ * // Group by city, order by createdAt, get count
1595
+ * const result = await prisma.user.groupBy({
1596
+ * by: ['city', 'createdAt'],
1597
+ * orderBy: {
1598
+ * createdAt: true
1599
+ * },
1600
+ * _count: {
1601
+ * _all: true
1602
+ * },
1603
+ * })
1604
+ *
1605
+ **/
1606
+ groupBy<
1607
+ T extends CommentGroupByArgs,
1608
+ HasSelectOrTake extends Prisma.Or<
1609
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1610
+ Prisma.Extends<'take', Prisma.Keys<T>>
1611
+ >,
1612
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1613
+ ? { orderBy: CommentGroupByArgs['orderBy'] }
1614
+ : { orderBy?: CommentGroupByArgs['orderBy'] },
1615
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1616
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1617
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1618
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1619
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1620
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1621
+ InputErrors extends ByEmpty extends Prisma.True
1622
+ ? `Error: "by" must not be empty.`
1623
+ : HavingValid extends Prisma.False
1624
+ ? {
1625
+ [P in HavingFields]: P extends ByFields
1626
+ ? never
1627
+ : P extends string
1628
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1629
+ : [
1630
+ Error,
1631
+ 'Field ',
1632
+ P,
1633
+ ` in "having" needs to be provided in "by"`,
1634
+ ]
1635
+ }[HavingFields]
1636
+ : 'take' extends Prisma.Keys<T>
1637
+ ? 'orderBy' extends Prisma.Keys<T>
1638
+ ? ByValid extends Prisma.True
1639
+ ? {}
1640
+ : {
1641
+ [P in OrderFields]: P extends ByFields
1642
+ ? never
1643
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1644
+ }[OrderFields]
1645
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1646
+ : 'skip' extends Prisma.Keys<T>
1647
+ ? 'orderBy' extends Prisma.Keys<T>
1648
+ ? ByValid extends Prisma.True
1649
+ ? {}
1650
+ : {
1651
+ [P in OrderFields]: P extends ByFields
1652
+ ? never
1653
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1654
+ }[OrderFields]
1655
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1656
+ : ByValid extends Prisma.True
1657
+ ? {}
1658
+ : {
1659
+ [P in OrderFields]: P extends ByFields
1660
+ ? never
1661
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1662
+ }[OrderFields]
1663
+ >(args: Prisma.SubsetIntersection<T, CommentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCommentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1664
+ /**
1665
+ * Fields of the Comment model
1666
+ */
1667
+ readonly fields: CommentFieldRefs;
1668
+ }
1669
+
1670
+ /**
1671
+ * The delegate class that acts as a "Promise-like" for Comment.
1672
+ * Why is this prefixed with `Prisma__`?
1673
+ * Because we want to prevent naming conflicts as mentioned in
1674
+ * https://github.com/prisma/prisma-client-js/issues/707
1675
+ */
1676
+ export interface Prisma__CommentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1677
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1678
+ 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>
1679
+ 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>
1680
+ 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>
1681
+ 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>
1682
+ 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>
1683
+ /**
1684
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1685
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1686
+ * @param onrejected The callback to execute when the Promise is rejected.
1687
+ * @returns A Promise for the completion of which ever callback is executed.
1688
+ */
1689
+ 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>
1690
+ /**
1691
+ * Attaches a callback for only the rejection of the Promise.
1692
+ * @param onrejected The callback to execute when the Promise is rejected.
1693
+ * @returns A Promise for the completion of the callback.
1694
+ */
1695
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1696
+ /**
1697
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1698
+ * resolved value cannot be modified from the callback.
1699
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1700
+ * @returns A Promise for the completion of the callback.
1701
+ */
1702
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1703
+ }
1704
+
1705
+
1706
+
1707
+
1708
+ /**
1709
+ * Fields of the Comment model
1710
+ */
1711
+ export interface CommentFieldRefs {
1712
+ readonly id: Prisma.FieldRef<"Comment", 'String'>
1713
+ readonly prdId: Prisma.FieldRef<"Comment", 'String'>
1714
+ readonly pageId: Prisma.FieldRef<"Comment", 'String'>
1715
+ readonly elementId: Prisma.FieldRef<"Comment", 'String'>
1716
+ readonly userId: Prisma.FieldRef<"Comment", 'String'>
1717
+ readonly content: Prisma.FieldRef<"Comment", 'String'>
1718
+ readonly parentId: Prisma.FieldRef<"Comment", 'String'>
1719
+ readonly position: Prisma.FieldRef<"Comment", 'Json'>
1720
+ readonly resolved: Prisma.FieldRef<"Comment", 'Boolean'>
1721
+ readonly createdAt: Prisma.FieldRef<"Comment", 'DateTime'>
1722
+ readonly updatedAt: Prisma.FieldRef<"Comment", 'DateTime'>
1723
+ }
1724
+
1725
+
1726
+ // Custom InputTypes
1727
+ /**
1728
+ * Comment findUnique
1729
+ */
1730
+ export type CommentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1731
+ /**
1732
+ * Select specific fields to fetch from the Comment
1733
+ */
1734
+ select?: Prisma.CommentSelect<ExtArgs> | null
1735
+ /**
1736
+ * Omit specific fields from the Comment
1737
+ */
1738
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1739
+ /**
1740
+ * Choose, which related nodes to fetch as well
1741
+ */
1742
+ include?: Prisma.CommentInclude<ExtArgs> | null
1743
+ /**
1744
+ * Filter, which Comment to fetch.
1745
+ */
1746
+ where: Prisma.CommentWhereUniqueInput
1747
+ }
1748
+
1749
+ /**
1750
+ * Comment findUniqueOrThrow
1751
+ */
1752
+ export type CommentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1753
+ /**
1754
+ * Select specific fields to fetch from the Comment
1755
+ */
1756
+ select?: Prisma.CommentSelect<ExtArgs> | null
1757
+ /**
1758
+ * Omit specific fields from the Comment
1759
+ */
1760
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1761
+ /**
1762
+ * Choose, which related nodes to fetch as well
1763
+ */
1764
+ include?: Prisma.CommentInclude<ExtArgs> | null
1765
+ /**
1766
+ * Filter, which Comment to fetch.
1767
+ */
1768
+ where: Prisma.CommentWhereUniqueInput
1769
+ }
1770
+
1771
+ /**
1772
+ * Comment findFirst
1773
+ */
1774
+ export type CommentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1775
+ /**
1776
+ * Select specific fields to fetch from the Comment
1777
+ */
1778
+ select?: Prisma.CommentSelect<ExtArgs> | null
1779
+ /**
1780
+ * Omit specific fields from the Comment
1781
+ */
1782
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1783
+ /**
1784
+ * Choose, which related nodes to fetch as well
1785
+ */
1786
+ include?: Prisma.CommentInclude<ExtArgs> | null
1787
+ /**
1788
+ * Filter, which Comment to fetch.
1789
+ */
1790
+ where?: Prisma.CommentWhereInput
1791
+ /**
1792
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1793
+ *
1794
+ * Determine the order of Comments to fetch.
1795
+ */
1796
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
1797
+ /**
1798
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1799
+ *
1800
+ * Sets the position for searching for Comments.
1801
+ */
1802
+ cursor?: Prisma.CommentWhereUniqueInput
1803
+ /**
1804
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1805
+ *
1806
+ * Take `±n` Comments from the position of the cursor.
1807
+ */
1808
+ take?: number
1809
+ /**
1810
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1811
+ *
1812
+ * Skip the first `n` Comments.
1813
+ */
1814
+ skip?: number
1815
+ /**
1816
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1817
+ *
1818
+ * Filter by unique combinations of Comments.
1819
+ */
1820
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
1821
+ }
1822
+
1823
+ /**
1824
+ * Comment findFirstOrThrow
1825
+ */
1826
+ export type CommentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1827
+ /**
1828
+ * Select specific fields to fetch from the Comment
1829
+ */
1830
+ select?: Prisma.CommentSelect<ExtArgs> | null
1831
+ /**
1832
+ * Omit specific fields from the Comment
1833
+ */
1834
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1835
+ /**
1836
+ * Choose, which related nodes to fetch as well
1837
+ */
1838
+ include?: Prisma.CommentInclude<ExtArgs> | null
1839
+ /**
1840
+ * Filter, which Comment to fetch.
1841
+ */
1842
+ where?: Prisma.CommentWhereInput
1843
+ /**
1844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1845
+ *
1846
+ * Determine the order of Comments to fetch.
1847
+ */
1848
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
1849
+ /**
1850
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1851
+ *
1852
+ * Sets the position for searching for Comments.
1853
+ */
1854
+ cursor?: Prisma.CommentWhereUniqueInput
1855
+ /**
1856
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1857
+ *
1858
+ * Take `±n` Comments from the position of the cursor.
1859
+ */
1860
+ take?: number
1861
+ /**
1862
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1863
+ *
1864
+ * Skip the first `n` Comments.
1865
+ */
1866
+ skip?: number
1867
+ /**
1868
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1869
+ *
1870
+ * Filter by unique combinations of Comments.
1871
+ */
1872
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
1873
+ }
1874
+
1875
+ /**
1876
+ * Comment findMany
1877
+ */
1878
+ export type CommentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1879
+ /**
1880
+ * Select specific fields to fetch from the Comment
1881
+ */
1882
+ select?: Prisma.CommentSelect<ExtArgs> | null
1883
+ /**
1884
+ * Omit specific fields from the Comment
1885
+ */
1886
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1887
+ /**
1888
+ * Choose, which related nodes to fetch as well
1889
+ */
1890
+ include?: Prisma.CommentInclude<ExtArgs> | null
1891
+ /**
1892
+ * Filter, which Comments to fetch.
1893
+ */
1894
+ where?: Prisma.CommentWhereInput
1895
+ /**
1896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1897
+ *
1898
+ * Determine the order of Comments to fetch.
1899
+ */
1900
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
1901
+ /**
1902
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1903
+ *
1904
+ * Sets the position for listing Comments.
1905
+ */
1906
+ cursor?: Prisma.CommentWhereUniqueInput
1907
+ /**
1908
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1909
+ *
1910
+ * Take `±n` Comments from the position of the cursor.
1911
+ */
1912
+ take?: number
1913
+ /**
1914
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1915
+ *
1916
+ * Skip the first `n` Comments.
1917
+ */
1918
+ skip?: number
1919
+ /**
1920
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1921
+ *
1922
+ * Filter by unique combinations of Comments.
1923
+ */
1924
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
1925
+ }
1926
+
1927
+ /**
1928
+ * Comment create
1929
+ */
1930
+ export type CommentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1931
+ /**
1932
+ * Select specific fields to fetch from the Comment
1933
+ */
1934
+ select?: Prisma.CommentSelect<ExtArgs> | null
1935
+ /**
1936
+ * Omit specific fields from the Comment
1937
+ */
1938
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1939
+ /**
1940
+ * Choose, which related nodes to fetch as well
1941
+ */
1942
+ include?: Prisma.CommentInclude<ExtArgs> | null
1943
+ /**
1944
+ * The data needed to create a Comment.
1945
+ */
1946
+ data: Prisma.XOR<Prisma.CommentCreateInput, Prisma.CommentUncheckedCreateInput>
1947
+ }
1948
+
1949
+ /**
1950
+ * Comment createMany
1951
+ */
1952
+ export type CommentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1953
+ /**
1954
+ * The data used to create many Comments.
1955
+ */
1956
+ data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[]
1957
+ skipDuplicates?: boolean
1958
+ }
1959
+
1960
+ /**
1961
+ * Comment createManyAndReturn
1962
+ */
1963
+ export type CommentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1964
+ /**
1965
+ * Select specific fields to fetch from the Comment
1966
+ */
1967
+ select?: Prisma.CommentSelectCreateManyAndReturn<ExtArgs> | null
1968
+ /**
1969
+ * Omit specific fields from the Comment
1970
+ */
1971
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1972
+ /**
1973
+ * The data used to create many Comments.
1974
+ */
1975
+ data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[]
1976
+ skipDuplicates?: boolean
1977
+ /**
1978
+ * Choose, which related nodes to fetch as well
1979
+ */
1980
+ include?: Prisma.CommentIncludeCreateManyAndReturn<ExtArgs> | null
1981
+ }
1982
+
1983
+ /**
1984
+ * Comment update
1985
+ */
1986
+ export type CommentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1987
+ /**
1988
+ * Select specific fields to fetch from the Comment
1989
+ */
1990
+ select?: Prisma.CommentSelect<ExtArgs> | null
1991
+ /**
1992
+ * Omit specific fields from the Comment
1993
+ */
1994
+ omit?: Prisma.CommentOmit<ExtArgs> | null
1995
+ /**
1996
+ * Choose, which related nodes to fetch as well
1997
+ */
1998
+ include?: Prisma.CommentInclude<ExtArgs> | null
1999
+ /**
2000
+ * The data needed to update a Comment.
2001
+ */
2002
+ data: Prisma.XOR<Prisma.CommentUpdateInput, Prisma.CommentUncheckedUpdateInput>
2003
+ /**
2004
+ * Choose, which Comment to update.
2005
+ */
2006
+ where: Prisma.CommentWhereUniqueInput
2007
+ }
2008
+
2009
+ /**
2010
+ * Comment updateMany
2011
+ */
2012
+ export type CommentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2013
+ /**
2014
+ * The data used to update Comments.
2015
+ */
2016
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyInput>
2017
+ /**
2018
+ * Filter which Comments to update
2019
+ */
2020
+ where?: Prisma.CommentWhereInput
2021
+ /**
2022
+ * Limit how many Comments to update.
2023
+ */
2024
+ limit?: number
2025
+ }
2026
+
2027
+ /**
2028
+ * Comment updateManyAndReturn
2029
+ */
2030
+ export type CommentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2031
+ /**
2032
+ * Select specific fields to fetch from the Comment
2033
+ */
2034
+ select?: Prisma.CommentSelectUpdateManyAndReturn<ExtArgs> | null
2035
+ /**
2036
+ * Omit specific fields from the Comment
2037
+ */
2038
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2039
+ /**
2040
+ * The data used to update Comments.
2041
+ */
2042
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyInput>
2043
+ /**
2044
+ * Filter which Comments to update
2045
+ */
2046
+ where?: Prisma.CommentWhereInput
2047
+ /**
2048
+ * Limit how many Comments to update.
2049
+ */
2050
+ limit?: number
2051
+ /**
2052
+ * Choose, which related nodes to fetch as well
2053
+ */
2054
+ include?: Prisma.CommentIncludeUpdateManyAndReturn<ExtArgs> | null
2055
+ }
2056
+
2057
+ /**
2058
+ * Comment upsert
2059
+ */
2060
+ export type CommentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2061
+ /**
2062
+ * Select specific fields to fetch from the Comment
2063
+ */
2064
+ select?: Prisma.CommentSelect<ExtArgs> | null
2065
+ /**
2066
+ * Omit specific fields from the Comment
2067
+ */
2068
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2069
+ /**
2070
+ * Choose, which related nodes to fetch as well
2071
+ */
2072
+ include?: Prisma.CommentInclude<ExtArgs> | null
2073
+ /**
2074
+ * The filter to search for the Comment to update in case it exists.
2075
+ */
2076
+ where: Prisma.CommentWhereUniqueInput
2077
+ /**
2078
+ * In case the Comment found by the `where` argument doesn't exist, create a new Comment with this data.
2079
+ */
2080
+ create: Prisma.XOR<Prisma.CommentCreateInput, Prisma.CommentUncheckedCreateInput>
2081
+ /**
2082
+ * In case the Comment was found with the provided `where` argument, update it with this data.
2083
+ */
2084
+ update: Prisma.XOR<Prisma.CommentUpdateInput, Prisma.CommentUncheckedUpdateInput>
2085
+ }
2086
+
2087
+ /**
2088
+ * Comment delete
2089
+ */
2090
+ export type CommentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2091
+ /**
2092
+ * Select specific fields to fetch from the Comment
2093
+ */
2094
+ select?: Prisma.CommentSelect<ExtArgs> | null
2095
+ /**
2096
+ * Omit specific fields from the Comment
2097
+ */
2098
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2099
+ /**
2100
+ * Choose, which related nodes to fetch as well
2101
+ */
2102
+ include?: Prisma.CommentInclude<ExtArgs> | null
2103
+ /**
2104
+ * Filter which Comment to delete.
2105
+ */
2106
+ where: Prisma.CommentWhereUniqueInput
2107
+ }
2108
+
2109
+ /**
2110
+ * Comment deleteMany
2111
+ */
2112
+ export type CommentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2113
+ /**
2114
+ * Filter which Comments to delete
2115
+ */
2116
+ where?: Prisma.CommentWhereInput
2117
+ /**
2118
+ * Limit how many Comments to delete.
2119
+ */
2120
+ limit?: number
2121
+ }
2122
+
2123
+ /**
2124
+ * Comment.parent
2125
+ */
2126
+ export type Comment$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2127
+ /**
2128
+ * Select specific fields to fetch from the Comment
2129
+ */
2130
+ select?: Prisma.CommentSelect<ExtArgs> | null
2131
+ /**
2132
+ * Omit specific fields from the Comment
2133
+ */
2134
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2135
+ /**
2136
+ * Choose, which related nodes to fetch as well
2137
+ */
2138
+ include?: Prisma.CommentInclude<ExtArgs> | null
2139
+ where?: Prisma.CommentWhereInput
2140
+ }
2141
+
2142
+ /**
2143
+ * Comment.replies
2144
+ */
2145
+ export type Comment$repliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2146
+ /**
2147
+ * Select specific fields to fetch from the Comment
2148
+ */
2149
+ select?: Prisma.CommentSelect<ExtArgs> | null
2150
+ /**
2151
+ * Omit specific fields from the Comment
2152
+ */
2153
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2154
+ /**
2155
+ * Choose, which related nodes to fetch as well
2156
+ */
2157
+ include?: Prisma.CommentInclude<ExtArgs> | null
2158
+ where?: Prisma.CommentWhereInput
2159
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
2160
+ cursor?: Prisma.CommentWhereUniqueInput
2161
+ take?: number
2162
+ skip?: number
2163
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
2164
+ }
2165
+
2166
+ /**
2167
+ * Comment.ignores
2168
+ */
2169
+ export type Comment$ignoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2170
+ /**
2171
+ * Select specific fields to fetch from the CommentIgnore
2172
+ */
2173
+ select?: Prisma.CommentIgnoreSelect<ExtArgs> | null
2174
+ /**
2175
+ * Omit specific fields from the CommentIgnore
2176
+ */
2177
+ omit?: Prisma.CommentIgnoreOmit<ExtArgs> | null
2178
+ /**
2179
+ * Choose, which related nodes to fetch as well
2180
+ */
2181
+ include?: Prisma.CommentIgnoreInclude<ExtArgs> | null
2182
+ where?: Prisma.CommentIgnoreWhereInput
2183
+ orderBy?: Prisma.CommentIgnoreOrderByWithRelationInput | Prisma.CommentIgnoreOrderByWithRelationInput[]
2184
+ cursor?: Prisma.CommentIgnoreWhereUniqueInput
2185
+ take?: number
2186
+ skip?: number
2187
+ distinct?: Prisma.CommentIgnoreScalarFieldEnum | Prisma.CommentIgnoreScalarFieldEnum[]
2188
+ }
2189
+
2190
+ /**
2191
+ * Comment without action
2192
+ */
2193
+ export type CommentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2194
+ /**
2195
+ * Select specific fields to fetch from the Comment
2196
+ */
2197
+ select?: Prisma.CommentSelect<ExtArgs> | null
2198
+ /**
2199
+ * Omit specific fields from the Comment
2200
+ */
2201
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2202
+ /**
2203
+ * Choose, which related nodes to fetch as well
2204
+ */
2205
+ include?: Prisma.CommentInclude<ExtArgs> | null
2206
+ }