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