@allbluecn/database 0.6.0 → 0.8.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.
- package/generated/browser.ts +25 -0
- package/generated/client.ts +25 -0
- package/generated/internal/class.ts +54 -4
- package/generated/internal/prismaNamespace.ts +453 -2
- package/generated/internal/prismaNamespaceBrowser.ts +77 -1
- package/generated/models/EmailLog.ts +1345 -0
- package/generated/models/EmailPreference.ts +1257 -0
- package/generated/models/EmailSubscriber.ts +1233 -0
- package/generated/models/EmailVerificationToken.ts +1380 -0
- package/generated/models/InvitationCode.ts +65 -1
- package/generated/models/NotificationPreference.ts +27 -1
- package/generated/models/OAuthProviderConfig.ts +1227 -0
- package/generated/models/User.ts +1435 -157
- package/generated/models.ts +5 -0
- package/generated-sqlite/browser.ts +30 -0
- package/generated-sqlite/client.ts +30 -0
- package/generated-sqlite/internal/class.ts +64 -4
- package/generated-sqlite/internal/prismaNamespace.ts +541 -3
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +90 -2
- package/generated-sqlite/models/EmailLog.ts +1343 -0
- package/generated-sqlite/models/EmailPreference.ts +1255 -0
- package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
- package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
- package/generated-sqlite/models/InvitationCode.ts +65 -1
- package/generated-sqlite/models/NotificationPreference.ts +1313 -0
- package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
- package/generated-sqlite/models/User.ts +1867 -293
- package/generated-sqlite/models.ts +6 -0
- package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
- package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
- package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
- package/package.json +2 -2
- package/schema.prisma +93 -12
- package/schema.sqlite.prisma +93 -4
|
@@ -43,6 +43,8 @@ export type InvitationCodeMinAggregateOutputType = {
|
|
|
43
43
|
usedCount: number | null
|
|
44
44
|
expiresAt: Date | null
|
|
45
45
|
createdAt: Date | null
|
|
46
|
+
createdById: string | null
|
|
47
|
+
disabledAt: Date | null
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
export type InvitationCodeMaxAggregateOutputType = {
|
|
@@ -52,6 +54,8 @@ export type InvitationCodeMaxAggregateOutputType = {
|
|
|
52
54
|
usedCount: number | null
|
|
53
55
|
expiresAt: Date | null
|
|
54
56
|
createdAt: Date | null
|
|
57
|
+
createdById: string | null
|
|
58
|
+
disabledAt: Date | null
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
export type InvitationCodeCountAggregateOutputType = {
|
|
@@ -61,6 +65,8 @@ export type InvitationCodeCountAggregateOutputType = {
|
|
|
61
65
|
usedCount: number
|
|
62
66
|
expiresAt: number
|
|
63
67
|
createdAt: number
|
|
68
|
+
createdById: number
|
|
69
|
+
disabledAt: number
|
|
64
70
|
_all: number
|
|
65
71
|
}
|
|
66
72
|
|
|
@@ -82,6 +88,8 @@ export type InvitationCodeMinAggregateInputType = {
|
|
|
82
88
|
usedCount?: true
|
|
83
89
|
expiresAt?: true
|
|
84
90
|
createdAt?: true
|
|
91
|
+
createdById?: true
|
|
92
|
+
disabledAt?: true
|
|
85
93
|
}
|
|
86
94
|
|
|
87
95
|
export type InvitationCodeMaxAggregateInputType = {
|
|
@@ -91,6 +99,8 @@ export type InvitationCodeMaxAggregateInputType = {
|
|
|
91
99
|
usedCount?: true
|
|
92
100
|
expiresAt?: true
|
|
93
101
|
createdAt?: true
|
|
102
|
+
createdById?: true
|
|
103
|
+
disabledAt?: true
|
|
94
104
|
}
|
|
95
105
|
|
|
96
106
|
export type InvitationCodeCountAggregateInputType = {
|
|
@@ -100,6 +110,8 @@ export type InvitationCodeCountAggregateInputType = {
|
|
|
100
110
|
usedCount?: true
|
|
101
111
|
expiresAt?: true
|
|
102
112
|
createdAt?: true
|
|
113
|
+
createdById?: true
|
|
114
|
+
disabledAt?: true
|
|
103
115
|
_all?: true
|
|
104
116
|
}
|
|
105
117
|
|
|
@@ -196,6 +208,8 @@ export type InvitationCodeGroupByOutputType = {
|
|
|
196
208
|
usedCount: number
|
|
197
209
|
expiresAt: Date
|
|
198
210
|
createdAt: Date
|
|
211
|
+
createdById: string | null
|
|
212
|
+
disabledAt: Date | null
|
|
199
213
|
_count: InvitationCodeCountAggregateOutputType | null
|
|
200
214
|
_avg: InvitationCodeAvgAggregateOutputType | null
|
|
201
215
|
_sum: InvitationCodeSumAggregateOutputType | null
|
|
@@ -228,6 +242,8 @@ export type InvitationCodeWhereInput = {
|
|
|
228
242
|
usedCount?: Prisma.IntFilter<"InvitationCode"> | number
|
|
229
243
|
expiresAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
|
|
230
244
|
createdAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
|
|
245
|
+
createdById?: Prisma.StringNullableFilter<"InvitationCode"> | string | null
|
|
246
|
+
disabledAt?: Prisma.DateTimeNullableFilter<"InvitationCode"> | Date | string | null
|
|
231
247
|
uses?: Prisma.InvitationUseListRelationFilter
|
|
232
248
|
}
|
|
233
249
|
|
|
@@ -238,6 +254,8 @@ export type InvitationCodeOrderByWithRelationInput = {
|
|
|
238
254
|
usedCount?: Prisma.SortOrder
|
|
239
255
|
expiresAt?: Prisma.SortOrder
|
|
240
256
|
createdAt?: Prisma.SortOrder
|
|
257
|
+
createdById?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
258
|
+
disabledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
241
259
|
uses?: Prisma.InvitationUseOrderByRelationAggregateInput
|
|
242
260
|
}
|
|
243
261
|
|
|
@@ -251,6 +269,8 @@ export type InvitationCodeWhereUniqueInput = Prisma.AtLeast<{
|
|
|
251
269
|
usedCount?: Prisma.IntFilter<"InvitationCode"> | number
|
|
252
270
|
expiresAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
|
|
253
271
|
createdAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
|
|
272
|
+
createdById?: Prisma.StringNullableFilter<"InvitationCode"> | string | null
|
|
273
|
+
disabledAt?: Prisma.DateTimeNullableFilter<"InvitationCode"> | Date | string | null
|
|
254
274
|
uses?: Prisma.InvitationUseListRelationFilter
|
|
255
275
|
}, "id" | "code">
|
|
256
276
|
|
|
@@ -261,6 +281,8 @@ export type InvitationCodeOrderByWithAggregationInput = {
|
|
|
261
281
|
usedCount?: Prisma.SortOrder
|
|
262
282
|
expiresAt?: Prisma.SortOrder
|
|
263
283
|
createdAt?: Prisma.SortOrder
|
|
284
|
+
createdById?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
285
|
+
disabledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
264
286
|
_count?: Prisma.InvitationCodeCountOrderByAggregateInput
|
|
265
287
|
_avg?: Prisma.InvitationCodeAvgOrderByAggregateInput
|
|
266
288
|
_max?: Prisma.InvitationCodeMaxOrderByAggregateInput
|
|
@@ -278,6 +300,8 @@ export type InvitationCodeScalarWhereWithAggregatesInput = {
|
|
|
278
300
|
usedCount?: Prisma.IntWithAggregatesFilter<"InvitationCode"> | number
|
|
279
301
|
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"InvitationCode"> | Date | string
|
|
280
302
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"InvitationCode"> | Date | string
|
|
303
|
+
createdById?: Prisma.StringNullableWithAggregatesFilter<"InvitationCode"> | string | null
|
|
304
|
+
disabledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InvitationCode"> | Date | string | null
|
|
281
305
|
}
|
|
282
306
|
|
|
283
307
|
export type InvitationCodeCreateInput = {
|
|
@@ -287,6 +311,8 @@ export type InvitationCodeCreateInput = {
|
|
|
287
311
|
usedCount?: number
|
|
288
312
|
expiresAt: Date | string
|
|
289
313
|
createdAt?: Date | string
|
|
314
|
+
createdById?: string | null
|
|
315
|
+
disabledAt?: Date | string | null
|
|
290
316
|
uses?: Prisma.InvitationUseCreateNestedManyWithoutCodeInput
|
|
291
317
|
}
|
|
292
318
|
|
|
@@ -297,6 +323,8 @@ export type InvitationCodeUncheckedCreateInput = {
|
|
|
297
323
|
usedCount?: number
|
|
298
324
|
expiresAt: Date | string
|
|
299
325
|
createdAt?: Date | string
|
|
326
|
+
createdById?: string | null
|
|
327
|
+
disabledAt?: Date | string | null
|
|
300
328
|
uses?: Prisma.InvitationUseUncheckedCreateNestedManyWithoutCodeInput
|
|
301
329
|
}
|
|
302
330
|
|
|
@@ -307,6 +335,8 @@ export type InvitationCodeUpdateInput = {
|
|
|
307
335
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
308
336
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
309
337
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
338
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
339
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
310
340
|
uses?: Prisma.InvitationUseUpdateManyWithoutCodeNestedInput
|
|
311
341
|
}
|
|
312
342
|
|
|
@@ -317,6 +347,8 @@ export type InvitationCodeUncheckedUpdateInput = {
|
|
|
317
347
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
318
348
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
319
349
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
350
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
351
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
320
352
|
uses?: Prisma.InvitationUseUncheckedUpdateManyWithoutCodeNestedInput
|
|
321
353
|
}
|
|
322
354
|
|
|
@@ -327,6 +359,8 @@ export type InvitationCodeCreateManyInput = {
|
|
|
327
359
|
usedCount?: number
|
|
328
360
|
expiresAt: Date | string
|
|
329
361
|
createdAt?: Date | string
|
|
362
|
+
createdById?: string | null
|
|
363
|
+
disabledAt?: Date | string | null
|
|
330
364
|
}
|
|
331
365
|
|
|
332
366
|
export type InvitationCodeUpdateManyMutationInput = {
|
|
@@ -336,6 +370,8 @@ export type InvitationCodeUpdateManyMutationInput = {
|
|
|
336
370
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
337
371
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
338
372
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
373
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
374
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
339
375
|
}
|
|
340
376
|
|
|
341
377
|
export type InvitationCodeUncheckedUpdateManyInput = {
|
|
@@ -345,6 +381,8 @@ export type InvitationCodeUncheckedUpdateManyInput = {
|
|
|
345
381
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
346
382
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
347
383
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
384
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
385
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
348
386
|
}
|
|
349
387
|
|
|
350
388
|
export type InvitationCodeCountOrderByAggregateInput = {
|
|
@@ -354,6 +392,8 @@ export type InvitationCodeCountOrderByAggregateInput = {
|
|
|
354
392
|
usedCount?: Prisma.SortOrder
|
|
355
393
|
expiresAt?: Prisma.SortOrder
|
|
356
394
|
createdAt?: Prisma.SortOrder
|
|
395
|
+
createdById?: Prisma.SortOrder
|
|
396
|
+
disabledAt?: Prisma.SortOrder
|
|
357
397
|
}
|
|
358
398
|
|
|
359
399
|
export type InvitationCodeAvgOrderByAggregateInput = {
|
|
@@ -368,6 +408,8 @@ export type InvitationCodeMaxOrderByAggregateInput = {
|
|
|
368
408
|
usedCount?: Prisma.SortOrder
|
|
369
409
|
expiresAt?: Prisma.SortOrder
|
|
370
410
|
createdAt?: Prisma.SortOrder
|
|
411
|
+
createdById?: Prisma.SortOrder
|
|
412
|
+
disabledAt?: Prisma.SortOrder
|
|
371
413
|
}
|
|
372
414
|
|
|
373
415
|
export type InvitationCodeMinOrderByAggregateInput = {
|
|
@@ -377,6 +419,8 @@ export type InvitationCodeMinOrderByAggregateInput = {
|
|
|
377
419
|
usedCount?: Prisma.SortOrder
|
|
378
420
|
expiresAt?: Prisma.SortOrder
|
|
379
421
|
createdAt?: Prisma.SortOrder
|
|
422
|
+
createdById?: Prisma.SortOrder
|
|
423
|
+
disabledAt?: Prisma.SortOrder
|
|
380
424
|
}
|
|
381
425
|
|
|
382
426
|
export type InvitationCodeSumOrderByAggregateInput = {
|
|
@@ -418,6 +462,8 @@ export type InvitationCodeCreateWithoutUsesInput = {
|
|
|
418
462
|
usedCount?: number
|
|
419
463
|
expiresAt: Date | string
|
|
420
464
|
createdAt?: Date | string
|
|
465
|
+
createdById?: string | null
|
|
466
|
+
disabledAt?: Date | string | null
|
|
421
467
|
}
|
|
422
468
|
|
|
423
469
|
export type InvitationCodeUncheckedCreateWithoutUsesInput = {
|
|
@@ -427,6 +473,8 @@ export type InvitationCodeUncheckedCreateWithoutUsesInput = {
|
|
|
427
473
|
usedCount?: number
|
|
428
474
|
expiresAt: Date | string
|
|
429
475
|
createdAt?: Date | string
|
|
476
|
+
createdById?: string | null
|
|
477
|
+
disabledAt?: Date | string | null
|
|
430
478
|
}
|
|
431
479
|
|
|
432
480
|
export type InvitationCodeCreateOrConnectWithoutUsesInput = {
|
|
@@ -452,6 +500,8 @@ export type InvitationCodeUpdateWithoutUsesInput = {
|
|
|
452
500
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
453
501
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
454
502
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
503
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
504
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
455
505
|
}
|
|
456
506
|
|
|
457
507
|
export type InvitationCodeUncheckedUpdateWithoutUsesInput = {
|
|
@@ -461,6 +511,8 @@ export type InvitationCodeUncheckedUpdateWithoutUsesInput = {
|
|
|
461
511
|
usedCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
462
512
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
463
513
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
514
|
+
createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
515
|
+
disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
464
516
|
}
|
|
465
517
|
|
|
466
518
|
|
|
@@ -501,6 +553,8 @@ export type InvitationCodeSelect<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
501
553
|
usedCount?: boolean
|
|
502
554
|
expiresAt?: boolean
|
|
503
555
|
createdAt?: boolean
|
|
556
|
+
createdById?: boolean
|
|
557
|
+
disabledAt?: boolean
|
|
504
558
|
uses?: boolean | Prisma.InvitationCode$usesArgs<ExtArgs>
|
|
505
559
|
_count?: boolean | Prisma.InvitationCodeCountOutputTypeDefaultArgs<ExtArgs>
|
|
506
560
|
}, ExtArgs["result"]["invitationCode"]>
|
|
@@ -512,6 +566,8 @@ export type InvitationCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Type
|
|
|
512
566
|
usedCount?: boolean
|
|
513
567
|
expiresAt?: boolean
|
|
514
568
|
createdAt?: boolean
|
|
569
|
+
createdById?: boolean
|
|
570
|
+
disabledAt?: boolean
|
|
515
571
|
}, ExtArgs["result"]["invitationCode"]>
|
|
516
572
|
|
|
517
573
|
export type InvitationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
@@ -521,6 +577,8 @@ export type InvitationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Type
|
|
|
521
577
|
usedCount?: boolean
|
|
522
578
|
expiresAt?: boolean
|
|
523
579
|
createdAt?: boolean
|
|
580
|
+
createdById?: boolean
|
|
581
|
+
disabledAt?: boolean
|
|
524
582
|
}, ExtArgs["result"]["invitationCode"]>
|
|
525
583
|
|
|
526
584
|
export type InvitationCodeSelectScalar = {
|
|
@@ -530,9 +588,11 @@ export type InvitationCodeSelectScalar = {
|
|
|
530
588
|
usedCount?: boolean
|
|
531
589
|
expiresAt?: boolean
|
|
532
590
|
createdAt?: boolean
|
|
591
|
+
createdById?: boolean
|
|
592
|
+
disabledAt?: boolean
|
|
533
593
|
}
|
|
534
594
|
|
|
535
|
-
export type InvitationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "maxUses" | "usedCount" | "expiresAt" | "createdAt", ExtArgs["result"]["invitationCode"]>
|
|
595
|
+
export type InvitationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "maxUses" | "usedCount" | "expiresAt" | "createdAt" | "createdById" | "disabledAt", ExtArgs["result"]["invitationCode"]>
|
|
536
596
|
export type InvitationCodeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
537
597
|
uses?: boolean | Prisma.InvitationCode$usesArgs<ExtArgs>
|
|
538
598
|
_count?: boolean | Prisma.InvitationCodeCountOutputTypeDefaultArgs<ExtArgs>
|
|
@@ -552,6 +612,8 @@ export type $InvitationCodePayload<ExtArgs extends runtime.Types.Extensions.Inte
|
|
|
552
612
|
usedCount: number
|
|
553
613
|
expiresAt: Date
|
|
554
614
|
createdAt: Date
|
|
615
|
+
createdById: string | null
|
|
616
|
+
disabledAt: Date | null
|
|
555
617
|
}, ExtArgs["result"]["invitationCode"]>
|
|
556
618
|
composites: {}
|
|
557
619
|
}
|
|
@@ -982,6 +1044,8 @@ export interface InvitationCodeFieldRefs {
|
|
|
982
1044
|
readonly usedCount: Prisma.FieldRef<"InvitationCode", 'Int'>
|
|
983
1045
|
readonly expiresAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
|
|
984
1046
|
readonly createdAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
|
|
1047
|
+
readonly createdById: Prisma.FieldRef<"InvitationCode", 'String'>
|
|
1048
|
+
readonly disabledAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
|
|
985
1049
|
}
|
|
986
1050
|
|
|
987
1051
|
|
|
@@ -41,6 +41,7 @@ export type NotificationPreferenceMaxAggregateOutputType = {
|
|
|
41
41
|
export type NotificationPreferenceCountAggregateOutputType = {
|
|
42
42
|
userId: number
|
|
43
43
|
categories: number
|
|
44
|
+
emailCategories: number
|
|
44
45
|
dndEnabled: number
|
|
45
46
|
dndStart: number
|
|
46
47
|
dndEnd: number
|
|
@@ -65,6 +66,7 @@ export type NotificationPreferenceMaxAggregateInputType = {
|
|
|
65
66
|
export type NotificationPreferenceCountAggregateInputType = {
|
|
66
67
|
userId?: true
|
|
67
68
|
categories?: true
|
|
69
|
+
emailCategories?: true
|
|
68
70
|
dndEnabled?: true
|
|
69
71
|
dndStart?: true
|
|
70
72
|
dndEnd?: true
|
|
@@ -146,6 +148,7 @@ export type NotificationPreferenceGroupByArgs<ExtArgs extends runtime.Types.Exte
|
|
|
146
148
|
export type NotificationPreferenceGroupByOutputType = {
|
|
147
149
|
userId: string
|
|
148
150
|
categories: runtime.JsonValue
|
|
151
|
+
emailCategories: runtime.JsonValue
|
|
149
152
|
dndEnabled: boolean
|
|
150
153
|
dndStart: string
|
|
151
154
|
dndEnd: string
|
|
@@ -175,6 +178,7 @@ export type NotificationPreferenceWhereInput = {
|
|
|
175
178
|
NOT?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[]
|
|
176
179
|
userId?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
177
180
|
categories?: Prisma.JsonFilter<"NotificationPreference">
|
|
181
|
+
emailCategories?: Prisma.JsonFilter<"NotificationPreference">
|
|
178
182
|
dndEnabled?: Prisma.BoolFilter<"NotificationPreference"> | boolean
|
|
179
183
|
dndStart?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
180
184
|
dndEnd?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
@@ -184,6 +188,7 @@ export type NotificationPreferenceWhereInput = {
|
|
|
184
188
|
export type NotificationPreferenceOrderByWithRelationInput = {
|
|
185
189
|
userId?: Prisma.SortOrder
|
|
186
190
|
categories?: Prisma.SortOrder
|
|
191
|
+
emailCategories?: Prisma.SortOrder
|
|
187
192
|
dndEnabled?: Prisma.SortOrder
|
|
188
193
|
dndStart?: Prisma.SortOrder
|
|
189
194
|
dndEnd?: Prisma.SortOrder
|
|
@@ -196,6 +201,7 @@ export type NotificationPreferenceWhereUniqueInput = Prisma.AtLeast<{
|
|
|
196
201
|
OR?: Prisma.NotificationPreferenceWhereInput[]
|
|
197
202
|
NOT?: Prisma.NotificationPreferenceWhereInput | Prisma.NotificationPreferenceWhereInput[]
|
|
198
203
|
categories?: Prisma.JsonFilter<"NotificationPreference">
|
|
204
|
+
emailCategories?: Prisma.JsonFilter<"NotificationPreference">
|
|
199
205
|
dndEnabled?: Prisma.BoolFilter<"NotificationPreference"> | boolean
|
|
200
206
|
dndStart?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
201
207
|
dndEnd?: Prisma.StringFilter<"NotificationPreference"> | string
|
|
@@ -205,6 +211,7 @@ export type NotificationPreferenceWhereUniqueInput = Prisma.AtLeast<{
|
|
|
205
211
|
export type NotificationPreferenceOrderByWithAggregationInput = {
|
|
206
212
|
userId?: Prisma.SortOrder
|
|
207
213
|
categories?: Prisma.SortOrder
|
|
214
|
+
emailCategories?: Prisma.SortOrder
|
|
208
215
|
dndEnabled?: Prisma.SortOrder
|
|
209
216
|
dndStart?: Prisma.SortOrder
|
|
210
217
|
dndEnd?: Prisma.SortOrder
|
|
@@ -219,6 +226,7 @@ export type NotificationPreferenceScalarWhereWithAggregatesInput = {
|
|
|
219
226
|
NOT?: Prisma.NotificationPreferenceScalarWhereWithAggregatesInput | Prisma.NotificationPreferenceScalarWhereWithAggregatesInput[]
|
|
220
227
|
userId?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
|
|
221
228
|
categories?: Prisma.JsonWithAggregatesFilter<"NotificationPreference">
|
|
229
|
+
emailCategories?: Prisma.JsonWithAggregatesFilter<"NotificationPreference">
|
|
222
230
|
dndEnabled?: Prisma.BoolWithAggregatesFilter<"NotificationPreference"> | boolean
|
|
223
231
|
dndStart?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
|
|
224
232
|
dndEnd?: Prisma.StringWithAggregatesFilter<"NotificationPreference"> | string
|
|
@@ -226,6 +234,7 @@ export type NotificationPreferenceScalarWhereWithAggregatesInput = {
|
|
|
226
234
|
|
|
227
235
|
export type NotificationPreferenceCreateInput = {
|
|
228
236
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
237
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
229
238
|
dndEnabled?: boolean
|
|
230
239
|
dndStart?: string
|
|
231
240
|
dndEnd?: string
|
|
@@ -235,6 +244,7 @@ export type NotificationPreferenceCreateInput = {
|
|
|
235
244
|
export type NotificationPreferenceUncheckedCreateInput = {
|
|
236
245
|
userId: string
|
|
237
246
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
247
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
238
248
|
dndEnabled?: boolean
|
|
239
249
|
dndStart?: string
|
|
240
250
|
dndEnd?: string
|
|
@@ -242,6 +252,7 @@ export type NotificationPreferenceUncheckedCreateInput = {
|
|
|
242
252
|
|
|
243
253
|
export type NotificationPreferenceUpdateInput = {
|
|
244
254
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
255
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
245
256
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
246
257
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
247
258
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -251,6 +262,7 @@ export type NotificationPreferenceUpdateInput = {
|
|
|
251
262
|
export type NotificationPreferenceUncheckedUpdateInput = {
|
|
252
263
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
253
264
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
265
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
254
266
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
255
267
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
256
268
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -259,6 +271,7 @@ export type NotificationPreferenceUncheckedUpdateInput = {
|
|
|
259
271
|
export type NotificationPreferenceCreateManyInput = {
|
|
260
272
|
userId: string
|
|
261
273
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
274
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
262
275
|
dndEnabled?: boolean
|
|
263
276
|
dndStart?: string
|
|
264
277
|
dndEnd?: string
|
|
@@ -266,6 +279,7 @@ export type NotificationPreferenceCreateManyInput = {
|
|
|
266
279
|
|
|
267
280
|
export type NotificationPreferenceUpdateManyMutationInput = {
|
|
268
281
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
282
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
269
283
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
270
284
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
271
285
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -274,6 +288,7 @@ export type NotificationPreferenceUpdateManyMutationInput = {
|
|
|
274
288
|
export type NotificationPreferenceUncheckedUpdateManyInput = {
|
|
275
289
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
276
290
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
291
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
277
292
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
278
293
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
279
294
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -287,6 +302,7 @@ export type NotificationPreferenceNullableScalarRelationFilter = {
|
|
|
287
302
|
export type NotificationPreferenceCountOrderByAggregateInput = {
|
|
288
303
|
userId?: Prisma.SortOrder
|
|
289
304
|
categories?: Prisma.SortOrder
|
|
305
|
+
emailCategories?: Prisma.SortOrder
|
|
290
306
|
dndEnabled?: Prisma.SortOrder
|
|
291
307
|
dndStart?: Prisma.SortOrder
|
|
292
308
|
dndEnd?: Prisma.SortOrder
|
|
@@ -340,6 +356,7 @@ export type NotificationPreferenceUncheckedUpdateOneWithoutUserNestedInput = {
|
|
|
340
356
|
|
|
341
357
|
export type NotificationPreferenceCreateWithoutUserInput = {
|
|
342
358
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
359
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
343
360
|
dndEnabled?: boolean
|
|
344
361
|
dndStart?: string
|
|
345
362
|
dndEnd?: string
|
|
@@ -347,6 +364,7 @@ export type NotificationPreferenceCreateWithoutUserInput = {
|
|
|
347
364
|
|
|
348
365
|
export type NotificationPreferenceUncheckedCreateWithoutUserInput = {
|
|
349
366
|
categories: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
367
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
350
368
|
dndEnabled?: boolean
|
|
351
369
|
dndStart?: string
|
|
352
370
|
dndEnd?: string
|
|
@@ -370,6 +388,7 @@ export type NotificationPreferenceUpdateToOneWithWhereWithoutUserInput = {
|
|
|
370
388
|
|
|
371
389
|
export type NotificationPreferenceUpdateWithoutUserInput = {
|
|
372
390
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
391
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
373
392
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
374
393
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
375
394
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -377,6 +396,7 @@ export type NotificationPreferenceUpdateWithoutUserInput = {
|
|
|
377
396
|
|
|
378
397
|
export type NotificationPreferenceUncheckedUpdateWithoutUserInput = {
|
|
379
398
|
categories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
399
|
+
emailCategories?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
380
400
|
dndEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
381
401
|
dndStart?: Prisma.StringFieldUpdateOperationsInput | string
|
|
382
402
|
dndEnd?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -387,6 +407,7 @@ export type NotificationPreferenceUncheckedUpdateWithoutUserInput = {
|
|
|
387
407
|
export type NotificationPreferenceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
388
408
|
userId?: boolean
|
|
389
409
|
categories?: boolean
|
|
410
|
+
emailCategories?: boolean
|
|
390
411
|
dndEnabled?: boolean
|
|
391
412
|
dndStart?: boolean
|
|
392
413
|
dndEnd?: boolean
|
|
@@ -396,6 +417,7 @@ export type NotificationPreferenceSelect<ExtArgs extends runtime.Types.Extension
|
|
|
396
417
|
export type NotificationPreferenceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
397
418
|
userId?: boolean
|
|
398
419
|
categories?: boolean
|
|
420
|
+
emailCategories?: boolean
|
|
399
421
|
dndEnabled?: boolean
|
|
400
422
|
dndStart?: boolean
|
|
401
423
|
dndEnd?: boolean
|
|
@@ -405,6 +427,7 @@ export type NotificationPreferenceSelectCreateManyAndReturn<ExtArgs extends runt
|
|
|
405
427
|
export type NotificationPreferenceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
406
428
|
userId?: boolean
|
|
407
429
|
categories?: boolean
|
|
430
|
+
emailCategories?: boolean
|
|
408
431
|
dndEnabled?: boolean
|
|
409
432
|
dndStart?: boolean
|
|
410
433
|
dndEnd?: boolean
|
|
@@ -414,12 +437,13 @@ export type NotificationPreferenceSelectUpdateManyAndReturn<ExtArgs extends runt
|
|
|
414
437
|
export type NotificationPreferenceSelectScalar = {
|
|
415
438
|
userId?: boolean
|
|
416
439
|
categories?: boolean
|
|
440
|
+
emailCategories?: boolean
|
|
417
441
|
dndEnabled?: boolean
|
|
418
442
|
dndStart?: boolean
|
|
419
443
|
dndEnd?: boolean
|
|
420
444
|
}
|
|
421
445
|
|
|
422
|
-
export type NotificationPreferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userId" | "categories" | "dndEnabled" | "dndStart" | "dndEnd", ExtArgs["result"]["notificationPreference"]>
|
|
446
|
+
export type NotificationPreferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"userId" | "categories" | "emailCategories" | "dndEnabled" | "dndStart" | "dndEnd", ExtArgs["result"]["notificationPreference"]>
|
|
423
447
|
export type NotificationPreferenceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
424
448
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
425
449
|
}
|
|
@@ -438,6 +462,7 @@ export type $NotificationPreferencePayload<ExtArgs extends runtime.Types.Extensi
|
|
|
438
462
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
439
463
|
userId: string
|
|
440
464
|
categories: runtime.JsonValue
|
|
465
|
+
emailCategories: runtime.JsonValue
|
|
441
466
|
dndEnabled: boolean
|
|
442
467
|
dndStart: string
|
|
443
468
|
dndEnd: string
|
|
@@ -867,6 +892,7 @@ export interface Prisma__NotificationPreferenceClient<T, Null = never, ExtArgs e
|
|
|
867
892
|
export interface NotificationPreferenceFieldRefs {
|
|
868
893
|
readonly userId: Prisma.FieldRef<"NotificationPreference", 'String'>
|
|
869
894
|
readonly categories: Prisma.FieldRef<"NotificationPreference", 'Json'>
|
|
895
|
+
readonly emailCategories: Prisma.FieldRef<"NotificationPreference", 'Json'>
|
|
870
896
|
readonly dndEnabled: Prisma.FieldRef<"NotificationPreference", 'Boolean'>
|
|
871
897
|
readonly dndStart: Prisma.FieldRef<"NotificationPreference", 'String'>
|
|
872
898
|
readonly dndEnd: Prisma.FieldRef<"NotificationPreference", 'String'>
|