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