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