@cerbos/orm-prisma 4.0.0 → 5.0.0

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