@roundtreasury/prisma-extension-soft-delete 1.1.0 → 2.0.0

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 (88) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/generated/nested-ops-meta/index.d.ts +13 -0
  3. package/dist/esm/generated/nested-ops-meta/index.js +107 -0
  4. package/dist/esm/generated/prisma/browser.d.ts +24 -0
  5. package/dist/esm/generated/prisma/browser.js +17 -0
  6. package/dist/esm/generated/prisma/client.d.ts +43 -0
  7. package/dist/esm/generated/prisma/client.js +31 -0
  8. package/dist/esm/generated/prisma/commonInputTypes.d.ts +359 -0
  9. package/dist/esm/generated/prisma/commonInputTypes.js +10 -0
  10. package/dist/esm/generated/prisma/enums.js +10 -0
  11. package/dist/esm/generated/prisma/internal/class.d.ts +165 -0
  12. package/dist/esm/generated/prisma/internal/class.js +49 -0
  13. package/dist/esm/generated/prisma/internal/prismaNamespace.d.ts +815 -0
  14. package/dist/esm/generated/prisma/internal/prismaNamespace.js +131 -0
  15. package/dist/esm/generated/prisma/internal/prismaNamespaceBrowser.d.ts +95 -0
  16. package/dist/esm/generated/prisma/internal/prismaNamespaceBrowser.js +102 -0
  17. package/dist/esm/generated/prisma/models/Comment.d.ts +1768 -0
  18. package/dist/esm/generated/prisma/models/Comment.js +1 -0
  19. package/dist/esm/generated/prisma/models/Post.d.ts +1543 -0
  20. package/dist/esm/generated/prisma/models/Post.js +1 -0
  21. package/dist/esm/generated/prisma/models/Profile.d.ts +1130 -0
  22. package/dist/esm/generated/prisma/models/Profile.js +1 -0
  23. package/dist/esm/generated/prisma/models/User.d.ts +1531 -0
  24. package/dist/esm/generated/prisma/models/User.js +1 -0
  25. package/dist/esm/generated/prisma/models.d.ts +5 -0
  26. package/dist/esm/generated/prisma/models.js +1 -0
  27. package/dist/esm/prisma.config.d.ts +3 -0
  28. package/dist/esm/prisma.config.js +11 -0
  29. package/dist/esm/src/lib/createSoftDeleteExtension.d.ts +2 -0
  30. package/dist/esm/{lib → src/lib}/createSoftDeleteExtension.js +11 -17
  31. package/dist/esm/{lib → src/lib}/helpers/createParams.d.ts +4 -4
  32. package/dist/esm/{lib → src/lib}/helpers/createParams.js +4 -16
  33. package/dist/esm/{lib → src/lib}/types.d.ts +14 -4
  34. package/dist/esm/src/lib/types.js +1 -0
  35. package/dist/generated/nested-ops-meta/index.d.ts +13 -0
  36. package/dist/generated/nested-ops-meta/index.js +110 -0
  37. package/dist/generated/prisma/browser.d.ts +24 -0
  38. package/dist/generated/prisma/browser.js +56 -0
  39. package/dist/generated/prisma/client.d.ts +43 -0
  40. package/dist/generated/prisma/client.js +70 -0
  41. package/dist/generated/prisma/commonInputTypes.d.ts +359 -0
  42. package/dist/generated/prisma/commonInputTypes.js +11 -0
  43. package/dist/generated/prisma/enums.d.ts +1 -0
  44. package/dist/generated/prisma/enums.js +11 -0
  45. package/dist/generated/prisma/internal/class.d.ts +165 -0
  46. package/dist/generated/prisma/internal/class.js +85 -0
  47. package/dist/generated/prisma/internal/prismaNamespace.d.ts +815 -0
  48. package/dist/generated/prisma/internal/prismaNamespace.js +167 -0
  49. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +95 -0
  50. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +138 -0
  51. package/dist/generated/prisma/models/Comment.d.ts +1768 -0
  52. package/dist/generated/prisma/models/Comment.js +2 -0
  53. package/dist/generated/prisma/models/Post.d.ts +1543 -0
  54. package/dist/generated/prisma/models/Post.js +2 -0
  55. package/dist/generated/prisma/models/Profile.d.ts +1130 -0
  56. package/dist/generated/prisma/models/Profile.js +2 -0
  57. package/dist/generated/prisma/models/User.d.ts +1531 -0
  58. package/dist/generated/prisma/models/User.js +2 -0
  59. package/dist/generated/prisma/models.d.ts +5 -0
  60. package/dist/prisma.config.d.ts +3 -0
  61. package/dist/prisma.config.js +13 -0
  62. package/dist/src/lib/createSoftDeleteExtension.d.ts +2 -0
  63. package/dist/{lib → src/lib}/createSoftDeleteExtension.js +12 -19
  64. package/dist/{lib → src/lib}/helpers/createParams.d.ts +4 -4
  65. package/dist/{lib → src/lib}/helpers/createParams.js +4 -16
  66. package/dist/{lib → src/lib}/helpers/modifyResult.js +1 -2
  67. package/dist/{lib → src/lib}/types.d.ts +14 -4
  68. package/dist/src/lib/types.js +2 -0
  69. package/dist/{lib → src/lib}/utils/nestedReads.js +2 -3
  70. package/dist/{lib → src/lib}/utils/resultFiltering.js +2 -3
  71. package/package.json +11 -9
  72. package/dist/esm/lib/createSoftDeleteExtension.d.ts +0 -2
  73. package/dist/lib/createSoftDeleteExtension.d.ts +0 -2
  74. /package/dist/esm/{lib/types.js → generated/prisma/enums.d.ts} +0 -0
  75. /package/dist/esm/{index.d.ts → src/index.d.ts} +0 -0
  76. /package/dist/esm/{index.js → src/index.js} +0 -0
  77. /package/dist/esm/{lib → src/lib}/helpers/modifyResult.d.ts +0 -0
  78. /package/dist/esm/{lib → src/lib}/helpers/modifyResult.js +0 -0
  79. /package/dist/esm/{lib → src/lib}/utils/nestedReads.d.ts +0 -0
  80. /package/dist/esm/{lib → src/lib}/utils/nestedReads.js +0 -0
  81. /package/dist/esm/{lib → src/lib}/utils/resultFiltering.d.ts +0 -0
  82. /package/dist/esm/{lib → src/lib}/utils/resultFiltering.js +0 -0
  83. /package/dist/{lib/types.js → generated/prisma/models.js} +0 -0
  84. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  85. /package/dist/{index.js → src/index.js} +0 -0
  86. /package/dist/{lib → src/lib}/helpers/modifyResult.d.ts +0 -0
  87. /package/dist/{lib → src/lib}/utils/nestedReads.d.ts +0 -0
  88. /package/dist/{lib → src/lib}/utils/resultFiltering.d.ts +0 -0
