@cerbos/orm-prisma 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +17 -11
- package/src/generated/prisma/browser.ts +59 -0
- package/src/generated/prisma/client.ts +79 -0
- package/src/generated/prisma/commonInputTypes.ts +248 -0
- package/src/generated/prisma/enums.ts +15 -0
- package/src/generated/prisma/internal/class.ts +260 -0
- package/src/generated/prisma/internal/prismaNamespace.ts +1333 -0
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +168 -0
- package/src/generated/prisma/models/Category.ts +1407 -0
- package/src/generated/prisma/models/Label.ts +1271 -0
- package/src/generated/prisma/models/NestedResource.ts +1557 -0
- package/src/generated/prisma/models/NextLevelNestedResource.ts +1332 -0
- package/src/generated/prisma/models/Resource.ts +2131 -0
- package/src/generated/prisma/models/SubCategory.ts +1407 -0
- package/src/generated/prisma/models/Tag.ts +1271 -0
- package/src/generated/prisma/models/User.ts +1498 -0
- package/src/generated/prisma/models.ts +19 -0
- package/src/generated/prisma-v6/client.d.ts +1 -0
- package/src/generated/prisma-v6/default.d.ts +1 -0
- package/src/generated/prisma-v6/edge.d.ts +1 -0
- package/src/generated/prisma-v6/index.d.ts +13639 -0
- package/src/generated/prisma-v6/runtime/index-browser.d.ts +370 -0
- package/src/generated/prisma-v6/runtime/library.d.ts +3982 -0
- package/src/generated/prisma-v6/wasm.d.ts +1 -0
- package/src/index.test.ts +1 -2
- package/src/test-setup.v6.ts +5 -0
- package/src/test-setup.v7.ts +7 -0
- package/lib/index.test.d.ts +0 -2
- package/lib/index.test.d.ts.map +0 -1
- package/lib/index.test.js +0 -4093
- package/lib/index.test.js.map +0 -1
|
@@ -0,0 +1,2131 @@
|
|
|
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 `Resource` 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 Resource
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type ResourceModel = runtime.Types.Result.DefaultSelection<Prisma.$ResourcePayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateResource = {
|
|
22
|
+
_count: ResourceCountAggregateOutputType | null
|
|
23
|
+
_avg: ResourceAvgAggregateOutputType | null
|
|
24
|
+
_sum: ResourceSumAggregateOutputType | null
|
|
25
|
+
_min: ResourceMinAggregateOutputType | null
|
|
26
|
+
_max: ResourceMaxAggregateOutputType | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type ResourceAvgAggregateOutputType = {
|
|
30
|
+
aNumber: number | null
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type ResourceSumAggregateOutputType = {
|
|
34
|
+
aNumber: number | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type ResourceMinAggregateOutputType = {
|
|
38
|
+
id: string | null
|
|
39
|
+
aString: string | null
|
|
40
|
+
aNumber: number | null
|
|
41
|
+
aBool: boolean | null
|
|
42
|
+
creatorId: string | null
|
|
43
|
+
nestedResourceId: string | null
|
|
44
|
+
aOptionalString: string | null
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type ResourceMaxAggregateOutputType = {
|
|
48
|
+
id: string | null
|
|
49
|
+
aString: string | null
|
|
50
|
+
aNumber: number | null
|
|
51
|
+
aBool: boolean | null
|
|
52
|
+
creatorId: string | null
|
|
53
|
+
nestedResourceId: string | null
|
|
54
|
+
aOptionalString: string | null
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ResourceCountAggregateOutputType = {
|
|
58
|
+
id: number
|
|
59
|
+
aString: number
|
|
60
|
+
aNumber: number
|
|
61
|
+
aBool: number
|
|
62
|
+
creatorId: number
|
|
63
|
+
nestedResourceId: number
|
|
64
|
+
aOptionalString: number
|
|
65
|
+
_all: number
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
export type ResourceAvgAggregateInputType = {
|
|
70
|
+
aNumber?: true
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type ResourceSumAggregateInputType = {
|
|
74
|
+
aNumber?: true
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type ResourceMinAggregateInputType = {
|
|
78
|
+
id?: true
|
|
79
|
+
aString?: true
|
|
80
|
+
aNumber?: true
|
|
81
|
+
aBool?: true
|
|
82
|
+
creatorId?: true
|
|
83
|
+
nestedResourceId?: true
|
|
84
|
+
aOptionalString?: true
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type ResourceMaxAggregateInputType = {
|
|
88
|
+
id?: true
|
|
89
|
+
aString?: true
|
|
90
|
+
aNumber?: true
|
|
91
|
+
aBool?: true
|
|
92
|
+
creatorId?: true
|
|
93
|
+
nestedResourceId?: true
|
|
94
|
+
aOptionalString?: true
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type ResourceCountAggregateInputType = {
|
|
98
|
+
id?: true
|
|
99
|
+
aString?: true
|
|
100
|
+
aNumber?: true
|
|
101
|
+
aBool?: true
|
|
102
|
+
creatorId?: true
|
|
103
|
+
nestedResourceId?: true
|
|
104
|
+
aOptionalString?: true
|
|
105
|
+
_all?: true
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type ResourceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
109
|
+
/**
|
|
110
|
+
* Filter which Resource to aggregate.
|
|
111
|
+
*/
|
|
112
|
+
where?: Prisma.ResourceWhereInput
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
115
|
+
*
|
|
116
|
+
* Determine the order of Resources to fetch.
|
|
117
|
+
*/
|
|
118
|
+
orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[]
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
121
|
+
*
|
|
122
|
+
* Sets the start position
|
|
123
|
+
*/
|
|
124
|
+
cursor?: Prisma.ResourceWhereUniqueInput
|
|
125
|
+
/**
|
|
126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
127
|
+
*
|
|
128
|
+
* Take `±n` Resources from the position of the cursor.
|
|
129
|
+
*/
|
|
130
|
+
take?: number
|
|
131
|
+
/**
|
|
132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
133
|
+
*
|
|
134
|
+
* Skip the first `n` Resources.
|
|
135
|
+
*/
|
|
136
|
+
skip?: number
|
|
137
|
+
/**
|
|
138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
139
|
+
*
|
|
140
|
+
* Count returned Resources
|
|
141
|
+
**/
|
|
142
|
+
_count?: true | ResourceCountAggregateInputType
|
|
143
|
+
/**
|
|
144
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
145
|
+
*
|
|
146
|
+
* Select which fields to average
|
|
147
|
+
**/
|
|
148
|
+
_avg?: ResourceAvgAggregateInputType
|
|
149
|
+
/**
|
|
150
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
151
|
+
*
|
|
152
|
+
* Select which fields to sum
|
|
153
|
+
**/
|
|
154
|
+
_sum?: ResourceSumAggregateInputType
|
|
155
|
+
/**
|
|
156
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
157
|
+
*
|
|
158
|
+
* Select which fields to find the minimum value
|
|
159
|
+
**/
|
|
160
|
+
_min?: ResourceMinAggregateInputType
|
|
161
|
+
/**
|
|
162
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
163
|
+
*
|
|
164
|
+
* Select which fields to find the maximum value
|
|
165
|
+
**/
|
|
166
|
+
_max?: ResourceMaxAggregateInputType
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type GetResourceAggregateType<T extends ResourceAggregateArgs> = {
|
|
170
|
+
[P in keyof T & keyof AggregateResource]: P extends '_count' | 'count'
|
|
171
|
+
? T[P] extends true
|
|
172
|
+
? number
|
|
173
|
+
: Prisma.GetScalarType<T[P], AggregateResource[P]>
|
|
174
|
+
: Prisma.GetScalarType<T[P], AggregateResource[P]>
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
export type ResourceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
181
|
+
where?: Prisma.ResourceWhereInput
|
|
182
|
+
orderBy?: Prisma.ResourceOrderByWithAggregationInput | Prisma.ResourceOrderByWithAggregationInput[]
|
|
183
|
+
by: Prisma.ResourceScalarFieldEnum[] | Prisma.ResourceScalarFieldEnum
|
|
184
|
+
having?: Prisma.ResourceScalarWhereWithAggregatesInput
|
|
185
|
+
take?: number
|
|
186
|
+
skip?: number
|
|
187
|
+
_count?: ResourceCountAggregateInputType | true
|
|
188
|
+
_avg?: ResourceAvgAggregateInputType
|
|
189
|
+
_sum?: ResourceSumAggregateInputType
|
|
190
|
+
_min?: ResourceMinAggregateInputType
|
|
191
|
+
_max?: ResourceMaxAggregateInputType
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export type ResourceGroupByOutputType = {
|
|
195
|
+
id: string
|
|
196
|
+
aString: string
|
|
197
|
+
aNumber: number
|
|
198
|
+
aBool: boolean
|
|
199
|
+
creatorId: string
|
|
200
|
+
nestedResourceId: string
|
|
201
|
+
aOptionalString: string | null
|
|
202
|
+
_count: ResourceCountAggregateOutputType | null
|
|
203
|
+
_avg: ResourceAvgAggregateOutputType | null
|
|
204
|
+
_sum: ResourceSumAggregateOutputType | null
|
|
205
|
+
_min: ResourceMinAggregateOutputType | null
|
|
206
|
+
_max: ResourceMaxAggregateOutputType | null
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
type GetResourceGroupByPayload<T extends ResourceGroupByArgs> = Prisma.PrismaPromise<
|
|
210
|
+
Array<
|
|
211
|
+
Prisma.PickEnumerable<ResourceGroupByOutputType, T['by']> &
|
|
212
|
+
{
|
|
213
|
+
[P in ((keyof T) & (keyof ResourceGroupByOutputType))]: P extends '_count'
|
|
214
|
+
? T[P] extends boolean
|
|
215
|
+
? number
|
|
216
|
+
: Prisma.GetScalarType<T[P], ResourceGroupByOutputType[P]>
|
|
217
|
+
: Prisma.GetScalarType<T[P], ResourceGroupByOutputType[P]>
|
|
218
|
+
}
|
|
219
|
+
>
|
|
220
|
+
>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
export type ResourceWhereInput = {
|
|
225
|
+
AND?: Prisma.ResourceWhereInput | Prisma.ResourceWhereInput[]
|
|
226
|
+
OR?: Prisma.ResourceWhereInput[]
|
|
227
|
+
NOT?: Prisma.ResourceWhereInput | Prisma.ResourceWhereInput[]
|
|
228
|
+
id?: Prisma.StringFilter<"Resource"> | string
|
|
229
|
+
aString?: Prisma.StringFilter<"Resource"> | string
|
|
230
|
+
aNumber?: Prisma.IntFilter<"Resource"> | number
|
|
231
|
+
aBool?: Prisma.BoolFilter<"Resource"> | boolean
|
|
232
|
+
creatorId?: Prisma.StringFilter<"Resource"> | string
|
|
233
|
+
nestedResourceId?: Prisma.StringFilter<"Resource"> | string
|
|
234
|
+
aOptionalString?: Prisma.StringNullableFilter<"Resource"> | string | null
|
|
235
|
+
ownedBy?: Prisma.UserListRelationFilter
|
|
236
|
+
createdBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
237
|
+
nested?: Prisma.XOR<Prisma.NestedResourceScalarRelationFilter, Prisma.NestedResourceWhereInput>
|
|
238
|
+
tags?: Prisma.TagListRelationFilter
|
|
239
|
+
categories?: Prisma.CategoryListRelationFilter
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export type ResourceOrderByWithRelationInput = {
|
|
243
|
+
id?: Prisma.SortOrder
|
|
244
|
+
aString?: Prisma.SortOrder
|
|
245
|
+
aNumber?: Prisma.SortOrder
|
|
246
|
+
aBool?: Prisma.SortOrder
|
|
247
|
+
creatorId?: Prisma.SortOrder
|
|
248
|
+
nestedResourceId?: Prisma.SortOrder
|
|
249
|
+
aOptionalString?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
250
|
+
ownedBy?: Prisma.UserOrderByRelationAggregateInput
|
|
251
|
+
createdBy?: Prisma.UserOrderByWithRelationInput
|
|
252
|
+
nested?: Prisma.NestedResourceOrderByWithRelationInput
|
|
253
|
+
tags?: Prisma.TagOrderByRelationAggregateInput
|
|
254
|
+
categories?: Prisma.CategoryOrderByRelationAggregateInput
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export type ResourceWhereUniqueInput = Prisma.AtLeast<{
|
|
258
|
+
id?: string
|
|
259
|
+
AND?: Prisma.ResourceWhereInput | Prisma.ResourceWhereInput[]
|
|
260
|
+
OR?: Prisma.ResourceWhereInput[]
|
|
261
|
+
NOT?: Prisma.ResourceWhereInput | Prisma.ResourceWhereInput[]
|
|
262
|
+
aString?: Prisma.StringFilter<"Resource"> | string
|
|
263
|
+
aNumber?: Prisma.IntFilter<"Resource"> | number
|
|
264
|
+
aBool?: Prisma.BoolFilter<"Resource"> | boolean
|
|
265
|
+
creatorId?: Prisma.StringFilter<"Resource"> | string
|
|
266
|
+
nestedResourceId?: Prisma.StringFilter<"Resource"> | string
|
|
267
|
+
aOptionalString?: Prisma.StringNullableFilter<"Resource"> | string | null
|
|
268
|
+
ownedBy?: Prisma.UserListRelationFilter
|
|
269
|
+
createdBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
270
|
+
nested?: Prisma.XOR<Prisma.NestedResourceScalarRelationFilter, Prisma.NestedResourceWhereInput>
|
|
271
|
+
tags?: Prisma.TagListRelationFilter
|
|
272
|
+
categories?: Prisma.CategoryListRelationFilter
|
|
273
|
+
}, "id">
|
|
274
|
+
|
|
275
|
+
export type ResourceOrderByWithAggregationInput = {
|
|
276
|
+
id?: Prisma.SortOrder
|
|
277
|
+
aString?: Prisma.SortOrder
|
|
278
|
+
aNumber?: Prisma.SortOrder
|
|
279
|
+
aBool?: Prisma.SortOrder
|
|
280
|
+
creatorId?: Prisma.SortOrder
|
|
281
|
+
nestedResourceId?: Prisma.SortOrder
|
|
282
|
+
aOptionalString?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
283
|
+
_count?: Prisma.ResourceCountOrderByAggregateInput
|
|
284
|
+
_avg?: Prisma.ResourceAvgOrderByAggregateInput
|
|
285
|
+
_max?: Prisma.ResourceMaxOrderByAggregateInput
|
|
286
|
+
_min?: Prisma.ResourceMinOrderByAggregateInput
|
|
287
|
+
_sum?: Prisma.ResourceSumOrderByAggregateInput
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export type ResourceScalarWhereWithAggregatesInput = {
|
|
291
|
+
AND?: Prisma.ResourceScalarWhereWithAggregatesInput | Prisma.ResourceScalarWhereWithAggregatesInput[]
|
|
292
|
+
OR?: Prisma.ResourceScalarWhereWithAggregatesInput[]
|
|
293
|
+
NOT?: Prisma.ResourceScalarWhereWithAggregatesInput | Prisma.ResourceScalarWhereWithAggregatesInput[]
|
|
294
|
+
id?: Prisma.StringWithAggregatesFilter<"Resource"> | string
|
|
295
|
+
aString?: Prisma.StringWithAggregatesFilter<"Resource"> | string
|
|
296
|
+
aNumber?: Prisma.IntWithAggregatesFilter<"Resource"> | number
|
|
297
|
+
aBool?: Prisma.BoolWithAggregatesFilter<"Resource"> | boolean
|
|
298
|
+
creatorId?: Prisma.StringWithAggregatesFilter<"Resource"> | string
|
|
299
|
+
nestedResourceId?: Prisma.StringWithAggregatesFilter<"Resource"> | string
|
|
300
|
+
aOptionalString?: Prisma.StringNullableWithAggregatesFilter<"Resource"> | string | null
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export type ResourceCreateInput = {
|
|
304
|
+
id?: string
|
|
305
|
+
aString: string
|
|
306
|
+
aNumber: number
|
|
307
|
+
aBool: boolean
|
|
308
|
+
aOptionalString?: string | null
|
|
309
|
+
ownedBy?: Prisma.UserCreateNestedManyWithoutResourcesInput
|
|
310
|
+
createdBy: Prisma.UserCreateNestedOneWithoutCreatedResourcesInput
|
|
311
|
+
nested: Prisma.NestedResourceCreateNestedOneWithoutResourceInput
|
|
312
|
+
tags?: Prisma.TagCreateNestedManyWithoutResourcesInput
|
|
313
|
+
categories?: Prisma.CategoryCreateNestedManyWithoutResourcesInput
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export type ResourceUncheckedCreateInput = {
|
|
317
|
+
id?: string
|
|
318
|
+
aString: string
|
|
319
|
+
aNumber: number
|
|
320
|
+
aBool: boolean
|
|
321
|
+
creatorId: string
|
|
322
|
+
nestedResourceId: string
|
|
323
|
+
aOptionalString?: string | null
|
|
324
|
+
ownedBy?: Prisma.UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
325
|
+
tags?: Prisma.TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
326
|
+
categories?: Prisma.CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type ResourceUpdateInput = {
|
|
330
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
331
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
332
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
333
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
334
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
335
|
+
ownedBy?: Prisma.UserUpdateManyWithoutResourcesNestedInput
|
|
336
|
+
createdBy?: Prisma.UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
337
|
+
nested?: Prisma.NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
338
|
+
tags?: Prisma.TagUpdateManyWithoutResourcesNestedInput
|
|
339
|
+
categories?: Prisma.CategoryUpdateManyWithoutResourcesNestedInput
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export type ResourceUncheckedUpdateInput = {
|
|
343
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
344
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
345
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
346
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
347
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
348
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
349
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
350
|
+
ownedBy?: Prisma.UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
351
|
+
tags?: Prisma.TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
352
|
+
categories?: Prisma.CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export type ResourceCreateManyInput = {
|
|
356
|
+
id?: string
|
|
357
|
+
aString: string
|
|
358
|
+
aNumber: number
|
|
359
|
+
aBool: boolean
|
|
360
|
+
creatorId: string
|
|
361
|
+
nestedResourceId: string
|
|
362
|
+
aOptionalString?: string | null
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export type ResourceUpdateManyMutationInput = {
|
|
366
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
367
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
368
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
369
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
370
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export type ResourceUncheckedUpdateManyInput = {
|
|
374
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
375
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
376
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
377
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
378
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
379
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
380
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export type ResourceCountOrderByAggregateInput = {
|
|
384
|
+
id?: Prisma.SortOrder
|
|
385
|
+
aString?: Prisma.SortOrder
|
|
386
|
+
aNumber?: Prisma.SortOrder
|
|
387
|
+
aBool?: Prisma.SortOrder
|
|
388
|
+
creatorId?: Prisma.SortOrder
|
|
389
|
+
nestedResourceId?: Prisma.SortOrder
|
|
390
|
+
aOptionalString?: Prisma.SortOrder
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export type ResourceAvgOrderByAggregateInput = {
|
|
394
|
+
aNumber?: Prisma.SortOrder
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export type ResourceMaxOrderByAggregateInput = {
|
|
398
|
+
id?: Prisma.SortOrder
|
|
399
|
+
aString?: Prisma.SortOrder
|
|
400
|
+
aNumber?: Prisma.SortOrder
|
|
401
|
+
aBool?: Prisma.SortOrder
|
|
402
|
+
creatorId?: Prisma.SortOrder
|
|
403
|
+
nestedResourceId?: Prisma.SortOrder
|
|
404
|
+
aOptionalString?: Prisma.SortOrder
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export type ResourceMinOrderByAggregateInput = {
|
|
408
|
+
id?: Prisma.SortOrder
|
|
409
|
+
aString?: Prisma.SortOrder
|
|
410
|
+
aNumber?: Prisma.SortOrder
|
|
411
|
+
aBool?: Prisma.SortOrder
|
|
412
|
+
creatorId?: Prisma.SortOrder
|
|
413
|
+
nestedResourceId?: Prisma.SortOrder
|
|
414
|
+
aOptionalString?: Prisma.SortOrder
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export type ResourceSumOrderByAggregateInput = {
|
|
418
|
+
aNumber?: Prisma.SortOrder
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export type ResourceListRelationFilter = {
|
|
422
|
+
every?: Prisma.ResourceWhereInput
|
|
423
|
+
some?: Prisma.ResourceWhereInput
|
|
424
|
+
none?: Prisma.ResourceWhereInput
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export type ResourceOrderByRelationAggregateInput = {
|
|
428
|
+
_count?: Prisma.SortOrder
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export type StringFieldUpdateOperationsInput = {
|
|
432
|
+
set?: string
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export type IntFieldUpdateOperationsInput = {
|
|
436
|
+
set?: number
|
|
437
|
+
increment?: number
|
|
438
|
+
decrement?: number
|
|
439
|
+
multiply?: number
|
|
440
|
+
divide?: number
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export type BoolFieldUpdateOperationsInput = {
|
|
444
|
+
set?: boolean
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export type NullableStringFieldUpdateOperationsInput = {
|
|
448
|
+
set?: string | null
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export type ResourceCreateNestedManyWithoutOwnedByInput = {
|
|
452
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutOwnedByInput, Prisma.ResourceUncheckedCreateWithoutOwnedByInput> | Prisma.ResourceCreateWithoutOwnedByInput[] | Prisma.ResourceUncheckedCreateWithoutOwnedByInput[]
|
|
453
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutOwnedByInput | Prisma.ResourceCreateOrConnectWithoutOwnedByInput[]
|
|
454
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export type ResourceCreateNestedManyWithoutCreatedByInput = {
|
|
458
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutCreatedByInput, Prisma.ResourceUncheckedCreateWithoutCreatedByInput> | Prisma.ResourceCreateWithoutCreatedByInput[] | Prisma.ResourceUncheckedCreateWithoutCreatedByInput[]
|
|
459
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutCreatedByInput | Prisma.ResourceCreateOrConnectWithoutCreatedByInput[]
|
|
460
|
+
createMany?: Prisma.ResourceCreateManyCreatedByInputEnvelope
|
|
461
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export type ResourceUncheckedCreateNestedManyWithoutOwnedByInput = {
|
|
465
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutOwnedByInput, Prisma.ResourceUncheckedCreateWithoutOwnedByInput> | Prisma.ResourceCreateWithoutOwnedByInput[] | Prisma.ResourceUncheckedCreateWithoutOwnedByInput[]
|
|
466
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutOwnedByInput | Prisma.ResourceCreateOrConnectWithoutOwnedByInput[]
|
|
467
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export type ResourceUncheckedCreateNestedManyWithoutCreatedByInput = {
|
|
471
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutCreatedByInput, Prisma.ResourceUncheckedCreateWithoutCreatedByInput> | Prisma.ResourceCreateWithoutCreatedByInput[] | Prisma.ResourceUncheckedCreateWithoutCreatedByInput[]
|
|
472
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutCreatedByInput | Prisma.ResourceCreateOrConnectWithoutCreatedByInput[]
|
|
473
|
+
createMany?: Prisma.ResourceCreateManyCreatedByInputEnvelope
|
|
474
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export type ResourceUpdateManyWithoutOwnedByNestedInput = {
|
|
478
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutOwnedByInput, Prisma.ResourceUncheckedCreateWithoutOwnedByInput> | Prisma.ResourceCreateWithoutOwnedByInput[] | Prisma.ResourceUncheckedCreateWithoutOwnedByInput[]
|
|
479
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutOwnedByInput | Prisma.ResourceCreateOrConnectWithoutOwnedByInput[]
|
|
480
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutOwnedByInput | Prisma.ResourceUpsertWithWhereUniqueWithoutOwnedByInput[]
|
|
481
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
482
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
483
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
484
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
485
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutOwnedByInput | Prisma.ResourceUpdateWithWhereUniqueWithoutOwnedByInput[]
|
|
486
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutOwnedByInput | Prisma.ResourceUpdateManyWithWhereWithoutOwnedByInput[]
|
|
487
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export type ResourceUpdateManyWithoutCreatedByNestedInput = {
|
|
491
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutCreatedByInput, Prisma.ResourceUncheckedCreateWithoutCreatedByInput> | Prisma.ResourceCreateWithoutCreatedByInput[] | Prisma.ResourceUncheckedCreateWithoutCreatedByInput[]
|
|
492
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutCreatedByInput | Prisma.ResourceCreateOrConnectWithoutCreatedByInput[]
|
|
493
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.ResourceUpsertWithWhereUniqueWithoutCreatedByInput[]
|
|
494
|
+
createMany?: Prisma.ResourceCreateManyCreatedByInputEnvelope
|
|
495
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
496
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
497
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
498
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
499
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.ResourceUpdateWithWhereUniqueWithoutCreatedByInput[]
|
|
500
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutCreatedByInput | Prisma.ResourceUpdateManyWithWhereWithoutCreatedByInput[]
|
|
501
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export type ResourceUncheckedUpdateManyWithoutOwnedByNestedInput = {
|
|
505
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutOwnedByInput, Prisma.ResourceUncheckedCreateWithoutOwnedByInput> | Prisma.ResourceCreateWithoutOwnedByInput[] | Prisma.ResourceUncheckedCreateWithoutOwnedByInput[]
|
|
506
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutOwnedByInput | Prisma.ResourceCreateOrConnectWithoutOwnedByInput[]
|
|
507
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutOwnedByInput | Prisma.ResourceUpsertWithWhereUniqueWithoutOwnedByInput[]
|
|
508
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
509
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
510
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
511
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
512
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutOwnedByInput | Prisma.ResourceUpdateWithWhereUniqueWithoutOwnedByInput[]
|
|
513
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutOwnedByInput | Prisma.ResourceUpdateManyWithWhereWithoutOwnedByInput[]
|
|
514
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export type ResourceUncheckedUpdateManyWithoutCreatedByNestedInput = {
|
|
518
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutCreatedByInput, Prisma.ResourceUncheckedCreateWithoutCreatedByInput> | Prisma.ResourceCreateWithoutCreatedByInput[] | Prisma.ResourceUncheckedCreateWithoutCreatedByInput[]
|
|
519
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutCreatedByInput | Prisma.ResourceCreateOrConnectWithoutCreatedByInput[]
|
|
520
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.ResourceUpsertWithWhereUniqueWithoutCreatedByInput[]
|
|
521
|
+
createMany?: Prisma.ResourceCreateManyCreatedByInputEnvelope
|
|
522
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
523
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
524
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
525
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
526
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.ResourceUpdateWithWhereUniqueWithoutCreatedByInput[]
|
|
527
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutCreatedByInput | Prisma.ResourceUpdateManyWithWhereWithoutCreatedByInput[]
|
|
528
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export type ResourceCreateNestedManyWithoutNestedInput = {
|
|
532
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutNestedInput, Prisma.ResourceUncheckedCreateWithoutNestedInput> | Prisma.ResourceCreateWithoutNestedInput[] | Prisma.ResourceUncheckedCreateWithoutNestedInput[]
|
|
533
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutNestedInput | Prisma.ResourceCreateOrConnectWithoutNestedInput[]
|
|
534
|
+
createMany?: Prisma.ResourceCreateManyNestedInputEnvelope
|
|
535
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export type ResourceUncheckedCreateNestedManyWithoutNestedInput = {
|
|
539
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutNestedInput, Prisma.ResourceUncheckedCreateWithoutNestedInput> | Prisma.ResourceCreateWithoutNestedInput[] | Prisma.ResourceUncheckedCreateWithoutNestedInput[]
|
|
540
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutNestedInput | Prisma.ResourceCreateOrConnectWithoutNestedInput[]
|
|
541
|
+
createMany?: Prisma.ResourceCreateManyNestedInputEnvelope
|
|
542
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export type ResourceUpdateManyWithoutNestedNestedInput = {
|
|
546
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutNestedInput, Prisma.ResourceUncheckedCreateWithoutNestedInput> | Prisma.ResourceCreateWithoutNestedInput[] | Prisma.ResourceUncheckedCreateWithoutNestedInput[]
|
|
547
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutNestedInput | Prisma.ResourceCreateOrConnectWithoutNestedInput[]
|
|
548
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutNestedInput | Prisma.ResourceUpsertWithWhereUniqueWithoutNestedInput[]
|
|
549
|
+
createMany?: Prisma.ResourceCreateManyNestedInputEnvelope
|
|
550
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
551
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
552
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
553
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
554
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutNestedInput | Prisma.ResourceUpdateWithWhereUniqueWithoutNestedInput[]
|
|
555
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutNestedInput | Prisma.ResourceUpdateManyWithWhereWithoutNestedInput[]
|
|
556
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export type ResourceUncheckedUpdateManyWithoutNestedNestedInput = {
|
|
560
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutNestedInput, Prisma.ResourceUncheckedCreateWithoutNestedInput> | Prisma.ResourceCreateWithoutNestedInput[] | Prisma.ResourceUncheckedCreateWithoutNestedInput[]
|
|
561
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutNestedInput | Prisma.ResourceCreateOrConnectWithoutNestedInput[]
|
|
562
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutNestedInput | Prisma.ResourceUpsertWithWhereUniqueWithoutNestedInput[]
|
|
563
|
+
createMany?: Prisma.ResourceCreateManyNestedInputEnvelope
|
|
564
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
565
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
566
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
567
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
568
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutNestedInput | Prisma.ResourceUpdateWithWhereUniqueWithoutNestedInput[]
|
|
569
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutNestedInput | Prisma.ResourceUpdateManyWithWhereWithoutNestedInput[]
|
|
570
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export type ResourceCreateNestedManyWithoutTagsInput = {
|
|
574
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutTagsInput, Prisma.ResourceUncheckedCreateWithoutTagsInput> | Prisma.ResourceCreateWithoutTagsInput[] | Prisma.ResourceUncheckedCreateWithoutTagsInput[]
|
|
575
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutTagsInput | Prisma.ResourceCreateOrConnectWithoutTagsInput[]
|
|
576
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export type ResourceUncheckedCreateNestedManyWithoutTagsInput = {
|
|
580
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutTagsInput, Prisma.ResourceUncheckedCreateWithoutTagsInput> | Prisma.ResourceCreateWithoutTagsInput[] | Prisma.ResourceUncheckedCreateWithoutTagsInput[]
|
|
581
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutTagsInput | Prisma.ResourceCreateOrConnectWithoutTagsInput[]
|
|
582
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export type ResourceUpdateManyWithoutTagsNestedInput = {
|
|
586
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutTagsInput, Prisma.ResourceUncheckedCreateWithoutTagsInput> | Prisma.ResourceCreateWithoutTagsInput[] | Prisma.ResourceUncheckedCreateWithoutTagsInput[]
|
|
587
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutTagsInput | Prisma.ResourceCreateOrConnectWithoutTagsInput[]
|
|
588
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutTagsInput | Prisma.ResourceUpsertWithWhereUniqueWithoutTagsInput[]
|
|
589
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
590
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
591
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
592
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
593
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutTagsInput | Prisma.ResourceUpdateWithWhereUniqueWithoutTagsInput[]
|
|
594
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutTagsInput | Prisma.ResourceUpdateManyWithWhereWithoutTagsInput[]
|
|
595
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export type ResourceUncheckedUpdateManyWithoutTagsNestedInput = {
|
|
599
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutTagsInput, Prisma.ResourceUncheckedCreateWithoutTagsInput> | Prisma.ResourceCreateWithoutTagsInput[] | Prisma.ResourceUncheckedCreateWithoutTagsInput[]
|
|
600
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutTagsInput | Prisma.ResourceCreateOrConnectWithoutTagsInput[]
|
|
601
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutTagsInput | Prisma.ResourceUpsertWithWhereUniqueWithoutTagsInput[]
|
|
602
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
603
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
604
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
605
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
606
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutTagsInput | Prisma.ResourceUpdateWithWhereUniqueWithoutTagsInput[]
|
|
607
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutTagsInput | Prisma.ResourceUpdateManyWithWhereWithoutTagsInput[]
|
|
608
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export type ResourceCreateNestedManyWithoutCategoriesInput = {
|
|
612
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutCategoriesInput, Prisma.ResourceUncheckedCreateWithoutCategoriesInput> | Prisma.ResourceCreateWithoutCategoriesInput[] | Prisma.ResourceUncheckedCreateWithoutCategoriesInput[]
|
|
613
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutCategoriesInput | Prisma.ResourceCreateOrConnectWithoutCategoriesInput[]
|
|
614
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export type ResourceUncheckedCreateNestedManyWithoutCategoriesInput = {
|
|
618
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutCategoriesInput, Prisma.ResourceUncheckedCreateWithoutCategoriesInput> | Prisma.ResourceCreateWithoutCategoriesInput[] | Prisma.ResourceUncheckedCreateWithoutCategoriesInput[]
|
|
619
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutCategoriesInput | Prisma.ResourceCreateOrConnectWithoutCategoriesInput[]
|
|
620
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
export type ResourceUpdateManyWithoutCategoriesNestedInput = {
|
|
624
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutCategoriesInput, Prisma.ResourceUncheckedCreateWithoutCategoriesInput> | Prisma.ResourceCreateWithoutCategoriesInput[] | Prisma.ResourceUncheckedCreateWithoutCategoriesInput[]
|
|
625
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutCategoriesInput | Prisma.ResourceCreateOrConnectWithoutCategoriesInput[]
|
|
626
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.ResourceUpsertWithWhereUniqueWithoutCategoriesInput[]
|
|
627
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
628
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
629
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
630
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
631
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.ResourceUpdateWithWhereUniqueWithoutCategoriesInput[]
|
|
632
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutCategoriesInput | Prisma.ResourceUpdateManyWithWhereWithoutCategoriesInput[]
|
|
633
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
export type ResourceUncheckedUpdateManyWithoutCategoriesNestedInput = {
|
|
637
|
+
create?: Prisma.XOR<Prisma.ResourceCreateWithoutCategoriesInput, Prisma.ResourceUncheckedCreateWithoutCategoriesInput> | Prisma.ResourceCreateWithoutCategoriesInput[] | Prisma.ResourceUncheckedCreateWithoutCategoriesInput[]
|
|
638
|
+
connectOrCreate?: Prisma.ResourceCreateOrConnectWithoutCategoriesInput | Prisma.ResourceCreateOrConnectWithoutCategoriesInput[]
|
|
639
|
+
upsert?: Prisma.ResourceUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.ResourceUpsertWithWhereUniqueWithoutCategoriesInput[]
|
|
640
|
+
set?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
641
|
+
disconnect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
642
|
+
delete?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
643
|
+
connect?: Prisma.ResourceWhereUniqueInput | Prisma.ResourceWhereUniqueInput[]
|
|
644
|
+
update?: Prisma.ResourceUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.ResourceUpdateWithWhereUniqueWithoutCategoriesInput[]
|
|
645
|
+
updateMany?: Prisma.ResourceUpdateManyWithWhereWithoutCategoriesInput | Prisma.ResourceUpdateManyWithWhereWithoutCategoriesInput[]
|
|
646
|
+
deleteMany?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export type ResourceCreateWithoutOwnedByInput = {
|
|
650
|
+
id?: string
|
|
651
|
+
aString: string
|
|
652
|
+
aNumber: number
|
|
653
|
+
aBool: boolean
|
|
654
|
+
aOptionalString?: string | null
|
|
655
|
+
createdBy: Prisma.UserCreateNestedOneWithoutCreatedResourcesInput
|
|
656
|
+
nested: Prisma.NestedResourceCreateNestedOneWithoutResourceInput
|
|
657
|
+
tags?: Prisma.TagCreateNestedManyWithoutResourcesInput
|
|
658
|
+
categories?: Prisma.CategoryCreateNestedManyWithoutResourcesInput
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export type ResourceUncheckedCreateWithoutOwnedByInput = {
|
|
662
|
+
id?: string
|
|
663
|
+
aString: string
|
|
664
|
+
aNumber: number
|
|
665
|
+
aBool: boolean
|
|
666
|
+
creatorId: string
|
|
667
|
+
nestedResourceId: string
|
|
668
|
+
aOptionalString?: string | null
|
|
669
|
+
tags?: Prisma.TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
670
|
+
categories?: Prisma.CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export type ResourceCreateOrConnectWithoutOwnedByInput = {
|
|
674
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
675
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutOwnedByInput, Prisma.ResourceUncheckedCreateWithoutOwnedByInput>
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export type ResourceCreateWithoutCreatedByInput = {
|
|
679
|
+
id?: string
|
|
680
|
+
aString: string
|
|
681
|
+
aNumber: number
|
|
682
|
+
aBool: boolean
|
|
683
|
+
aOptionalString?: string | null
|
|
684
|
+
ownedBy?: Prisma.UserCreateNestedManyWithoutResourcesInput
|
|
685
|
+
nested: Prisma.NestedResourceCreateNestedOneWithoutResourceInput
|
|
686
|
+
tags?: Prisma.TagCreateNestedManyWithoutResourcesInput
|
|
687
|
+
categories?: Prisma.CategoryCreateNestedManyWithoutResourcesInput
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export type ResourceUncheckedCreateWithoutCreatedByInput = {
|
|
691
|
+
id?: string
|
|
692
|
+
aString: string
|
|
693
|
+
aNumber: number
|
|
694
|
+
aBool: boolean
|
|
695
|
+
nestedResourceId: string
|
|
696
|
+
aOptionalString?: string | null
|
|
697
|
+
ownedBy?: Prisma.UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
698
|
+
tags?: Prisma.TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
699
|
+
categories?: Prisma.CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export type ResourceCreateOrConnectWithoutCreatedByInput = {
|
|
703
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
704
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutCreatedByInput, Prisma.ResourceUncheckedCreateWithoutCreatedByInput>
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
export type ResourceCreateManyCreatedByInputEnvelope = {
|
|
708
|
+
data: Prisma.ResourceCreateManyCreatedByInput | Prisma.ResourceCreateManyCreatedByInput[]
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export type ResourceUpsertWithWhereUniqueWithoutOwnedByInput = {
|
|
712
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
713
|
+
update: Prisma.XOR<Prisma.ResourceUpdateWithoutOwnedByInput, Prisma.ResourceUncheckedUpdateWithoutOwnedByInput>
|
|
714
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutOwnedByInput, Prisma.ResourceUncheckedCreateWithoutOwnedByInput>
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export type ResourceUpdateWithWhereUniqueWithoutOwnedByInput = {
|
|
718
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
719
|
+
data: Prisma.XOR<Prisma.ResourceUpdateWithoutOwnedByInput, Prisma.ResourceUncheckedUpdateWithoutOwnedByInput>
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
export type ResourceUpdateManyWithWhereWithoutOwnedByInput = {
|
|
723
|
+
where: Prisma.ResourceScalarWhereInput
|
|
724
|
+
data: Prisma.XOR<Prisma.ResourceUpdateManyMutationInput, Prisma.ResourceUncheckedUpdateManyWithoutOwnedByInput>
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export type ResourceScalarWhereInput = {
|
|
728
|
+
AND?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
729
|
+
OR?: Prisma.ResourceScalarWhereInput[]
|
|
730
|
+
NOT?: Prisma.ResourceScalarWhereInput | Prisma.ResourceScalarWhereInput[]
|
|
731
|
+
id?: Prisma.StringFilter<"Resource"> | string
|
|
732
|
+
aString?: Prisma.StringFilter<"Resource"> | string
|
|
733
|
+
aNumber?: Prisma.IntFilter<"Resource"> | number
|
|
734
|
+
aBool?: Prisma.BoolFilter<"Resource"> | boolean
|
|
735
|
+
creatorId?: Prisma.StringFilter<"Resource"> | string
|
|
736
|
+
nestedResourceId?: Prisma.StringFilter<"Resource"> | string
|
|
737
|
+
aOptionalString?: Prisma.StringNullableFilter<"Resource"> | string | null
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
export type ResourceUpsertWithWhereUniqueWithoutCreatedByInput = {
|
|
741
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
742
|
+
update: Prisma.XOR<Prisma.ResourceUpdateWithoutCreatedByInput, Prisma.ResourceUncheckedUpdateWithoutCreatedByInput>
|
|
743
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutCreatedByInput, Prisma.ResourceUncheckedCreateWithoutCreatedByInput>
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export type ResourceUpdateWithWhereUniqueWithoutCreatedByInput = {
|
|
747
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
748
|
+
data: Prisma.XOR<Prisma.ResourceUpdateWithoutCreatedByInput, Prisma.ResourceUncheckedUpdateWithoutCreatedByInput>
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
export type ResourceUpdateManyWithWhereWithoutCreatedByInput = {
|
|
752
|
+
where: Prisma.ResourceScalarWhereInput
|
|
753
|
+
data: Prisma.XOR<Prisma.ResourceUpdateManyMutationInput, Prisma.ResourceUncheckedUpdateManyWithoutCreatedByInput>
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export type ResourceCreateWithoutNestedInput = {
|
|
757
|
+
id?: string
|
|
758
|
+
aString: string
|
|
759
|
+
aNumber: number
|
|
760
|
+
aBool: boolean
|
|
761
|
+
aOptionalString?: string | null
|
|
762
|
+
ownedBy?: Prisma.UserCreateNestedManyWithoutResourcesInput
|
|
763
|
+
createdBy: Prisma.UserCreateNestedOneWithoutCreatedResourcesInput
|
|
764
|
+
tags?: Prisma.TagCreateNestedManyWithoutResourcesInput
|
|
765
|
+
categories?: Prisma.CategoryCreateNestedManyWithoutResourcesInput
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
export type ResourceUncheckedCreateWithoutNestedInput = {
|
|
769
|
+
id?: string
|
|
770
|
+
aString: string
|
|
771
|
+
aNumber: number
|
|
772
|
+
aBool: boolean
|
|
773
|
+
creatorId: string
|
|
774
|
+
aOptionalString?: string | null
|
|
775
|
+
ownedBy?: Prisma.UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
776
|
+
tags?: Prisma.TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
777
|
+
categories?: Prisma.CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
export type ResourceCreateOrConnectWithoutNestedInput = {
|
|
781
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
782
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutNestedInput, Prisma.ResourceUncheckedCreateWithoutNestedInput>
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export type ResourceCreateManyNestedInputEnvelope = {
|
|
786
|
+
data: Prisma.ResourceCreateManyNestedInput | Prisma.ResourceCreateManyNestedInput[]
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export type ResourceUpsertWithWhereUniqueWithoutNestedInput = {
|
|
790
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
791
|
+
update: Prisma.XOR<Prisma.ResourceUpdateWithoutNestedInput, Prisma.ResourceUncheckedUpdateWithoutNestedInput>
|
|
792
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutNestedInput, Prisma.ResourceUncheckedCreateWithoutNestedInput>
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export type ResourceUpdateWithWhereUniqueWithoutNestedInput = {
|
|
796
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
797
|
+
data: Prisma.XOR<Prisma.ResourceUpdateWithoutNestedInput, Prisma.ResourceUncheckedUpdateWithoutNestedInput>
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export type ResourceUpdateManyWithWhereWithoutNestedInput = {
|
|
801
|
+
where: Prisma.ResourceScalarWhereInput
|
|
802
|
+
data: Prisma.XOR<Prisma.ResourceUpdateManyMutationInput, Prisma.ResourceUncheckedUpdateManyWithoutNestedInput>
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
export type ResourceCreateWithoutTagsInput = {
|
|
806
|
+
id?: string
|
|
807
|
+
aString: string
|
|
808
|
+
aNumber: number
|
|
809
|
+
aBool: boolean
|
|
810
|
+
aOptionalString?: string | null
|
|
811
|
+
ownedBy?: Prisma.UserCreateNestedManyWithoutResourcesInput
|
|
812
|
+
createdBy: Prisma.UserCreateNestedOneWithoutCreatedResourcesInput
|
|
813
|
+
nested: Prisma.NestedResourceCreateNestedOneWithoutResourceInput
|
|
814
|
+
categories?: Prisma.CategoryCreateNestedManyWithoutResourcesInput
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export type ResourceUncheckedCreateWithoutTagsInput = {
|
|
818
|
+
id?: string
|
|
819
|
+
aString: string
|
|
820
|
+
aNumber: number
|
|
821
|
+
aBool: boolean
|
|
822
|
+
creatorId: string
|
|
823
|
+
nestedResourceId: string
|
|
824
|
+
aOptionalString?: string | null
|
|
825
|
+
ownedBy?: Prisma.UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
826
|
+
categories?: Prisma.CategoryUncheckedCreateNestedManyWithoutResourcesInput
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
export type ResourceCreateOrConnectWithoutTagsInput = {
|
|
830
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
831
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutTagsInput, Prisma.ResourceUncheckedCreateWithoutTagsInput>
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export type ResourceUpsertWithWhereUniqueWithoutTagsInput = {
|
|
835
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
836
|
+
update: Prisma.XOR<Prisma.ResourceUpdateWithoutTagsInput, Prisma.ResourceUncheckedUpdateWithoutTagsInput>
|
|
837
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutTagsInput, Prisma.ResourceUncheckedCreateWithoutTagsInput>
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
export type ResourceUpdateWithWhereUniqueWithoutTagsInput = {
|
|
841
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
842
|
+
data: Prisma.XOR<Prisma.ResourceUpdateWithoutTagsInput, Prisma.ResourceUncheckedUpdateWithoutTagsInput>
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export type ResourceUpdateManyWithWhereWithoutTagsInput = {
|
|
846
|
+
where: Prisma.ResourceScalarWhereInput
|
|
847
|
+
data: Prisma.XOR<Prisma.ResourceUpdateManyMutationInput, Prisma.ResourceUncheckedUpdateManyWithoutTagsInput>
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export type ResourceCreateWithoutCategoriesInput = {
|
|
851
|
+
id?: string
|
|
852
|
+
aString: string
|
|
853
|
+
aNumber: number
|
|
854
|
+
aBool: boolean
|
|
855
|
+
aOptionalString?: string | null
|
|
856
|
+
ownedBy?: Prisma.UserCreateNestedManyWithoutResourcesInput
|
|
857
|
+
createdBy: Prisma.UserCreateNestedOneWithoutCreatedResourcesInput
|
|
858
|
+
nested: Prisma.NestedResourceCreateNestedOneWithoutResourceInput
|
|
859
|
+
tags?: Prisma.TagCreateNestedManyWithoutResourcesInput
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
export type ResourceUncheckedCreateWithoutCategoriesInput = {
|
|
863
|
+
id?: string
|
|
864
|
+
aString: string
|
|
865
|
+
aNumber: number
|
|
866
|
+
aBool: boolean
|
|
867
|
+
creatorId: string
|
|
868
|
+
nestedResourceId: string
|
|
869
|
+
aOptionalString?: string | null
|
|
870
|
+
ownedBy?: Prisma.UserUncheckedCreateNestedManyWithoutResourcesInput
|
|
871
|
+
tags?: Prisma.TagUncheckedCreateNestedManyWithoutResourcesInput
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export type ResourceCreateOrConnectWithoutCategoriesInput = {
|
|
875
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
876
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutCategoriesInput, Prisma.ResourceUncheckedCreateWithoutCategoriesInput>
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export type ResourceUpsertWithWhereUniqueWithoutCategoriesInput = {
|
|
880
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
881
|
+
update: Prisma.XOR<Prisma.ResourceUpdateWithoutCategoriesInput, Prisma.ResourceUncheckedUpdateWithoutCategoriesInput>
|
|
882
|
+
create: Prisma.XOR<Prisma.ResourceCreateWithoutCategoriesInput, Prisma.ResourceUncheckedCreateWithoutCategoriesInput>
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export type ResourceUpdateWithWhereUniqueWithoutCategoriesInput = {
|
|
886
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
887
|
+
data: Prisma.XOR<Prisma.ResourceUpdateWithoutCategoriesInput, Prisma.ResourceUncheckedUpdateWithoutCategoriesInput>
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export type ResourceUpdateManyWithWhereWithoutCategoriesInput = {
|
|
891
|
+
where: Prisma.ResourceScalarWhereInput
|
|
892
|
+
data: Prisma.XOR<Prisma.ResourceUpdateManyMutationInput, Prisma.ResourceUncheckedUpdateManyWithoutCategoriesInput>
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export type ResourceCreateManyCreatedByInput = {
|
|
896
|
+
id?: string
|
|
897
|
+
aString: string
|
|
898
|
+
aNumber: number
|
|
899
|
+
aBool: boolean
|
|
900
|
+
nestedResourceId: string
|
|
901
|
+
aOptionalString?: string | null
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export type ResourceUpdateWithoutOwnedByInput = {
|
|
905
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
906
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
907
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
908
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
909
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
910
|
+
createdBy?: Prisma.UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
911
|
+
nested?: Prisma.NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
912
|
+
tags?: Prisma.TagUpdateManyWithoutResourcesNestedInput
|
|
913
|
+
categories?: Prisma.CategoryUpdateManyWithoutResourcesNestedInput
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
export type ResourceUncheckedUpdateWithoutOwnedByInput = {
|
|
917
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
918
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
919
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
920
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
921
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
922
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
923
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
924
|
+
tags?: Prisma.TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
925
|
+
categories?: Prisma.CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
export type ResourceUncheckedUpdateManyWithoutOwnedByInput = {
|
|
929
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
930
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
931
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
932
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
933
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
934
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
935
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export type ResourceUpdateWithoutCreatedByInput = {
|
|
939
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
940
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
941
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
942
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
943
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
944
|
+
ownedBy?: Prisma.UserUpdateManyWithoutResourcesNestedInput
|
|
945
|
+
nested?: Prisma.NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
946
|
+
tags?: Prisma.TagUpdateManyWithoutResourcesNestedInput
|
|
947
|
+
categories?: Prisma.CategoryUpdateManyWithoutResourcesNestedInput
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export type ResourceUncheckedUpdateWithoutCreatedByInput = {
|
|
951
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
952
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
953
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
954
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
955
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
956
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
957
|
+
ownedBy?: Prisma.UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
958
|
+
tags?: Prisma.TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
959
|
+
categories?: Prisma.CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export type ResourceUncheckedUpdateManyWithoutCreatedByInput = {
|
|
963
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
964
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
965
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
966
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
967
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
968
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export type ResourceCreateManyNestedInput = {
|
|
972
|
+
id?: string
|
|
973
|
+
aString: string
|
|
974
|
+
aNumber: number
|
|
975
|
+
aBool: boolean
|
|
976
|
+
creatorId: string
|
|
977
|
+
aOptionalString?: string | null
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
export type ResourceUpdateWithoutNestedInput = {
|
|
981
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
982
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
983
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
984
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
985
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
986
|
+
ownedBy?: Prisma.UserUpdateManyWithoutResourcesNestedInput
|
|
987
|
+
createdBy?: Prisma.UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
988
|
+
tags?: Prisma.TagUpdateManyWithoutResourcesNestedInput
|
|
989
|
+
categories?: Prisma.CategoryUpdateManyWithoutResourcesNestedInput
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
export type ResourceUncheckedUpdateWithoutNestedInput = {
|
|
993
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
994
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
995
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
996
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
997
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
998
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
999
|
+
ownedBy?: Prisma.UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
1000
|
+
tags?: Prisma.TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
1001
|
+
categories?: Prisma.CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
export type ResourceUncheckedUpdateManyWithoutNestedInput = {
|
|
1005
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1006
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1007
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1008
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1009
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1010
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export type ResourceUpdateWithoutTagsInput = {
|
|
1014
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1015
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1016
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1017
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1018
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1019
|
+
ownedBy?: Prisma.UserUpdateManyWithoutResourcesNestedInput
|
|
1020
|
+
createdBy?: Prisma.UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
1021
|
+
nested?: Prisma.NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
1022
|
+
categories?: Prisma.CategoryUpdateManyWithoutResourcesNestedInput
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export type ResourceUncheckedUpdateWithoutTagsInput = {
|
|
1026
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1027
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1028
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1029
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1030
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1031
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1032
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1033
|
+
ownedBy?: Prisma.UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
1034
|
+
categories?: Prisma.CategoryUncheckedUpdateManyWithoutResourcesNestedInput
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
export type ResourceUncheckedUpdateManyWithoutTagsInput = {
|
|
1038
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1039
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1040
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1041
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1042
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1043
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1044
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
export type ResourceUpdateWithoutCategoriesInput = {
|
|
1048
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1049
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1050
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1051
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1052
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1053
|
+
ownedBy?: Prisma.UserUpdateManyWithoutResourcesNestedInput
|
|
1054
|
+
createdBy?: Prisma.UserUpdateOneRequiredWithoutCreatedResourcesNestedInput
|
|
1055
|
+
nested?: Prisma.NestedResourceUpdateOneRequiredWithoutResourceNestedInput
|
|
1056
|
+
tags?: Prisma.TagUpdateManyWithoutResourcesNestedInput
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export type ResourceUncheckedUpdateWithoutCategoriesInput = {
|
|
1060
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1061
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1062
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1063
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1064
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1065
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1066
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1067
|
+
ownedBy?: Prisma.UserUncheckedUpdateManyWithoutResourcesNestedInput
|
|
1068
|
+
tags?: Prisma.TagUncheckedUpdateManyWithoutResourcesNestedInput
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
export type ResourceUncheckedUpdateManyWithoutCategoriesInput = {
|
|
1072
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1073
|
+
aString?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1074
|
+
aNumber?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1075
|
+
aBool?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
1076
|
+
creatorId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1077
|
+
nestedResourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1078
|
+
aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Count Type ResourceCountOutputType
|
|
1084
|
+
*/
|
|
1085
|
+
|
|
1086
|
+
export type ResourceCountOutputType = {
|
|
1087
|
+
ownedBy: number
|
|
1088
|
+
tags: number
|
|
1089
|
+
categories: number
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
export type ResourceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1093
|
+
ownedBy?: boolean | ResourceCountOutputTypeCountOwnedByArgs
|
|
1094
|
+
tags?: boolean | ResourceCountOutputTypeCountTagsArgs
|
|
1095
|
+
categories?: boolean | ResourceCountOutputTypeCountCategoriesArgs
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* ResourceCountOutputType without action
|
|
1100
|
+
*/
|
|
1101
|
+
export type ResourceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1102
|
+
/**
|
|
1103
|
+
* Select specific fields to fetch from the ResourceCountOutputType
|
|
1104
|
+
*/
|
|
1105
|
+
select?: Prisma.ResourceCountOutputTypeSelect<ExtArgs> | null
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* ResourceCountOutputType without action
|
|
1110
|
+
*/
|
|
1111
|
+
export type ResourceCountOutputTypeCountOwnedByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1112
|
+
where?: Prisma.UserWhereInput
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* ResourceCountOutputType without action
|
|
1117
|
+
*/
|
|
1118
|
+
export type ResourceCountOutputTypeCountTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1119
|
+
where?: Prisma.TagWhereInput
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* ResourceCountOutputType without action
|
|
1124
|
+
*/
|
|
1125
|
+
export type ResourceCountOutputTypeCountCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1126
|
+
where?: Prisma.CategoryWhereInput
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
export type ResourceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1131
|
+
id?: boolean
|
|
1132
|
+
aString?: boolean
|
|
1133
|
+
aNumber?: boolean
|
|
1134
|
+
aBool?: boolean
|
|
1135
|
+
creatorId?: boolean
|
|
1136
|
+
nestedResourceId?: boolean
|
|
1137
|
+
aOptionalString?: boolean
|
|
1138
|
+
ownedBy?: boolean | Prisma.Resource$ownedByArgs<ExtArgs>
|
|
1139
|
+
createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1140
|
+
nested?: boolean | Prisma.NestedResourceDefaultArgs<ExtArgs>
|
|
1141
|
+
tags?: boolean | Prisma.Resource$tagsArgs<ExtArgs>
|
|
1142
|
+
categories?: boolean | Prisma.Resource$categoriesArgs<ExtArgs>
|
|
1143
|
+
_count?: boolean | Prisma.ResourceCountOutputTypeDefaultArgs<ExtArgs>
|
|
1144
|
+
}, ExtArgs["result"]["resource"]>
|
|
1145
|
+
|
|
1146
|
+
export type ResourceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1147
|
+
id?: boolean
|
|
1148
|
+
aString?: boolean
|
|
1149
|
+
aNumber?: boolean
|
|
1150
|
+
aBool?: boolean
|
|
1151
|
+
creatorId?: boolean
|
|
1152
|
+
nestedResourceId?: boolean
|
|
1153
|
+
aOptionalString?: boolean
|
|
1154
|
+
createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1155
|
+
nested?: boolean | Prisma.NestedResourceDefaultArgs<ExtArgs>
|
|
1156
|
+
}, ExtArgs["result"]["resource"]>
|
|
1157
|
+
|
|
1158
|
+
export type ResourceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1159
|
+
id?: boolean
|
|
1160
|
+
aString?: boolean
|
|
1161
|
+
aNumber?: boolean
|
|
1162
|
+
aBool?: boolean
|
|
1163
|
+
creatorId?: boolean
|
|
1164
|
+
nestedResourceId?: boolean
|
|
1165
|
+
aOptionalString?: boolean
|
|
1166
|
+
createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1167
|
+
nested?: boolean | Prisma.NestedResourceDefaultArgs<ExtArgs>
|
|
1168
|
+
}, ExtArgs["result"]["resource"]>
|
|
1169
|
+
|
|
1170
|
+
export type ResourceSelectScalar = {
|
|
1171
|
+
id?: boolean
|
|
1172
|
+
aString?: boolean
|
|
1173
|
+
aNumber?: boolean
|
|
1174
|
+
aBool?: boolean
|
|
1175
|
+
creatorId?: boolean
|
|
1176
|
+
nestedResourceId?: boolean
|
|
1177
|
+
aOptionalString?: boolean
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export type ResourceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "aString" | "aNumber" | "aBool" | "creatorId" | "nestedResourceId" | "aOptionalString", ExtArgs["result"]["resource"]>
|
|
1181
|
+
export type ResourceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1182
|
+
ownedBy?: boolean | Prisma.Resource$ownedByArgs<ExtArgs>
|
|
1183
|
+
createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1184
|
+
nested?: boolean | Prisma.NestedResourceDefaultArgs<ExtArgs>
|
|
1185
|
+
tags?: boolean | Prisma.Resource$tagsArgs<ExtArgs>
|
|
1186
|
+
categories?: boolean | Prisma.Resource$categoriesArgs<ExtArgs>
|
|
1187
|
+
_count?: boolean | Prisma.ResourceCountOutputTypeDefaultArgs<ExtArgs>
|
|
1188
|
+
}
|
|
1189
|
+
export type ResourceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1190
|
+
createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1191
|
+
nested?: boolean | Prisma.NestedResourceDefaultArgs<ExtArgs>
|
|
1192
|
+
}
|
|
1193
|
+
export type ResourceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1194
|
+
createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1195
|
+
nested?: boolean | Prisma.NestedResourceDefaultArgs<ExtArgs>
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
export type $ResourcePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1199
|
+
name: "Resource"
|
|
1200
|
+
objects: {
|
|
1201
|
+
ownedBy: Prisma.$UserPayload<ExtArgs>[]
|
|
1202
|
+
createdBy: Prisma.$UserPayload<ExtArgs>
|
|
1203
|
+
nested: Prisma.$NestedResourcePayload<ExtArgs>
|
|
1204
|
+
tags: Prisma.$TagPayload<ExtArgs>[]
|
|
1205
|
+
categories: Prisma.$CategoryPayload<ExtArgs>[]
|
|
1206
|
+
}
|
|
1207
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1208
|
+
id: string
|
|
1209
|
+
aString: string
|
|
1210
|
+
aNumber: number
|
|
1211
|
+
aBool: boolean
|
|
1212
|
+
creatorId: string
|
|
1213
|
+
nestedResourceId: string
|
|
1214
|
+
aOptionalString: string | null
|
|
1215
|
+
}, ExtArgs["result"]["resource"]>
|
|
1216
|
+
composites: {}
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
export type ResourceGetPayload<S extends boolean | null | undefined | ResourceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ResourcePayload, S>
|
|
1220
|
+
|
|
1221
|
+
export type ResourceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
1222
|
+
Omit<ResourceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1223
|
+
select?: ResourceCountAggregateInputType | true
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
export interface ResourceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1227
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Resource'], meta: { name: 'Resource' } }
|
|
1228
|
+
/**
|
|
1229
|
+
* Find zero or one Resource that matches the filter.
|
|
1230
|
+
* @param {ResourceFindUniqueArgs} args - Arguments to find a Resource
|
|
1231
|
+
* @example
|
|
1232
|
+
* // Get one Resource
|
|
1233
|
+
* const resource = await prisma.resource.findUnique({
|
|
1234
|
+
* where: {
|
|
1235
|
+
* // ... provide filter here
|
|
1236
|
+
* }
|
|
1237
|
+
* })
|
|
1238
|
+
*/
|
|
1239
|
+
findUnique<T extends ResourceFindUniqueArgs>(args: Prisma.SelectSubset<T, ResourceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ResourceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Find one Resource that matches the filter or throw an error with `error.code='P2025'`
|
|
1243
|
+
* if no matches were found.
|
|
1244
|
+
* @param {ResourceFindUniqueOrThrowArgs} args - Arguments to find a Resource
|
|
1245
|
+
* @example
|
|
1246
|
+
* // Get one Resource
|
|
1247
|
+
* const resource = await prisma.resource.findUniqueOrThrow({
|
|
1248
|
+
* where: {
|
|
1249
|
+
* // ... provide filter here
|
|
1250
|
+
* }
|
|
1251
|
+
* })
|
|
1252
|
+
*/
|
|
1253
|
+
findUniqueOrThrow<T extends ResourceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ResourceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ResourceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* Find the first Resource that matches the filter.
|
|
1257
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1258
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1259
|
+
* @param {ResourceFindFirstArgs} args - Arguments to find a Resource
|
|
1260
|
+
* @example
|
|
1261
|
+
* // Get one Resource
|
|
1262
|
+
* const resource = await prisma.resource.findFirst({
|
|
1263
|
+
* where: {
|
|
1264
|
+
* // ... provide filter here
|
|
1265
|
+
* }
|
|
1266
|
+
* })
|
|
1267
|
+
*/
|
|
1268
|
+
findFirst<T extends ResourceFindFirstArgs>(args?: Prisma.SelectSubset<T, ResourceFindFirstArgs<ExtArgs>>): Prisma.Prisma__ResourceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* Find the first Resource that matches the filter or
|
|
1272
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1273
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1274
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1275
|
+
* @param {ResourceFindFirstOrThrowArgs} args - Arguments to find a Resource
|
|
1276
|
+
* @example
|
|
1277
|
+
* // Get one Resource
|
|
1278
|
+
* const resource = await prisma.resource.findFirstOrThrow({
|
|
1279
|
+
* where: {
|
|
1280
|
+
* // ... provide filter here
|
|
1281
|
+
* }
|
|
1282
|
+
* })
|
|
1283
|
+
*/
|
|
1284
|
+
findFirstOrThrow<T extends ResourceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ResourceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ResourceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Find zero or more Resources that matches the filter.
|
|
1288
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1289
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1290
|
+
* @param {ResourceFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1291
|
+
* @example
|
|
1292
|
+
* // Get all Resources
|
|
1293
|
+
* const resources = await prisma.resource.findMany()
|
|
1294
|
+
*
|
|
1295
|
+
* // Get first 10 Resources
|
|
1296
|
+
* const resources = await prisma.resource.findMany({ take: 10 })
|
|
1297
|
+
*
|
|
1298
|
+
* // Only select the `id`
|
|
1299
|
+
* const resourceWithIdOnly = await prisma.resource.findMany({ select: { id: true } })
|
|
1300
|
+
*
|
|
1301
|
+
*/
|
|
1302
|
+
findMany<T extends ResourceFindManyArgs>(args?: Prisma.SelectSubset<T, ResourceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Create a Resource.
|
|
1306
|
+
* @param {ResourceCreateArgs} args - Arguments to create a Resource.
|
|
1307
|
+
* @example
|
|
1308
|
+
* // Create one Resource
|
|
1309
|
+
* const Resource = await prisma.resource.create({
|
|
1310
|
+
* data: {
|
|
1311
|
+
* // ... data to create a Resource
|
|
1312
|
+
* }
|
|
1313
|
+
* })
|
|
1314
|
+
*
|
|
1315
|
+
*/
|
|
1316
|
+
create<T extends ResourceCreateArgs>(args: Prisma.SelectSubset<T, ResourceCreateArgs<ExtArgs>>): Prisma.Prisma__ResourceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Create many Resources.
|
|
1320
|
+
* @param {ResourceCreateManyArgs} args - Arguments to create many Resources.
|
|
1321
|
+
* @example
|
|
1322
|
+
* // Create many Resources
|
|
1323
|
+
* const resource = await prisma.resource.createMany({
|
|
1324
|
+
* data: [
|
|
1325
|
+
* // ... provide data here
|
|
1326
|
+
* ]
|
|
1327
|
+
* })
|
|
1328
|
+
*
|
|
1329
|
+
*/
|
|
1330
|
+
createMany<T extends ResourceCreateManyArgs>(args?: Prisma.SelectSubset<T, ResourceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Create many Resources and returns the data saved in the database.
|
|
1334
|
+
* @param {ResourceCreateManyAndReturnArgs} args - Arguments to create many Resources.
|
|
1335
|
+
* @example
|
|
1336
|
+
* // Create many Resources
|
|
1337
|
+
* const resource = await prisma.resource.createManyAndReturn({
|
|
1338
|
+
* data: [
|
|
1339
|
+
* // ... provide data here
|
|
1340
|
+
* ]
|
|
1341
|
+
* })
|
|
1342
|
+
*
|
|
1343
|
+
* // Create many Resources and only return the `id`
|
|
1344
|
+
* const resourceWithIdOnly = await prisma.resource.createManyAndReturn({
|
|
1345
|
+
* select: { id: true },
|
|
1346
|
+
* data: [
|
|
1347
|
+
* // ... provide data here
|
|
1348
|
+
* ]
|
|
1349
|
+
* })
|
|
1350
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1351
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1352
|
+
*
|
|
1353
|
+
*/
|
|
1354
|
+
createManyAndReturn<T extends ResourceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ResourceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* Delete a Resource.
|
|
1358
|
+
* @param {ResourceDeleteArgs} args - Arguments to delete one Resource.
|
|
1359
|
+
* @example
|
|
1360
|
+
* // Delete one Resource
|
|
1361
|
+
* const Resource = await prisma.resource.delete({
|
|
1362
|
+
* where: {
|
|
1363
|
+
* // ... filter to delete one Resource
|
|
1364
|
+
* }
|
|
1365
|
+
* })
|
|
1366
|
+
*
|
|
1367
|
+
*/
|
|
1368
|
+
delete<T extends ResourceDeleteArgs>(args: Prisma.SelectSubset<T, ResourceDeleteArgs<ExtArgs>>): Prisma.Prisma__ResourceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* Update one Resource.
|
|
1372
|
+
* @param {ResourceUpdateArgs} args - Arguments to update one Resource.
|
|
1373
|
+
* @example
|
|
1374
|
+
* // Update one Resource
|
|
1375
|
+
* const resource = await prisma.resource.update({
|
|
1376
|
+
* where: {
|
|
1377
|
+
* // ... provide filter here
|
|
1378
|
+
* },
|
|
1379
|
+
* data: {
|
|
1380
|
+
* // ... provide data here
|
|
1381
|
+
* }
|
|
1382
|
+
* })
|
|
1383
|
+
*
|
|
1384
|
+
*/
|
|
1385
|
+
update<T extends ResourceUpdateArgs>(args: Prisma.SelectSubset<T, ResourceUpdateArgs<ExtArgs>>): Prisma.Prisma__ResourceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Delete zero or more Resources.
|
|
1389
|
+
* @param {ResourceDeleteManyArgs} args - Arguments to filter Resources to delete.
|
|
1390
|
+
* @example
|
|
1391
|
+
* // Delete a few Resources
|
|
1392
|
+
* const { count } = await prisma.resource.deleteMany({
|
|
1393
|
+
* where: {
|
|
1394
|
+
* // ... provide filter here
|
|
1395
|
+
* }
|
|
1396
|
+
* })
|
|
1397
|
+
*
|
|
1398
|
+
*/
|
|
1399
|
+
deleteMany<T extends ResourceDeleteManyArgs>(args?: Prisma.SelectSubset<T, ResourceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Update zero or more Resources.
|
|
1403
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1404
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1405
|
+
* @param {ResourceUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1406
|
+
* @example
|
|
1407
|
+
* // Update many Resources
|
|
1408
|
+
* const resource = await prisma.resource.updateMany({
|
|
1409
|
+
* where: {
|
|
1410
|
+
* // ... provide filter here
|
|
1411
|
+
* },
|
|
1412
|
+
* data: {
|
|
1413
|
+
* // ... provide data here
|
|
1414
|
+
* }
|
|
1415
|
+
* })
|
|
1416
|
+
*
|
|
1417
|
+
*/
|
|
1418
|
+
updateMany<T extends ResourceUpdateManyArgs>(args: Prisma.SelectSubset<T, ResourceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Update zero or more Resources and returns the data updated in the database.
|
|
1422
|
+
* @param {ResourceUpdateManyAndReturnArgs} args - Arguments to update many Resources.
|
|
1423
|
+
* @example
|
|
1424
|
+
* // Update many Resources
|
|
1425
|
+
* const resource = await prisma.resource.updateManyAndReturn({
|
|
1426
|
+
* where: {
|
|
1427
|
+
* // ... provide filter here
|
|
1428
|
+
* },
|
|
1429
|
+
* data: [
|
|
1430
|
+
* // ... provide data here
|
|
1431
|
+
* ]
|
|
1432
|
+
* })
|
|
1433
|
+
*
|
|
1434
|
+
* // Update zero or more Resources and only return the `id`
|
|
1435
|
+
* const resourceWithIdOnly = await prisma.resource.updateManyAndReturn({
|
|
1436
|
+
* select: { id: true },
|
|
1437
|
+
* where: {
|
|
1438
|
+
* // ... provide filter here
|
|
1439
|
+
* },
|
|
1440
|
+
* data: [
|
|
1441
|
+
* // ... provide data here
|
|
1442
|
+
* ]
|
|
1443
|
+
* })
|
|
1444
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1445
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1446
|
+
*
|
|
1447
|
+
*/
|
|
1448
|
+
updateManyAndReturn<T extends ResourceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ResourceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* Create or update one Resource.
|
|
1452
|
+
* @param {ResourceUpsertArgs} args - Arguments to update or create a Resource.
|
|
1453
|
+
* @example
|
|
1454
|
+
* // Update or create a Resource
|
|
1455
|
+
* const resource = await prisma.resource.upsert({
|
|
1456
|
+
* create: {
|
|
1457
|
+
* // ... data to create a Resource
|
|
1458
|
+
* },
|
|
1459
|
+
* update: {
|
|
1460
|
+
* // ... in case it already exists, update
|
|
1461
|
+
* },
|
|
1462
|
+
* where: {
|
|
1463
|
+
* // ... the filter for the Resource we want to update
|
|
1464
|
+
* }
|
|
1465
|
+
* })
|
|
1466
|
+
*/
|
|
1467
|
+
upsert<T extends ResourceUpsertArgs>(args: Prisma.SelectSubset<T, ResourceUpsertArgs<ExtArgs>>): Prisma.Prisma__ResourceClient<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Count the number of Resources.
|
|
1472
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1473
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1474
|
+
* @param {ResourceCountArgs} args - Arguments to filter Resources to count.
|
|
1475
|
+
* @example
|
|
1476
|
+
* // Count the number of Resources
|
|
1477
|
+
* const count = await prisma.resource.count({
|
|
1478
|
+
* where: {
|
|
1479
|
+
* // ... the filter for the Resources we want to count
|
|
1480
|
+
* }
|
|
1481
|
+
* })
|
|
1482
|
+
**/
|
|
1483
|
+
count<T extends ResourceCountArgs>(
|
|
1484
|
+
args?: Prisma.Subset<T, ResourceCountArgs>,
|
|
1485
|
+
): Prisma.PrismaPromise<
|
|
1486
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
1487
|
+
? T['select'] extends true
|
|
1488
|
+
? number
|
|
1489
|
+
: Prisma.GetScalarType<T['select'], ResourceCountAggregateOutputType>
|
|
1490
|
+
: number
|
|
1491
|
+
>
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* Allows you to perform aggregations operations on a Resource.
|
|
1495
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1496
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1497
|
+
* @param {ResourceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1498
|
+
* @example
|
|
1499
|
+
* // Ordered by age ascending
|
|
1500
|
+
* // Where email contains prisma.io
|
|
1501
|
+
* // Limited to the 10 users
|
|
1502
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1503
|
+
* _avg: {
|
|
1504
|
+
* age: true,
|
|
1505
|
+
* },
|
|
1506
|
+
* where: {
|
|
1507
|
+
* email: {
|
|
1508
|
+
* contains: "prisma.io",
|
|
1509
|
+
* },
|
|
1510
|
+
* },
|
|
1511
|
+
* orderBy: {
|
|
1512
|
+
* age: "asc",
|
|
1513
|
+
* },
|
|
1514
|
+
* take: 10,
|
|
1515
|
+
* })
|
|
1516
|
+
**/
|
|
1517
|
+
aggregate<T extends ResourceAggregateArgs>(args: Prisma.Subset<T, ResourceAggregateArgs>): Prisma.PrismaPromise<GetResourceAggregateType<T>>
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* Group by Resource.
|
|
1521
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1522
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1523
|
+
* @param {ResourceGroupByArgs} args - Group by arguments.
|
|
1524
|
+
* @example
|
|
1525
|
+
* // Group by city, order by createdAt, get count
|
|
1526
|
+
* const result = await prisma.user.groupBy({
|
|
1527
|
+
* by: ['city', 'createdAt'],
|
|
1528
|
+
* orderBy: {
|
|
1529
|
+
* createdAt: true
|
|
1530
|
+
* },
|
|
1531
|
+
* _count: {
|
|
1532
|
+
* _all: true
|
|
1533
|
+
* },
|
|
1534
|
+
* })
|
|
1535
|
+
*
|
|
1536
|
+
**/
|
|
1537
|
+
groupBy<
|
|
1538
|
+
T extends ResourceGroupByArgs,
|
|
1539
|
+
HasSelectOrTake extends Prisma.Or<
|
|
1540
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1541
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1542
|
+
>,
|
|
1543
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1544
|
+
? { orderBy: ResourceGroupByArgs['orderBy'] }
|
|
1545
|
+
: { orderBy?: ResourceGroupByArgs['orderBy'] },
|
|
1546
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1547
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1548
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1549
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1550
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1551
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1552
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1553
|
+
? `Error: "by" must not be empty.`
|
|
1554
|
+
: HavingValid extends Prisma.False
|
|
1555
|
+
? {
|
|
1556
|
+
[P in HavingFields]: P extends ByFields
|
|
1557
|
+
? never
|
|
1558
|
+
: P extends string
|
|
1559
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1560
|
+
: [
|
|
1561
|
+
Error,
|
|
1562
|
+
'Field ',
|
|
1563
|
+
P,
|
|
1564
|
+
` in "having" needs to be provided in "by"`,
|
|
1565
|
+
]
|
|
1566
|
+
}[HavingFields]
|
|
1567
|
+
: 'take' extends Prisma.Keys<T>
|
|
1568
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1569
|
+
? ByValid extends Prisma.True
|
|
1570
|
+
? {}
|
|
1571
|
+
: {
|
|
1572
|
+
[P in OrderFields]: P extends ByFields
|
|
1573
|
+
? never
|
|
1574
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1575
|
+
}[OrderFields]
|
|
1576
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1577
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1578
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1579
|
+
? ByValid extends Prisma.True
|
|
1580
|
+
? {}
|
|
1581
|
+
: {
|
|
1582
|
+
[P in OrderFields]: P extends ByFields
|
|
1583
|
+
? never
|
|
1584
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1585
|
+
}[OrderFields]
|
|
1586
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1587
|
+
: ByValid extends Prisma.True
|
|
1588
|
+
? {}
|
|
1589
|
+
: {
|
|
1590
|
+
[P in OrderFields]: P extends ByFields
|
|
1591
|
+
? never
|
|
1592
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1593
|
+
}[OrderFields]
|
|
1594
|
+
>(args: Prisma.SubsetIntersection<T, ResourceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetResourceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1595
|
+
/**
|
|
1596
|
+
* Fields of the Resource model
|
|
1597
|
+
*/
|
|
1598
|
+
readonly fields: ResourceFieldRefs;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* The delegate class that acts as a "Promise-like" for Resource.
|
|
1603
|
+
* Why is this prefixed with `Prisma__`?
|
|
1604
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1605
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1606
|
+
*/
|
|
1607
|
+
export interface Prisma__ResourceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1608
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1609
|
+
ownedBy<T extends Prisma.Resource$ownedByArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Resource$ownedByArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1610
|
+
createdBy<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1611
|
+
nested<T extends Prisma.NestedResourceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.NestedResourceDefaultArgs<ExtArgs>>): Prisma.Prisma__NestedResourceClient<runtime.Types.Result.GetResult<Prisma.$NestedResourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1612
|
+
tags<T extends Prisma.Resource$tagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Resource$tagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1613
|
+
categories<T extends Prisma.Resource$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Resource$categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1614
|
+
/**
|
|
1615
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1616
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1617
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1618
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1619
|
+
*/
|
|
1620
|
+
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>
|
|
1621
|
+
/**
|
|
1622
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1623
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1624
|
+
* @returns A Promise for the completion of the callback.
|
|
1625
|
+
*/
|
|
1626
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1627
|
+
/**
|
|
1628
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1629
|
+
* resolved value cannot be modified from the callback.
|
|
1630
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1631
|
+
* @returns A Promise for the completion of the callback.
|
|
1632
|
+
*/
|
|
1633
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* Fields of the Resource model
|
|
1641
|
+
*/
|
|
1642
|
+
export interface ResourceFieldRefs {
|
|
1643
|
+
readonly id: Prisma.FieldRef<"Resource", 'String'>
|
|
1644
|
+
readonly aString: Prisma.FieldRef<"Resource", 'String'>
|
|
1645
|
+
readonly aNumber: Prisma.FieldRef<"Resource", 'Int'>
|
|
1646
|
+
readonly aBool: Prisma.FieldRef<"Resource", 'Boolean'>
|
|
1647
|
+
readonly creatorId: Prisma.FieldRef<"Resource", 'String'>
|
|
1648
|
+
readonly nestedResourceId: Prisma.FieldRef<"Resource", 'String'>
|
|
1649
|
+
readonly aOptionalString: Prisma.FieldRef<"Resource", 'String'>
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
// Custom InputTypes
|
|
1654
|
+
/**
|
|
1655
|
+
* Resource findUnique
|
|
1656
|
+
*/
|
|
1657
|
+
export type ResourceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1658
|
+
/**
|
|
1659
|
+
* Select specific fields to fetch from the Resource
|
|
1660
|
+
*/
|
|
1661
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
1662
|
+
/**
|
|
1663
|
+
* Omit specific fields from the Resource
|
|
1664
|
+
*/
|
|
1665
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1666
|
+
/**
|
|
1667
|
+
* Choose, which related nodes to fetch as well
|
|
1668
|
+
*/
|
|
1669
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
1670
|
+
/**
|
|
1671
|
+
* Filter, which Resource to fetch.
|
|
1672
|
+
*/
|
|
1673
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* Resource findUniqueOrThrow
|
|
1678
|
+
*/
|
|
1679
|
+
export type ResourceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1680
|
+
/**
|
|
1681
|
+
* Select specific fields to fetch from the Resource
|
|
1682
|
+
*/
|
|
1683
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
1684
|
+
/**
|
|
1685
|
+
* Omit specific fields from the Resource
|
|
1686
|
+
*/
|
|
1687
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1688
|
+
/**
|
|
1689
|
+
* Choose, which related nodes to fetch as well
|
|
1690
|
+
*/
|
|
1691
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
1692
|
+
/**
|
|
1693
|
+
* Filter, which Resource to fetch.
|
|
1694
|
+
*/
|
|
1695
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Resource findFirst
|
|
1700
|
+
*/
|
|
1701
|
+
export type ResourceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1702
|
+
/**
|
|
1703
|
+
* Select specific fields to fetch from the Resource
|
|
1704
|
+
*/
|
|
1705
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
1706
|
+
/**
|
|
1707
|
+
* Omit specific fields from the Resource
|
|
1708
|
+
*/
|
|
1709
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1710
|
+
/**
|
|
1711
|
+
* Choose, which related nodes to fetch as well
|
|
1712
|
+
*/
|
|
1713
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
1714
|
+
/**
|
|
1715
|
+
* Filter, which Resource to fetch.
|
|
1716
|
+
*/
|
|
1717
|
+
where?: Prisma.ResourceWhereInput
|
|
1718
|
+
/**
|
|
1719
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1720
|
+
*
|
|
1721
|
+
* Determine the order of Resources to fetch.
|
|
1722
|
+
*/
|
|
1723
|
+
orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[]
|
|
1724
|
+
/**
|
|
1725
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1726
|
+
*
|
|
1727
|
+
* Sets the position for searching for Resources.
|
|
1728
|
+
*/
|
|
1729
|
+
cursor?: Prisma.ResourceWhereUniqueInput
|
|
1730
|
+
/**
|
|
1731
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1732
|
+
*
|
|
1733
|
+
* Take `±n` Resources from the position of the cursor.
|
|
1734
|
+
*/
|
|
1735
|
+
take?: number
|
|
1736
|
+
/**
|
|
1737
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1738
|
+
*
|
|
1739
|
+
* Skip the first `n` Resources.
|
|
1740
|
+
*/
|
|
1741
|
+
skip?: number
|
|
1742
|
+
/**
|
|
1743
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1744
|
+
*
|
|
1745
|
+
* Filter by unique combinations of Resources.
|
|
1746
|
+
*/
|
|
1747
|
+
distinct?: Prisma.ResourceScalarFieldEnum | Prisma.ResourceScalarFieldEnum[]
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* Resource findFirstOrThrow
|
|
1752
|
+
*/
|
|
1753
|
+
export type ResourceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1754
|
+
/**
|
|
1755
|
+
* Select specific fields to fetch from the Resource
|
|
1756
|
+
*/
|
|
1757
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
1758
|
+
/**
|
|
1759
|
+
* Omit specific fields from the Resource
|
|
1760
|
+
*/
|
|
1761
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1762
|
+
/**
|
|
1763
|
+
* Choose, which related nodes to fetch as well
|
|
1764
|
+
*/
|
|
1765
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
1766
|
+
/**
|
|
1767
|
+
* Filter, which Resource to fetch.
|
|
1768
|
+
*/
|
|
1769
|
+
where?: Prisma.ResourceWhereInput
|
|
1770
|
+
/**
|
|
1771
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1772
|
+
*
|
|
1773
|
+
* Determine the order of Resources to fetch.
|
|
1774
|
+
*/
|
|
1775
|
+
orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[]
|
|
1776
|
+
/**
|
|
1777
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1778
|
+
*
|
|
1779
|
+
* Sets the position for searching for Resources.
|
|
1780
|
+
*/
|
|
1781
|
+
cursor?: Prisma.ResourceWhereUniqueInput
|
|
1782
|
+
/**
|
|
1783
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1784
|
+
*
|
|
1785
|
+
* Take `±n` Resources from the position of the cursor.
|
|
1786
|
+
*/
|
|
1787
|
+
take?: number
|
|
1788
|
+
/**
|
|
1789
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1790
|
+
*
|
|
1791
|
+
* Skip the first `n` Resources.
|
|
1792
|
+
*/
|
|
1793
|
+
skip?: number
|
|
1794
|
+
/**
|
|
1795
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1796
|
+
*
|
|
1797
|
+
* Filter by unique combinations of Resources.
|
|
1798
|
+
*/
|
|
1799
|
+
distinct?: Prisma.ResourceScalarFieldEnum | Prisma.ResourceScalarFieldEnum[]
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Resource findMany
|
|
1804
|
+
*/
|
|
1805
|
+
export type ResourceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1806
|
+
/**
|
|
1807
|
+
* Select specific fields to fetch from the Resource
|
|
1808
|
+
*/
|
|
1809
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
1810
|
+
/**
|
|
1811
|
+
* Omit specific fields from the Resource
|
|
1812
|
+
*/
|
|
1813
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1814
|
+
/**
|
|
1815
|
+
* Choose, which related nodes to fetch as well
|
|
1816
|
+
*/
|
|
1817
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
1818
|
+
/**
|
|
1819
|
+
* Filter, which Resources to fetch.
|
|
1820
|
+
*/
|
|
1821
|
+
where?: Prisma.ResourceWhereInput
|
|
1822
|
+
/**
|
|
1823
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1824
|
+
*
|
|
1825
|
+
* Determine the order of Resources to fetch.
|
|
1826
|
+
*/
|
|
1827
|
+
orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[]
|
|
1828
|
+
/**
|
|
1829
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1830
|
+
*
|
|
1831
|
+
* Sets the position for listing Resources.
|
|
1832
|
+
*/
|
|
1833
|
+
cursor?: Prisma.ResourceWhereUniqueInput
|
|
1834
|
+
/**
|
|
1835
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1836
|
+
*
|
|
1837
|
+
* Take `±n` Resources from the position of the cursor.
|
|
1838
|
+
*/
|
|
1839
|
+
take?: number
|
|
1840
|
+
/**
|
|
1841
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1842
|
+
*
|
|
1843
|
+
* Skip the first `n` Resources.
|
|
1844
|
+
*/
|
|
1845
|
+
skip?: number
|
|
1846
|
+
distinct?: Prisma.ResourceScalarFieldEnum | Prisma.ResourceScalarFieldEnum[]
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Resource create
|
|
1851
|
+
*/
|
|
1852
|
+
export type ResourceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1853
|
+
/**
|
|
1854
|
+
* Select specific fields to fetch from the Resource
|
|
1855
|
+
*/
|
|
1856
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
1857
|
+
/**
|
|
1858
|
+
* Omit specific fields from the Resource
|
|
1859
|
+
*/
|
|
1860
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1861
|
+
/**
|
|
1862
|
+
* Choose, which related nodes to fetch as well
|
|
1863
|
+
*/
|
|
1864
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
1865
|
+
/**
|
|
1866
|
+
* The data needed to create a Resource.
|
|
1867
|
+
*/
|
|
1868
|
+
data: Prisma.XOR<Prisma.ResourceCreateInput, Prisma.ResourceUncheckedCreateInput>
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* Resource createMany
|
|
1873
|
+
*/
|
|
1874
|
+
export type ResourceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1875
|
+
/**
|
|
1876
|
+
* The data used to create many Resources.
|
|
1877
|
+
*/
|
|
1878
|
+
data: Prisma.ResourceCreateManyInput | Prisma.ResourceCreateManyInput[]
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Resource createManyAndReturn
|
|
1883
|
+
*/
|
|
1884
|
+
export type ResourceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1885
|
+
/**
|
|
1886
|
+
* Select specific fields to fetch from the Resource
|
|
1887
|
+
*/
|
|
1888
|
+
select?: Prisma.ResourceSelectCreateManyAndReturn<ExtArgs> | null
|
|
1889
|
+
/**
|
|
1890
|
+
* Omit specific fields from the Resource
|
|
1891
|
+
*/
|
|
1892
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1893
|
+
/**
|
|
1894
|
+
* The data used to create many Resources.
|
|
1895
|
+
*/
|
|
1896
|
+
data: Prisma.ResourceCreateManyInput | Prisma.ResourceCreateManyInput[]
|
|
1897
|
+
/**
|
|
1898
|
+
* Choose, which related nodes to fetch as well
|
|
1899
|
+
*/
|
|
1900
|
+
include?: Prisma.ResourceIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Resource update
|
|
1905
|
+
*/
|
|
1906
|
+
export type ResourceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1907
|
+
/**
|
|
1908
|
+
* Select specific fields to fetch from the Resource
|
|
1909
|
+
*/
|
|
1910
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
1911
|
+
/**
|
|
1912
|
+
* Omit specific fields from the Resource
|
|
1913
|
+
*/
|
|
1914
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1915
|
+
/**
|
|
1916
|
+
* Choose, which related nodes to fetch as well
|
|
1917
|
+
*/
|
|
1918
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
1919
|
+
/**
|
|
1920
|
+
* The data needed to update a Resource.
|
|
1921
|
+
*/
|
|
1922
|
+
data: Prisma.XOR<Prisma.ResourceUpdateInput, Prisma.ResourceUncheckedUpdateInput>
|
|
1923
|
+
/**
|
|
1924
|
+
* Choose, which Resource to update.
|
|
1925
|
+
*/
|
|
1926
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* Resource updateMany
|
|
1931
|
+
*/
|
|
1932
|
+
export type ResourceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1933
|
+
/**
|
|
1934
|
+
* The data used to update Resources.
|
|
1935
|
+
*/
|
|
1936
|
+
data: Prisma.XOR<Prisma.ResourceUpdateManyMutationInput, Prisma.ResourceUncheckedUpdateManyInput>
|
|
1937
|
+
/**
|
|
1938
|
+
* Filter which Resources to update
|
|
1939
|
+
*/
|
|
1940
|
+
where?: Prisma.ResourceWhereInput
|
|
1941
|
+
/**
|
|
1942
|
+
* Limit how many Resources to update.
|
|
1943
|
+
*/
|
|
1944
|
+
limit?: number
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* Resource updateManyAndReturn
|
|
1949
|
+
*/
|
|
1950
|
+
export type ResourceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1951
|
+
/**
|
|
1952
|
+
* Select specific fields to fetch from the Resource
|
|
1953
|
+
*/
|
|
1954
|
+
select?: Prisma.ResourceSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1955
|
+
/**
|
|
1956
|
+
* Omit specific fields from the Resource
|
|
1957
|
+
*/
|
|
1958
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1959
|
+
/**
|
|
1960
|
+
* The data used to update Resources.
|
|
1961
|
+
*/
|
|
1962
|
+
data: Prisma.XOR<Prisma.ResourceUpdateManyMutationInput, Prisma.ResourceUncheckedUpdateManyInput>
|
|
1963
|
+
/**
|
|
1964
|
+
* Filter which Resources to update
|
|
1965
|
+
*/
|
|
1966
|
+
where?: Prisma.ResourceWhereInput
|
|
1967
|
+
/**
|
|
1968
|
+
* Limit how many Resources to update.
|
|
1969
|
+
*/
|
|
1970
|
+
limit?: number
|
|
1971
|
+
/**
|
|
1972
|
+
* Choose, which related nodes to fetch as well
|
|
1973
|
+
*/
|
|
1974
|
+
include?: Prisma.ResourceIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* Resource upsert
|
|
1979
|
+
*/
|
|
1980
|
+
export type ResourceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1981
|
+
/**
|
|
1982
|
+
* Select specific fields to fetch from the Resource
|
|
1983
|
+
*/
|
|
1984
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
1985
|
+
/**
|
|
1986
|
+
* Omit specific fields from the Resource
|
|
1987
|
+
*/
|
|
1988
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
1989
|
+
/**
|
|
1990
|
+
* Choose, which related nodes to fetch as well
|
|
1991
|
+
*/
|
|
1992
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
1993
|
+
/**
|
|
1994
|
+
* The filter to search for the Resource to update in case it exists.
|
|
1995
|
+
*/
|
|
1996
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
1997
|
+
/**
|
|
1998
|
+
* In case the Resource found by the `where` argument doesn't exist, create a new Resource with this data.
|
|
1999
|
+
*/
|
|
2000
|
+
create: Prisma.XOR<Prisma.ResourceCreateInput, Prisma.ResourceUncheckedCreateInput>
|
|
2001
|
+
/**
|
|
2002
|
+
* In case the Resource was found with the provided `where` argument, update it with this data.
|
|
2003
|
+
*/
|
|
2004
|
+
update: Prisma.XOR<Prisma.ResourceUpdateInput, Prisma.ResourceUncheckedUpdateInput>
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Resource delete
|
|
2009
|
+
*/
|
|
2010
|
+
export type ResourceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2011
|
+
/**
|
|
2012
|
+
* Select specific fields to fetch from the Resource
|
|
2013
|
+
*/
|
|
2014
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
2015
|
+
/**
|
|
2016
|
+
* Omit specific fields from the Resource
|
|
2017
|
+
*/
|
|
2018
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
2019
|
+
/**
|
|
2020
|
+
* Choose, which related nodes to fetch as well
|
|
2021
|
+
*/
|
|
2022
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
2023
|
+
/**
|
|
2024
|
+
* Filter which Resource to delete.
|
|
2025
|
+
*/
|
|
2026
|
+
where: Prisma.ResourceWhereUniqueInput
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
/**
|
|
2030
|
+
* Resource deleteMany
|
|
2031
|
+
*/
|
|
2032
|
+
export type ResourceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2033
|
+
/**
|
|
2034
|
+
* Filter which Resources to delete
|
|
2035
|
+
*/
|
|
2036
|
+
where?: Prisma.ResourceWhereInput
|
|
2037
|
+
/**
|
|
2038
|
+
* Limit how many Resources to delete.
|
|
2039
|
+
*/
|
|
2040
|
+
limit?: number
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Resource.ownedBy
|
|
2045
|
+
*/
|
|
2046
|
+
export type Resource$ownedByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2047
|
+
/**
|
|
2048
|
+
* Select specific fields to fetch from the User
|
|
2049
|
+
*/
|
|
2050
|
+
select?: Prisma.UserSelect<ExtArgs> | null
|
|
2051
|
+
/**
|
|
2052
|
+
* Omit specific fields from the User
|
|
2053
|
+
*/
|
|
2054
|
+
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
2055
|
+
/**
|
|
2056
|
+
* Choose, which related nodes to fetch as well
|
|
2057
|
+
*/
|
|
2058
|
+
include?: Prisma.UserInclude<ExtArgs> | null
|
|
2059
|
+
where?: Prisma.UserWhereInput
|
|
2060
|
+
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
2061
|
+
cursor?: Prisma.UserWhereUniqueInput
|
|
2062
|
+
take?: number
|
|
2063
|
+
skip?: number
|
|
2064
|
+
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* Resource.tags
|
|
2069
|
+
*/
|
|
2070
|
+
export type Resource$tagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2071
|
+
/**
|
|
2072
|
+
* Select specific fields to fetch from the Tag
|
|
2073
|
+
*/
|
|
2074
|
+
select?: Prisma.TagSelect<ExtArgs> | null
|
|
2075
|
+
/**
|
|
2076
|
+
* Omit specific fields from the Tag
|
|
2077
|
+
*/
|
|
2078
|
+
omit?: Prisma.TagOmit<ExtArgs> | null
|
|
2079
|
+
/**
|
|
2080
|
+
* Choose, which related nodes to fetch as well
|
|
2081
|
+
*/
|
|
2082
|
+
include?: Prisma.TagInclude<ExtArgs> | null
|
|
2083
|
+
where?: Prisma.TagWhereInput
|
|
2084
|
+
orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
|
|
2085
|
+
cursor?: Prisma.TagWhereUniqueInput
|
|
2086
|
+
take?: number
|
|
2087
|
+
skip?: number
|
|
2088
|
+
distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
/**
|
|
2092
|
+
* Resource.categories
|
|
2093
|
+
*/
|
|
2094
|
+
export type Resource$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2095
|
+
/**
|
|
2096
|
+
* Select specific fields to fetch from the Category
|
|
2097
|
+
*/
|
|
2098
|
+
select?: Prisma.CategorySelect<ExtArgs> | null
|
|
2099
|
+
/**
|
|
2100
|
+
* Omit specific fields from the Category
|
|
2101
|
+
*/
|
|
2102
|
+
omit?: Prisma.CategoryOmit<ExtArgs> | null
|
|
2103
|
+
/**
|
|
2104
|
+
* Choose, which related nodes to fetch as well
|
|
2105
|
+
*/
|
|
2106
|
+
include?: Prisma.CategoryInclude<ExtArgs> | null
|
|
2107
|
+
where?: Prisma.CategoryWhereInput
|
|
2108
|
+
orderBy?: Prisma.CategoryOrderByWithRelationInput | Prisma.CategoryOrderByWithRelationInput[]
|
|
2109
|
+
cursor?: Prisma.CategoryWhereUniqueInput
|
|
2110
|
+
take?: number
|
|
2111
|
+
skip?: number
|
|
2112
|
+
distinct?: Prisma.CategoryScalarFieldEnum | Prisma.CategoryScalarFieldEnum[]
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* Resource without action
|
|
2117
|
+
*/
|
|
2118
|
+
export type ResourceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2119
|
+
/**
|
|
2120
|
+
* Select specific fields to fetch from the Resource
|
|
2121
|
+
*/
|
|
2122
|
+
select?: Prisma.ResourceSelect<ExtArgs> | null
|
|
2123
|
+
/**
|
|
2124
|
+
* Omit specific fields from the Resource
|
|
2125
|
+
*/
|
|
2126
|
+
omit?: Prisma.ResourceOmit<ExtArgs> | null
|
|
2127
|
+
/**
|
|
2128
|
+
* Choose, which related nodes to fetch as well
|
|
2129
|
+
*/
|
|
2130
|
+
include?: Prisma.ResourceInclude<ExtArgs> | null
|
|
2131
|
+
}
|