create-zhx-monorepo 0.1.8 → 0.2.0

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