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