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