@igstack/app-catalog-backend-core 1.0.1 → 2.0.0-alpha-20260914211846

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