@mframework/layer-shared 0.0.2 → 0.0.3

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