@tiddlywiki/mws 0.1.14 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +41 -20
  2. package/dist/metafile-esm.json +1 -1
  3. package/dist/mws.js +40120 -20116
  4. package/dist/mws.js.map +1 -1
  5. package/mws.run.mjs +28 -8
  6. package/package.json +20 -33
  7. package/plugins/client/plugin.info +1 -1
  8. package/plugins/client/src/multiwikiclientadaptor.ts +6 -34
  9. package/plugins/client/src/mws.d.ts +2 -1
  10. package/plugins/client/src/new-multiwikiclientadaptor.ts +634 -0
  11. package/plugins/client/src/types.d.ts +2531 -1036
  12. package/plugins/client/tiddlers/managetiddleraction.js +0 -5
  13. package/plugins/client/tiddlers/syncer/new-multiwikiclientadaptor.js +432 -0
  14. package/plugins/client/tiddlers/syncer/syncer.js +123 -241
  15. package/plugins/client/tsconfig.json +5 -1
  16. package/prisma/browser.ts +2 -0
  17. package/prisma/client/browser.ts +84 -0
  18. package/prisma/client/client.ts +108 -0
  19. package/prisma/client/commonInputTypes.ts +598 -0
  20. package/prisma/client/enums.ts +42 -0
  21. package/prisma/client/internal/class.ts +326 -0
  22. package/prisma/client/internal/prismaNamespace.ts +1870 -0
  23. package/prisma/client/internal/prismaNamespaceBrowser.ts +259 -0
  24. package/prisma/client/models/Bag.ts +1701 -0
  25. package/prisma/client/models/BagPermission.ts +1284 -0
  26. package/prisma/client/models/Recipe.ts +1722 -0
  27. package/prisma/client/models/RecipeBag.ts +1518 -0
  28. package/prisma/client/models/RecipePermission.ts +1284 -0
  29. package/prisma/client/models/Roles.ts +1316 -0
  30. package/prisma/client/models/Sessions.ts +1344 -0
  31. package/prisma/client/models/Settings.ts +1093 -0
  32. package/prisma/client/models/Template.ts +1477 -0
  33. package/prisma/client/models/TemplatePermission.ts +1284 -0
  34. package/prisma/client/models/Tiddler.ts +1434 -0
  35. package/prisma/client/models/TiddlerEvent.ts +1360 -0
  36. package/prisma/client/models/Users.ts +1579 -0
  37. package/prisma/client/models.ts +24 -0
  38. package/prisma/client/pjtg.ts +183 -0
  39. package/prisma/index.ts +74 -0
  40. package/prisma/migrations/20260708160259_init/migration.sql +172 -0
  41. package/prisma/migrations-v1/migration_lock.toml +3 -0
  42. package/prisma/package.json +12 -0
  43. package/prisma/schema.prisma +147 -89
  44. package/prisma/types.ts +9 -0
  45. package/public/.default.html +1 -0
  46. package/public/admin-vanilla/fish.svg +399 -0
  47. package/public/admin-vanilla/fish2.svg +389 -0
  48. package/public/admin-vanilla/main-64WYHWYI.js +1791 -0
  49. package/public/admin-vanilla/main-64WYHWYI.js.map +7 -0
  50. package/public/admin-vanilla/main-LYDE4NDJ.css +1 -0
  51. package/public/admin-vanilla/normalize.css +349 -0
  52. package/public/admin-vanilla/polyfill-ADOI2A4V.js +2 -0
  53. package/public/admin-vanilla/polyfill-ADOI2A4V.js.map +7 -0
  54. package/public/{react-admin → admin-vanilla}/site.webmanifest +1 -1
  55. package/public/admin-vanilla.html +62 -0
  56. package/public/admin-vanilla.json +1 -0
  57. package/public/{react-admin → stats}/stats.html +5 -2
  58. package/public/{react-admin → stats}/stats.js +2 -1
  59. package/scripts/build-docs.sh +30 -0
  60. package/scripts/helpers.mjs +107 -0
  61. package/scripts/json.js +8 -0
  62. package/scripts/scripts.mjs +114 -0
  63. package/prisma/client/client.d.ts +0 -1
  64. package/prisma/client/client.js +0 -3
  65. package/prisma/client/default.d.ts +0 -1
  66. package/prisma/client/default.js +0 -3
  67. package/prisma/client/edge.d.ts +0 -1
  68. package/prisma/client/edge.js +0 -297
  69. package/prisma/client/index-browser.js +0 -275
  70. package/prisma/client/index.d.ts +0 -17770
  71. package/prisma/client/index.js +0 -324
  72. package/prisma/client/package.json +0 -173
  73. package/prisma/client/query_engine_bg.js +0 -811
  74. package/prisma/client/query_engine_bg.wasm +0 -0
  75. package/prisma/client/runtime/edge-esm.js +0 -10000
  76. package/prisma/client/runtime/edge.js +0 -10036
  77. package/prisma/client/runtime/index-browser.d.ts +0 -370
  78. package/prisma/client/runtime/index-browser.js +0 -2300
  79. package/prisma/client/runtime/library.d.ts +0 -3681
  80. package/prisma/client/runtime/library.js +0 -10604
  81. package/prisma/client/runtime/react-native.js +0 -10629
  82. package/prisma/client/runtime/wasm-compiler-edge.js +0 -11238
  83. package/prisma/client/runtime/wasm-engine-edge.js +0 -7801
  84. package/prisma/client/schema.prisma +0 -156
  85. package/prisma/client/wasm-edge-light-loader.mjs +0 -4
  86. package/prisma/client/wasm-worker-loader.mjs +0 -4
  87. package/prisma/client/wasm.d.ts +0 -1
  88. package/prisma/client/wasm.js +0 -304
  89. package/prisma/global.ts +0 -53
  90. package/public/react-admin/chunk-YALWN5OT.js +0 -2
  91. package/public/react-admin/esm-L4WLVWJN.js +0 -3
  92. package/public/react-admin/esm-L4WLVWJN.js.map +0 -7
  93. package/public/react-admin/esm-QMNGI3LF.js +0 -3
  94. package/public/react-admin/esm-QMNGI3LF.js.map +0 -7
  95. package/public/react-admin/index.html +0 -36
  96. package/public/react-admin/main.js +0 -268
  97. package/public/react-admin/main.js.map +0 -7
  98. package/public/react-admin/stats.json +0 -1
  99. package/scripts.mjs +0 -142
  100. /package/prisma/{migrations → migrations-v1}/20250606001949_init/migration.sql +0 -0
  101. /package/prisma/{migrations → migrations-v1}/20250613000526_remove_group/migration.sql +0 -0
  102. /package/prisma/{migrations → migrations-v1}/20250620014502_settings/migration.sql +0 -0
  103. /package/prisma/{migrations → migrations-v1}/20250707205229_recipes/migration.sql +0 -0
  104. /package/public/{react-admin → admin-vanilla}/android-chrome-192x192.png +0 -0
  105. /package/public/{react-admin → admin-vanilla}/android-chrome-512x512.png +0 -0
  106. /package/public/{react-admin → admin-vanilla}/apple-touch-icon.png +0 -0
  107. /package/public/{react-admin → admin-vanilla}/favicon-16x16.png +0 -0
  108. /package/public/{react-admin → admin-vanilla}/favicon-32x32.png +0 -0
  109. /package/public/{react-admin → admin-vanilla}/favicon.ico +0 -0
  110. /package/public/{react-admin → admin-vanilla}/favicon.png +0 -0
  111. /package/public/{react-admin/chunk-YALWN5OT.js.map → admin-vanilla/main-LYDE4NDJ.css.map} +0 -0
  112. /package/public/{react-admin → admin-vanilla}/missing-favicon.png +0 -0
  113. /package/public/{react-admin → admin-vanilla}/motovun-jack.jpg +0 -0
  114. /package/public/{react-admin → admin-vanilla}/mws-icon.png +0 -0
  115. /package/public/{react-admin → admin-vanilla}/vite.svg +0 -0
  116. /package/public/{react-admin → stats}/stats.css +0 -0
  117. /package/public/{react-admin → stats}/stats.svg +0 -0
