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