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