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