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