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