@@ -0,0 +1,1344 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Sessions` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+
12
+ import type * as PJTG from '../pjtg';
13
+ import type * as runtime from "@prisma/client/runtime/client"
14
+ import type * as $Enums from "../enums.ts"
15
+ import type * as Prisma from "../internal/prismaNamespace.ts"
16
+
17
+ /**
18
+ * Model Sessions
19
+ *
20
+ */
21
+ export type SessionsModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionsPayload>
22
+
23
+ export type AggregateSessions = {
24
+ _count: SessionsCountAggregateOutputType | null
25
+ _min: SessionsMinAggregateOutputType | null
26
+ _max: SessionsMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type SessionsMinAggregateOutputType = {
30
+ session_id: string | null
31
+ created_at: Date | null
32
+ last_accessed: Date | null
33
+ session_key: string | null
34
+ user_id: string | null
35
+ }
36
+
37
+ export type SessionsMaxAggregateOutputType = {
38
+ session_id: string | null
39
+ created_at: Date | null
40
+ last_accessed: Date | null
41
+ session_key: string | null
42
+ user_id: string | null
43
+ }
44
+
45
+ export type SessionsCountAggregateOutputType = {
46
+ session_id: number
47
+ created_at: number
48
+ last_accessed: number
49
+ session_key: number
50
+ user_id: number
51
+ _all: number
52
+ }
53
+
54
+
55
+ export type SessionsMinAggregateInputType = {
56
+ session_id?: true
57
+ created_at?: true
58
+ last_accessed?: true
59
+ session_key?: true
60
+ user_id?: true
61
+ }
62
+
63
+ export type SessionsMaxAggregateInputType = {
64
+ session_id?: true
65
+ created_at?: true
66
+ last_accessed?: true
67
+ session_key?: true
68
+ user_id?: true
69
+ }
70
+
71
+ export type SessionsCountAggregateInputType = {
72
+ session_id?: true
73
+ created_at?: true
74
+ last_accessed?: true
75
+ session_key?: true
76
+ user_id?: true
77
+ _all?: true
78
+ }
79
+
80
+ export type SessionsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
81
+ /**
82
+ * Filter which Sessions to aggregate.
83
+ */
84
+ where?: Prisma.SessionsWhereInput
85
+ /**
86
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
87
+ *
88
+ * Determine the order of Sessions to fetch.
89
+ */
90
+ orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[]
91
+ /**
92
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
93
+ *
94
+ * Sets the start position
95
+ */
96
+ cursor?: Prisma.SessionsWhereUniqueInput
97
+ /**
98
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
99
+ *
100
+ * Take `±n` Sessions from the position of the cursor.
101
+ */
102
+ take?: number
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
105
+ *
106
+ * Skip the first `n` Sessions.
107
+ */
108
+ skip?: number
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
111
+ *
112
+ * Count returned Sessions
113
+ **/
114
+ _count?: true | SessionsCountAggregateInputType
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
117
+ *
118
+ * Select which fields to find the minimum value
119
+ **/
120
+ _min?: SessionsMinAggregateInputType
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
123
+ *
124
+ * Select which fields to find the maximum value
125
+ **/
126
+ _max?: SessionsMaxAggregateInputType
127
+ }
128
+
129
+ export type GetSessionsAggregateType<T extends SessionsAggregateArgs> = {
130
+ [P in keyof T & keyof AggregateSessions]: P extends '_count' | 'count'
131
+ ? T[P] extends true
132
+ ? number
133
+ : Prisma.GetScalarType<T[P], AggregateSessions[P]>
134
+ : Prisma.GetScalarType<T[P], AggregateSessions[P]>
135
+ }
136
+
137
+
138
+
139
+
140
+ export type SessionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
141
+ where?: Prisma.SessionsWhereInput
142
+ orderBy?: Prisma.SessionsOrderByWithAggregationInput | Prisma.SessionsOrderByWithAggregationInput[]
143
+ by: Prisma.SessionsScalarFieldEnum[] | Prisma.SessionsScalarFieldEnum
144
+ having?: Prisma.SessionsScalarWhereWithAggregatesInput
145
+ take?: number
146
+ skip?: number
147
+ _count?: SessionsCountAggregateInputType | true
148
+ _min?: SessionsMinAggregateInputType
149
+ _max?: SessionsMaxAggregateInputType
150
+ }
151
+
152
+ export type SessionsGroupByOutputType = {
153
+ session_id: string
154
+ created_at: Date
155
+ last_accessed: Date
156
+ session_key: string | null
157
+ user_id: string
158
+ _count: SessionsCountAggregateOutputType | null
159
+ _min: SessionsMinAggregateOutputType | null
160
+ _max: SessionsMaxAggregateOutputType | null
161
+ }
162
+
163
+ export type GetSessionsGroupByPayload<T extends SessionsGroupByArgs> = Prisma.PrismaPromise<
164
+ Array<
165
+ Prisma.PickEnumerable<SessionsGroupByOutputType, T['by']> &
166
+ {
167
+ [P in ((keyof T) & (keyof SessionsGroupByOutputType))]: P extends '_count'
168
+ ? T[P] extends boolean
169
+ ? number
170
+ : Prisma.GetScalarType<T[P], SessionsGroupByOutputType[P]>
171
+ : Prisma.GetScalarType<T[P], SessionsGroupByOutputType[P]>
172
+ }
173
+ >
174
+ >
175
+
176
+
177
+
178
+ export type SessionsWhereInput = {
179
+ AND?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[]
180
+ OR?: Prisma.SessionsWhereInput[]
181
+ NOT?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[]
182
+ session_id?: Prisma.StringFilter<"Sessions"> | string
183
+ created_at?: Prisma.DateTimeFilter<"Sessions"> | Date | string
184
+ last_accessed?: Prisma.DateTimeFilter<"Sessions"> | Date | string
185
+ session_key?: Prisma.StringNullableFilter<"Sessions"> | string | null
186
+ user_id?: Prisma.StringFilter<"Sessions"> | string
187
+ user?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
188
+ }
189
+
190
+ export type SessionsOrderByWithRelationInput = {
191
+ session_id?: Prisma.SortOrder
192
+ created_at?: Prisma.SortOrder
193
+ last_accessed?: Prisma.SortOrder
194
+ session_key?: Prisma.SortOrderInput | Prisma.SortOrder
195
+ user_id?: Prisma.SortOrder
196
+ user?: Prisma.UsersOrderByWithRelationInput
197
+ }
198
+
199
+ export type SessionsWhereUniqueInput = Prisma.AtLeast<{
200
+ session_id?: string
201
+ AND?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[]
202
+ OR?: Prisma.SessionsWhereInput[]
203
+ NOT?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[]
204
+ created_at?: Prisma.DateTimeFilter<"Sessions"> | Date | string
205
+ last_accessed?: Prisma.DateTimeFilter<"Sessions"> | Date | string
206
+ session_key?: Prisma.StringNullableFilter<"Sessions"> | string | null
207
+ user_id?: Prisma.StringFilter<"Sessions"> | string
208
+ user?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
209
+ }, "session_id">
210
+
211
+ export type SessionsOrderByWithAggregationInput = {
212
+ session_id?: Prisma.SortOrder
213
+ created_at?: Prisma.SortOrder
214
+ last_accessed?: Prisma.SortOrder
215
+ session_key?: Prisma.SortOrderInput | Prisma.SortOrder
216
+ user_id?: Prisma.SortOrder
217
+ _count?: Prisma.SessionsCountOrderByAggregateInput
218
+ _max?: Prisma.SessionsMaxOrderByAggregateInput
219
+ _min?: Prisma.SessionsMinOrderByAggregateInput
220
+ }
221
+
222
+ export type SessionsScalarWhereWithAggregatesInput = {
223
+ AND?: Prisma.SessionsScalarWhereWithAggregatesInput | Prisma.SessionsScalarWhereWithAggregatesInput[]
224
+ OR?: Prisma.SessionsScalarWhereWithAggregatesInput[]
225
+ NOT?: Prisma.SessionsScalarWhereWithAggregatesInput | Prisma.SessionsScalarWhereWithAggregatesInput[]
226
+ session_id?: Prisma.StringWithAggregatesFilter<"Sessions"> | string
227
+ created_at?: Prisma.DateTimeWithAggregatesFilter<"Sessions"> | Date | string
228
+ last_accessed?: Prisma.DateTimeWithAggregatesFilter<"Sessions"> | Date | string
229
+ session_key?: Prisma.StringNullableWithAggregatesFilter<"Sessions"> | string | null
230
+ user_id?: Prisma.StringWithAggregatesFilter<"Sessions"> | string
231
+ }
232
+
233
+ export type SessionsCreateInput = {
234
+ session_id: string
235
+ created_at?: Date | string
236
+ last_accessed: Date | string
237
+ session_key?: string | null
238
+ user: Prisma.UsersCreateNestedOneWithoutSessionsInput
239
+ }
240
+
241
+ export type SessionsUncheckedCreateInput = {
242
+ session_id: string
243
+ created_at?: Date | string
244
+ last_accessed: Date | string
245
+ session_key?: string | null
246
+ user_id: string
247
+ }
248
+
249
+ export type SessionsUpdateInput = {
250
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
251
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
252
+ last_accessed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
253
+ session_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
254
+ user?: Prisma.UsersUpdateOneRequiredWithoutSessionsNestedInput
255
+ }
256
+
257
+ export type SessionsUncheckedUpdateInput = {
258
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
259
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
260
+ last_accessed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
261
+ session_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
262
+ user_id?: Prisma.StringFieldUpdateOperationsInput | string
263
+ }
264
+
265
+ export type SessionsCreateManyInput = {
266
+ session_id: string
267
+ created_at?: Date | string
268
+ last_accessed: Date | string
269
+ session_key?: string | null
270
+ user_id: string
271
+ }
272
+
273
+ export type SessionsUpdateManyMutationInput = {
274
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
275
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
276
+ last_accessed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
277
+ session_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
278
+ }
279
+
280
+ export type SessionsUncheckedUpdateManyInput = {
281
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
282
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
283
+ last_accessed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
284
+ session_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
285
+ user_id?: Prisma.StringFieldUpdateOperationsInput | string
286
+ }
287
+
288
+ export type SessionsListRelationFilter = {
289
+ every?: Prisma.SessionsWhereInput
290
+ some?: Prisma.SessionsWhereInput
291
+ none?: Prisma.SessionsWhereInput
292
+ }
293
+
294
+ export type SessionsOrderByRelationAggregateInput = {
295
+ _count?: Prisma.SortOrder
296
+ }
297
+
298
+ export type SessionsCountOrderByAggregateInput = {
299
+ session_id?: Prisma.SortOrder
300
+ created_at?: Prisma.SortOrder
301
+ last_accessed?: Prisma.SortOrder
302
+ session_key?: Prisma.SortOrder
303
+ user_id?: Prisma.SortOrder
304
+ }
305
+
306
+ export type SessionsMaxOrderByAggregateInput = {
307
+ session_id?: Prisma.SortOrder
308
+ created_at?: Prisma.SortOrder
309
+ last_accessed?: Prisma.SortOrder
310
+ session_key?: Prisma.SortOrder
311
+ user_id?: Prisma.SortOrder
312
+ }
313
+
314
+ export type SessionsMinOrderByAggregateInput = {
315
+ session_id?: Prisma.SortOrder
316
+ created_at?: Prisma.SortOrder
317
+ last_accessed?: Prisma.SortOrder
318
+ session_key?: Prisma.SortOrder
319
+ user_id?: Prisma.SortOrder
320
+ }
321
+
322
+ export type SessionsCreateNestedManyWithoutUserInput = {
323
+ create?: Prisma.XOR<Prisma.SessionsCreateWithoutUserInput, Prisma.SessionsUncheckedCreateWithoutUserInput> | Prisma.SessionsCreateWithoutUserInput[] | Prisma.SessionsUncheckedCreateWithoutUserInput[]
324
+ connectOrCreate?: Prisma.SessionsCreateOrConnectWithoutUserInput | Prisma.SessionsCreateOrConnectWithoutUserInput[]
325
+ createMany?: Prisma.SessionsCreateManyUserInputEnvelope
326
+ connect?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
327
+ }
328
+
329
+ export type SessionsUncheckedCreateNestedManyWithoutUserInput = {
330
+ create?: Prisma.XOR<Prisma.SessionsCreateWithoutUserInput, Prisma.SessionsUncheckedCreateWithoutUserInput> | Prisma.SessionsCreateWithoutUserInput[] | Prisma.SessionsUncheckedCreateWithoutUserInput[]
331
+ connectOrCreate?: Prisma.SessionsCreateOrConnectWithoutUserInput | Prisma.SessionsCreateOrConnectWithoutUserInput[]
332
+ createMany?: Prisma.SessionsCreateManyUserInputEnvelope
333
+ connect?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
334
+ }
335
+
336
+ export type SessionsUpdateManyWithoutUserNestedInput = {
337
+ create?: Prisma.XOR<Prisma.SessionsCreateWithoutUserInput, Prisma.SessionsUncheckedCreateWithoutUserInput> | Prisma.SessionsCreateWithoutUserInput[] | Prisma.SessionsUncheckedCreateWithoutUserInput[]
338
+ connectOrCreate?: Prisma.SessionsCreateOrConnectWithoutUserInput | Prisma.SessionsCreateOrConnectWithoutUserInput[]
339
+ upsert?: Prisma.SessionsUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionsUpsertWithWhereUniqueWithoutUserInput[]
340
+ createMany?: Prisma.SessionsCreateManyUserInputEnvelope
341
+ set?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
342
+ disconnect?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
343
+ delete?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
344
+ connect?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
345
+ update?: Prisma.SessionsUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionsUpdateWithWhereUniqueWithoutUserInput[]
346
+ updateMany?: Prisma.SessionsUpdateManyWithWhereWithoutUserInput | Prisma.SessionsUpdateManyWithWhereWithoutUserInput[]
347
+ deleteMany?: Prisma.SessionsScalarWhereInput | Prisma.SessionsScalarWhereInput[]
348
+ }
349
+
350
+ export type SessionsUncheckedUpdateManyWithoutUserNestedInput = {
351
+ create?: Prisma.XOR<Prisma.SessionsCreateWithoutUserInput, Prisma.SessionsUncheckedCreateWithoutUserInput> | Prisma.SessionsCreateWithoutUserInput[] | Prisma.SessionsUncheckedCreateWithoutUserInput[]
352
+ connectOrCreate?: Prisma.SessionsCreateOrConnectWithoutUserInput | Prisma.SessionsCreateOrConnectWithoutUserInput[]
353
+ upsert?: Prisma.SessionsUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionsUpsertWithWhereUniqueWithoutUserInput[]
354
+ createMany?: Prisma.SessionsCreateManyUserInputEnvelope
355
+ set?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
356
+ disconnect?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
357
+ delete?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
358
+ connect?: Prisma.SessionsWhereUniqueInput | Prisma.SessionsWhereUniqueInput[]
359
+ update?: Prisma.SessionsUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionsUpdateWithWhereUniqueWithoutUserInput[]
360
+ updateMany?: Prisma.SessionsUpdateManyWithWhereWithoutUserInput | Prisma.SessionsUpdateManyWithWhereWithoutUserInput[]
361
+ deleteMany?: Prisma.SessionsScalarWhereInput | Prisma.SessionsScalarWhereInput[]
362
+ }
363
+
364
+ export type SessionsCreateWithoutUserInput = {
365
+ session_id: string
366
+ created_at?: Date | string
367
+ last_accessed: Date | string
368
+ session_key?: string | null
369
+ }
370
+
371
+ export type SessionsUncheckedCreateWithoutUserInput = {
372
+ session_id: string
373
+ created_at?: Date | string
374
+ last_accessed: Date | string
375
+ session_key?: string | null
376
+ }
377
+
378
+ export type SessionsCreateOrConnectWithoutUserInput = {
379
+ where: Prisma.SessionsWhereUniqueInput
380
+ create: Prisma.XOR<Prisma.SessionsCreateWithoutUserInput, Prisma.SessionsUncheckedCreateWithoutUserInput>
381
+ }
382
+
383
+ export type SessionsCreateManyUserInputEnvelope = {
384
+ data: Prisma.SessionsCreateManyUserInput | Prisma.SessionsCreateManyUserInput[]
385
+ }
386
+
387
+ export type SessionsUpsertWithWhereUniqueWithoutUserInput = {
388
+ where: Prisma.SessionsWhereUniqueInput
389
+ update: Prisma.XOR<Prisma.SessionsUpdateWithoutUserInput, Prisma.SessionsUncheckedUpdateWithoutUserInput>
390
+ create: Prisma.XOR<Prisma.SessionsCreateWithoutUserInput, Prisma.SessionsUncheckedCreateWithoutUserInput>
391
+ }
392
+
393
+ export type SessionsUpdateWithWhereUniqueWithoutUserInput = {
394
+ where: Prisma.SessionsWhereUniqueInput
395
+ data: Prisma.XOR<Prisma.SessionsUpdateWithoutUserInput, Prisma.SessionsUncheckedUpdateWithoutUserInput>
396
+ }
397
+
398
+ export type SessionsUpdateManyWithWhereWithoutUserInput = {
399
+ where: Prisma.SessionsScalarWhereInput
400
+ data: Prisma.XOR<Prisma.SessionsUpdateManyMutationInput, Prisma.SessionsUncheckedUpdateManyWithoutUserInput>
401
+ }
402
+
403
+ export type SessionsScalarWhereInput = {
404
+ AND?: Prisma.SessionsScalarWhereInput | Prisma.SessionsScalarWhereInput[]
405
+ OR?: Prisma.SessionsScalarWhereInput[]
406
+ NOT?: Prisma.SessionsScalarWhereInput | Prisma.SessionsScalarWhereInput[]
407
+ session_id?: Prisma.StringFilter<"Sessions"> | string
408
+ created_at?: Prisma.DateTimeFilter<"Sessions"> | Date | string
409
+ last_accessed?: Prisma.DateTimeFilter<"Sessions"> | Date | string
410
+ session_key?: Prisma.StringNullableFilter<"Sessions"> | string | null
411
+ user_id?: Prisma.StringFilter<"Sessions"> | string
412
+ }
413
+
414
+ export type SessionsCreateManyUserInput = {
415
+ session_id: string
416
+ created_at?: Date | string
417
+ last_accessed: Date | string
418
+ session_key?: string | null
419
+ }
420
+
421
+ export type SessionsUpdateWithoutUserInput = {
422
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
423
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
424
+ last_accessed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
425
+ session_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
426
+ }
427
+
428
+ export type SessionsUncheckedUpdateWithoutUserInput = {
429
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
430
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
431
+ last_accessed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
432
+ session_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
433
+ }
434
+
435
+ export type SessionsUncheckedUpdateManyWithoutUserInput = {
436
+ session_id?: Prisma.StringFieldUpdateOperationsInput | string
437
+ created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
438
+ last_accessed?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
439
+ session_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
440
+ }
441
+
442
+
443
+
444
+ export type SessionsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
445
+ session_id?: boolean
446
+ created_at?: boolean
447
+ last_accessed?: boolean
448
+ session_key?: boolean
449
+ user_id?: boolean
450
+ user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
451
+ }, ExtArgs["result"]["sessions"]>
452
+
453
+ export type SessionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
454
+ session_id?: boolean
455
+ created_at?: boolean
456
+ last_accessed?: boolean
457
+ session_key?: boolean
458
+ user_id?: boolean
459
+ user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
460
+ }, ExtArgs["result"]["sessions"]>
461
+
462
+ export type SessionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
463
+ session_id?: boolean
464
+ created_at?: boolean
465
+ last_accessed?: boolean
466
+ session_key?: boolean
467
+ user_id?: boolean
468
+ user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
469
+ }, ExtArgs["result"]["sessions"]>
470
+
471
+ export type SessionsSelectScalar = {
472
+ session_id?: boolean
473
+ created_at?: boolean
474
+ last_accessed?: boolean
475
+ session_key?: boolean
476
+ user_id?: boolean
477
+ }
478
+
479
+ export type SessionsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"session_id" | "created_at" | "last_accessed" | "session_key" | "user_id", ExtArgs["result"]["sessions"]>
480
+ export type SessionsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
481
+ user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
482
+ }
483
+ export type SessionsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
484
+ user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
485
+ }
486
+ export type SessionsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
487
+ user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
488
+ }
489
+
490
+ export type $SessionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
491
+ name: "Sessions"
492
+ objects: {
493
+ user: Prisma.$UsersPayload<ExtArgs>
494
+ }
495
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
496
+ session_id: string
497
+ created_at: Date
498
+ last_accessed: Date
499
+ session_key: string | null
500
+ user_id: string
501
+ }, ExtArgs["result"]["sessions"]>
502
+ composites: {}
503
+ }
504
+
505
+ export type SessionsGetPayload<S extends boolean | null | undefined | SessionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionsPayload, S>
506
+
507
+ export type SessionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
508
+ Omit<SessionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
509
+ select?: SessionsCountAggregateInputType | true
510
+ }
511
+
512
+ export interface SessionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
513
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Sessions'], meta: { name: 'Sessions' } }
514
+ /**
515
+ * Find zero or one Sessions that matches the filter.
516
+ * @param {SessionsFindUniqueArgs} args - Arguments to find a Sessions
517
+ * @example
518
+ * // Get one Sessions
519
+ * const sessions = await prisma.sessions.findUnique({
520
+ * where: {
521
+ * // ... provide filter here
522
+ * }
523
+ * })
524
+ */
525
+ findUnique<T extends SessionsFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
526
+
527
+ /**
528
+ * Find one Sessions that matches the filter or throw an error with `error.code='P2025'`
529
+ * if no matches were found.
530
+ * @param {SessionsFindUniqueOrThrowArgs} args - Arguments to find a Sessions
531
+ * @example
532
+ * // Get one Sessions
533
+ * const sessions = await prisma.sessions.findUniqueOrThrow({
534
+ * where: {
535
+ * // ... provide filter here
536
+ * }
537
+ * })
538
+ */
539
+ findUniqueOrThrow<T extends SessionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
540
+
541
+ /**
542
+ * Find the first Sessions that matches the filter.
543
+ * Note, that providing `undefined` is treated as the value not being there.
544
+ * Read more here: https://pris.ly/d/null-undefined
545
+ * @param {SessionsFindFirstArgs} args - Arguments to find a Sessions
546
+ * @example
547
+ * // Get one Sessions
548
+ * const sessions = await prisma.sessions.findFirst({
549
+ * where: {
550
+ * // ... provide filter here
551
+ * }
552
+ * })
553
+ */
554
+ findFirst<T extends SessionsFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
555
+
556
+ /**
557
+ * Find the first Sessions that matches the filter or
558
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
559
+ * Note, that providing `undefined` is treated as the value not being there.
560
+ * Read more here: https://pris.ly/d/null-undefined
561
+ * @param {SessionsFindFirstOrThrowArgs} args - Arguments to find a Sessions
562
+ * @example
563
+ * // Get one Sessions
564
+ * const sessions = await prisma.sessions.findFirstOrThrow({
565
+ * where: {
566
+ * // ... provide filter here
567
+ * }
568
+ * })
569
+ */
570
+ findFirstOrThrow<T extends SessionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
571
+
572
+ /**
573
+ * Find zero or more Sessions that matches the filter.
574
+ * Note, that providing `undefined` is treated as the value not being there.
575
+ * Read more here: https://pris.ly/d/null-undefined
576
+ * @param {SessionsFindManyArgs} args - Arguments to filter and select certain fields only.
577
+ * @example
578
+ * // Get all Sessions
579
+ * const sessions = await prisma.sessions.findMany()
580
+ *
581
+ * // Get first 10 Sessions
582
+ * const sessions = await prisma.sessions.findMany({ take: 10 })
583
+ *
584
+ * // Only select the `session_id`
585
+ * const sessionsWithSession_idOnly = await prisma.sessions.findMany({ select: { session_id: true } })
586
+ *
587
+ */
588
+ findMany<T extends SessionsFindManyArgs>(args?: Prisma.SelectSubset<T, SessionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
589
+
590
+ /**
591
+ * Create a Sessions.
592
+ * @param {SessionsCreateArgs} args - Arguments to create a Sessions.
593
+ * @example
594
+ * // Create one Sessions
595
+ * const Sessions = await prisma.sessions.create({
596
+ * data: {
597
+ * // ... data to create a Sessions
598
+ * }
599
+ * })
600
+ *
601
+ */
602
+ create<T extends SessionsCreateArgs>(args: Prisma.SelectSubset<T, SessionsCreateArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
603
+
604
+ /**
605
+ * Create many Sessions.
606
+ * @param {SessionsCreateManyArgs} args - Arguments to create many Sessions.
607
+ * @example
608
+ * // Create many Sessions
609
+ * const sessions = await prisma.sessions.createMany({
610
+ * data: [
611
+ * // ... provide data here
612
+ * ]
613
+ * })
614
+ *
615
+ */
616
+ createMany<T extends SessionsCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
617
+
618
+ /**
619
+ * Create many Sessions and returns the data saved in the database.
620
+ * @param {SessionsCreateManyAndReturnArgs} args - Arguments to create many Sessions.
621
+ * @example
622
+ * // Create many Sessions
623
+ * const sessions = await prisma.sessions.createManyAndReturn({
624
+ * data: [
625
+ * // ... provide data here
626
+ * ]
627
+ * })
628
+ *
629
+ * // Create many Sessions and only return the `session_id`
630
+ * const sessionsWithSession_idOnly = await prisma.sessions.createManyAndReturn({
631
+ * select: { session_id: true },
632
+ * data: [
633
+ * // ... provide data here
634
+ * ]
635
+ * })
636
+ * Note, that providing `undefined` is treated as the value not being there.
637
+ * Read more here: https://pris.ly/d/null-undefined
638
+ *
639
+ */
640
+ createManyAndReturn<T extends SessionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
641
+
642
+ /**
643
+ * Delete a Sessions.
644
+ * @param {SessionsDeleteArgs} args - Arguments to delete one Sessions.
645
+ * @example
646
+ * // Delete one Sessions
647
+ * const Sessions = await prisma.sessions.delete({
648
+ * where: {
649
+ * // ... filter to delete one Sessions
650
+ * }
651
+ * })
652
+ *
653
+ */
654
+ delete<T extends SessionsDeleteArgs>(args: Prisma.SelectSubset<T, SessionsDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
655
+
656
+ /**
657
+ * Update one Sessions.
658
+ * @param {SessionsUpdateArgs} args - Arguments to update one Sessions.
659
+ * @example
660
+ * // Update one Sessions
661
+ * const sessions = await prisma.sessions.update({
662
+ * where: {
663
+ * // ... provide filter here
664
+ * },
665
+ * data: {
666
+ * // ... provide data here
667
+ * }
668
+ * })
669
+ *
670
+ */
671
+ update<T extends SessionsUpdateArgs>(args: Prisma.SelectSubset<T, SessionsUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
672
+
673
+ /**
674
+ * Delete zero or more Sessions.
675
+ * @param {SessionsDeleteManyArgs} args - Arguments to filter Sessions to delete.
676
+ * @example
677
+ * // Delete a few Sessions
678
+ * const { count } = await prisma.sessions.deleteMany({
679
+ * where: {
680
+ * // ... provide filter here
681
+ * }
682
+ * })
683
+ *
684
+ */
685
+ deleteMany<T extends SessionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
686
+
687
+ /**
688
+ * Update zero or more Sessions.
689
+ * Note, that providing `undefined` is treated as the value not being there.
690
+ * Read more here: https://pris.ly/d/null-undefined
691
+ * @param {SessionsUpdateManyArgs} args - Arguments to update one or more rows.
692
+ * @example
693
+ * // Update many Sessions
694
+ * const sessions = await prisma.sessions.updateMany({
695
+ * where: {
696
+ * // ... provide filter here
697
+ * },
698
+ * data: {
699
+ * // ... provide data here
700
+ * }
701
+ * })
702
+ *
703
+ */
704
+ updateMany<T extends SessionsUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
705
+
706
+ /**
707
+ * Update zero or more Sessions and returns the data updated in the database.
708
+ * @param {SessionsUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
709
+ * @example
710
+ * // Update many Sessions
711
+ * const sessions = await prisma.sessions.updateManyAndReturn({
712
+ * where: {
713
+ * // ... provide filter here
714
+ * },
715
+ * data: [
716
+ * // ... provide data here
717
+ * ]
718
+ * })
719
+ *
720
+ * // Update zero or more Sessions and only return the `session_id`
721
+ * const sessionsWithSession_idOnly = await prisma.sessions.updateManyAndReturn({
722
+ * select: { session_id: true },
723
+ * where: {
724
+ * // ... provide filter here
725
+ * },
726
+ * data: [
727
+ * // ... provide data here
728
+ * ]
729
+ * })
730
+ * Note, that providing `undefined` is treated as the value not being there.
731
+ * Read more here: https://pris.ly/d/null-undefined
732
+ *
733
+ */
734
+ updateManyAndReturn<T extends SessionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
735
+
736
+ /**
737
+ * Create or update one Sessions.
738
+ * @param {SessionsUpsertArgs} args - Arguments to update or create a Sessions.
739
+ * @example
740
+ * // Update or create a Sessions
741
+ * const sessions = await prisma.sessions.upsert({
742
+ * create: {
743
+ * // ... data to create a Sessions
744
+ * },
745
+ * update: {
746
+ * // ... in case it already exists, update
747
+ * },
748
+ * where: {
749
+ * // ... the filter for the Sessions we want to update
750
+ * }
751
+ * })
752
+ */
753
+ upsert<T extends SessionsUpsertArgs>(args: Prisma.SelectSubset<T, SessionsUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
754
+
755
+
756
+ /**
757
+ * Count the number of Sessions.
758
+ * Note, that providing `undefined` is treated as the value not being there.
759
+ * Read more here: https://pris.ly/d/null-undefined
760
+ * @param {SessionsCountArgs} args - Arguments to filter Sessions to count.
761
+ * @example
762
+ * // Count the number of Sessions
763
+ * const count = await prisma.sessions.count({
764
+ * where: {
765
+ * // ... the filter for the Sessions we want to count
766
+ * }
767
+ * })
768
+ **/
769
+ count<T extends SessionsCountArgs>(
770
+ args?: Prisma.Subset<T, SessionsCountArgs>,
771
+ ): Prisma.PrismaPromise<
772
+ T extends runtime.Types.Utils.Record<'select', any>
773
+ ? T['select'] extends true
774
+ ? number
775
+ : Prisma.GetScalarType<T['select'], SessionsCountAggregateOutputType>
776
+ : number
777
+ >
778
+
779
+ /**
780
+ * Allows you to perform aggregations operations on a Sessions.
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 {SessionsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
784
+ * @example
785
+ * // Ordered by age ascending
786
+ * // Where email contains prisma.io
787
+ * // Limited to the 10 users
788
+ * const aggregations = await prisma.user.aggregate({
789
+ * _avg: {
790
+ * age: true,
791
+ * },
792
+ * where: {
793
+ * email: {
794
+ * contains: "prisma.io",
795
+ * },
796
+ * },
797
+ * orderBy: {
798
+ * age: "asc",
799
+ * },
800
+ * take: 10,
801
+ * })
802
+ **/
803
+ aggregate<T extends SessionsAggregateArgs>(args: Prisma.Subset<T, SessionsAggregateArgs>): Prisma.PrismaPromise<GetSessionsAggregateType<T>>
804
+
805
+ /**
806
+ * Group by Sessions.
807
+ * Note, that providing `undefined` is treated as the value not being there.
808
+ * Read more here: https://pris.ly/d/null-undefined
809
+ * @param {SessionsGroupByArgs} args - Group by arguments.
810
+ * @example
811
+ * // Group by city, order by createdAt, get count
812
+ * const result = await prisma.user.groupBy({
813
+ * by: ['city', 'createdAt'],
814
+ * orderBy: {
815
+ * createdAt: true
816
+ * },
817
+ * _count: {
818
+ * _all: true
819
+ * },
820
+ * })
821
+ *
822
+ **/
823
+ groupBy<
824
+ T extends SessionsGroupByArgs,
825
+ HasSelectOrTake extends Prisma.Or<
826
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
827
+ Prisma.Extends<'take', Prisma.Keys<T>>
828
+ >,
829
+ OrderByArg extends Prisma.True extends HasSelectOrTake
830
+ ? { orderBy: SessionsGroupByArgs['orderBy'] }
831
+ : { orderBy?: SessionsGroupByArgs['orderBy'] },
832
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
833
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
834
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
835
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
836
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
837
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
838
+ InputErrors extends ByEmpty extends Prisma.True
839
+ ? `Error: "by" must not be empty.`
840
+ : HavingValid extends Prisma.False
841
+ ? {
842
+ [P in HavingFields]: P extends ByFields
843
+ ? never
844
+ : P extends string
845
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
846
+ : [
847
+ Error,
848
+ 'Field ',
849
+ P,
850
+ ` in "having" needs to be provided in "by"`,
851
+ ]
852
+ }[HavingFields]
853
+ : 'take' extends Prisma.Keys<T>
854
+ ? 'orderBy' extends Prisma.Keys<T>
855
+ ? ByValid extends Prisma.True
856
+ ? {}
857
+ : {
858
+ [P in OrderFields]: P extends ByFields
859
+ ? never
860
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
861
+ }[OrderFields]
862
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
863
+ : 'skip' extends Prisma.Keys<T>
864
+ ? 'orderBy' extends Prisma.Keys<T>
865
+ ? ByValid extends Prisma.True
866
+ ? {}
867
+ : {
868
+ [P in OrderFields]: P extends ByFields
869
+ ? never
870
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
871
+ }[OrderFields]
872
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
873
+ : ByValid extends Prisma.True
874
+ ? {}
875
+ : {
876
+ [P in OrderFields]: P extends ByFields
877
+ ? never
878
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
879
+ }[OrderFields]
880
+ >(args: Prisma.SubsetIntersection<T, SessionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
881
+ /**
882
+ * Fields of the Sessions model
883
+ */
884
+ readonly fields: SessionsFieldRefs;
885
+ }
886
+
887
+ /**
888
+ * The delegate class that acts as a "Promise-like" for Sessions.
889
+ * Why is this prefixed with `Prisma__`?
890
+ * Because we want to prevent naming conflicts as mentioned in
891
+ * https://github.com/prisma/prisma-client-js/issues/707
892
+ */
893
+ export interface Prisma__SessionsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
894
+ readonly [Symbol.toStringTag]: "PrismaPromise"
895
+ user<T extends Prisma.UsersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UsersDefaultArgs<ExtArgs>>): Prisma.Prisma__UsersClient<runtime.Types.Result.GetResult<Prisma.$UsersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
896
+ /**
897
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
898
+ * @param onfulfilled The callback to execute when the Promise is resolved.
899
+ * @param onrejected The callback to execute when the Promise is rejected.
900
+ * @returns A Promise for the completion of which ever callback is executed.
901
+ */
902
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
903
+ /**
904
+ * Attaches a callback for only the rejection of the Promise.
905
+ * @param onrejected The callback to execute when the Promise is rejected.
906
+ * @returns A Promise for the completion of the callback.
907
+ */
908
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
909
+ /**
910
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
911
+ * resolved value cannot be modified from the callback.
912
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
913
+ * @returns A Promise for the completion of the callback.
914
+ */
915
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
916
+ }
917
+
918
+
919
+
920
+
921
+ /**
922
+ * Fields of the Sessions model
923
+ */
924
+ export interface SessionsFieldRefs {
925
+ readonly session_id: Prisma.FieldRef<"Sessions", 'String'>
926
+ readonly created_at: Prisma.FieldRef<"Sessions", 'DateTime'>
927
+ readonly last_accessed: Prisma.FieldRef<"Sessions", 'DateTime'>
928
+ readonly session_key: Prisma.FieldRef<"Sessions", 'String'>
929
+ readonly user_id: Prisma.FieldRef<"Sessions", 'String'>
930
+ }
931
+
932
+
933
+ // Custom InputTypes
934
+ /**
935
+ * Sessions findUnique
936
+ */
937
+ export type SessionsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
938
+ /**
939
+ * Select specific fields to fetch from the Sessions
940
+ */
941
+ select?: Prisma.SessionsSelect<ExtArgs> | null
942
+ /**
943
+ * Omit specific fields from the Sessions
944
+ */
945
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
946
+ /**
947
+ * Choose, which related nodes to fetch as well
948
+ */
949
+ include?: Prisma.SessionsInclude<ExtArgs> | null
950
+ /**
951
+ * Filter, which Sessions to fetch.
952
+ */
953
+ where: Prisma.SessionsWhereUniqueInput
954
+ }
955
+
956
+ /**
957
+ * Sessions findUniqueOrThrow
958
+ */
959
+ export type SessionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
960
+ /**
961
+ * Select specific fields to fetch from the Sessions
962
+ */
963
+ select?: Prisma.SessionsSelect<ExtArgs> | null
964
+ /**
965
+ * Omit specific fields from the Sessions
966
+ */
967
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
968
+ /**
969
+ * Choose, which related nodes to fetch as well
970
+ */
971
+ include?: Prisma.SessionsInclude<ExtArgs> | null
972
+ /**
973
+ * Filter, which Sessions to fetch.
974
+ */
975
+ where: Prisma.SessionsWhereUniqueInput
976
+ }
977
+
978
+ /**
979
+ * Sessions findFirst
980
+ */
981
+ export type SessionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
982
+ /**
983
+ * Select specific fields to fetch from the Sessions
984
+ */
985
+ select?: Prisma.SessionsSelect<ExtArgs> | null
986
+ /**
987
+ * Omit specific fields from the Sessions
988
+ */
989
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
990
+ /**
991
+ * Choose, which related nodes to fetch as well
992
+ */
993
+ include?: Prisma.SessionsInclude<ExtArgs> | null
994
+ /**
995
+ * Filter, which Sessions to fetch.
996
+ */
997
+ where?: Prisma.SessionsWhereInput
998
+ /**
999
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1000
+ *
1001
+ * Determine the order of Sessions to fetch.
1002
+ */
1003
+ orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[]
1004
+ /**
1005
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1006
+ *
1007
+ * Sets the position for searching for Sessions.
1008
+ */
1009
+ cursor?: Prisma.SessionsWhereUniqueInput
1010
+ /**
1011
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1012
+ *
1013
+ * Take `±n` Sessions from the position of the cursor.
1014
+ */
1015
+ take?: number
1016
+ /**
1017
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1018
+ *
1019
+ * Skip the first `n` Sessions.
1020
+ */
1021
+ skip?: number
1022
+ /**
1023
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1024
+ *
1025
+ * Filter by unique combinations of Sessions.
1026
+ */
1027
+ distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[]
1028
+ }
1029
+
1030
+ /**
1031
+ * Sessions findFirstOrThrow
1032
+ */
1033
+ export type SessionsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1034
+ /**
1035
+ * Select specific fields to fetch from the Sessions
1036
+ */
1037
+ select?: Prisma.SessionsSelect<ExtArgs> | null
1038
+ /**
1039
+ * Omit specific fields from the Sessions
1040
+ */
1041
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1042
+ /**
1043
+ * Choose, which related nodes to fetch as well
1044
+ */
1045
+ include?: Prisma.SessionsInclude<ExtArgs> | null
1046
+ /**
1047
+ * Filter, which Sessions to fetch.
1048
+ */
1049
+ where?: Prisma.SessionsWhereInput
1050
+ /**
1051
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1052
+ *
1053
+ * Determine the order of Sessions to fetch.
1054
+ */
1055
+ orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[]
1056
+ /**
1057
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1058
+ *
1059
+ * Sets the position for searching for Sessions.
1060
+ */
1061
+ cursor?: Prisma.SessionsWhereUniqueInput
1062
+ /**
1063
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1064
+ *
1065
+ * Take `±n` Sessions from the position of the cursor.
1066
+ */
1067
+ take?: number
1068
+ /**
1069
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1070
+ *
1071
+ * Skip the first `n` Sessions.
1072
+ */
1073
+ skip?: number
1074
+ /**
1075
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1076
+ *
1077
+ * Filter by unique combinations of Sessions.
1078
+ */
1079
+ distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[]
1080
+ }
1081
+
1082
+ /**
1083
+ * Sessions findMany
1084
+ */
1085
+ export type SessionsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1086
+ /**
1087
+ * Select specific fields to fetch from the Sessions
1088
+ */
1089
+ select?: Prisma.SessionsSelect<ExtArgs> | null
1090
+ /**
1091
+ * Omit specific fields from the Sessions
1092
+ */
1093
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1094
+ /**
1095
+ * Choose, which related nodes to fetch as well
1096
+ */
1097
+ include?: Prisma.SessionsInclude<ExtArgs> | null
1098
+ /**
1099
+ * Filter, which Sessions to fetch.
1100
+ */
1101
+ where?: Prisma.SessionsWhereInput
1102
+ /**
1103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1104
+ *
1105
+ * Determine the order of Sessions to fetch.
1106
+ */
1107
+ orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[]
1108
+ /**
1109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1110
+ *
1111
+ * Sets the position for listing Sessions.
1112
+ */
1113
+ cursor?: Prisma.SessionsWhereUniqueInput
1114
+ /**
1115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1116
+ *
1117
+ * Take `±n` Sessions from the position of the cursor.
1118
+ */
1119
+ take?: number
1120
+ /**
1121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1122
+ *
1123
+ * Skip the first `n` Sessions.
1124
+ */
1125
+ skip?: number
1126
+ /**
1127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1128
+ *
1129
+ * Filter by unique combinations of Sessions.
1130
+ */
1131
+ distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[]
1132
+ }
1133
+
1134
+ /**
1135
+ * Sessions create
1136
+ */
1137
+ export type SessionsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1138
+ /**
1139
+ * Select specific fields to fetch from the Sessions
1140
+ */
1141
+ select?: Prisma.SessionsSelect<ExtArgs> | null
1142
+ /**
1143
+ * Omit specific fields from the Sessions
1144
+ */
1145
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1146
+ /**
1147
+ * Choose, which related nodes to fetch as well
1148
+ */
1149
+ include?: Prisma.SessionsInclude<ExtArgs> | null
1150
+ /**
1151
+ * The data needed to create a Sessions.
1152
+ */
1153
+ data: Prisma.XOR<Prisma.SessionsCreateInput, Prisma.SessionsUncheckedCreateInput>
1154
+ }
1155
+
1156
+ /**
1157
+ * Sessions createMany
1158
+ */
1159
+ export type SessionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1160
+ /**
1161
+ * The data used to create many Sessions.
1162
+ */
1163
+ data: Prisma.SessionsCreateManyInput | Prisma.SessionsCreateManyInput[]
1164
+ }
1165
+
1166
+ /**
1167
+ * Sessions createManyAndReturn
1168
+ */
1169
+ export type SessionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1170
+ /**
1171
+ * Select specific fields to fetch from the Sessions
1172
+ */
1173
+ select?: Prisma.SessionsSelectCreateManyAndReturn<ExtArgs> | null
1174
+ /**
1175
+ * Omit specific fields from the Sessions
1176
+ */
1177
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1178
+ /**
1179
+ * The data used to create many Sessions.
1180
+ */
1181
+ data: Prisma.SessionsCreateManyInput | Prisma.SessionsCreateManyInput[]
1182
+ /**
1183
+ * Choose, which related nodes to fetch as well
1184
+ */
1185
+ include?: Prisma.SessionsIncludeCreateManyAndReturn<ExtArgs> | null
1186
+ }
1187
+
1188
+ /**
1189
+ * Sessions update
1190
+ */
1191
+ export type SessionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1192
+ /**
1193
+ * Select specific fields to fetch from the Sessions
1194
+ */
1195
+ select?: Prisma.SessionsSelect<ExtArgs> | null
1196
+ /**
1197
+ * Omit specific fields from the Sessions
1198
+ */
1199
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1200
+ /**
1201
+ * Choose, which related nodes to fetch as well
1202
+ */
1203
+ include?: Prisma.SessionsInclude<ExtArgs> | null
1204
+ /**
1205
+ * The data needed to update a Sessions.
1206
+ */
1207
+ data: Prisma.XOR<Prisma.SessionsUpdateInput, Prisma.SessionsUncheckedUpdateInput>
1208
+ /**
1209
+ * Choose, which Sessions to update.
1210
+ */
1211
+ where: Prisma.SessionsWhereUniqueInput
1212
+ }
1213
+
1214
+ /**
1215
+ * Sessions updateMany
1216
+ */
1217
+ export type SessionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1218
+ /**
1219
+ * The data used to update Sessions.
1220
+ */
1221
+ data: Prisma.XOR<Prisma.SessionsUpdateManyMutationInput, Prisma.SessionsUncheckedUpdateManyInput>
1222
+ /**
1223
+ * Filter which Sessions to update
1224
+ */
1225
+ where?: Prisma.SessionsWhereInput
1226
+ /**
1227
+ * Limit how many Sessions to update.
1228
+ */
1229
+ limit?: number
1230
+ }
1231
+
1232
+ /**
1233
+ * Sessions updateManyAndReturn
1234
+ */
1235
+ export type SessionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1236
+ /**
1237
+ * Select specific fields to fetch from the Sessions
1238
+ */
1239
+ select?: Prisma.SessionsSelectUpdateManyAndReturn<ExtArgs> | null
1240
+ /**
1241
+ * Omit specific fields from the Sessions
1242
+ */
1243
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1244
+ /**
1245
+ * The data used to update Sessions.
1246
+ */
1247
+ data: Prisma.XOR<Prisma.SessionsUpdateManyMutationInput, Prisma.SessionsUncheckedUpdateManyInput>
1248
+ /**
1249
+ * Filter which Sessions to update
1250
+ */
1251
+ where?: Prisma.SessionsWhereInput
1252
+ /**
1253
+ * Limit how many Sessions to update.
1254
+ */
1255
+ limit?: number
1256
+ /**
1257
+ * Choose, which related nodes to fetch as well
1258
+ */
1259
+ include?: Prisma.SessionsIncludeUpdateManyAndReturn<ExtArgs> | null
1260
+ }
1261
+
1262
+ /**
1263
+ * Sessions upsert
1264
+ */
1265
+ export type SessionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1266
+ /**
1267
+ * Select specific fields to fetch from the Sessions
1268
+ */
1269
+ select?: Prisma.SessionsSelect<ExtArgs> | null
1270
+ /**
1271
+ * Omit specific fields from the Sessions
1272
+ */
1273
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1274
+ /**
1275
+ * Choose, which related nodes to fetch as well
1276
+ */
1277
+ include?: Prisma.SessionsInclude<ExtArgs> | null
1278
+ /**
1279
+ * The filter to search for the Sessions to update in case it exists.
1280
+ */
1281
+ where: Prisma.SessionsWhereUniqueInput
1282
+ /**
1283
+ * In case the Sessions found by the `where` argument doesn't exist, create a new Sessions with this data.
1284
+ */
1285
+ create: Prisma.XOR<Prisma.SessionsCreateInput, Prisma.SessionsUncheckedCreateInput>
1286
+ /**
1287
+ * In case the Sessions was found with the provided `where` argument, update it with this data.
1288
+ */
1289
+ update: Prisma.XOR<Prisma.SessionsUpdateInput, Prisma.SessionsUncheckedUpdateInput>
1290
+ }
1291
+
1292
+ /**
1293
+ * Sessions delete
1294
+ */
1295
+ export type SessionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1296
+ /**
1297
+ * Select specific fields to fetch from the Sessions
1298
+ */
1299
+ select?: Prisma.SessionsSelect<ExtArgs> | null
1300
+ /**
1301
+ * Omit specific fields from the Sessions
1302
+ */
1303
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1304
+ /**
1305
+ * Choose, which related nodes to fetch as well
1306
+ */
1307
+ include?: Prisma.SessionsInclude<ExtArgs> | null
1308
+ /**
1309
+ * Filter which Sessions to delete.
1310
+ */
1311
+ where: Prisma.SessionsWhereUniqueInput
1312
+ }
1313
+
1314
+ /**
1315
+ * Sessions deleteMany
1316
+ */
1317
+ export type SessionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
+ /**
1319
+ * Filter which Sessions to delete
1320
+ */
1321
+ where?: Prisma.SessionsWhereInput
1322
+ /**
1323
+ * Limit how many Sessions to delete.
1324
+ */
1325
+ limit?: number
1326
+ }
1327
+
1328
+ /**
1329
+ * Sessions without action
1330
+ */
1331
+ export type SessionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1332
+ /**
1333
+ * Select specific fields to fetch from the Sessions
1334
+ */
1335
+ select?: Prisma.SessionsSelect<ExtArgs> | null
1336
+ /**
1337
+ * Omit specific fields from the Sessions
1338
+ */
1339
+ omit?: Prisma.SessionsOmit<ExtArgs> | null
1340
+ /**
1341
+ * Choose, which related nodes to fetch as well
1342
+ */
1343
+ include?: Prisma.SessionsInclude<ExtArgs> | null
1344
+ }