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