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