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