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