@allbluecn/database 0.4.14 → 0.4.15

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