@@ -0,0 +1,1768 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model Comment
5
+ *
6
+ */
7
+ export type CommentModel = runtime.Types.Result.DefaultSelection<Prisma.$CommentPayload>;
8
+ export type AggregateComment = {
9
+ _count: CommentCountAggregateOutputType | null;
10
+ _avg: CommentAvgAggregateOutputType | null;
11
+ _sum: CommentSumAggregateOutputType | null;
12
+ _min: CommentMinAggregateOutputType | null;
13
+ _max: CommentMaxAggregateOutputType | null;
14
+ };
15
+ export type CommentAvgAggregateOutputType = {
16
+ id: number | null;
17
+ authorId: number | null;
18
+ postId: number | null;
19
+ repliedToId: number | null;
20
+ };
21
+ export type CommentSumAggregateOutputType = {
22
+ id: number | null;
23
+ authorId: number | null;
24
+ postId: number | null;
25
+ repliedToId: number | null;
26
+ };
27
+ export type CommentMinAggregateOutputType = {
28
+ id: number | null;
29
+ createdAt: Date | null;
30
+ updatedAt: Date | null;
31
+ content: string | null;
32
+ authorId: number | null;
33
+ postId: number | null;
34
+ repliedToId: number | null;
35
+ deleted: boolean | null;
36
+ };
37
+ export type CommentMaxAggregateOutputType = {
38
+ id: number | null;
39
+ createdAt: Date | null;
40
+ updatedAt: Date | null;
41
+ content: string | null;
42
+ authorId: number | null;
43
+ postId: number | null;
44
+ repliedToId: number | null;
45
+ deleted: boolean | null;
46
+ };
47
+ export type CommentCountAggregateOutputType = {
48
+ id: number;
49
+ createdAt: number;
50
+ updatedAt: number;
51
+ content: number;
52
+ authorId: number;
53
+ postId: number;
54
+ repliedToId: number;
55
+ deleted: number;
56
+ _all: number;
57
+ };
58
+ export type CommentAvgAggregateInputType = {
59
+ id?: true;
60
+ authorId?: true;
61
+ postId?: true;
62
+ repliedToId?: true;
63
+ };
64
+ export type CommentSumAggregateInputType = {
65
+ id?: true;
66
+ authorId?: true;
67
+ postId?: true;
68
+ repliedToId?: true;
69
+ };
70
+ export type CommentMinAggregateInputType = {
71
+ id?: true;
72
+ createdAt?: true;
73
+ updatedAt?: true;
74
+ content?: true;
75
+ authorId?: true;
76
+ postId?: true;
77
+ repliedToId?: true;
78
+ deleted?: true;
79
+ };
80
+ export type CommentMaxAggregateInputType = {
81
+ id?: true;
82
+ createdAt?: true;
83
+ updatedAt?: true;
84
+ content?: true;
85
+ authorId?: true;
86
+ postId?: true;
87
+ repliedToId?: true;
88
+ deleted?: true;
89
+ };
90
+ export type CommentCountAggregateInputType = {
91
+ id?: true;
92
+ createdAt?: true;
93
+ updatedAt?: true;
94
+ content?: true;
95
+ authorId?: true;
96
+ postId?: true;
97
+ repliedToId?: true;
98
+ deleted?: true;
99
+ _all?: true;
100
+ };
101
+ export type CommentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
102
+ /**
103
+ * Filter which Comment to aggregate.
104
+ */
105
+ where?: Prisma.CommentWhereInput;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
108
+ *
109
+ * Determine the order of Comments to fetch.
110
+ */
111
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
114
+ *
115
+ * Sets the start position
116
+ */
117
+ cursor?: Prisma.CommentWhereUniqueInput;
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
120
+ *
121
+ * Take `±n` Comments from the position of the cursor.
122
+ */
123
+ take?: number;
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
126
+ *
127
+ * Skip the first `n` Comments.
128
+ */
129
+ skip?: number;
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
132
+ *
133
+ * Count returned Comments
134
+ **/
135
+ _count?: true | CommentCountAggregateInputType;
136
+ /**
137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
138
+ *
139
+ * Select which fields to average
140
+ **/
141
+ _avg?: CommentAvgAggregateInputType;
142
+ /**
143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
144
+ *
145
+ * Select which fields to sum
146
+ **/
147
+ _sum?: CommentSumAggregateInputType;
148
+ /**
149
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
150
+ *
151
+ * Select which fields to find the minimum value
152
+ **/
153
+ _min?: CommentMinAggregateInputType;
154
+ /**
155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
156
+ *
157
+ * Select which fields to find the maximum value
158
+ **/
159
+ _max?: CommentMaxAggregateInputType;
160
+ };
161
+ export type GetCommentAggregateType<T extends CommentAggregateArgs> = {
162
+ [P in keyof T & keyof AggregateComment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateComment[P]> : Prisma.GetScalarType<T[P], AggregateComment[P]>;
163
+ };
164
+ export type CommentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
165
+ where?: Prisma.CommentWhereInput;
166
+ orderBy?: Prisma.CommentOrderByWithAggregationInput | Prisma.CommentOrderByWithAggregationInput[];
167
+ by: Prisma.CommentScalarFieldEnum[] | Prisma.CommentScalarFieldEnum;
168
+ having?: Prisma.CommentScalarWhereWithAggregatesInput;
169
+ take?: number;
170
+ skip?: number;
171
+ _count?: CommentCountAggregateInputType | true;
172
+ _avg?: CommentAvgAggregateInputType;
173
+ _sum?: CommentSumAggregateInputType;
174
+ _min?: CommentMinAggregateInputType;
175
+ _max?: CommentMaxAggregateInputType;
176
+ };
177
+ export type CommentGroupByOutputType = {
178
+ id: number;
179
+ createdAt: Date;
180
+ updatedAt: Date;
181
+ content: string;
182
+ authorId: number | null;
183
+ postId: number | null;
184
+ repliedToId: number | null;
185
+ deleted: boolean;
186
+ _count: CommentCountAggregateOutputType | null;
187
+ _avg: CommentAvgAggregateOutputType | null;
188
+ _sum: CommentSumAggregateOutputType | null;
189
+ _min: CommentMinAggregateOutputType | null;
190
+ _max: CommentMaxAggregateOutputType | null;
191
+ };
192
+ export type GetCommentGroupByPayload<T extends CommentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CommentGroupByOutputType, T['by']> & {
193
+ [P in ((keyof T) & (keyof CommentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CommentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CommentGroupByOutputType[P]>;
194
+ }>>;
195
+ export type CommentWhereInput = {
196
+ AND?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[];
197
+ OR?: Prisma.CommentWhereInput[];
198
+ NOT?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[];
199
+ id?: Prisma.IntFilter<"Comment"> | number;
200
+ createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
201
+ updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
202
+ content?: Prisma.StringFilter<"Comment"> | string;
203
+ authorId?: Prisma.IntNullableFilter<"Comment"> | number | null;
204
+ postId?: Prisma.IntNullableFilter<"Comment"> | number | null;
205
+ repliedToId?: Prisma.IntNullableFilter<"Comment"> | number | null;
206
+ deleted?: Prisma.BoolFilter<"Comment"> | boolean;
207
+ author?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
208
+ post?: Prisma.XOR<Prisma.PostNullableScalarRelationFilter, Prisma.PostWhereInput> | null;
209
+ repliedTo?: Prisma.XOR<Prisma.CommentNullableScalarRelationFilter, Prisma.CommentWhereInput> | null;
210
+ replies?: Prisma.CommentListRelationFilter;
211
+ };
212
+ export type CommentOrderByWithRelationInput = {
213
+ id?: Prisma.SortOrder;
214
+ createdAt?: Prisma.SortOrder;
215
+ updatedAt?: Prisma.SortOrder;
216
+ content?: Prisma.SortOrder;
217
+ authorId?: Prisma.SortOrderInput | Prisma.SortOrder;
218
+ postId?: Prisma.SortOrderInput | Prisma.SortOrder;
219
+ repliedToId?: Prisma.SortOrderInput | Prisma.SortOrder;
220
+ deleted?: Prisma.SortOrder;
221
+ author?: Prisma.UserOrderByWithRelationInput;
222
+ post?: Prisma.PostOrderByWithRelationInput;
223
+ repliedTo?: Prisma.CommentOrderByWithRelationInput;
224
+ replies?: Prisma.CommentOrderByRelationAggregateInput;
225
+ };
226
+ export type CommentWhereUniqueInput = Prisma.AtLeast<{
227
+ id?: number;
228
+ AND?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[];
229
+ OR?: Prisma.CommentWhereInput[];
230
+ NOT?: Prisma.CommentWhereInput | Prisma.CommentWhereInput[];
231
+ createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
232
+ updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
233
+ content?: Prisma.StringFilter<"Comment"> | string;
234
+ authorId?: Prisma.IntNullableFilter<"Comment"> | number | null;
235
+ postId?: Prisma.IntNullableFilter<"Comment"> | number | null;
236
+ repliedToId?: Prisma.IntNullableFilter<"Comment"> | number | null;
237
+ deleted?: Prisma.BoolFilter<"Comment"> | boolean;
238
+ author?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
239
+ post?: Prisma.XOR<Prisma.PostNullableScalarRelationFilter, Prisma.PostWhereInput> | null;
240
+ repliedTo?: Prisma.XOR<Prisma.CommentNullableScalarRelationFilter, Prisma.CommentWhereInput> | null;
241
+ replies?: Prisma.CommentListRelationFilter;
242
+ }, "id">;
243
+ export type CommentOrderByWithAggregationInput = {
244
+ id?: Prisma.SortOrder;
245
+ createdAt?: Prisma.SortOrder;
246
+ updatedAt?: Prisma.SortOrder;
247
+ content?: Prisma.SortOrder;
248
+ authorId?: Prisma.SortOrderInput | Prisma.SortOrder;
249
+ postId?: Prisma.SortOrderInput | Prisma.SortOrder;
250
+ repliedToId?: Prisma.SortOrderInput | Prisma.SortOrder;
251
+ deleted?: Prisma.SortOrder;
252
+ _count?: Prisma.CommentCountOrderByAggregateInput;
253
+ _avg?: Prisma.CommentAvgOrderByAggregateInput;
254
+ _max?: Prisma.CommentMaxOrderByAggregateInput;
255
+ _min?: Prisma.CommentMinOrderByAggregateInput;
256
+ _sum?: Prisma.CommentSumOrderByAggregateInput;
257
+ };
258
+ export type CommentScalarWhereWithAggregatesInput = {
259
+ AND?: Prisma.CommentScalarWhereWithAggregatesInput | Prisma.CommentScalarWhereWithAggregatesInput[];
260
+ OR?: Prisma.CommentScalarWhereWithAggregatesInput[];
261
+ NOT?: Prisma.CommentScalarWhereWithAggregatesInput | Prisma.CommentScalarWhereWithAggregatesInput[];
262
+ id?: Prisma.IntWithAggregatesFilter<"Comment"> | number;
263
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Comment"> | Date | string;
264
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Comment"> | Date | string;
265
+ content?: Prisma.StringWithAggregatesFilter<"Comment"> | string;
266
+ authorId?: Prisma.IntNullableWithAggregatesFilter<"Comment"> | number | null;
267
+ postId?: Prisma.IntNullableWithAggregatesFilter<"Comment"> | number | null;
268
+ repliedToId?: Prisma.IntNullableWithAggregatesFilter<"Comment"> | number | null;
269
+ deleted?: Prisma.BoolWithAggregatesFilter<"Comment"> | boolean;
270
+ };
271
+ export type CommentCreateInput = {
272
+ createdAt?: Date | string;
273
+ updatedAt?: Date | string;
274
+ content: string;
275
+ deleted?: boolean;
276
+ author?: Prisma.UserCreateNestedOneWithoutCommentsInput;
277
+ post?: Prisma.PostCreateNestedOneWithoutCommentsInput;
278
+ repliedTo?: Prisma.CommentCreateNestedOneWithoutRepliesInput;
279
+ replies?: Prisma.CommentCreateNestedManyWithoutRepliedToInput;
280
+ };
281
+ export type CommentUncheckedCreateInput = {
282
+ id?: number;
283
+ createdAt?: Date | string;
284
+ updatedAt?: Date | string;
285
+ content: string;
286
+ authorId?: number | null;
287
+ postId?: number | null;
288
+ repliedToId?: number | null;
289
+ deleted?: boolean;
290
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutRepliedToInput;
291
+ };
292
+ export type CommentUpdateInput = {
293
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
294
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
295
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
297
+ author?: Prisma.UserUpdateOneWithoutCommentsNestedInput;
298
+ post?: Prisma.PostUpdateOneWithoutCommentsNestedInput;
299
+ repliedTo?: Prisma.CommentUpdateOneWithoutRepliesNestedInput;
300
+ replies?: Prisma.CommentUpdateManyWithoutRepliedToNestedInput;
301
+ };
302
+ export type CommentUncheckedUpdateInput = {
303
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
304
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
305
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
306
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
307
+ authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
308
+ postId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
309
+ repliedToId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
310
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
311
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutRepliedToNestedInput;
312
+ };
313
+ export type CommentCreateManyInput = {
314
+ id?: number;
315
+ createdAt?: Date | string;
316
+ updatedAt?: Date | string;
317
+ content: string;
318
+ authorId?: number | null;
319
+ postId?: number | null;
320
+ repliedToId?: number | null;
321
+ deleted?: boolean;
322
+ };
323
+ export type CommentUpdateManyMutationInput = {
324
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
325
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
326
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
327
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
328
+ };
329
+ export type CommentUncheckedUpdateManyInput = {
330
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
331
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
332
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
333
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
335
+ postId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
336
+ repliedToId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
337
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
338
+ };
339
+ export type CommentListRelationFilter = {
340
+ every?: Prisma.CommentWhereInput;
341
+ some?: Prisma.CommentWhereInput;
342
+ none?: Prisma.CommentWhereInput;
343
+ };
344
+ export type CommentOrderByRelationAggregateInput = {
345
+ _count?: Prisma.SortOrder;
346
+ };
347
+ export type CommentNullableScalarRelationFilter = {
348
+ is?: Prisma.CommentWhereInput | null;
349
+ isNot?: Prisma.CommentWhereInput | null;
350
+ };
351
+ export type CommentCountOrderByAggregateInput = {
352
+ id?: Prisma.SortOrder;
353
+ createdAt?: Prisma.SortOrder;
354
+ updatedAt?: Prisma.SortOrder;
355
+ content?: Prisma.SortOrder;
356
+ authorId?: Prisma.SortOrder;
357
+ postId?: Prisma.SortOrder;
358
+ repliedToId?: Prisma.SortOrder;
359
+ deleted?: Prisma.SortOrder;
360
+ };
361
+ export type CommentAvgOrderByAggregateInput = {
362
+ id?: Prisma.SortOrder;
363
+ authorId?: Prisma.SortOrder;
364
+ postId?: Prisma.SortOrder;
365
+ repliedToId?: Prisma.SortOrder;
366
+ };
367
+ export type CommentMaxOrderByAggregateInput = {
368
+ id?: Prisma.SortOrder;
369
+ createdAt?: Prisma.SortOrder;
370
+ updatedAt?: Prisma.SortOrder;
371
+ content?: Prisma.SortOrder;
372
+ authorId?: Prisma.SortOrder;
373
+ postId?: Prisma.SortOrder;
374
+ repliedToId?: Prisma.SortOrder;
375
+ deleted?: Prisma.SortOrder;
376
+ };
377
+ export type CommentMinOrderByAggregateInput = {
378
+ id?: Prisma.SortOrder;
379
+ createdAt?: Prisma.SortOrder;
380
+ updatedAt?: Prisma.SortOrder;
381
+ content?: Prisma.SortOrder;
382
+ authorId?: Prisma.SortOrder;
383
+ postId?: Prisma.SortOrder;
384
+ repliedToId?: Prisma.SortOrder;
385
+ deleted?: Prisma.SortOrder;
386
+ };
387
+ export type CommentSumOrderByAggregateInput = {
388
+ id?: Prisma.SortOrder;
389
+ authorId?: Prisma.SortOrder;
390
+ postId?: Prisma.SortOrder;
391
+ repliedToId?: Prisma.SortOrder;
392
+ };
393
+ export type CommentCreateNestedManyWithoutAuthorInput = {
394
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput> | Prisma.CommentCreateWithoutAuthorInput[] | Prisma.CommentUncheckedCreateWithoutAuthorInput[];
395
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAuthorInput | Prisma.CommentCreateOrConnectWithoutAuthorInput[];
396
+ createMany?: Prisma.CommentCreateManyAuthorInputEnvelope;
397
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
398
+ };
399
+ export type CommentUncheckedCreateNestedManyWithoutAuthorInput = {
400
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput> | Prisma.CommentCreateWithoutAuthorInput[] | Prisma.CommentUncheckedCreateWithoutAuthorInput[];
401
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAuthorInput | Prisma.CommentCreateOrConnectWithoutAuthorInput[];
402
+ createMany?: Prisma.CommentCreateManyAuthorInputEnvelope;
403
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
404
+ };
405
+ export type CommentUpdateManyWithoutAuthorNestedInput = {
406
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput> | Prisma.CommentCreateWithoutAuthorInput[] | Prisma.CommentUncheckedCreateWithoutAuthorInput[];
407
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAuthorInput | Prisma.CommentCreateOrConnectWithoutAuthorInput[];
408
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutAuthorInput | Prisma.CommentUpsertWithWhereUniqueWithoutAuthorInput[];
409
+ createMany?: Prisma.CommentCreateManyAuthorInputEnvelope;
410
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
411
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
412
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
413
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
414
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutAuthorInput | Prisma.CommentUpdateWithWhereUniqueWithoutAuthorInput[];
415
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutAuthorInput | Prisma.CommentUpdateManyWithWhereWithoutAuthorInput[];
416
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
417
+ };
418
+ export type CommentUncheckedUpdateManyWithoutAuthorNestedInput = {
419
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput> | Prisma.CommentCreateWithoutAuthorInput[] | Prisma.CommentUncheckedCreateWithoutAuthorInput[];
420
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutAuthorInput | Prisma.CommentCreateOrConnectWithoutAuthorInput[];
421
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutAuthorInput | Prisma.CommentUpsertWithWhereUniqueWithoutAuthorInput[];
422
+ createMany?: Prisma.CommentCreateManyAuthorInputEnvelope;
423
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
424
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
425
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
426
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
427
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutAuthorInput | Prisma.CommentUpdateWithWhereUniqueWithoutAuthorInput[];
428
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutAuthorInput | Prisma.CommentUpdateManyWithWhereWithoutAuthorInput[];
429
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
430
+ };
431
+ export type CommentCreateNestedManyWithoutPostInput = {
432
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutPostInput, Prisma.CommentUncheckedCreateWithoutPostInput> | Prisma.CommentCreateWithoutPostInput[] | Prisma.CommentUncheckedCreateWithoutPostInput[];
433
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPostInput | Prisma.CommentCreateOrConnectWithoutPostInput[];
434
+ createMany?: Prisma.CommentCreateManyPostInputEnvelope;
435
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
436
+ };
437
+ export type CommentUncheckedCreateNestedManyWithoutPostInput = {
438
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutPostInput, Prisma.CommentUncheckedCreateWithoutPostInput> | Prisma.CommentCreateWithoutPostInput[] | Prisma.CommentUncheckedCreateWithoutPostInput[];
439
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPostInput | Prisma.CommentCreateOrConnectWithoutPostInput[];
440
+ createMany?: Prisma.CommentCreateManyPostInputEnvelope;
441
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
442
+ };
443
+ export type CommentUpdateManyWithoutPostNestedInput = {
444
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutPostInput, Prisma.CommentUncheckedCreateWithoutPostInput> | Prisma.CommentCreateWithoutPostInput[] | Prisma.CommentUncheckedCreateWithoutPostInput[];
445
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPostInput | Prisma.CommentCreateOrConnectWithoutPostInput[];
446
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutPostInput | Prisma.CommentUpsertWithWhereUniqueWithoutPostInput[];
447
+ createMany?: Prisma.CommentCreateManyPostInputEnvelope;
448
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
449
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
450
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
451
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
452
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutPostInput | Prisma.CommentUpdateWithWhereUniqueWithoutPostInput[];
453
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutPostInput | Prisma.CommentUpdateManyWithWhereWithoutPostInput[];
454
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
455
+ };
456
+ export type CommentUncheckedUpdateManyWithoutPostNestedInput = {
457
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutPostInput, Prisma.CommentUncheckedCreateWithoutPostInput> | Prisma.CommentCreateWithoutPostInput[] | Prisma.CommentUncheckedCreateWithoutPostInput[];
458
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutPostInput | Prisma.CommentCreateOrConnectWithoutPostInput[];
459
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutPostInput | Prisma.CommentUpsertWithWhereUniqueWithoutPostInput[];
460
+ createMany?: Prisma.CommentCreateManyPostInputEnvelope;
461
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
462
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
463
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
464
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
465
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutPostInput | Prisma.CommentUpdateWithWhereUniqueWithoutPostInput[];
466
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutPostInput | Prisma.CommentUpdateManyWithWhereWithoutPostInput[];
467
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
468
+ };
469
+ export type CommentCreateNestedOneWithoutRepliesInput = {
470
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>;
471
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutRepliesInput;
472
+ connect?: Prisma.CommentWhereUniqueInput;
473
+ };
474
+ export type CommentCreateNestedManyWithoutRepliedToInput = {
475
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutRepliedToInput, Prisma.CommentUncheckedCreateWithoutRepliedToInput> | Prisma.CommentCreateWithoutRepliedToInput[] | Prisma.CommentUncheckedCreateWithoutRepliedToInput[];
476
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutRepliedToInput | Prisma.CommentCreateOrConnectWithoutRepliedToInput[];
477
+ createMany?: Prisma.CommentCreateManyRepliedToInputEnvelope;
478
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
479
+ };
480
+ export type CommentUncheckedCreateNestedManyWithoutRepliedToInput = {
481
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutRepliedToInput, Prisma.CommentUncheckedCreateWithoutRepliedToInput> | Prisma.CommentCreateWithoutRepliedToInput[] | Prisma.CommentUncheckedCreateWithoutRepliedToInput[];
482
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutRepliedToInput | Prisma.CommentCreateOrConnectWithoutRepliedToInput[];
483
+ createMany?: Prisma.CommentCreateManyRepliedToInputEnvelope;
484
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
485
+ };
486
+ export type CommentUpdateOneWithoutRepliesNestedInput = {
487
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>;
488
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutRepliesInput;
489
+ upsert?: Prisma.CommentUpsertWithoutRepliesInput;
490
+ disconnect?: Prisma.CommentWhereInput | boolean;
491
+ delete?: Prisma.CommentWhereInput | boolean;
492
+ connect?: Prisma.CommentWhereUniqueInput;
493
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CommentUpdateToOneWithWhereWithoutRepliesInput, Prisma.CommentUpdateWithoutRepliesInput>, Prisma.CommentUncheckedUpdateWithoutRepliesInput>;
494
+ };
495
+ export type CommentUpdateManyWithoutRepliedToNestedInput = {
496
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutRepliedToInput, Prisma.CommentUncheckedCreateWithoutRepliedToInput> | Prisma.CommentCreateWithoutRepliedToInput[] | Prisma.CommentUncheckedCreateWithoutRepliedToInput[];
497
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutRepliedToInput | Prisma.CommentCreateOrConnectWithoutRepliedToInput[];
498
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutRepliedToInput | Prisma.CommentUpsertWithWhereUniqueWithoutRepliedToInput[];
499
+ createMany?: Prisma.CommentCreateManyRepliedToInputEnvelope;
500
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
501
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
502
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
503
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
504
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutRepliedToInput | Prisma.CommentUpdateWithWhereUniqueWithoutRepliedToInput[];
505
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutRepliedToInput | Prisma.CommentUpdateManyWithWhereWithoutRepliedToInput[];
506
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
507
+ };
508
+ export type CommentUncheckedUpdateManyWithoutRepliedToNestedInput = {
509
+ create?: Prisma.XOR<Prisma.CommentCreateWithoutRepliedToInput, Prisma.CommentUncheckedCreateWithoutRepliedToInput> | Prisma.CommentCreateWithoutRepliedToInput[] | Prisma.CommentUncheckedCreateWithoutRepliedToInput[];
510
+ connectOrCreate?: Prisma.CommentCreateOrConnectWithoutRepliedToInput | Prisma.CommentCreateOrConnectWithoutRepliedToInput[];
511
+ upsert?: Prisma.CommentUpsertWithWhereUniqueWithoutRepliedToInput | Prisma.CommentUpsertWithWhereUniqueWithoutRepliedToInput[];
512
+ createMany?: Prisma.CommentCreateManyRepliedToInputEnvelope;
513
+ set?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
514
+ disconnect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
515
+ delete?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
516
+ connect?: Prisma.CommentWhereUniqueInput | Prisma.CommentWhereUniqueInput[];
517
+ update?: Prisma.CommentUpdateWithWhereUniqueWithoutRepliedToInput | Prisma.CommentUpdateWithWhereUniqueWithoutRepliedToInput[];
518
+ updateMany?: Prisma.CommentUpdateManyWithWhereWithoutRepliedToInput | Prisma.CommentUpdateManyWithWhereWithoutRepliedToInput[];
519
+ deleteMany?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
520
+ };
521
+ export type CommentCreateWithoutAuthorInput = {
522
+ createdAt?: Date | string;
523
+ updatedAt?: Date | string;
524
+ content: string;
525
+ deleted?: boolean;
526
+ post?: Prisma.PostCreateNestedOneWithoutCommentsInput;
527
+ repliedTo?: Prisma.CommentCreateNestedOneWithoutRepliesInput;
528
+ replies?: Prisma.CommentCreateNestedManyWithoutRepliedToInput;
529
+ };
530
+ export type CommentUncheckedCreateWithoutAuthorInput = {
531
+ id?: number;
532
+ createdAt?: Date | string;
533
+ updatedAt?: Date | string;
534
+ content: string;
535
+ postId?: number | null;
536
+ repliedToId?: number | null;
537
+ deleted?: boolean;
538
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutRepliedToInput;
539
+ };
540
+ export type CommentCreateOrConnectWithoutAuthorInput = {
541
+ where: Prisma.CommentWhereUniqueInput;
542
+ create: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput>;
543
+ };
544
+ export type CommentCreateManyAuthorInputEnvelope = {
545
+ data: Prisma.CommentCreateManyAuthorInput | Prisma.CommentCreateManyAuthorInput[];
546
+ skipDuplicates?: boolean;
547
+ };
548
+ export type CommentUpsertWithWhereUniqueWithoutAuthorInput = {
549
+ where: Prisma.CommentWhereUniqueInput;
550
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutAuthorInput, Prisma.CommentUncheckedUpdateWithoutAuthorInput>;
551
+ create: Prisma.XOR<Prisma.CommentCreateWithoutAuthorInput, Prisma.CommentUncheckedCreateWithoutAuthorInput>;
552
+ };
553
+ export type CommentUpdateWithWhereUniqueWithoutAuthorInput = {
554
+ where: Prisma.CommentWhereUniqueInput;
555
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutAuthorInput, Prisma.CommentUncheckedUpdateWithoutAuthorInput>;
556
+ };
557
+ export type CommentUpdateManyWithWhereWithoutAuthorInput = {
558
+ where: Prisma.CommentScalarWhereInput;
559
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutAuthorInput>;
560
+ };
561
+ export type CommentScalarWhereInput = {
562
+ AND?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
563
+ OR?: Prisma.CommentScalarWhereInput[];
564
+ NOT?: Prisma.CommentScalarWhereInput | Prisma.CommentScalarWhereInput[];
565
+ id?: Prisma.IntFilter<"Comment"> | number;
566
+ createdAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
567
+ updatedAt?: Prisma.DateTimeFilter<"Comment"> | Date | string;
568
+ content?: Prisma.StringFilter<"Comment"> | string;
569
+ authorId?: Prisma.IntNullableFilter<"Comment"> | number | null;
570
+ postId?: Prisma.IntNullableFilter<"Comment"> | number | null;
571
+ repliedToId?: Prisma.IntNullableFilter<"Comment"> | number | null;
572
+ deleted?: Prisma.BoolFilter<"Comment"> | boolean;
573
+ };
574
+ export type CommentCreateWithoutPostInput = {
575
+ createdAt?: Date | string;
576
+ updatedAt?: Date | string;
577
+ content: string;
578
+ deleted?: boolean;
579
+ author?: Prisma.UserCreateNestedOneWithoutCommentsInput;
580
+ repliedTo?: Prisma.CommentCreateNestedOneWithoutRepliesInput;
581
+ replies?: Prisma.CommentCreateNestedManyWithoutRepliedToInput;
582
+ };
583
+ export type CommentUncheckedCreateWithoutPostInput = {
584
+ id?: number;
585
+ createdAt?: Date | string;
586
+ updatedAt?: Date | string;
587
+ content: string;
588
+ authorId?: number | null;
589
+ repliedToId?: number | null;
590
+ deleted?: boolean;
591
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutRepliedToInput;
592
+ };
593
+ export type CommentCreateOrConnectWithoutPostInput = {
594
+ where: Prisma.CommentWhereUniqueInput;
595
+ create: Prisma.XOR<Prisma.CommentCreateWithoutPostInput, Prisma.CommentUncheckedCreateWithoutPostInput>;
596
+ };
597
+ export type CommentCreateManyPostInputEnvelope = {
598
+ data: Prisma.CommentCreateManyPostInput | Prisma.CommentCreateManyPostInput[];
599
+ skipDuplicates?: boolean;
600
+ };
601
+ export type CommentUpsertWithWhereUniqueWithoutPostInput = {
602
+ where: Prisma.CommentWhereUniqueInput;
603
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutPostInput, Prisma.CommentUncheckedUpdateWithoutPostInput>;
604
+ create: Prisma.XOR<Prisma.CommentCreateWithoutPostInput, Prisma.CommentUncheckedCreateWithoutPostInput>;
605
+ };
606
+ export type CommentUpdateWithWhereUniqueWithoutPostInput = {
607
+ where: Prisma.CommentWhereUniqueInput;
608
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutPostInput, Prisma.CommentUncheckedUpdateWithoutPostInput>;
609
+ };
610
+ export type CommentUpdateManyWithWhereWithoutPostInput = {
611
+ where: Prisma.CommentScalarWhereInput;
612
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutPostInput>;
613
+ };
614
+ export type CommentCreateWithoutRepliesInput = {
615
+ createdAt?: Date | string;
616
+ updatedAt?: Date | string;
617
+ content: string;
618
+ deleted?: boolean;
619
+ author?: Prisma.UserCreateNestedOneWithoutCommentsInput;
620
+ post?: Prisma.PostCreateNestedOneWithoutCommentsInput;
621
+ repliedTo?: Prisma.CommentCreateNestedOneWithoutRepliesInput;
622
+ };
623
+ export type CommentUncheckedCreateWithoutRepliesInput = {
624
+ id?: number;
625
+ createdAt?: Date | string;
626
+ updatedAt?: Date | string;
627
+ content: string;
628
+ authorId?: number | null;
629
+ postId?: number | null;
630
+ repliedToId?: number | null;
631
+ deleted?: boolean;
632
+ };
633
+ export type CommentCreateOrConnectWithoutRepliesInput = {
634
+ where: Prisma.CommentWhereUniqueInput;
635
+ create: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>;
636
+ };
637
+ export type CommentCreateWithoutRepliedToInput = {
638
+ createdAt?: Date | string;
639
+ updatedAt?: Date | string;
640
+ content: string;
641
+ deleted?: boolean;
642
+ author?: Prisma.UserCreateNestedOneWithoutCommentsInput;
643
+ post?: Prisma.PostCreateNestedOneWithoutCommentsInput;
644
+ replies?: Prisma.CommentCreateNestedManyWithoutRepliedToInput;
645
+ };
646
+ export type CommentUncheckedCreateWithoutRepliedToInput = {
647
+ id?: number;
648
+ createdAt?: Date | string;
649
+ updatedAt?: Date | string;
650
+ content: string;
651
+ authorId?: number | null;
652
+ postId?: number | null;
653
+ deleted?: boolean;
654
+ replies?: Prisma.CommentUncheckedCreateNestedManyWithoutRepliedToInput;
655
+ };
656
+ export type CommentCreateOrConnectWithoutRepliedToInput = {
657
+ where: Prisma.CommentWhereUniqueInput;
658
+ create: Prisma.XOR<Prisma.CommentCreateWithoutRepliedToInput, Prisma.CommentUncheckedCreateWithoutRepliedToInput>;
659
+ };
660
+ export type CommentCreateManyRepliedToInputEnvelope = {
661
+ data: Prisma.CommentCreateManyRepliedToInput | Prisma.CommentCreateManyRepliedToInput[];
662
+ skipDuplicates?: boolean;
663
+ };
664
+ export type CommentUpsertWithoutRepliesInput = {
665
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutRepliesInput, Prisma.CommentUncheckedUpdateWithoutRepliesInput>;
666
+ create: Prisma.XOR<Prisma.CommentCreateWithoutRepliesInput, Prisma.CommentUncheckedCreateWithoutRepliesInput>;
667
+ where?: Prisma.CommentWhereInput;
668
+ };
669
+ export type CommentUpdateToOneWithWhereWithoutRepliesInput = {
670
+ where?: Prisma.CommentWhereInput;
671
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutRepliesInput, Prisma.CommentUncheckedUpdateWithoutRepliesInput>;
672
+ };
673
+ export type CommentUpdateWithoutRepliesInput = {
674
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
675
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
676
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
677
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
678
+ author?: Prisma.UserUpdateOneWithoutCommentsNestedInput;
679
+ post?: Prisma.PostUpdateOneWithoutCommentsNestedInput;
680
+ repliedTo?: Prisma.CommentUpdateOneWithoutRepliesNestedInput;
681
+ };
682
+ export type CommentUncheckedUpdateWithoutRepliesInput = {
683
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
684
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
685
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
686
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
687
+ authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
688
+ postId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
689
+ repliedToId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
690
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
691
+ };
692
+ export type CommentUpsertWithWhereUniqueWithoutRepliedToInput = {
693
+ where: Prisma.CommentWhereUniqueInput;
694
+ update: Prisma.XOR<Prisma.CommentUpdateWithoutRepliedToInput, Prisma.CommentUncheckedUpdateWithoutRepliedToInput>;
695
+ create: Prisma.XOR<Prisma.CommentCreateWithoutRepliedToInput, Prisma.CommentUncheckedCreateWithoutRepliedToInput>;
696
+ };
697
+ export type CommentUpdateWithWhereUniqueWithoutRepliedToInput = {
698
+ where: Prisma.CommentWhereUniqueInput;
699
+ data: Prisma.XOR<Prisma.CommentUpdateWithoutRepliedToInput, Prisma.CommentUncheckedUpdateWithoutRepliedToInput>;
700
+ };
701
+ export type CommentUpdateManyWithWhereWithoutRepliedToInput = {
702
+ where: Prisma.CommentScalarWhereInput;
703
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyWithoutRepliedToInput>;
704
+ };
705
+ export type CommentCreateManyAuthorInput = {
706
+ id?: number;
707
+ createdAt?: Date | string;
708
+ updatedAt?: Date | string;
709
+ content: string;
710
+ postId?: number | null;
711
+ repliedToId?: number | null;
712
+ deleted?: boolean;
713
+ };
714
+ export type CommentUpdateWithoutAuthorInput = {
715
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
716
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
717
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
718
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
719
+ post?: Prisma.PostUpdateOneWithoutCommentsNestedInput;
720
+ repliedTo?: Prisma.CommentUpdateOneWithoutRepliesNestedInput;
721
+ replies?: Prisma.CommentUpdateManyWithoutRepliedToNestedInput;
722
+ };
723
+ export type CommentUncheckedUpdateWithoutAuthorInput = {
724
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
725
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
726
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
727
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
728
+ postId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
729
+ repliedToId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
730
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
731
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutRepliedToNestedInput;
732
+ };
733
+ export type CommentUncheckedUpdateManyWithoutAuthorInput = {
734
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
735
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
736
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
737
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
738
+ postId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
739
+ repliedToId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
740
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
741
+ };
742
+ export type CommentCreateManyPostInput = {
743
+ id?: number;
744
+ createdAt?: Date | string;
745
+ updatedAt?: Date | string;
746
+ content: string;
747
+ authorId?: number | null;
748
+ repliedToId?: number | null;
749
+ deleted?: boolean;
750
+ };
751
+ export type CommentUpdateWithoutPostInput = {
752
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
753
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
754
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
755
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
756
+ author?: Prisma.UserUpdateOneWithoutCommentsNestedInput;
757
+ repliedTo?: Prisma.CommentUpdateOneWithoutRepliesNestedInput;
758
+ replies?: Prisma.CommentUpdateManyWithoutRepliedToNestedInput;
759
+ };
760
+ export type CommentUncheckedUpdateWithoutPostInput = {
761
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
762
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
763
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
764
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
765
+ authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
766
+ repliedToId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
767
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
768
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutRepliedToNestedInput;
769
+ };
770
+ export type CommentUncheckedUpdateManyWithoutPostInput = {
771
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
772
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
773
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
774
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
775
+ authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
776
+ repliedToId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
777
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
778
+ };
779
+ export type CommentCreateManyRepliedToInput = {
780
+ id?: number;
781
+ createdAt?: Date | string;
782
+ updatedAt?: Date | string;
783
+ content: string;
784
+ authorId?: number | null;
785
+ postId?: number | null;
786
+ deleted?: boolean;
787
+ };
788
+ export type CommentUpdateWithoutRepliedToInput = {
789
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
790
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
791
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
792
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
793
+ author?: Prisma.UserUpdateOneWithoutCommentsNestedInput;
794
+ post?: Prisma.PostUpdateOneWithoutCommentsNestedInput;
795
+ replies?: Prisma.CommentUpdateManyWithoutRepliedToNestedInput;
796
+ };
797
+ export type CommentUncheckedUpdateWithoutRepliedToInput = {
798
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
799
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
800
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
801
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
802
+ authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
803
+ postId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
804
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
805
+ replies?: Prisma.CommentUncheckedUpdateManyWithoutRepliedToNestedInput;
806
+ };
807
+ export type CommentUncheckedUpdateManyWithoutRepliedToInput = {
808
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
809
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
810
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
811
+ content?: Prisma.StringFieldUpdateOperationsInput | string;
812
+ authorId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
813
+ postId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
814
+ deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean;
815
+ };
816
+ /**
817
+ * Count Type CommentCountOutputType
818
+ */
819
+ export type CommentCountOutputType = {
820
+ replies: number;
821
+ };
822
+ export type CommentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
823
+ replies?: boolean | CommentCountOutputTypeCountRepliesArgs;
824
+ };
825
+ /**
826
+ * CommentCountOutputType without action
827
+ */
828
+ export type CommentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
829
+ /**
830
+ * Select specific fields to fetch from the CommentCountOutputType
831
+ */
832
+ select?: Prisma.CommentCountOutputTypeSelect<ExtArgs> | null;
833
+ };
834
+ /**
835
+ * CommentCountOutputType without action
836
+ */
837
+ export type CommentCountOutputTypeCountRepliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
838
+ where?: Prisma.CommentWhereInput;
839
+ };
840
+ export type CommentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
841
+ id?: boolean;
842
+ createdAt?: boolean;
843
+ updatedAt?: boolean;
844
+ content?: boolean;
845
+ authorId?: boolean;
846
+ postId?: boolean;
847
+ repliedToId?: boolean;
848
+ deleted?: boolean;
849
+ author?: boolean | Prisma.Comment$authorArgs<ExtArgs>;
850
+ post?: boolean | Prisma.Comment$postArgs<ExtArgs>;
851
+ repliedTo?: boolean | Prisma.Comment$repliedToArgs<ExtArgs>;
852
+ replies?: boolean | Prisma.Comment$repliesArgs<ExtArgs>;
853
+ _count?: boolean | Prisma.CommentCountOutputTypeDefaultArgs<ExtArgs>;
854
+ }, ExtArgs["result"]["comment"]>;
855
+ export type CommentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
856
+ id?: boolean;
857
+ createdAt?: boolean;
858
+ updatedAt?: boolean;
859
+ content?: boolean;
860
+ authorId?: boolean;
861
+ postId?: boolean;
862
+ repliedToId?: boolean;
863
+ deleted?: boolean;
864
+ author?: boolean | Prisma.Comment$authorArgs<ExtArgs>;
865
+ post?: boolean | Prisma.Comment$postArgs<ExtArgs>;
866
+ repliedTo?: boolean | Prisma.Comment$repliedToArgs<ExtArgs>;
867
+ }, ExtArgs["result"]["comment"]>;
868
+ export type CommentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
869
+ id?: boolean;
870
+ createdAt?: boolean;
871
+ updatedAt?: boolean;
872
+ content?: boolean;
873
+ authorId?: boolean;
874
+ postId?: boolean;
875
+ repliedToId?: boolean;
876
+ deleted?: boolean;
877
+ author?: boolean | Prisma.Comment$authorArgs<ExtArgs>;
878
+ post?: boolean | Prisma.Comment$postArgs<ExtArgs>;
879
+ repliedTo?: boolean | Prisma.Comment$repliedToArgs<ExtArgs>;
880
+ }, ExtArgs["result"]["comment"]>;
881
+ export type CommentSelectScalar = {
882
+ id?: boolean;
883
+ createdAt?: boolean;
884
+ updatedAt?: boolean;
885
+ content?: boolean;
886
+ authorId?: boolean;
887
+ postId?: boolean;
888
+ repliedToId?: boolean;
889
+ deleted?: boolean;
890
+ };
891
+ export type CommentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "content" | "authorId" | "postId" | "repliedToId" | "deleted", ExtArgs["result"]["comment"]>;
892
+ export type CommentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
893
+ author?: boolean | Prisma.Comment$authorArgs<ExtArgs>;
894
+ post?: boolean | Prisma.Comment$postArgs<ExtArgs>;
895
+ repliedTo?: boolean | Prisma.Comment$repliedToArgs<ExtArgs>;
896
+ replies?: boolean | Prisma.Comment$repliesArgs<ExtArgs>;
897
+ _count?: boolean | Prisma.CommentCountOutputTypeDefaultArgs<ExtArgs>;
898
+ };
899
+ export type CommentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
900
+ author?: boolean | Prisma.Comment$authorArgs<ExtArgs>;
901
+ post?: boolean | Prisma.Comment$postArgs<ExtArgs>;
902
+ repliedTo?: boolean | Prisma.Comment$repliedToArgs<ExtArgs>;
903
+ };
904
+ export type CommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
905
+ author?: boolean | Prisma.Comment$authorArgs<ExtArgs>;
906
+ post?: boolean | Prisma.Comment$postArgs<ExtArgs>;
907
+ repliedTo?: boolean | Prisma.Comment$repliedToArgs<ExtArgs>;
908
+ };
909
+ export type $CommentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
910
+ name: "Comment";
911
+ objects: {
912
+ author: Prisma.$UserPayload<ExtArgs> | null;
913
+ post: Prisma.$PostPayload<ExtArgs> | null;
914
+ repliedTo: Prisma.$CommentPayload<ExtArgs> | null;
915
+ replies: Prisma.$CommentPayload<ExtArgs>[];
916
+ };
917
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
918
+ id: number;
919
+ createdAt: Date;
920
+ updatedAt: Date;
921
+ content: string;
922
+ authorId: number | null;
923
+ postId: number | null;
924
+ repliedToId: number | null;
925
+ deleted: boolean;
926
+ }, ExtArgs["result"]["comment"]>;
927
+ composites: {};
928
+ };
929
+ export type CommentGetPayload<S extends boolean | null | undefined | CommentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CommentPayload, S>;
930
+ export type CommentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CommentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
931
+ select?: CommentCountAggregateInputType | true;
932
+ };
933
+ export interface CommentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
934
+ [K: symbol]: {
935
+ types: Prisma.TypeMap<ExtArgs>['model']['Comment'];
936
+ meta: {
937
+ name: 'Comment';
938
+ };
939
+ };
940
+ /**
941
+ * Find zero or one Comment that matches the filter.
942
+ * @param {CommentFindUniqueArgs} args - Arguments to find a Comment
943
+ * @example
944
+ * // Get one Comment
945
+ * const comment = await prisma.comment.findUnique({
946
+ * where: {
947
+ * // ... provide filter here
948
+ * }
949
+ * })
950
+ */
951
+ 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>;
952
+ /**
953
+ * Find one Comment that matches the filter or throw an error with `error.code='P2025'`
954
+ * if no matches were found.
955
+ * @param {CommentFindUniqueOrThrowArgs} args - Arguments to find a Comment
956
+ * @example
957
+ * // Get one Comment
958
+ * const comment = await prisma.comment.findUniqueOrThrow({
959
+ * where: {
960
+ * // ... provide filter here
961
+ * }
962
+ * })
963
+ */
964
+ 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>;
965
+ /**
966
+ * Find the first Comment that matches the filter.
967
+ * Note, that providing `undefined` is treated as the value not being there.
968
+ * Read more here: https://pris.ly/d/null-undefined
969
+ * @param {CommentFindFirstArgs} args - Arguments to find a Comment
970
+ * @example
971
+ * // Get one Comment
972
+ * const comment = await prisma.comment.findFirst({
973
+ * where: {
974
+ * // ... provide filter here
975
+ * }
976
+ * })
977
+ */
978
+ 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>;
979
+ /**
980
+ * Find the first Comment that matches the filter or
981
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
982
+ * Note, that providing `undefined` is treated as the value not being there.
983
+ * Read more here: https://pris.ly/d/null-undefined
984
+ * @param {CommentFindFirstOrThrowArgs} args - Arguments to find a Comment
985
+ * @example
986
+ * // Get one Comment
987
+ * const comment = await prisma.comment.findFirstOrThrow({
988
+ * where: {
989
+ * // ... provide filter here
990
+ * }
991
+ * })
992
+ */
993
+ 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>;
994
+ /**
995
+ * Find zero or more Comments that matches the filter.
996
+ * Note, that providing `undefined` is treated as the value not being there.
997
+ * Read more here: https://pris.ly/d/null-undefined
998
+ * @param {CommentFindManyArgs} args - Arguments to filter and select certain fields only.
999
+ * @example
1000
+ * // Get all Comments
1001
+ * const comments = await prisma.comment.findMany()
1002
+ *
1003
+ * // Get first 10 Comments
1004
+ * const comments = await prisma.comment.findMany({ take: 10 })
1005
+ *
1006
+ * // Only select the `id`
1007
+ * const commentWithIdOnly = await prisma.comment.findMany({ select: { id: true } })
1008
+ *
1009
+ */
1010
+ findMany<T extends CommentFindManyArgs>(args?: Prisma.SelectSubset<T, CommentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1011
+ /**
1012
+ * Create a Comment.
1013
+ * @param {CommentCreateArgs} args - Arguments to create a Comment.
1014
+ * @example
1015
+ * // Create one Comment
1016
+ * const Comment = await prisma.comment.create({
1017
+ * data: {
1018
+ * // ... data to create a Comment
1019
+ * }
1020
+ * })
1021
+ *
1022
+ */
1023
+ 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>;
1024
+ /**
1025
+ * Create many Comments.
1026
+ * @param {CommentCreateManyArgs} args - Arguments to create many Comments.
1027
+ * @example
1028
+ * // Create many Comments
1029
+ * const comment = await prisma.comment.createMany({
1030
+ * data: [
1031
+ * // ... provide data here
1032
+ * ]
1033
+ * })
1034
+ *
1035
+ */
1036
+ createMany<T extends CommentCreateManyArgs>(args?: Prisma.SelectSubset<T, CommentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1037
+ /**
1038
+ * Create many Comments and returns the data saved in the database.
1039
+ * @param {CommentCreateManyAndReturnArgs} args - Arguments to create many Comments.
1040
+ * @example
1041
+ * // Create many Comments
1042
+ * const comment = await prisma.comment.createManyAndReturn({
1043
+ * data: [
1044
+ * // ... provide data here
1045
+ * ]
1046
+ * })
1047
+ *
1048
+ * // Create many Comments and only return the `id`
1049
+ * const commentWithIdOnly = await prisma.comment.createManyAndReturn({
1050
+ * select: { id: true },
1051
+ * data: [
1052
+ * // ... provide data here
1053
+ * ]
1054
+ * })
1055
+ * Note, that providing `undefined` is treated as the value not being there.
1056
+ * Read more here: https://pris.ly/d/null-undefined
1057
+ *
1058
+ */
1059
+ createManyAndReturn<T extends CommentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CommentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1060
+ /**
1061
+ * Delete a Comment.
1062
+ * @param {CommentDeleteArgs} args - Arguments to delete one Comment.
1063
+ * @example
1064
+ * // Delete one Comment
1065
+ * const Comment = await prisma.comment.delete({
1066
+ * where: {
1067
+ * // ... filter to delete one Comment
1068
+ * }
1069
+ * })
1070
+ *
1071
+ */
1072
+ 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>;
1073
+ /**
1074
+ * Update one Comment.
1075
+ * @param {CommentUpdateArgs} args - Arguments to update one Comment.
1076
+ * @example
1077
+ * // Update one Comment
1078
+ * const comment = await prisma.comment.update({
1079
+ * where: {
1080
+ * // ... provide filter here
1081
+ * },
1082
+ * data: {
1083
+ * // ... provide data here
1084
+ * }
1085
+ * })
1086
+ *
1087
+ */
1088
+ 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>;
1089
+ /**
1090
+ * Delete zero or more Comments.
1091
+ * @param {CommentDeleteManyArgs} args - Arguments to filter Comments to delete.
1092
+ * @example
1093
+ * // Delete a few Comments
1094
+ * const { count } = await prisma.comment.deleteMany({
1095
+ * where: {
1096
+ * // ... provide filter here
1097
+ * }
1098
+ * })
1099
+ *
1100
+ */
1101
+ deleteMany<T extends CommentDeleteManyArgs>(args?: Prisma.SelectSubset<T, CommentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1102
+ /**
1103
+ * Update zero or more Comments.
1104
+ * Note, that providing `undefined` is treated as the value not being there.
1105
+ * Read more here: https://pris.ly/d/null-undefined
1106
+ * @param {CommentUpdateManyArgs} args - Arguments to update one or more rows.
1107
+ * @example
1108
+ * // Update many Comments
1109
+ * const comment = await prisma.comment.updateMany({
1110
+ * where: {
1111
+ * // ... provide filter here
1112
+ * },
1113
+ * data: {
1114
+ * // ... provide data here
1115
+ * }
1116
+ * })
1117
+ *
1118
+ */
1119
+ updateMany<T extends CommentUpdateManyArgs>(args: Prisma.SelectSubset<T, CommentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1120
+ /**
1121
+ * Update zero or more Comments and returns the data updated in the database.
1122
+ * @param {CommentUpdateManyAndReturnArgs} args - Arguments to update many Comments.
1123
+ * @example
1124
+ * // Update many Comments
1125
+ * const comment = await prisma.comment.updateManyAndReturn({
1126
+ * where: {
1127
+ * // ... provide filter here
1128
+ * },
1129
+ * data: [
1130
+ * // ... provide data here
1131
+ * ]
1132
+ * })
1133
+ *
1134
+ * // Update zero or more Comments and only return the `id`
1135
+ * const commentWithIdOnly = await prisma.comment.updateManyAndReturn({
1136
+ * select: { id: true },
1137
+ * where: {
1138
+ * // ... provide filter here
1139
+ * },
1140
+ * data: [
1141
+ * // ... provide data here
1142
+ * ]
1143
+ * })
1144
+ * Note, that providing `undefined` is treated as the value not being there.
1145
+ * Read more here: https://pris.ly/d/null-undefined
1146
+ *
1147
+ */
1148
+ updateManyAndReturn<T extends CommentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CommentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1149
+ /**
1150
+ * Create or update one Comment.
1151
+ * @param {CommentUpsertArgs} args - Arguments to update or create a Comment.
1152
+ * @example
1153
+ * // Update or create a Comment
1154
+ * const comment = await prisma.comment.upsert({
1155
+ * create: {
1156
+ * // ... data to create a Comment
1157
+ * },
1158
+ * update: {
1159
+ * // ... in case it already exists, update
1160
+ * },
1161
+ * where: {
1162
+ * // ... the filter for the Comment we want to update
1163
+ * }
1164
+ * })
1165
+ */
1166
+ 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>;
1167
+ /**
1168
+ * Count the number of Comments.
1169
+ * Note, that providing `undefined` is treated as the value not being there.
1170
+ * Read more here: https://pris.ly/d/null-undefined
1171
+ * @param {CommentCountArgs} args - Arguments to filter Comments to count.
1172
+ * @example
1173
+ * // Count the number of Comments
1174
+ * const count = await prisma.comment.count({
1175
+ * where: {
1176
+ * // ... the filter for the Comments we want to count
1177
+ * }
1178
+ * })
1179
+ **/
1180
+ count<T extends CommentCountArgs>(args?: Prisma.Subset<T, CommentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CommentCountAggregateOutputType> : number>;
1181
+ /**
1182
+ * Allows you to perform aggregations operations on a Comment.
1183
+ * Note, that providing `undefined` is treated as the value not being there.
1184
+ * Read more here: https://pris.ly/d/null-undefined
1185
+ * @param {CommentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1186
+ * @example
1187
+ * // Ordered by age ascending
1188
+ * // Where email contains prisma.io
1189
+ * // Limited to the 10 users
1190
+ * const aggregations = await prisma.user.aggregate({
1191
+ * _avg: {
1192
+ * age: true,
1193
+ * },
1194
+ * where: {
1195
+ * email: {
1196
+ * contains: "prisma.io",
1197
+ * },
1198
+ * },
1199
+ * orderBy: {
1200
+ * age: "asc",
1201
+ * },
1202
+ * take: 10,
1203
+ * })
1204
+ **/
1205
+ aggregate<T extends CommentAggregateArgs>(args: Prisma.Subset<T, CommentAggregateArgs>): Prisma.PrismaPromise<GetCommentAggregateType<T>>;
1206
+ /**
1207
+ * Group by Comment.
1208
+ * Note, that providing `undefined` is treated as the value not being there.
1209
+ * Read more here: https://pris.ly/d/null-undefined
1210
+ * @param {CommentGroupByArgs} args - Group by arguments.
1211
+ * @example
1212
+ * // Group by city, order by createdAt, get count
1213
+ * const result = await prisma.user.groupBy({
1214
+ * by: ['city', 'createdAt'],
1215
+ * orderBy: {
1216
+ * createdAt: true
1217
+ * },
1218
+ * _count: {
1219
+ * _all: true
1220
+ * },
1221
+ * })
1222
+ *
1223
+ **/
1224
+ groupBy<T extends CommentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1225
+ orderBy: CommentGroupByArgs['orderBy'];
1226
+ } : {
1227
+ orderBy?: CommentGroupByArgs['orderBy'];
1228
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1229
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1230
+ Error,
1231
+ 'Field ',
1232
+ P,
1233
+ ` in "having" needs to be provided in "by"`
1234
+ ];
1235
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1236
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1237
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1238
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1239
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1240
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1241
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, CommentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCommentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1242
+ /**
1243
+ * Fields of the Comment model
1244
+ */
1245
+ readonly fields: CommentFieldRefs;
1246
+ }
1247
+ /**
1248
+ * The delegate class that acts as a "Promise-like" for Comment.
1249
+ * Why is this prefixed with `Prisma__`?
1250
+ * Because we want to prevent naming conflicts as mentioned in
1251
+ * https://github.com/prisma/prisma-client-js/issues/707
1252
+ */
1253
+ export interface Prisma__CommentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1254
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1255
+ author<T extends Prisma.Comment$authorArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Comment$authorArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1256
+ post<T extends Prisma.Comment$postArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Comment$postArgs<ExtArgs>>): Prisma.Prisma__PostClient<runtime.Types.Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1257
+ repliedTo<T extends Prisma.Comment$repliedToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Comment$repliedToArgs<ExtArgs>>): Prisma.Prisma__CommentClient<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1258
+ 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>;
1259
+ /**
1260
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1261
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1262
+ * @param onrejected The callback to execute when the Promise is rejected.
1263
+ * @returns A Promise for the completion of which ever callback is executed.
1264
+ */
1265
+ 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>;
1266
+ /**
1267
+ * Attaches a callback for only the rejection of the Promise.
1268
+ * @param onrejected The callback to execute when the Promise is rejected.
1269
+ * @returns A Promise for the completion of the callback.
1270
+ */
1271
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1272
+ /**
1273
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1274
+ * resolved value cannot be modified from the callback.
1275
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1276
+ * @returns A Promise for the completion of the callback.
1277
+ */
1278
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1279
+ }
1280
+ /**
1281
+ * Fields of the Comment model
1282
+ */
1283
+ export interface CommentFieldRefs {
1284
+ readonly id: Prisma.FieldRef<"Comment", 'Int'>;
1285
+ readonly createdAt: Prisma.FieldRef<"Comment", 'DateTime'>;
1286
+ readonly updatedAt: Prisma.FieldRef<"Comment", 'DateTime'>;
1287
+ readonly content: Prisma.FieldRef<"Comment", 'String'>;
1288
+ readonly authorId: Prisma.FieldRef<"Comment", 'Int'>;
1289
+ readonly postId: Prisma.FieldRef<"Comment", 'Int'>;
1290
+ readonly repliedToId: Prisma.FieldRef<"Comment", 'Int'>;
1291
+ readonly deleted: Prisma.FieldRef<"Comment", 'Boolean'>;
1292
+ }
1293
+ /**
1294
+ * Comment findUnique
1295
+ */
1296
+ export type CommentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1297
+ /**
1298
+ * Select specific fields to fetch from the Comment
1299
+ */
1300
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1301
+ /**
1302
+ * Omit specific fields from the Comment
1303
+ */
1304
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1305
+ /**
1306
+ * Choose, which related nodes to fetch as well
1307
+ */
1308
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1309
+ /**
1310
+ * Filter, which Comment to fetch.
1311
+ */
1312
+ where: Prisma.CommentWhereUniqueInput;
1313
+ };
1314
+ /**
1315
+ * Comment findUniqueOrThrow
1316
+ */
1317
+ export type CommentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
+ /**
1319
+ * Select specific fields to fetch from the Comment
1320
+ */
1321
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1322
+ /**
1323
+ * Omit specific fields from the Comment
1324
+ */
1325
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1326
+ /**
1327
+ * Choose, which related nodes to fetch as well
1328
+ */
1329
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1330
+ /**
1331
+ * Filter, which Comment to fetch.
1332
+ */
1333
+ where: Prisma.CommentWhereUniqueInput;
1334
+ };
1335
+ /**
1336
+ * Comment findFirst
1337
+ */
1338
+ export type CommentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1339
+ /**
1340
+ * Select specific fields to fetch from the Comment
1341
+ */
1342
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1343
+ /**
1344
+ * Omit specific fields from the Comment
1345
+ */
1346
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1347
+ /**
1348
+ * Choose, which related nodes to fetch as well
1349
+ */
1350
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1351
+ /**
1352
+ * Filter, which Comment to fetch.
1353
+ */
1354
+ where?: Prisma.CommentWhereInput;
1355
+ /**
1356
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1357
+ *
1358
+ * Determine the order of Comments to fetch.
1359
+ */
1360
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
1361
+ /**
1362
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1363
+ *
1364
+ * Sets the position for searching for Comments.
1365
+ */
1366
+ cursor?: Prisma.CommentWhereUniqueInput;
1367
+ /**
1368
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1369
+ *
1370
+ * Take `±n` Comments from the position of the cursor.
1371
+ */
1372
+ take?: number;
1373
+ /**
1374
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1375
+ *
1376
+ * Skip the first `n` Comments.
1377
+ */
1378
+ skip?: number;
1379
+ /**
1380
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1381
+ *
1382
+ * Filter by unique combinations of Comments.
1383
+ */
1384
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[];
1385
+ };
1386
+ /**
1387
+ * Comment findFirstOrThrow
1388
+ */
1389
+ export type CommentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1390
+ /**
1391
+ * Select specific fields to fetch from the Comment
1392
+ */
1393
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1394
+ /**
1395
+ * Omit specific fields from the Comment
1396
+ */
1397
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1398
+ /**
1399
+ * Choose, which related nodes to fetch as well
1400
+ */
1401
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1402
+ /**
1403
+ * Filter, which Comment to fetch.
1404
+ */
1405
+ where?: Prisma.CommentWhereInput;
1406
+ /**
1407
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1408
+ *
1409
+ * Determine the order of Comments to fetch.
1410
+ */
1411
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
1412
+ /**
1413
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1414
+ *
1415
+ * Sets the position for searching for Comments.
1416
+ */
1417
+ cursor?: Prisma.CommentWhereUniqueInput;
1418
+ /**
1419
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1420
+ *
1421
+ * Take `±n` Comments from the position of the cursor.
1422
+ */
1423
+ take?: number;
1424
+ /**
1425
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1426
+ *
1427
+ * Skip the first `n` Comments.
1428
+ */
1429
+ skip?: number;
1430
+ /**
1431
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1432
+ *
1433
+ * Filter by unique combinations of Comments.
1434
+ */
1435
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[];
1436
+ };
1437
+ /**
1438
+ * Comment findMany
1439
+ */
1440
+ export type CommentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1441
+ /**
1442
+ * Select specific fields to fetch from the Comment
1443
+ */
1444
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1445
+ /**
1446
+ * Omit specific fields from the Comment
1447
+ */
1448
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1449
+ /**
1450
+ * Choose, which related nodes to fetch as well
1451
+ */
1452
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1453
+ /**
1454
+ * Filter, which Comments to fetch.
1455
+ */
1456
+ where?: Prisma.CommentWhereInput;
1457
+ /**
1458
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1459
+ *
1460
+ * Determine the order of Comments to fetch.
1461
+ */
1462
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
1463
+ /**
1464
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1465
+ *
1466
+ * Sets the position for listing Comments.
1467
+ */
1468
+ cursor?: Prisma.CommentWhereUniqueInput;
1469
+ /**
1470
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1471
+ *
1472
+ * Take `±n` Comments from the position of the cursor.
1473
+ */
1474
+ take?: number;
1475
+ /**
1476
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1477
+ *
1478
+ * Skip the first `n` Comments.
1479
+ */
1480
+ skip?: number;
1481
+ /**
1482
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1483
+ *
1484
+ * Filter by unique combinations of Comments.
1485
+ */
1486
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[];
1487
+ };
1488
+ /**
1489
+ * Comment create
1490
+ */
1491
+ export type CommentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1492
+ /**
1493
+ * Select specific fields to fetch from the Comment
1494
+ */
1495
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1496
+ /**
1497
+ * Omit specific fields from the Comment
1498
+ */
1499
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1500
+ /**
1501
+ * Choose, which related nodes to fetch as well
1502
+ */
1503
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1504
+ /**
1505
+ * The data needed to create a Comment.
1506
+ */
1507
+ data: Prisma.XOR<Prisma.CommentCreateInput, Prisma.CommentUncheckedCreateInput>;
1508
+ };
1509
+ /**
1510
+ * Comment createMany
1511
+ */
1512
+ export type CommentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1513
+ /**
1514
+ * The data used to create many Comments.
1515
+ */
1516
+ data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[];
1517
+ skipDuplicates?: boolean;
1518
+ };
1519
+ /**
1520
+ * Comment createManyAndReturn
1521
+ */
1522
+ export type CommentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * Select specific fields to fetch from the Comment
1525
+ */
1526
+ select?: Prisma.CommentSelectCreateManyAndReturn<ExtArgs> | null;
1527
+ /**
1528
+ * Omit specific fields from the Comment
1529
+ */
1530
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1531
+ /**
1532
+ * The data used to create many Comments.
1533
+ */
1534
+ data: Prisma.CommentCreateManyInput | Prisma.CommentCreateManyInput[];
1535
+ skipDuplicates?: boolean;
1536
+ /**
1537
+ * Choose, which related nodes to fetch as well
1538
+ */
1539
+ include?: Prisma.CommentIncludeCreateManyAndReturn<ExtArgs> | null;
1540
+ };
1541
+ /**
1542
+ * Comment update
1543
+ */
1544
+ export type CommentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1545
+ /**
1546
+ * Select specific fields to fetch from the Comment
1547
+ */
1548
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1549
+ /**
1550
+ * Omit specific fields from the Comment
1551
+ */
1552
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1553
+ /**
1554
+ * Choose, which related nodes to fetch as well
1555
+ */
1556
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1557
+ /**
1558
+ * The data needed to update a Comment.
1559
+ */
1560
+ data: Prisma.XOR<Prisma.CommentUpdateInput, Prisma.CommentUncheckedUpdateInput>;
1561
+ /**
1562
+ * Choose, which Comment to update.
1563
+ */
1564
+ where: Prisma.CommentWhereUniqueInput;
1565
+ };
1566
+ /**
1567
+ * Comment updateMany
1568
+ */
1569
+ export type CommentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1570
+ /**
1571
+ * The data used to update Comments.
1572
+ */
1573
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyInput>;
1574
+ /**
1575
+ * Filter which Comments to update
1576
+ */
1577
+ where?: Prisma.CommentWhereInput;
1578
+ /**
1579
+ * Limit how many Comments to update.
1580
+ */
1581
+ limit?: number;
1582
+ };
1583
+ /**
1584
+ * Comment updateManyAndReturn
1585
+ */
1586
+ export type CommentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1587
+ /**
1588
+ * Select specific fields to fetch from the Comment
1589
+ */
1590
+ select?: Prisma.CommentSelectUpdateManyAndReturn<ExtArgs> | null;
1591
+ /**
1592
+ * Omit specific fields from the Comment
1593
+ */
1594
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1595
+ /**
1596
+ * The data used to update Comments.
1597
+ */
1598
+ data: Prisma.XOR<Prisma.CommentUpdateManyMutationInput, Prisma.CommentUncheckedUpdateManyInput>;
1599
+ /**
1600
+ * Filter which Comments to update
1601
+ */
1602
+ where?: Prisma.CommentWhereInput;
1603
+ /**
1604
+ * Limit how many Comments to update.
1605
+ */
1606
+ limit?: number;
1607
+ /**
1608
+ * Choose, which related nodes to fetch as well
1609
+ */
1610
+ include?: Prisma.CommentIncludeUpdateManyAndReturn<ExtArgs> | null;
1611
+ };
1612
+ /**
1613
+ * Comment upsert
1614
+ */
1615
+ export type CommentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1616
+ /**
1617
+ * Select specific fields to fetch from the Comment
1618
+ */
1619
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1620
+ /**
1621
+ * Omit specific fields from the Comment
1622
+ */
1623
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1624
+ /**
1625
+ * Choose, which related nodes to fetch as well
1626
+ */
1627
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1628
+ /**
1629
+ * The filter to search for the Comment to update in case it exists.
1630
+ */
1631
+ where: Prisma.CommentWhereUniqueInput;
1632
+ /**
1633
+ * In case the Comment found by the `where` argument doesn't exist, create a new Comment with this data.
1634
+ */
1635
+ create: Prisma.XOR<Prisma.CommentCreateInput, Prisma.CommentUncheckedCreateInput>;
1636
+ /**
1637
+ * In case the Comment was found with the provided `where` argument, update it with this data.
1638
+ */
1639
+ update: Prisma.XOR<Prisma.CommentUpdateInput, Prisma.CommentUncheckedUpdateInput>;
1640
+ };
1641
+ /**
1642
+ * Comment delete
1643
+ */
1644
+ export type CommentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1645
+ /**
1646
+ * Select specific fields to fetch from the Comment
1647
+ */
1648
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1649
+ /**
1650
+ * Omit specific fields from the Comment
1651
+ */
1652
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1653
+ /**
1654
+ * Choose, which related nodes to fetch as well
1655
+ */
1656
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1657
+ /**
1658
+ * Filter which Comment to delete.
1659
+ */
1660
+ where: Prisma.CommentWhereUniqueInput;
1661
+ };
1662
+ /**
1663
+ * Comment deleteMany
1664
+ */
1665
+ export type CommentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1666
+ /**
1667
+ * Filter which Comments to delete
1668
+ */
1669
+ where?: Prisma.CommentWhereInput;
1670
+ /**
1671
+ * Limit how many Comments to delete.
1672
+ */
1673
+ limit?: number;
1674
+ };
1675
+ /**
1676
+ * Comment.author
1677
+ */
1678
+ export type Comment$authorArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1679
+ /**
1680
+ * Select specific fields to fetch from the User
1681
+ */
1682
+ select?: Prisma.UserSelect<ExtArgs> | null;
1683
+ /**
1684
+ * Omit specific fields from the User
1685
+ */
1686
+ omit?: Prisma.UserOmit<ExtArgs> | null;
1687
+ /**
1688
+ * Choose, which related nodes to fetch as well
1689
+ */
1690
+ include?: Prisma.UserInclude<ExtArgs> | null;
1691
+ where?: Prisma.UserWhereInput;
1692
+ };
1693
+ /**
1694
+ * Comment.post
1695
+ */
1696
+ export type Comment$postArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1697
+ /**
1698
+ * Select specific fields to fetch from the Post
1699
+ */
1700
+ select?: Prisma.PostSelect<ExtArgs> | null;
1701
+ /**
1702
+ * Omit specific fields from the Post
1703
+ */
1704
+ omit?: Prisma.PostOmit<ExtArgs> | null;
1705
+ /**
1706
+ * Choose, which related nodes to fetch as well
1707
+ */
1708
+ include?: Prisma.PostInclude<ExtArgs> | null;
1709
+ where?: Prisma.PostWhereInput;
1710
+ };
1711
+ /**
1712
+ * Comment.repliedTo
1713
+ */
1714
+ export type Comment$repliedToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1715
+ /**
1716
+ * Select specific fields to fetch from the Comment
1717
+ */
1718
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1719
+ /**
1720
+ * Omit specific fields from the Comment
1721
+ */
1722
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1723
+ /**
1724
+ * Choose, which related nodes to fetch as well
1725
+ */
1726
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1727
+ where?: Prisma.CommentWhereInput;
1728
+ };
1729
+ /**
1730
+ * Comment.replies
1731
+ */
1732
+ export type Comment$repliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1733
+ /**
1734
+ * Select specific fields to fetch from the Comment
1735
+ */
1736
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1737
+ /**
1738
+ * Omit specific fields from the Comment
1739
+ */
1740
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1741
+ /**
1742
+ * Choose, which related nodes to fetch as well
1743
+ */
1744
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1745
+ where?: Prisma.CommentWhereInput;
1746
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[];
1747
+ cursor?: Prisma.CommentWhereUniqueInput;
1748
+ take?: number;
1749
+ skip?: number;
1750
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[];
1751
+ };
1752
+ /**
1753
+ * Comment without action
1754
+ */
1755
+ export type CommentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1756
+ /**
1757
+ * Select specific fields to fetch from the Comment
1758
+ */
1759
+ select?: Prisma.CommentSelect<ExtArgs> | null;
1760
+ /**
1761
+ * Omit specific fields from the Comment
1762
+ */
1763
+ omit?: Prisma.CommentOmit<ExtArgs> | null;
1764
+ /**
1765
+ * Choose, which related nodes to fetch as well
1766
+ */
1767
+ include?: Prisma.CommentInclude<ExtArgs> | null;
1768
+ };