@sebbo2002/tgtg-ical 3.0.9 → 3.1.0-develop.2

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.
@@ -0,0 +1,1192 @@
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.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
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
+ prefix: string | null
30
+ createdAt: Date | null
31
+ lastSeenAt: Date | null
32
+ }
33
+
34
+ export type UserMaxAggregateOutputType = {
35
+ id: string | null
36
+ prefix: string | null
37
+ createdAt: Date | null
38
+ lastSeenAt: Date | null
39
+ }
40
+
41
+ export type UserCountAggregateOutputType = {
42
+ id: number
43
+ prefix: number
44
+ createdAt: number
45
+ lastSeenAt: number
46
+ _all: number
47
+ }
48
+
49
+
50
+ export type UserMinAggregateInputType = {
51
+ id?: true
52
+ prefix?: true
53
+ createdAt?: true
54
+ lastSeenAt?: true
55
+ }
56
+
57
+ export type UserMaxAggregateInputType = {
58
+ id?: true
59
+ prefix?: true
60
+ createdAt?: true
61
+ lastSeenAt?: true
62
+ }
63
+
64
+ export type UserCountAggregateInputType = {
65
+ id?: true
66
+ prefix?: true
67
+ createdAt?: true
68
+ lastSeenAt?: true
69
+ _all?: true
70
+ }
71
+
72
+ export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
73
+ /**
74
+ * Filter which User to aggregate.
75
+ */
76
+ where?: Prisma.UserWhereInput
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
79
+ *
80
+ * Determine the order of Users to fetch.
81
+ */
82
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
85
+ *
86
+ * Sets the start position
87
+ */
88
+ cursor?: Prisma.UserWhereUniqueInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Take `±n` Users from the position of the cursor.
93
+ */
94
+ take?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
97
+ *
98
+ * Skip the first `n` Users.
99
+ */
100
+ skip?: number
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Count returned Users
105
+ **/
106
+ _count?: true | UserCountAggregateInputType
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the minimum value
111
+ **/
112
+ _min?: UserMinAggregateInputType
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Select which fields to find the maximum value
117
+ **/
118
+ _max?: UserMaxAggregateInputType
119
+ }
120
+
121
+ export type GetUserAggregateType<T extends UserAggregateArgs> = {
122
+ [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
123
+ ? T[P] extends true
124
+ ? number
125
+ : Prisma.GetScalarType<T[P], AggregateUser[P]>
126
+ : Prisma.GetScalarType<T[P], AggregateUser[P]>
127
+ }
128
+
129
+
130
+
131
+
132
+ export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
133
+ where?: Prisma.UserWhereInput
134
+ orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[]
135
+ by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum
136
+ having?: Prisma.UserScalarWhereWithAggregatesInput
137
+ take?: number
138
+ skip?: number
139
+ _count?: UserCountAggregateInputType | true
140
+ _min?: UserMinAggregateInputType
141
+ _max?: UserMaxAggregateInputType
142
+ }
143
+
144
+ export type UserGroupByOutputType = {
145
+ id: string
146
+ prefix: string
147
+ createdAt: Date
148
+ lastSeenAt: Date
149
+ _count: UserCountAggregateOutputType | null
150
+ _min: UserMinAggregateOutputType | null
151
+ _max: UserMaxAggregateOutputType | null
152
+ }
153
+
154
+ type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
155
+ Array<
156
+ Prisma.PickEnumerable<UserGroupByOutputType, T['by']> &
157
+ {
158
+ [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
159
+ ? T[P] extends boolean
160
+ ? number
161
+ : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
162
+ : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
163
+ }
164
+ >
165
+ >
166
+
167
+
168
+
169
+ export type UserWhereInput = {
170
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
171
+ OR?: Prisma.UserWhereInput[]
172
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
173
+ id?: Prisma.StringFilter<"User"> | string
174
+ prefix?: Prisma.StringFilter<"User"> | string
175
+ createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
176
+ lastSeenAt?: Prisma.DateTimeFilter<"User"> | Date | string
177
+ event?: Prisma.EventListRelationFilter
178
+ }
179
+
180
+ export type UserOrderByWithRelationInput = {
181
+ id?: Prisma.SortOrder
182
+ prefix?: Prisma.SortOrder
183
+ createdAt?: Prisma.SortOrder
184
+ lastSeenAt?: Prisma.SortOrder
185
+ event?: Prisma.EventOrderByRelationAggregateInput
186
+ _relevance?: Prisma.UserOrderByRelevanceInput
187
+ }
188
+
189
+ export type UserWhereUniqueInput = Prisma.AtLeast<{
190
+ id?: string
191
+ prefix?: string
192
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
193
+ OR?: Prisma.UserWhereInput[]
194
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
195
+ createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
196
+ lastSeenAt?: Prisma.DateTimeFilter<"User"> | Date | string
197
+ event?: Prisma.EventListRelationFilter
198
+ }, "id" | "prefix">
199
+
200
+ export type UserOrderByWithAggregationInput = {
201
+ id?: Prisma.SortOrder
202
+ prefix?: Prisma.SortOrder
203
+ createdAt?: Prisma.SortOrder
204
+ lastSeenAt?: Prisma.SortOrder
205
+ _count?: Prisma.UserCountOrderByAggregateInput
206
+ _max?: Prisma.UserMaxOrderByAggregateInput
207
+ _min?: Prisma.UserMinOrderByAggregateInput
208
+ }
209
+
210
+ export type UserScalarWhereWithAggregatesInput = {
211
+ AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
212
+ OR?: Prisma.UserScalarWhereWithAggregatesInput[]
213
+ NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
214
+ id?: Prisma.StringWithAggregatesFilter<"User"> | string
215
+ prefix?: Prisma.StringWithAggregatesFilter<"User"> | string
216
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
217
+ lastSeenAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
218
+ }
219
+
220
+ export type UserCreateInput = {
221
+ id?: string
222
+ prefix: string
223
+ createdAt?: Date | string
224
+ lastSeenAt?: Date | string
225
+ event?: Prisma.EventCreateNestedManyWithoutUserInput
226
+ }
227
+
228
+ export type UserUncheckedCreateInput = {
229
+ id?: string
230
+ prefix: string
231
+ createdAt?: Date | string
232
+ lastSeenAt?: Date | string
233
+ event?: Prisma.EventUncheckedCreateNestedManyWithoutUserInput
234
+ }
235
+
236
+ export type UserUpdateInput = {
237
+ id?: Prisma.StringFieldUpdateOperationsInput | string
238
+ prefix?: Prisma.StringFieldUpdateOperationsInput | string
239
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
240
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
241
+ event?: Prisma.EventUpdateManyWithoutUserNestedInput
242
+ }
243
+
244
+ export type UserUncheckedUpdateInput = {
245
+ id?: Prisma.StringFieldUpdateOperationsInput | string
246
+ prefix?: Prisma.StringFieldUpdateOperationsInput | string
247
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
248
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
249
+ event?: Prisma.EventUncheckedUpdateManyWithoutUserNestedInput
250
+ }
251
+
252
+ export type UserCreateManyInput = {
253
+ id?: string
254
+ prefix: string
255
+ createdAt?: Date | string
256
+ lastSeenAt?: Date | string
257
+ }
258
+
259
+ export type UserUpdateManyMutationInput = {
260
+ id?: Prisma.StringFieldUpdateOperationsInput | string
261
+ prefix?: Prisma.StringFieldUpdateOperationsInput | string
262
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
263
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
264
+ }
265
+
266
+ export type UserUncheckedUpdateManyInput = {
267
+ id?: Prisma.StringFieldUpdateOperationsInput | string
268
+ prefix?: Prisma.StringFieldUpdateOperationsInput | string
269
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
270
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
271
+ }
272
+
273
+ export type UserOrderByRelevanceInput = {
274
+ fields: Prisma.UserOrderByRelevanceFieldEnum | Prisma.UserOrderByRelevanceFieldEnum[]
275
+ sort: Prisma.SortOrder
276
+ search: string
277
+ }
278
+
279
+ export type UserCountOrderByAggregateInput = {
280
+ id?: Prisma.SortOrder
281
+ prefix?: Prisma.SortOrder
282
+ createdAt?: Prisma.SortOrder
283
+ lastSeenAt?: Prisma.SortOrder
284
+ }
285
+
286
+ export type UserMaxOrderByAggregateInput = {
287
+ id?: Prisma.SortOrder
288
+ prefix?: Prisma.SortOrder
289
+ createdAt?: Prisma.SortOrder
290
+ lastSeenAt?: Prisma.SortOrder
291
+ }
292
+
293
+ export type UserMinOrderByAggregateInput = {
294
+ id?: Prisma.SortOrder
295
+ prefix?: Prisma.SortOrder
296
+ createdAt?: Prisma.SortOrder
297
+ lastSeenAt?: Prisma.SortOrder
298
+ }
299
+
300
+ export type UserScalarRelationFilter = {
301
+ is?: Prisma.UserWhereInput
302
+ isNot?: Prisma.UserWhereInput
303
+ }
304
+
305
+ export type StringFieldUpdateOperationsInput = {
306
+ set?: string
307
+ }
308
+
309
+ export type DateTimeFieldUpdateOperationsInput = {
310
+ set?: Date | string
311
+ }
312
+
313
+ export type UserCreateNestedOneWithoutEventInput = {
314
+ create?: Prisma.XOR<Prisma.UserCreateWithoutEventInput, Prisma.UserUncheckedCreateWithoutEventInput>
315
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutEventInput
316
+ connect?: Prisma.UserWhereUniqueInput
317
+ }
318
+
319
+ export type UserUpdateOneRequiredWithoutEventNestedInput = {
320
+ create?: Prisma.XOR<Prisma.UserCreateWithoutEventInput, Prisma.UserUncheckedCreateWithoutEventInput>
321
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutEventInput
322
+ upsert?: Prisma.UserUpsertWithoutEventInput
323
+ connect?: Prisma.UserWhereUniqueInput
324
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutEventInput, Prisma.UserUpdateWithoutEventInput>, Prisma.UserUncheckedUpdateWithoutEventInput>
325
+ }
326
+
327
+ export type UserCreateWithoutEventInput = {
328
+ id?: string
329
+ prefix: string
330
+ createdAt?: Date | string
331
+ lastSeenAt?: Date | string
332
+ }
333
+
334
+ export type UserUncheckedCreateWithoutEventInput = {
335
+ id?: string
336
+ prefix: string
337
+ createdAt?: Date | string
338
+ lastSeenAt?: Date | string
339
+ }
340
+
341
+ export type UserCreateOrConnectWithoutEventInput = {
342
+ where: Prisma.UserWhereUniqueInput
343
+ create: Prisma.XOR<Prisma.UserCreateWithoutEventInput, Prisma.UserUncheckedCreateWithoutEventInput>
344
+ }
345
+
346
+ export type UserUpsertWithoutEventInput = {
347
+ update: Prisma.XOR<Prisma.UserUpdateWithoutEventInput, Prisma.UserUncheckedUpdateWithoutEventInput>
348
+ create: Prisma.XOR<Prisma.UserCreateWithoutEventInput, Prisma.UserUncheckedCreateWithoutEventInput>
349
+ where?: Prisma.UserWhereInput
350
+ }
351
+
352
+ export type UserUpdateToOneWithWhereWithoutEventInput = {
353
+ where?: Prisma.UserWhereInput
354
+ data: Prisma.XOR<Prisma.UserUpdateWithoutEventInput, Prisma.UserUncheckedUpdateWithoutEventInput>
355
+ }
356
+
357
+ export type UserUpdateWithoutEventInput = {
358
+ id?: Prisma.StringFieldUpdateOperationsInput | string
359
+ prefix?: Prisma.StringFieldUpdateOperationsInput | string
360
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
361
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
362
+ }
363
+
364
+ export type UserUncheckedUpdateWithoutEventInput = {
365
+ id?: Prisma.StringFieldUpdateOperationsInput | string
366
+ prefix?: Prisma.StringFieldUpdateOperationsInput | string
367
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
368
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
369
+ }
370
+
371
+
372
+ /**
373
+ * Count Type UserCountOutputType
374
+ */
375
+
376
+ export type UserCountOutputType = {
377
+ event: number
378
+ }
379
+
380
+ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
381
+ event?: boolean | UserCountOutputTypeCountEventArgs
382
+ }
383
+
384
+ /**
385
+ * UserCountOutputType without action
386
+ */
387
+ export type UserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
388
+ /**
389
+ * Select specific fields to fetch from the UserCountOutputType
390
+ */
391
+ select?: Prisma.UserCountOutputTypeSelect<ExtArgs> | null
392
+ }
393
+
394
+ /**
395
+ * UserCountOutputType without action
396
+ */
397
+ export type UserCountOutputTypeCountEventArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
398
+ where?: Prisma.EventWhereInput
399
+ }
400
+
401
+
402
+ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
403
+ id?: boolean
404
+ prefix?: boolean
405
+ createdAt?: boolean
406
+ lastSeenAt?: boolean
407
+ event?: boolean | Prisma.User$eventArgs<ExtArgs>
408
+ _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
409
+ }, ExtArgs["result"]["user"]>
410
+
411
+
412
+
413
+ export type UserSelectScalar = {
414
+ id?: boolean
415
+ prefix?: boolean
416
+ createdAt?: boolean
417
+ lastSeenAt?: boolean
418
+ }
419
+
420
+ export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "prefix" | "createdAt" | "lastSeenAt", ExtArgs["result"]["user"]>
421
+ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
422
+ event?: boolean | Prisma.User$eventArgs<ExtArgs>
423
+ _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
424
+ }
425
+
426
+ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
427
+ name: "User"
428
+ objects: {
429
+ event: Prisma.$EventPayload<ExtArgs>[]
430
+ }
431
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
432
+ id: string
433
+ prefix: string
434
+ createdAt: Date
435
+ lastSeenAt: Date
436
+ }, ExtArgs["result"]["user"]>
437
+ composites: {}
438
+ }
439
+
440
+ export type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPayload, S>
441
+
442
+ export type UserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
443
+ Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
444
+ select?: UserCountAggregateInputType | true
445
+ }
446
+
447
+ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
448
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
449
+ /**
450
+ * Find zero or one User that matches the filter.
451
+ * @param {UserFindUniqueArgs} args - Arguments to find a User
452
+ * @example
453
+ * // Get one User
454
+ * const user = await prisma.user.findUnique({
455
+ * where: {
456
+ * // ... provide filter here
457
+ * }
458
+ * })
459
+ */
460
+ 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>
461
+
462
+ /**
463
+ * Find one User that matches the filter or throw an error with `error.code='P2025'`
464
+ * if no matches were found.
465
+ * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
466
+ * @example
467
+ * // Get one User
468
+ * const user = await prisma.user.findUniqueOrThrow({
469
+ * where: {
470
+ * // ... provide filter here
471
+ * }
472
+ * })
473
+ */
474
+ 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>
475
+
476
+ /**
477
+ * Find the first User that matches the filter.
478
+ * Note, that providing `undefined` is treated as the value not being there.
479
+ * Read more here: https://pris.ly/d/null-undefined
480
+ * @param {UserFindFirstArgs} args - Arguments to find a User
481
+ * @example
482
+ * // Get one User
483
+ * const user = await prisma.user.findFirst({
484
+ * where: {
485
+ * // ... provide filter here
486
+ * }
487
+ * })
488
+ */
489
+ 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>
490
+
491
+ /**
492
+ * Find the first User that matches the filter or
493
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
494
+ * Note, that providing `undefined` is treated as the value not being there.
495
+ * Read more here: https://pris.ly/d/null-undefined
496
+ * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
497
+ * @example
498
+ * // Get one User
499
+ * const user = await prisma.user.findFirstOrThrow({
500
+ * where: {
501
+ * // ... provide filter here
502
+ * }
503
+ * })
504
+ */
505
+ 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>
506
+
507
+ /**
508
+ * Find zero or more Users that matches the filter.
509
+ * Note, that providing `undefined` is treated as the value not being there.
510
+ * Read more here: https://pris.ly/d/null-undefined
511
+ * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
512
+ * @example
513
+ * // Get all Users
514
+ * const users = await prisma.user.findMany()
515
+ *
516
+ * // Get first 10 Users
517
+ * const users = await prisma.user.findMany({ take: 10 })
518
+ *
519
+ * // Only select the `id`
520
+ * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
521
+ *
522
+ */
523
+ findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
524
+
525
+ /**
526
+ * Create a User.
527
+ * @param {UserCreateArgs} args - Arguments to create a User.
528
+ * @example
529
+ * // Create one User
530
+ * const User = await prisma.user.create({
531
+ * data: {
532
+ * // ... data to create a User
533
+ * }
534
+ * })
535
+ *
536
+ */
537
+ 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>
538
+
539
+ /**
540
+ * Create many Users.
541
+ * @param {UserCreateManyArgs} args - Arguments to create many Users.
542
+ * @example
543
+ * // Create many Users
544
+ * const user = await prisma.user.createMany({
545
+ * data: [
546
+ * // ... provide data here
547
+ * ]
548
+ * })
549
+ *
550
+ */
551
+ createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
552
+
553
+ /**
554
+ * Delete a User.
555
+ * @param {UserDeleteArgs} args - Arguments to delete one User.
556
+ * @example
557
+ * // Delete one User
558
+ * const User = await prisma.user.delete({
559
+ * where: {
560
+ * // ... filter to delete one User
561
+ * }
562
+ * })
563
+ *
564
+ */
565
+ 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>
566
+
567
+ /**
568
+ * Update one User.
569
+ * @param {UserUpdateArgs} args - Arguments to update one User.
570
+ * @example
571
+ * // Update one User
572
+ * const user = await prisma.user.update({
573
+ * where: {
574
+ * // ... provide filter here
575
+ * },
576
+ * data: {
577
+ * // ... provide data here
578
+ * }
579
+ * })
580
+ *
581
+ */
582
+ 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>
583
+
584
+ /**
585
+ * Delete zero or more Users.
586
+ * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
587
+ * @example
588
+ * // Delete a few Users
589
+ * const { count } = await prisma.user.deleteMany({
590
+ * where: {
591
+ * // ... provide filter here
592
+ * }
593
+ * })
594
+ *
595
+ */
596
+ deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
597
+
598
+ /**
599
+ * Update zero or more Users.
600
+ * Note, that providing `undefined` is treated as the value not being there.
601
+ * Read more here: https://pris.ly/d/null-undefined
602
+ * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
603
+ * @example
604
+ * // Update many Users
605
+ * const user = await prisma.user.updateMany({
606
+ * where: {
607
+ * // ... provide filter here
608
+ * },
609
+ * data: {
610
+ * // ... provide data here
611
+ * }
612
+ * })
613
+ *
614
+ */
615
+ updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
616
+
617
+ /**
618
+ * Create or update one User.
619
+ * @param {UserUpsertArgs} args - Arguments to update or create a User.
620
+ * @example
621
+ * // Update or create a User
622
+ * const user = await prisma.user.upsert({
623
+ * create: {
624
+ * // ... data to create a User
625
+ * },
626
+ * update: {
627
+ * // ... in case it already exists, update
628
+ * },
629
+ * where: {
630
+ * // ... the filter for the User we want to update
631
+ * }
632
+ * })
633
+ */
634
+ 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>
635
+
636
+
637
+ /**
638
+ * Count the number of Users.
639
+ * Note, that providing `undefined` is treated as the value not being there.
640
+ * Read more here: https://pris.ly/d/null-undefined
641
+ * @param {UserCountArgs} args - Arguments to filter Users to count.
642
+ * @example
643
+ * // Count the number of Users
644
+ * const count = await prisma.user.count({
645
+ * where: {
646
+ * // ... the filter for the Users we want to count
647
+ * }
648
+ * })
649
+ **/
650
+ count<T extends UserCountArgs>(
651
+ args?: Prisma.Subset<T, UserCountArgs>,
652
+ ): Prisma.PrismaPromise<
653
+ T extends runtime.Types.Utils.Record<'select', any>
654
+ ? T['select'] extends true
655
+ ? number
656
+ : Prisma.GetScalarType<T['select'], UserCountAggregateOutputType>
657
+ : number
658
+ >
659
+
660
+ /**
661
+ * Allows you to perform aggregations operations on a User.
662
+ * Note, that providing `undefined` is treated as the value not being there.
663
+ * Read more here: https://pris.ly/d/null-undefined
664
+ * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
665
+ * @example
666
+ * // Ordered by age ascending
667
+ * // Where email contains prisma.io
668
+ * // Limited to the 10 users
669
+ * const aggregations = await prisma.user.aggregate({
670
+ * _avg: {
671
+ * age: true,
672
+ * },
673
+ * where: {
674
+ * email: {
675
+ * contains: "prisma.io",
676
+ * },
677
+ * },
678
+ * orderBy: {
679
+ * age: "asc",
680
+ * },
681
+ * take: 10,
682
+ * })
683
+ **/
684
+ aggregate<T extends UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
685
+
686
+ /**
687
+ * Group by User.
688
+ * Note, that providing `undefined` is treated as the value not being there.
689
+ * Read more here: https://pris.ly/d/null-undefined
690
+ * @param {UserGroupByArgs} args - Group by arguments.
691
+ * @example
692
+ * // Group by city, order by createdAt, get count
693
+ * const result = await prisma.user.groupBy({
694
+ * by: ['city', 'createdAt'],
695
+ * orderBy: {
696
+ * createdAt: true
697
+ * },
698
+ * _count: {
699
+ * _all: true
700
+ * },
701
+ * })
702
+ *
703
+ **/
704
+ groupBy<
705
+ T extends UserGroupByArgs,
706
+ HasSelectOrTake extends Prisma.Or<
707
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
708
+ Prisma.Extends<'take', Prisma.Keys<T>>
709
+ >,
710
+ OrderByArg extends Prisma.True extends HasSelectOrTake
711
+ ? { orderBy: UserGroupByArgs['orderBy'] }
712
+ : { orderBy?: UserGroupByArgs['orderBy'] },
713
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
714
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
715
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
716
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
717
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
718
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
719
+ InputErrors extends ByEmpty extends Prisma.True
720
+ ? `Error: "by" must not be empty.`
721
+ : HavingValid extends Prisma.False
722
+ ? {
723
+ [P in HavingFields]: P extends ByFields
724
+ ? never
725
+ : P extends string
726
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
727
+ : [
728
+ Error,
729
+ 'Field ',
730
+ P,
731
+ ` in "having" needs to be provided in "by"`,
732
+ ]
733
+ }[HavingFields]
734
+ : 'take' extends Prisma.Keys<T>
735
+ ? 'orderBy' extends Prisma.Keys<T>
736
+ ? ByValid extends Prisma.True
737
+ ? {}
738
+ : {
739
+ [P in OrderFields]: P extends ByFields
740
+ ? never
741
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
742
+ }[OrderFields]
743
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
744
+ : 'skip' extends Prisma.Keys<T>
745
+ ? 'orderBy' extends Prisma.Keys<T>
746
+ ? ByValid extends Prisma.True
747
+ ? {}
748
+ : {
749
+ [P in OrderFields]: P extends ByFields
750
+ ? never
751
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
752
+ }[OrderFields]
753
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
754
+ : ByValid extends Prisma.True
755
+ ? {}
756
+ : {
757
+ [P in OrderFields]: P extends ByFields
758
+ ? never
759
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
760
+ }[OrderFields]
761
+ >(args: Prisma.SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
762
+ /**
763
+ * Fields of the User model
764
+ */
765
+ readonly fields: UserFieldRefs;
766
+ }
767
+
768
+ /**
769
+ * The delegate class that acts as a "Promise-like" for User.
770
+ * Why is this prefixed with `Prisma__`?
771
+ * Because we want to prevent naming conflicts as mentioned in
772
+ * https://github.com/prisma/prisma-client-js/issues/707
773
+ */
774
+ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
775
+ readonly [Symbol.toStringTag]: "PrismaPromise"
776
+ event<T extends Prisma.User$eventArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$eventArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
777
+ /**
778
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
779
+ * @param onfulfilled The callback to execute when the Promise is resolved.
780
+ * @param onrejected The callback to execute when the Promise is rejected.
781
+ * @returns A Promise for the completion of which ever callback is executed.
782
+ */
783
+ 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>
784
+ /**
785
+ * Attaches a callback for only the rejection of the Promise.
786
+ * @param onrejected The callback to execute when the Promise is rejected.
787
+ * @returns A Promise for the completion of the callback.
788
+ */
789
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
790
+ /**
791
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
792
+ * resolved value cannot be modified from the callback.
793
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
794
+ * @returns A Promise for the completion of the callback.
795
+ */
796
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
797
+ }
798
+
799
+
800
+
801
+
802
+ /**
803
+ * Fields of the User model
804
+ */
805
+ export interface UserFieldRefs {
806
+ readonly id: Prisma.FieldRef<"User", 'String'>
807
+ readonly prefix: Prisma.FieldRef<"User", 'String'>
808
+ readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>
809
+ readonly lastSeenAt: Prisma.FieldRef<"User", 'DateTime'>
810
+ }
811
+
812
+
813
+ // Custom InputTypes
814
+ /**
815
+ * User findUnique
816
+ */
817
+ export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
818
+ /**
819
+ * Select specific fields to fetch from the User
820
+ */
821
+ select?: Prisma.UserSelect<ExtArgs> | null
822
+ /**
823
+ * Omit specific fields from the User
824
+ */
825
+ omit?: Prisma.UserOmit<ExtArgs> | null
826
+ /**
827
+ * Choose, which related nodes to fetch as well
828
+ */
829
+ include?: Prisma.UserInclude<ExtArgs> | null
830
+ /**
831
+ * Filter, which User to fetch.
832
+ */
833
+ where: Prisma.UserWhereUniqueInput
834
+ }
835
+
836
+ /**
837
+ * User findUniqueOrThrow
838
+ */
839
+ export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
840
+ /**
841
+ * Select specific fields to fetch from the User
842
+ */
843
+ select?: Prisma.UserSelect<ExtArgs> | null
844
+ /**
845
+ * Omit specific fields from the User
846
+ */
847
+ omit?: Prisma.UserOmit<ExtArgs> | null
848
+ /**
849
+ * Choose, which related nodes to fetch as well
850
+ */
851
+ include?: Prisma.UserInclude<ExtArgs> | null
852
+ /**
853
+ * Filter, which User to fetch.
854
+ */
855
+ where: Prisma.UserWhereUniqueInput
856
+ }
857
+
858
+ /**
859
+ * User findFirst
860
+ */
861
+ export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
862
+ /**
863
+ * Select specific fields to fetch from the User
864
+ */
865
+ select?: Prisma.UserSelect<ExtArgs> | null
866
+ /**
867
+ * Omit specific fields from the User
868
+ */
869
+ omit?: Prisma.UserOmit<ExtArgs> | null
870
+ /**
871
+ * Choose, which related nodes to fetch as well
872
+ */
873
+ include?: Prisma.UserInclude<ExtArgs> | null
874
+ /**
875
+ * Filter, which User to fetch.
876
+ */
877
+ where?: Prisma.UserWhereInput
878
+ /**
879
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
880
+ *
881
+ * Determine the order of Users to fetch.
882
+ */
883
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
884
+ /**
885
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
886
+ *
887
+ * Sets the position for searching for Users.
888
+ */
889
+ cursor?: Prisma.UserWhereUniqueInput
890
+ /**
891
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
892
+ *
893
+ * Take `±n` Users from the position of the cursor.
894
+ */
895
+ take?: number
896
+ /**
897
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
898
+ *
899
+ * Skip the first `n` Users.
900
+ */
901
+ skip?: number
902
+ /**
903
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
904
+ *
905
+ * Filter by unique combinations of Users.
906
+ */
907
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
908
+ }
909
+
910
+ /**
911
+ * User findFirstOrThrow
912
+ */
913
+ export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
914
+ /**
915
+ * Select specific fields to fetch from the User
916
+ */
917
+ select?: Prisma.UserSelect<ExtArgs> | null
918
+ /**
919
+ * Omit specific fields from the User
920
+ */
921
+ omit?: Prisma.UserOmit<ExtArgs> | null
922
+ /**
923
+ * Choose, which related nodes to fetch as well
924
+ */
925
+ include?: Prisma.UserInclude<ExtArgs> | null
926
+ /**
927
+ * Filter, which User to fetch.
928
+ */
929
+ where?: Prisma.UserWhereInput
930
+ /**
931
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
932
+ *
933
+ * Determine the order of Users to fetch.
934
+ */
935
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
936
+ /**
937
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
938
+ *
939
+ * Sets the position for searching for Users.
940
+ */
941
+ cursor?: Prisma.UserWhereUniqueInput
942
+ /**
943
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
944
+ *
945
+ * Take `±n` Users from the position of the cursor.
946
+ */
947
+ take?: number
948
+ /**
949
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
950
+ *
951
+ * Skip the first `n` Users.
952
+ */
953
+ skip?: number
954
+ /**
955
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
956
+ *
957
+ * Filter by unique combinations of Users.
958
+ */
959
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
960
+ }
961
+
962
+ /**
963
+ * User findMany
964
+ */
965
+ export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
966
+ /**
967
+ * Select specific fields to fetch from the User
968
+ */
969
+ select?: Prisma.UserSelect<ExtArgs> | null
970
+ /**
971
+ * Omit specific fields from the User
972
+ */
973
+ omit?: Prisma.UserOmit<ExtArgs> | null
974
+ /**
975
+ * Choose, which related nodes to fetch as well
976
+ */
977
+ include?: Prisma.UserInclude<ExtArgs> | null
978
+ /**
979
+ * Filter, which Users to fetch.
980
+ */
981
+ where?: Prisma.UserWhereInput
982
+ /**
983
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
984
+ *
985
+ * Determine the order of Users to fetch.
986
+ */
987
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
988
+ /**
989
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
990
+ *
991
+ * Sets the position for listing Users.
992
+ */
993
+ cursor?: Prisma.UserWhereUniqueInput
994
+ /**
995
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
996
+ *
997
+ * Take `±n` Users from the position of the cursor.
998
+ */
999
+ take?: number
1000
+ /**
1001
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1002
+ *
1003
+ * Skip the first `n` Users.
1004
+ */
1005
+ skip?: number
1006
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
1007
+ }
1008
+
1009
+ /**
1010
+ * User create
1011
+ */
1012
+ export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1013
+ /**
1014
+ * Select specific fields to fetch from the User
1015
+ */
1016
+ select?: Prisma.UserSelect<ExtArgs> | null
1017
+ /**
1018
+ * Omit specific fields from the User
1019
+ */
1020
+ omit?: Prisma.UserOmit<ExtArgs> | null
1021
+ /**
1022
+ * Choose, which related nodes to fetch as well
1023
+ */
1024
+ include?: Prisma.UserInclude<ExtArgs> | null
1025
+ /**
1026
+ * The data needed to create a User.
1027
+ */
1028
+ data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
1029
+ }
1030
+
1031
+ /**
1032
+ * User createMany
1033
+ */
1034
+ export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1035
+ /**
1036
+ * The data used to create many Users.
1037
+ */
1038
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
1039
+ skipDuplicates?: boolean
1040
+ }
1041
+
1042
+ /**
1043
+ * User update
1044
+ */
1045
+ export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1046
+ /**
1047
+ * Select specific fields to fetch from the User
1048
+ */
1049
+ select?: Prisma.UserSelect<ExtArgs> | null
1050
+ /**
1051
+ * Omit specific fields from the User
1052
+ */
1053
+ omit?: Prisma.UserOmit<ExtArgs> | null
1054
+ /**
1055
+ * Choose, which related nodes to fetch as well
1056
+ */
1057
+ include?: Prisma.UserInclude<ExtArgs> | null
1058
+ /**
1059
+ * The data needed to update a User.
1060
+ */
1061
+ data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
1062
+ /**
1063
+ * Choose, which User to update.
1064
+ */
1065
+ where: Prisma.UserWhereUniqueInput
1066
+ }
1067
+
1068
+ /**
1069
+ * User updateMany
1070
+ */
1071
+ export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1072
+ /**
1073
+ * The data used to update Users.
1074
+ */
1075
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
1076
+ /**
1077
+ * Filter which Users to update
1078
+ */
1079
+ where?: Prisma.UserWhereInput
1080
+ /**
1081
+ * Limit how many Users to update.
1082
+ */
1083
+ limit?: number
1084
+ }
1085
+
1086
+ /**
1087
+ * User upsert
1088
+ */
1089
+ export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1090
+ /**
1091
+ * Select specific fields to fetch from the User
1092
+ */
1093
+ select?: Prisma.UserSelect<ExtArgs> | null
1094
+ /**
1095
+ * Omit specific fields from the User
1096
+ */
1097
+ omit?: Prisma.UserOmit<ExtArgs> | null
1098
+ /**
1099
+ * Choose, which related nodes to fetch as well
1100
+ */
1101
+ include?: Prisma.UserInclude<ExtArgs> | null
1102
+ /**
1103
+ * The filter to search for the User to update in case it exists.
1104
+ */
1105
+ where: Prisma.UserWhereUniqueInput
1106
+ /**
1107
+ * In case the User found by the `where` argument doesn't exist, create a new User with this data.
1108
+ */
1109
+ create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
1110
+ /**
1111
+ * In case the User was found with the provided `where` argument, update it with this data.
1112
+ */
1113
+ update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
1114
+ }
1115
+
1116
+ /**
1117
+ * User delete
1118
+ */
1119
+ export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1120
+ /**
1121
+ * Select specific fields to fetch from the User
1122
+ */
1123
+ select?: Prisma.UserSelect<ExtArgs> | null
1124
+ /**
1125
+ * Omit specific fields from the User
1126
+ */
1127
+ omit?: Prisma.UserOmit<ExtArgs> | null
1128
+ /**
1129
+ * Choose, which related nodes to fetch as well
1130
+ */
1131
+ include?: Prisma.UserInclude<ExtArgs> | null
1132
+ /**
1133
+ * Filter which User to delete.
1134
+ */
1135
+ where: Prisma.UserWhereUniqueInput
1136
+ }
1137
+
1138
+ /**
1139
+ * User deleteMany
1140
+ */
1141
+ export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1142
+ /**
1143
+ * Filter which Users to delete
1144
+ */
1145
+ where?: Prisma.UserWhereInput
1146
+ /**
1147
+ * Limit how many Users to delete.
1148
+ */
1149
+ limit?: number
1150
+ }
1151
+
1152
+ /**
1153
+ * User.event
1154
+ */
1155
+ export type User$eventArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1156
+ /**
1157
+ * Select specific fields to fetch from the Event
1158
+ */
1159
+ select?: Prisma.EventSelect<ExtArgs> | null
1160
+ /**
1161
+ * Omit specific fields from the Event
1162
+ */
1163
+ omit?: Prisma.EventOmit<ExtArgs> | null
1164
+ /**
1165
+ * Choose, which related nodes to fetch as well
1166
+ */
1167
+ include?: Prisma.EventInclude<ExtArgs> | null
1168
+ where?: Prisma.EventWhereInput
1169
+ orderBy?: Prisma.EventOrderByWithRelationInput | Prisma.EventOrderByWithRelationInput[]
1170
+ cursor?: Prisma.EventWhereUniqueInput
1171
+ take?: number
1172
+ skip?: number
1173
+ distinct?: Prisma.EventScalarFieldEnum | Prisma.EventScalarFieldEnum[]
1174
+ }
1175
+
1176
+ /**
1177
+ * User without action
1178
+ */
1179
+ export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1180
+ /**
1181
+ * Select specific fields to fetch from the User
1182
+ */
1183
+ select?: Prisma.UserSelect<ExtArgs> | null
1184
+ /**
1185
+ * Omit specific fields from the User
1186
+ */
1187
+ omit?: Prisma.UserOmit<ExtArgs> | null
1188
+ /**
1189
+ * Choose, which related nodes to fetch as well
1190
+ */
1191
+ include?: Prisma.UserInclude<ExtArgs> | null
1192
+ }