@allbluecn/database 0.9.0 → 0.9.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 (132) hide show
  1. package/desktop-init.ts +2 -2
  2. package/dist/get-prisma.js +1 -1
  3. package/dist/lib/share-utils.js +3 -3
  4. package/generated/browser.ts +115 -25
  5. package/generated/client.ts +115 -25
  6. package/generated/commonInputTypes.ts +34 -0
  7. package/generated/enums.ts +14 -0
  8. package/generated/internal/class.ts +234 -54
  9. package/generated/internal/prismaNamespace.ts +2190 -511
  10. package/generated/internal/prismaNamespaceBrowser.ts +391 -76
  11. package/generated/models/AgentConversation.ts +89 -89
  12. package/generated/models/AiProvider.ts +3 -3
  13. package/generated/models/AiStreamChunk.ts +3 -3
  14. package/generated/models/AnyHubMarketApp.ts +8 -8
  15. package/generated/models/AuditLog.ts +6 -6
  16. package/generated/models/BlockInstance.ts +17 -17
  17. package/generated/models/Bug.ts +5023 -0
  18. package/generated/models/BugActivity.ts +1765 -0
  19. package/generated/models/BugComment.ts +1853 -0
  20. package/generated/models/BugEvent.ts +1339 -0
  21. package/generated/models/BugFilterView.ts +1438 -0
  22. package/generated/models/BugFixRun.ts +1479 -0
  23. package/generated/models/BugLabel.ts +1349 -0
  24. package/generated/models/BugProjectSettings.ts +1403 -0
  25. package/generated/models/BugReproRun.ts +1582 -0
  26. package/generated/models/ChatPersistenceMeta.ts +3 -3
  27. package/generated/models/Comment.ts +99 -99
  28. package/generated/models/Component.ts +9 -9
  29. package/generated/models/ComponentInstance.ts +17 -17
  30. package/generated/models/CustomRole.ts +8 -8
  31. package/generated/models/Design.ts +2872 -0
  32. package/generated/models/DesignPage.ts +2402 -0
  33. package/generated/models/DesignTag.ts +1430 -0
  34. package/generated/models/DesignVersion.ts +2121 -0
  35. package/generated/models/DesktopSetting.ts +3 -3
  36. package/generated/models/Iteration.ts +148 -0
  37. package/generated/models/Label.ts +118 -0
  38. package/generated/models/LicenseKey.ts +16 -16
  39. package/generated/models/NotificationPreference.ts +5 -5
  40. package/generated/models/PageVersion.ts +49 -49
  41. package/generated/models/Plan.ts +5 -5
  42. package/generated/models/Project.ts +1970 -58
  43. package/generated/models/ProjectAccessToken.ts +1705 -0
  44. package/generated/models/ProjectWebhook.ts +1409 -0
  45. package/generated/models/Review.ts +118 -118
  46. package/generated/models/Share.ts +83 -83
  47. package/generated/models/ShareVersion.ts +15 -15
  48. package/generated/models/SsoProvider.ts +8 -8
  49. package/generated/models/Story.ts +973 -87
  50. package/generated/models/StoryDesignLink.ts +1430 -0
  51. package/generated/models/StoryFilterView.ts +12 -12
  52. package/generated/models/SystemPromptVersion.ts +6 -6
  53. package/generated/models/Tag.ts +49 -49
  54. package/generated/models/TestAutomationArtifact.ts +1790 -0
  55. package/generated/models/TestCase.ts +3568 -0
  56. package/generated/models/TestCaseFilterView.ts +1587 -0
  57. package/generated/models/TestCaseFolder.ts +1795 -0
  58. package/generated/models/TestExecRun.ts +1673 -0
  59. package/generated/models/TestGenerationRun.ts +1952 -0
  60. package/generated/models/TestPlan.ts +1950 -0
  61. package/generated/models/TestPlanCase.ts +1430 -0
  62. package/generated/models/TestRun.ts +1979 -0
  63. package/generated/models/TestRunCase.ts +2772 -0
  64. package/generated/models/ThirdPartyDependency.ts +19 -15
  65. package/generated/models/User.ts +12141 -2721
  66. package/generated/models.ts +26 -8
  67. package/generated-sqlite/browser.ts +8 -23
  68. package/generated-sqlite/client.ts +8 -23
  69. package/generated-sqlite/internal/class.ts +20 -50
  70. package/generated-sqlite/internal/prismaNamespace.ts +166 -437
  71. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +25 -71
  72. package/generated-sqlite/models/AgentConversation.ts +89 -89
  73. package/generated-sqlite/models/AiProvider.ts +3 -3
  74. package/generated-sqlite/models/AiStreamChunk.ts +3 -3
  75. package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
  76. package/generated-sqlite/models/BlockInstance.ts +17 -17
  77. package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
  78. package/generated-sqlite/models/Comment.ts +99 -99
  79. package/generated-sqlite/models/Component.ts +9 -9
  80. package/generated-sqlite/models/ComponentInstance.ts +17 -17
  81. package/generated-sqlite/models/Design.ts +2679 -0
  82. package/generated-sqlite/models/DesignPage.ts +2398 -0
  83. package/generated-sqlite/models/DesignTag.ts +1426 -0
  84. package/generated-sqlite/models/DesignVersion.ts +2117 -0
  85. package/generated-sqlite/models/DesktopSetting.ts +3 -3
  86. package/generated-sqlite/models/KnowledgeBase.ts +240 -1
  87. package/generated-sqlite/models/NotificationPreference.ts +5 -5
  88. package/generated-sqlite/models/PageVersion.ts +49 -49
  89. package/generated-sqlite/models/Review.ts +118 -118
  90. package/generated-sqlite/models/Share.ts +83 -83
  91. package/generated-sqlite/models/ShareVersion.ts +15 -15
  92. package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
  93. package/generated-sqlite/models/Tag.ts +49 -49
  94. package/generated-sqlite/models/User.ts +1201 -1321
  95. package/generated-sqlite/models/Workspace.ts +164 -0
  96. package/generated-sqlite/models.ts +4 -7
  97. package/index.ts +17 -3
  98. package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
  99. package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
  100. package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
  101. package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
  102. package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
  103. package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
  104. package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
  105. package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
  106. package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
  107. package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
  108. package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
  109. package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
  110. package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
  111. package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
  112. package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
  113. package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
  114. package/package.json +4 -4
  115. package/schema.prisma +687 -177
  116. package/schema.sqlite.prisma +149 -151
  117. package/src/lib/share-utils.ts +2 -2
  118. package/generated/models/Artboard.ts +0 -1811
  119. package/generated/models/ArtboardExport.ts +0 -1548
  120. package/generated/models/DesignProject.ts +0 -1643
  121. package/generated/models/PRD.ts +0 -2805
  122. package/generated/models/PRDPage.ts +0 -2402
  123. package/generated/models/PRDTag.ts +0 -1430
  124. package/generated/models/PRDVersion.ts +0 -2121
  125. package/generated/models/StoryPrdLink.ts +0 -1430
  126. package/generated-sqlite/models/Artboard.ts +0 -1808
  127. package/generated-sqlite/models/ArtboardExport.ts +0 -1545
  128. package/generated-sqlite/models/DesignProject.ts +0 -1640
  129. package/generated-sqlite/models/PRD.ts +0 -2616
  130. package/generated-sqlite/models/PRDPage.ts +0 -2398
  131. package/generated-sqlite/models/PRDTag.ts +0 -1426
  132. package/generated-sqlite/models/PRDVersion.ts +0 -2117
@@ -0,0 +1,1853 @@
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 `BugComment` 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.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model BugComment
17
+ *
18
+ */
19
+ export type BugCommentModel = runtime.Types.Result.DefaultSelection<Prisma.$BugCommentPayload>
20
+
21
+ export type AggregateBugComment = {
22
+ _count: BugCommentCountAggregateOutputType | null
23
+ _min: BugCommentMinAggregateOutputType | null
24
+ _max: BugCommentMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type BugCommentMinAggregateOutputType = {
28
+ id: string | null
29
+ bugId: string | null
30
+ userId: string | null
31
+ parentId: string | null
32
+ content: string | null
33
+ createdAt: Date | null
34
+ updatedAt: Date | null
35
+ }
36
+
37
+ export type BugCommentMaxAggregateOutputType = {
38
+ id: string | null
39
+ bugId: string | null
40
+ userId: string | null
41
+ parentId: string | null
42
+ content: string | null
43
+ createdAt: Date | null
44
+ updatedAt: Date | null
45
+ }
46
+
47
+ export type BugCommentCountAggregateOutputType = {
48
+ id: number
49
+ bugId: number
50
+ userId: number
51
+ parentId: number
52
+ content: number
53
+ createdAt: number
54
+ updatedAt: number
55
+ _all: number
56
+ }
57
+
58
+
59
+ export type BugCommentMinAggregateInputType = {
60
+ id?: true
61
+ bugId?: true
62
+ userId?: true
63
+ parentId?: true
64
+ content?: true
65
+ createdAt?: true
66
+ updatedAt?: true
67
+ }
68
+
69
+ export type BugCommentMaxAggregateInputType = {
70
+ id?: true
71
+ bugId?: true
72
+ userId?: true
73
+ parentId?: true
74
+ content?: true
75
+ createdAt?: true
76
+ updatedAt?: true
77
+ }
78
+
79
+ export type BugCommentCountAggregateInputType = {
80
+ id?: true
81
+ bugId?: true
82
+ userId?: true
83
+ parentId?: true
84
+ content?: true
85
+ createdAt?: true
86
+ updatedAt?: true
87
+ _all?: true
88
+ }
89
+
90
+ export type BugCommentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
91
+ /**
92
+ * Filter which BugComment to aggregate.
93
+ */
94
+ where?: Prisma.BugCommentWhereInput
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
97
+ *
98
+ * Determine the order of BugComments to fetch.
99
+ */
100
+ orderBy?: Prisma.BugCommentOrderByWithRelationInput | Prisma.BugCommentOrderByWithRelationInput[]
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.BugCommentWhereUniqueInput
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Take `±n` BugComments 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` BugComments.
117
+ */
118
+ skip?: number
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Count returned BugComments
123
+ **/
124
+ _count?: true | BugCommentCountAggregateInputType
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?: BugCommentMinAggregateInputType
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?: BugCommentMaxAggregateInputType
137
+ }
138
+
139
+ export type GetBugCommentAggregateType<T extends BugCommentAggregateArgs> = {
140
+ [P in keyof T & keyof AggregateBugComment]: P extends '_count' | 'count'
141
+ ? T[P] extends true
142
+ ? number
143
+ : Prisma.GetScalarType<T[P], AggregateBugComment[P]>
144
+ : Prisma.GetScalarType<T[P], AggregateBugComment[P]>
145
+ }
146
+
147
+
148
+
149
+
150
+ export type BugCommentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
151
+ where?: Prisma.BugCommentWhereInput
152
+ orderBy?: Prisma.BugCommentOrderByWithAggregationInput | Prisma.BugCommentOrderByWithAggregationInput[]
153
+ by: Prisma.BugCommentScalarFieldEnum[] | Prisma.BugCommentScalarFieldEnum
154
+ having?: Prisma.BugCommentScalarWhereWithAggregatesInput
155
+ take?: number
156
+ skip?: number
157
+ _count?: BugCommentCountAggregateInputType | true
158
+ _min?: BugCommentMinAggregateInputType
159
+ _max?: BugCommentMaxAggregateInputType
160
+ }
161
+
162
+ export type BugCommentGroupByOutputType = {
163
+ id: string
164
+ bugId: string
165
+ userId: string
166
+ parentId: string | null
167
+ content: string
168
+ createdAt: Date
169
+ updatedAt: Date
170
+ _count: BugCommentCountAggregateOutputType | null
171
+ _min: BugCommentMinAggregateOutputType | null
172
+ _max: BugCommentMaxAggregateOutputType | null
173
+ }
174
+
175
+ export type GetBugCommentGroupByPayload<T extends BugCommentGroupByArgs> = Prisma.PrismaPromise<
176
+ Array<
177
+ Prisma.PickEnumerable<BugCommentGroupByOutputType, T['by']> &
178
+ {
179
+ [P in ((keyof T) & (keyof BugCommentGroupByOutputType))]: P extends '_count'
180
+ ? T[P] extends boolean
181
+ ? number
182
+ : Prisma.GetScalarType<T[P], BugCommentGroupByOutputType[P]>
183
+ : Prisma.GetScalarType<T[P], BugCommentGroupByOutputType[P]>
184
+ }
185
+ >
186
+ >
187
+
188
+
189
+
190
+ export type BugCommentWhereInput = {
191
+ AND?: Prisma.BugCommentWhereInput | Prisma.BugCommentWhereInput[]
192
+ OR?: Prisma.BugCommentWhereInput[]
193
+ NOT?: Prisma.BugCommentWhereInput | Prisma.BugCommentWhereInput[]
194
+ id?: Prisma.StringFilter<"BugComment"> | string
195
+ bugId?: Prisma.StringFilter<"BugComment"> | string
196
+ userId?: Prisma.StringFilter<"BugComment"> | string
197
+ parentId?: Prisma.StringNullableFilter<"BugComment"> | string | null
198
+ content?: Prisma.StringFilter<"BugComment"> | string
199
+ createdAt?: Prisma.DateTimeFilter<"BugComment"> | Date | string
200
+ updatedAt?: Prisma.DateTimeFilter<"BugComment"> | Date | string
201
+ bug?: Prisma.XOR<Prisma.BugScalarRelationFilter, Prisma.BugWhereInput>
202
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
203
+ parent?: Prisma.XOR<Prisma.BugCommentNullableScalarRelationFilter, Prisma.BugCommentWhereInput> | null
204
+ replies?: Prisma.BugCommentListRelationFilter
205
+ }
206
+
207
+ export type BugCommentOrderByWithRelationInput = {
208
+ id?: Prisma.SortOrder
209
+ bugId?: Prisma.SortOrder
210
+ userId?: Prisma.SortOrder
211
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
212
+ content?: Prisma.SortOrder
213
+ createdAt?: Prisma.SortOrder
214
+ updatedAt?: Prisma.SortOrder
215
+ bug?: Prisma.BugOrderByWithRelationInput
216
+ user?: Prisma.UserOrderByWithRelationInput
217
+ parent?: Prisma.BugCommentOrderByWithRelationInput
218
+ replies?: Prisma.BugCommentOrderByRelationAggregateInput
219
+ }
220
+
221
+ export type BugCommentWhereUniqueInput = Prisma.AtLeast<{
222
+ id?: string
223
+ AND?: Prisma.BugCommentWhereInput | Prisma.BugCommentWhereInput[]
224
+ OR?: Prisma.BugCommentWhereInput[]
225
+ NOT?: Prisma.BugCommentWhereInput | Prisma.BugCommentWhereInput[]
226
+ bugId?: Prisma.StringFilter<"BugComment"> | string
227
+ userId?: Prisma.StringFilter<"BugComment"> | string
228
+ parentId?: Prisma.StringNullableFilter<"BugComment"> | string | null
229
+ content?: Prisma.StringFilter<"BugComment"> | string
230
+ createdAt?: Prisma.DateTimeFilter<"BugComment"> | Date | string
231
+ updatedAt?: Prisma.DateTimeFilter<"BugComment"> | Date | string
232
+ bug?: Prisma.XOR<Prisma.BugScalarRelationFilter, Prisma.BugWhereInput>
233
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
234
+ parent?: Prisma.XOR<Prisma.BugCommentNullableScalarRelationFilter, Prisma.BugCommentWhereInput> | null
235
+ replies?: Prisma.BugCommentListRelationFilter
236
+ }, "id">
237
+
238
+ export type BugCommentOrderByWithAggregationInput = {
239
+ id?: Prisma.SortOrder
240
+ bugId?: Prisma.SortOrder
241
+ userId?: Prisma.SortOrder
242
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
243
+ content?: Prisma.SortOrder
244
+ createdAt?: Prisma.SortOrder
245
+ updatedAt?: Prisma.SortOrder
246
+ _count?: Prisma.BugCommentCountOrderByAggregateInput
247
+ _max?: Prisma.BugCommentMaxOrderByAggregateInput
248
+ _min?: Prisma.BugCommentMinOrderByAggregateInput
249
+ }
250
+
251
+ export type BugCommentScalarWhereWithAggregatesInput = {
252
+ AND?: Prisma.BugCommentScalarWhereWithAggregatesInput | Prisma.BugCommentScalarWhereWithAggregatesInput[]
253
+ OR?: Prisma.BugCommentScalarWhereWithAggregatesInput[]
254
+ NOT?: Prisma.BugCommentScalarWhereWithAggregatesInput | Prisma.BugCommentScalarWhereWithAggregatesInput[]
255
+ id?: Prisma.StringWithAggregatesFilter<"BugComment"> | string
256
+ bugId?: Prisma.StringWithAggregatesFilter<"BugComment"> | string
257
+ userId?: Prisma.StringWithAggregatesFilter<"BugComment"> | string
258
+ parentId?: Prisma.StringNullableWithAggregatesFilter<"BugComment"> | string | null
259
+ content?: Prisma.StringWithAggregatesFilter<"BugComment"> | string
260
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"BugComment"> | Date | string
261
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"BugComment"> | Date | string
262
+ }
263
+
264
+ export type BugCommentCreateInput = {
265
+ id?: string
266
+ content: string
267
+ createdAt?: Date | string
268
+ updatedAt?: Date | string
269
+ bug: Prisma.BugCreateNestedOneWithoutCommentsInput
270
+ user: Prisma.UserCreateNestedOneWithoutBugCommentsInput
271
+ parent?: Prisma.BugCommentCreateNestedOneWithoutRepliesInput
272
+ replies?: Prisma.BugCommentCreateNestedManyWithoutParentInput
273
+ }
274
+
275
+ export type BugCommentUncheckedCreateInput = {
276
+ id?: string
277
+ bugId: string
278
+ userId: string
279
+ parentId?: string | null
280
+ content: string
281
+ createdAt?: Date | string
282
+ updatedAt?: Date | string
283
+ replies?: Prisma.BugCommentUncheckedCreateNestedManyWithoutParentInput
284
+ }
285
+
286
+ export type BugCommentUpdateInput = {
287
+ id?: Prisma.StringFieldUpdateOperationsInput | string
288
+ content?: Prisma.StringFieldUpdateOperationsInput | string
289
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
290
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
291
+ bug?: Prisma.BugUpdateOneRequiredWithoutCommentsNestedInput
292
+ user?: Prisma.UserUpdateOneRequiredWithoutBugCommentsNestedInput
293
+ parent?: Prisma.BugCommentUpdateOneWithoutRepliesNestedInput
294
+ replies?: Prisma.BugCommentUpdateManyWithoutParentNestedInput
295
+ }
296
+
297
+ export type BugCommentUncheckedUpdateInput = {
298
+ id?: Prisma.StringFieldUpdateOperationsInput | string
299
+ bugId?: Prisma.StringFieldUpdateOperationsInput | string
300
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
301
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
302
+ content?: Prisma.StringFieldUpdateOperationsInput | string
303
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
304
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
305
+ replies?: Prisma.BugCommentUncheckedUpdateManyWithoutParentNestedInput
306
+ }
307
+
308
+ export type BugCommentCreateManyInput = {
309
+ id?: string
310
+ bugId: string
311
+ userId: string
312
+ parentId?: string | null
313
+ content: string
314
+ createdAt?: Date | string
315
+ updatedAt?: Date | string
316
+ }
317
+
318
+ export type BugCommentUpdateManyMutationInput = {
319
+ id?: Prisma.StringFieldUpdateOperationsInput | string
320
+ content?: Prisma.StringFieldUpdateOperationsInput | string
321
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
322
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
323
+ }
324
+
325
+ export type BugCommentUncheckedUpdateManyInput = {
326
+ id?: Prisma.StringFieldUpdateOperationsInput | string
327
+ bugId?: Prisma.StringFieldUpdateOperationsInput | string
328
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
329
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
330
+ content?: Prisma.StringFieldUpdateOperationsInput | string
331
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
332
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
333
+ }
334
+
335
+ export type BugCommentListRelationFilter = {
336
+ every?: Prisma.BugCommentWhereInput
337
+ some?: Prisma.BugCommentWhereInput
338
+ none?: Prisma.BugCommentWhereInput
339
+ }
340
+
341
+ export type BugCommentOrderByRelationAggregateInput = {
342
+ _count?: Prisma.SortOrder
343
+ }
344
+
345
+ export type BugCommentNullableScalarRelationFilter = {
346
+ is?: Prisma.BugCommentWhereInput | null
347
+ isNot?: Prisma.BugCommentWhereInput | null
348
+ }
349
+
350
+ export type BugCommentCountOrderByAggregateInput = {
351
+ id?: Prisma.SortOrder
352
+ bugId?: Prisma.SortOrder
353
+ userId?: Prisma.SortOrder
354
+ parentId?: Prisma.SortOrder
355
+ content?: Prisma.SortOrder
356
+ createdAt?: Prisma.SortOrder
357
+ updatedAt?: Prisma.SortOrder
358
+ }
359
+
360
+ export type BugCommentMaxOrderByAggregateInput = {
361
+ id?: Prisma.SortOrder
362
+ bugId?: Prisma.SortOrder
363
+ userId?: Prisma.SortOrder
364
+ parentId?: Prisma.SortOrder
365
+ content?: Prisma.SortOrder
366
+ createdAt?: Prisma.SortOrder
367
+ updatedAt?: Prisma.SortOrder
368
+ }
369
+
370
+ export type BugCommentMinOrderByAggregateInput = {
371
+ id?: Prisma.SortOrder
372
+ bugId?: Prisma.SortOrder
373
+ userId?: Prisma.SortOrder
374
+ parentId?: Prisma.SortOrder
375
+ content?: Prisma.SortOrder
376
+ createdAt?: Prisma.SortOrder
377
+ updatedAt?: Prisma.SortOrder
378
+ }
379
+
380
+ export type BugCommentCreateNestedManyWithoutUserInput = {
381
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutUserInput, Prisma.BugCommentUncheckedCreateWithoutUserInput> | Prisma.BugCommentCreateWithoutUserInput[] | Prisma.BugCommentUncheckedCreateWithoutUserInput[]
382
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutUserInput | Prisma.BugCommentCreateOrConnectWithoutUserInput[]
383
+ createMany?: Prisma.BugCommentCreateManyUserInputEnvelope
384
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
385
+ }
386
+
387
+ export type BugCommentUncheckedCreateNestedManyWithoutUserInput = {
388
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutUserInput, Prisma.BugCommentUncheckedCreateWithoutUserInput> | Prisma.BugCommentCreateWithoutUserInput[] | Prisma.BugCommentUncheckedCreateWithoutUserInput[]
389
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutUserInput | Prisma.BugCommentCreateOrConnectWithoutUserInput[]
390
+ createMany?: Prisma.BugCommentCreateManyUserInputEnvelope
391
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
392
+ }
393
+
394
+ export type BugCommentUpdateManyWithoutUserNestedInput = {
395
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutUserInput, Prisma.BugCommentUncheckedCreateWithoutUserInput> | Prisma.BugCommentCreateWithoutUserInput[] | Prisma.BugCommentUncheckedCreateWithoutUserInput[]
396
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutUserInput | Prisma.BugCommentCreateOrConnectWithoutUserInput[]
397
+ upsert?: Prisma.BugCommentUpsertWithWhereUniqueWithoutUserInput | Prisma.BugCommentUpsertWithWhereUniqueWithoutUserInput[]
398
+ createMany?: Prisma.BugCommentCreateManyUserInputEnvelope
399
+ set?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
400
+ disconnect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
401
+ delete?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
402
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
403
+ update?: Prisma.BugCommentUpdateWithWhereUniqueWithoutUserInput | Prisma.BugCommentUpdateWithWhereUniqueWithoutUserInput[]
404
+ updateMany?: Prisma.BugCommentUpdateManyWithWhereWithoutUserInput | Prisma.BugCommentUpdateManyWithWhereWithoutUserInput[]
405
+ deleteMany?: Prisma.BugCommentScalarWhereInput | Prisma.BugCommentScalarWhereInput[]
406
+ }
407
+
408
+ export type BugCommentUncheckedUpdateManyWithoutUserNestedInput = {
409
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutUserInput, Prisma.BugCommentUncheckedCreateWithoutUserInput> | Prisma.BugCommentCreateWithoutUserInput[] | Prisma.BugCommentUncheckedCreateWithoutUserInput[]
410
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutUserInput | Prisma.BugCommentCreateOrConnectWithoutUserInput[]
411
+ upsert?: Prisma.BugCommentUpsertWithWhereUniqueWithoutUserInput | Prisma.BugCommentUpsertWithWhereUniqueWithoutUserInput[]
412
+ createMany?: Prisma.BugCommentCreateManyUserInputEnvelope
413
+ set?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
414
+ disconnect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
415
+ delete?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
416
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
417
+ update?: Prisma.BugCommentUpdateWithWhereUniqueWithoutUserInput | Prisma.BugCommentUpdateWithWhereUniqueWithoutUserInput[]
418
+ updateMany?: Prisma.BugCommentUpdateManyWithWhereWithoutUserInput | Prisma.BugCommentUpdateManyWithWhereWithoutUserInput[]
419
+ deleteMany?: Prisma.BugCommentScalarWhereInput | Prisma.BugCommentScalarWhereInput[]
420
+ }
421
+
422
+ export type BugCommentCreateNestedManyWithoutBugInput = {
423
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutBugInput, Prisma.BugCommentUncheckedCreateWithoutBugInput> | Prisma.BugCommentCreateWithoutBugInput[] | Prisma.BugCommentUncheckedCreateWithoutBugInput[]
424
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutBugInput | Prisma.BugCommentCreateOrConnectWithoutBugInput[]
425
+ createMany?: Prisma.BugCommentCreateManyBugInputEnvelope
426
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
427
+ }
428
+
429
+ export type BugCommentUncheckedCreateNestedManyWithoutBugInput = {
430
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutBugInput, Prisma.BugCommentUncheckedCreateWithoutBugInput> | Prisma.BugCommentCreateWithoutBugInput[] | Prisma.BugCommentUncheckedCreateWithoutBugInput[]
431
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutBugInput | Prisma.BugCommentCreateOrConnectWithoutBugInput[]
432
+ createMany?: Prisma.BugCommentCreateManyBugInputEnvelope
433
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
434
+ }
435
+
436
+ export type BugCommentUpdateManyWithoutBugNestedInput = {
437
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutBugInput, Prisma.BugCommentUncheckedCreateWithoutBugInput> | Prisma.BugCommentCreateWithoutBugInput[] | Prisma.BugCommentUncheckedCreateWithoutBugInput[]
438
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutBugInput | Prisma.BugCommentCreateOrConnectWithoutBugInput[]
439
+ upsert?: Prisma.BugCommentUpsertWithWhereUniqueWithoutBugInput | Prisma.BugCommentUpsertWithWhereUniqueWithoutBugInput[]
440
+ createMany?: Prisma.BugCommentCreateManyBugInputEnvelope
441
+ set?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
442
+ disconnect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
443
+ delete?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
444
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
445
+ update?: Prisma.BugCommentUpdateWithWhereUniqueWithoutBugInput | Prisma.BugCommentUpdateWithWhereUniqueWithoutBugInput[]
446
+ updateMany?: Prisma.BugCommentUpdateManyWithWhereWithoutBugInput | Prisma.BugCommentUpdateManyWithWhereWithoutBugInput[]
447
+ deleteMany?: Prisma.BugCommentScalarWhereInput | Prisma.BugCommentScalarWhereInput[]
448
+ }
449
+
450
+ export type BugCommentUncheckedUpdateManyWithoutBugNestedInput = {
451
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutBugInput, Prisma.BugCommentUncheckedCreateWithoutBugInput> | Prisma.BugCommentCreateWithoutBugInput[] | Prisma.BugCommentUncheckedCreateWithoutBugInput[]
452
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutBugInput | Prisma.BugCommentCreateOrConnectWithoutBugInput[]
453
+ upsert?: Prisma.BugCommentUpsertWithWhereUniqueWithoutBugInput | Prisma.BugCommentUpsertWithWhereUniqueWithoutBugInput[]
454
+ createMany?: Prisma.BugCommentCreateManyBugInputEnvelope
455
+ set?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
456
+ disconnect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
457
+ delete?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
458
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
459
+ update?: Prisma.BugCommentUpdateWithWhereUniqueWithoutBugInput | Prisma.BugCommentUpdateWithWhereUniqueWithoutBugInput[]
460
+ updateMany?: Prisma.BugCommentUpdateManyWithWhereWithoutBugInput | Prisma.BugCommentUpdateManyWithWhereWithoutBugInput[]
461
+ deleteMany?: Prisma.BugCommentScalarWhereInput | Prisma.BugCommentScalarWhereInput[]
462
+ }
463
+
464
+ export type BugCommentCreateNestedOneWithoutRepliesInput = {
465
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutRepliesInput, Prisma.BugCommentUncheckedCreateWithoutRepliesInput>
466
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutRepliesInput
467
+ connect?: Prisma.BugCommentWhereUniqueInput
468
+ }
469
+
470
+ export type BugCommentCreateNestedManyWithoutParentInput = {
471
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutParentInput, Prisma.BugCommentUncheckedCreateWithoutParentInput> | Prisma.BugCommentCreateWithoutParentInput[] | Prisma.BugCommentUncheckedCreateWithoutParentInput[]
472
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutParentInput | Prisma.BugCommentCreateOrConnectWithoutParentInput[]
473
+ createMany?: Prisma.BugCommentCreateManyParentInputEnvelope
474
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
475
+ }
476
+
477
+ export type BugCommentUncheckedCreateNestedManyWithoutParentInput = {
478
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutParentInput, Prisma.BugCommentUncheckedCreateWithoutParentInput> | Prisma.BugCommentCreateWithoutParentInput[] | Prisma.BugCommentUncheckedCreateWithoutParentInput[]
479
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutParentInput | Prisma.BugCommentCreateOrConnectWithoutParentInput[]
480
+ createMany?: Prisma.BugCommentCreateManyParentInputEnvelope
481
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
482
+ }
483
+
484
+ export type BugCommentUpdateOneWithoutRepliesNestedInput = {
485
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutRepliesInput, Prisma.BugCommentUncheckedCreateWithoutRepliesInput>
486
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutRepliesInput
487
+ upsert?: Prisma.BugCommentUpsertWithoutRepliesInput
488
+ disconnect?: Prisma.BugCommentWhereInput | boolean
489
+ delete?: Prisma.BugCommentWhereInput | boolean
490
+ connect?: Prisma.BugCommentWhereUniqueInput
491
+ update?: Prisma.XOR<Prisma.XOR<Prisma.BugCommentUpdateToOneWithWhereWithoutRepliesInput, Prisma.BugCommentUpdateWithoutRepliesInput>, Prisma.BugCommentUncheckedUpdateWithoutRepliesInput>
492
+ }
493
+
494
+ export type BugCommentUpdateManyWithoutParentNestedInput = {
495
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutParentInput, Prisma.BugCommentUncheckedCreateWithoutParentInput> | Prisma.BugCommentCreateWithoutParentInput[] | Prisma.BugCommentUncheckedCreateWithoutParentInput[]
496
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutParentInput | Prisma.BugCommentCreateOrConnectWithoutParentInput[]
497
+ upsert?: Prisma.BugCommentUpsertWithWhereUniqueWithoutParentInput | Prisma.BugCommentUpsertWithWhereUniqueWithoutParentInput[]
498
+ createMany?: Prisma.BugCommentCreateManyParentInputEnvelope
499
+ set?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
500
+ disconnect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
501
+ delete?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
502
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
503
+ update?: Prisma.BugCommentUpdateWithWhereUniqueWithoutParentInput | Prisma.BugCommentUpdateWithWhereUniqueWithoutParentInput[]
504
+ updateMany?: Prisma.BugCommentUpdateManyWithWhereWithoutParentInput | Prisma.BugCommentUpdateManyWithWhereWithoutParentInput[]
505
+ deleteMany?: Prisma.BugCommentScalarWhereInput | Prisma.BugCommentScalarWhereInput[]
506
+ }
507
+
508
+ export type BugCommentUncheckedUpdateManyWithoutParentNestedInput = {
509
+ create?: Prisma.XOR<Prisma.BugCommentCreateWithoutParentInput, Prisma.BugCommentUncheckedCreateWithoutParentInput> | Prisma.BugCommentCreateWithoutParentInput[] | Prisma.BugCommentUncheckedCreateWithoutParentInput[]
510
+ connectOrCreate?: Prisma.BugCommentCreateOrConnectWithoutParentInput | Prisma.BugCommentCreateOrConnectWithoutParentInput[]
511
+ upsert?: Prisma.BugCommentUpsertWithWhereUniqueWithoutParentInput | Prisma.BugCommentUpsertWithWhereUniqueWithoutParentInput[]
512
+ createMany?: Prisma.BugCommentCreateManyParentInputEnvelope
513
+ set?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
514
+ disconnect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
515
+ delete?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
516
+ connect?: Prisma.BugCommentWhereUniqueInput | Prisma.BugCommentWhereUniqueInput[]
517
+ update?: Prisma.BugCommentUpdateWithWhereUniqueWithoutParentInput | Prisma.BugCommentUpdateWithWhereUniqueWithoutParentInput[]
518
+ updateMany?: Prisma.BugCommentUpdateManyWithWhereWithoutParentInput | Prisma.BugCommentUpdateManyWithWhereWithoutParentInput[]
519
+ deleteMany?: Prisma.BugCommentScalarWhereInput | Prisma.BugCommentScalarWhereInput[]
520
+ }
521
+
522
+ export type BugCommentCreateWithoutUserInput = {
523
+ id?: string
524
+ content: string
525
+ createdAt?: Date | string
526
+ updatedAt?: Date | string
527
+ bug: Prisma.BugCreateNestedOneWithoutCommentsInput
528
+ parent?: Prisma.BugCommentCreateNestedOneWithoutRepliesInput
529
+ replies?: Prisma.BugCommentCreateNestedManyWithoutParentInput
530
+ }
531
+
532
+ export type BugCommentUncheckedCreateWithoutUserInput = {
533
+ id?: string
534
+ bugId: string
535
+ parentId?: string | null
536
+ content: string
537
+ createdAt?: Date | string
538
+ updatedAt?: Date | string
539
+ replies?: Prisma.BugCommentUncheckedCreateNestedManyWithoutParentInput
540
+ }
541
+
542
+ export type BugCommentCreateOrConnectWithoutUserInput = {
543
+ where: Prisma.BugCommentWhereUniqueInput
544
+ create: Prisma.XOR<Prisma.BugCommentCreateWithoutUserInput, Prisma.BugCommentUncheckedCreateWithoutUserInput>
545
+ }
546
+
547
+ export type BugCommentCreateManyUserInputEnvelope = {
548
+ data: Prisma.BugCommentCreateManyUserInput | Prisma.BugCommentCreateManyUserInput[]
549
+ skipDuplicates?: boolean
550
+ }
551
+
552
+ export type BugCommentUpsertWithWhereUniqueWithoutUserInput = {
553
+ where: Prisma.BugCommentWhereUniqueInput
554
+ update: Prisma.XOR<Prisma.BugCommentUpdateWithoutUserInput, Prisma.BugCommentUncheckedUpdateWithoutUserInput>
555
+ create: Prisma.XOR<Prisma.BugCommentCreateWithoutUserInput, Prisma.BugCommentUncheckedCreateWithoutUserInput>
556
+ }
557
+
558
+ export type BugCommentUpdateWithWhereUniqueWithoutUserInput = {
559
+ where: Prisma.BugCommentWhereUniqueInput
560
+ data: Prisma.XOR<Prisma.BugCommentUpdateWithoutUserInput, Prisma.BugCommentUncheckedUpdateWithoutUserInput>
561
+ }
562
+
563
+ export type BugCommentUpdateManyWithWhereWithoutUserInput = {
564
+ where: Prisma.BugCommentScalarWhereInput
565
+ data: Prisma.XOR<Prisma.BugCommentUpdateManyMutationInput, Prisma.BugCommentUncheckedUpdateManyWithoutUserInput>
566
+ }
567
+
568
+ export type BugCommentScalarWhereInput = {
569
+ AND?: Prisma.BugCommentScalarWhereInput | Prisma.BugCommentScalarWhereInput[]
570
+ OR?: Prisma.BugCommentScalarWhereInput[]
571
+ NOT?: Prisma.BugCommentScalarWhereInput | Prisma.BugCommentScalarWhereInput[]
572
+ id?: Prisma.StringFilter<"BugComment"> | string
573
+ bugId?: Prisma.StringFilter<"BugComment"> | string
574
+ userId?: Prisma.StringFilter<"BugComment"> | string
575
+ parentId?: Prisma.StringNullableFilter<"BugComment"> | string | null
576
+ content?: Prisma.StringFilter<"BugComment"> | string
577
+ createdAt?: Prisma.DateTimeFilter<"BugComment"> | Date | string
578
+ updatedAt?: Prisma.DateTimeFilter<"BugComment"> | Date | string
579
+ }
580
+
581
+ export type BugCommentCreateWithoutBugInput = {
582
+ id?: string
583
+ content: string
584
+ createdAt?: Date | string
585
+ updatedAt?: Date | string
586
+ user: Prisma.UserCreateNestedOneWithoutBugCommentsInput
587
+ parent?: Prisma.BugCommentCreateNestedOneWithoutRepliesInput
588
+ replies?: Prisma.BugCommentCreateNestedManyWithoutParentInput
589
+ }
590
+
591
+ export type BugCommentUncheckedCreateWithoutBugInput = {
592
+ id?: string
593
+ userId: string
594
+ parentId?: string | null
595
+ content: string
596
+ createdAt?: Date | string
597
+ updatedAt?: Date | string
598
+ replies?: Prisma.BugCommentUncheckedCreateNestedManyWithoutParentInput
599
+ }
600
+
601
+ export type BugCommentCreateOrConnectWithoutBugInput = {
602
+ where: Prisma.BugCommentWhereUniqueInput
603
+ create: Prisma.XOR<Prisma.BugCommentCreateWithoutBugInput, Prisma.BugCommentUncheckedCreateWithoutBugInput>
604
+ }
605
+
606
+ export type BugCommentCreateManyBugInputEnvelope = {
607
+ data: Prisma.BugCommentCreateManyBugInput | Prisma.BugCommentCreateManyBugInput[]
608
+ skipDuplicates?: boolean
609
+ }
610
+
611
+ export type BugCommentUpsertWithWhereUniqueWithoutBugInput = {
612
+ where: Prisma.BugCommentWhereUniqueInput
613
+ update: Prisma.XOR<Prisma.BugCommentUpdateWithoutBugInput, Prisma.BugCommentUncheckedUpdateWithoutBugInput>
614
+ create: Prisma.XOR<Prisma.BugCommentCreateWithoutBugInput, Prisma.BugCommentUncheckedCreateWithoutBugInput>
615
+ }
616
+
617
+ export type BugCommentUpdateWithWhereUniqueWithoutBugInput = {
618
+ where: Prisma.BugCommentWhereUniqueInput
619
+ data: Prisma.XOR<Prisma.BugCommentUpdateWithoutBugInput, Prisma.BugCommentUncheckedUpdateWithoutBugInput>
620
+ }
621
+
622
+ export type BugCommentUpdateManyWithWhereWithoutBugInput = {
623
+ where: Prisma.BugCommentScalarWhereInput
624
+ data: Prisma.XOR<Prisma.BugCommentUpdateManyMutationInput, Prisma.BugCommentUncheckedUpdateManyWithoutBugInput>
625
+ }
626
+
627
+ export type BugCommentCreateWithoutRepliesInput = {
628
+ id?: string
629
+ content: string
630
+ createdAt?: Date | string
631
+ updatedAt?: Date | string
632
+ bug: Prisma.BugCreateNestedOneWithoutCommentsInput
633
+ user: Prisma.UserCreateNestedOneWithoutBugCommentsInput
634
+ parent?: Prisma.BugCommentCreateNestedOneWithoutRepliesInput
635
+ }
636
+
637
+ export type BugCommentUncheckedCreateWithoutRepliesInput = {
638
+ id?: string
639
+ bugId: string
640
+ userId: string
641
+ parentId?: string | null
642
+ content: string
643
+ createdAt?: Date | string
644
+ updatedAt?: Date | string
645
+ }
646
+
647
+ export type BugCommentCreateOrConnectWithoutRepliesInput = {
648
+ where: Prisma.BugCommentWhereUniqueInput
649
+ create: Prisma.XOR<Prisma.BugCommentCreateWithoutRepliesInput, Prisma.BugCommentUncheckedCreateWithoutRepliesInput>
650
+ }
651
+
652
+ export type BugCommentCreateWithoutParentInput = {
653
+ id?: string
654
+ content: string
655
+ createdAt?: Date | string
656
+ updatedAt?: Date | string
657
+ bug: Prisma.BugCreateNestedOneWithoutCommentsInput
658
+ user: Prisma.UserCreateNestedOneWithoutBugCommentsInput
659
+ replies?: Prisma.BugCommentCreateNestedManyWithoutParentInput
660
+ }
661
+
662
+ export type BugCommentUncheckedCreateWithoutParentInput = {
663
+ id?: string
664
+ bugId: string
665
+ userId: string
666
+ content: string
667
+ createdAt?: Date | string
668
+ updatedAt?: Date | string
669
+ replies?: Prisma.BugCommentUncheckedCreateNestedManyWithoutParentInput
670
+ }
671
+
672
+ export type BugCommentCreateOrConnectWithoutParentInput = {
673
+ where: Prisma.BugCommentWhereUniqueInput
674
+ create: Prisma.XOR<Prisma.BugCommentCreateWithoutParentInput, Prisma.BugCommentUncheckedCreateWithoutParentInput>
675
+ }
676
+
677
+ export type BugCommentCreateManyParentInputEnvelope = {
678
+ data: Prisma.BugCommentCreateManyParentInput | Prisma.BugCommentCreateManyParentInput[]
679
+ skipDuplicates?: boolean
680
+ }
681
+
682
+ export type BugCommentUpsertWithoutRepliesInput = {
683
+ update: Prisma.XOR<Prisma.BugCommentUpdateWithoutRepliesInput, Prisma.BugCommentUncheckedUpdateWithoutRepliesInput>
684
+ create: Prisma.XOR<Prisma.BugCommentCreateWithoutRepliesInput, Prisma.BugCommentUncheckedCreateWithoutRepliesInput>
685
+ where?: Prisma.BugCommentWhereInput
686
+ }
687
+
688
+ export type BugCommentUpdateToOneWithWhereWithoutRepliesInput = {
689
+ where?: Prisma.BugCommentWhereInput
690
+ data: Prisma.XOR<Prisma.BugCommentUpdateWithoutRepliesInput, Prisma.BugCommentUncheckedUpdateWithoutRepliesInput>
691
+ }
692
+
693
+ export type BugCommentUpdateWithoutRepliesInput = {
694
+ id?: Prisma.StringFieldUpdateOperationsInput | string
695
+ content?: Prisma.StringFieldUpdateOperationsInput | string
696
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
697
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
698
+ bug?: Prisma.BugUpdateOneRequiredWithoutCommentsNestedInput
699
+ user?: Prisma.UserUpdateOneRequiredWithoutBugCommentsNestedInput
700
+ parent?: Prisma.BugCommentUpdateOneWithoutRepliesNestedInput
701
+ }
702
+
703
+ export type BugCommentUncheckedUpdateWithoutRepliesInput = {
704
+ id?: Prisma.StringFieldUpdateOperationsInput | string
705
+ bugId?: Prisma.StringFieldUpdateOperationsInput | string
706
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
707
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
708
+ content?: Prisma.StringFieldUpdateOperationsInput | string
709
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
710
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
711
+ }
712
+
713
+ export type BugCommentUpsertWithWhereUniqueWithoutParentInput = {
714
+ where: Prisma.BugCommentWhereUniqueInput
715
+ update: Prisma.XOR<Prisma.BugCommentUpdateWithoutParentInput, Prisma.BugCommentUncheckedUpdateWithoutParentInput>
716
+ create: Prisma.XOR<Prisma.BugCommentCreateWithoutParentInput, Prisma.BugCommentUncheckedCreateWithoutParentInput>
717
+ }
718
+
719
+ export type BugCommentUpdateWithWhereUniqueWithoutParentInput = {
720
+ where: Prisma.BugCommentWhereUniqueInput
721
+ data: Prisma.XOR<Prisma.BugCommentUpdateWithoutParentInput, Prisma.BugCommentUncheckedUpdateWithoutParentInput>
722
+ }
723
+
724
+ export type BugCommentUpdateManyWithWhereWithoutParentInput = {
725
+ where: Prisma.BugCommentScalarWhereInput
726
+ data: Prisma.XOR<Prisma.BugCommentUpdateManyMutationInput, Prisma.BugCommentUncheckedUpdateManyWithoutParentInput>
727
+ }
728
+
729
+ export type BugCommentCreateManyUserInput = {
730
+ id?: string
731
+ bugId: string
732
+ parentId?: string | null
733
+ content: string
734
+ createdAt?: Date | string
735
+ updatedAt?: Date | string
736
+ }
737
+
738
+ export type BugCommentUpdateWithoutUserInput = {
739
+ id?: Prisma.StringFieldUpdateOperationsInput | string
740
+ content?: Prisma.StringFieldUpdateOperationsInput | string
741
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
742
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
743
+ bug?: Prisma.BugUpdateOneRequiredWithoutCommentsNestedInput
744
+ parent?: Prisma.BugCommentUpdateOneWithoutRepliesNestedInput
745
+ replies?: Prisma.BugCommentUpdateManyWithoutParentNestedInput
746
+ }
747
+
748
+ export type BugCommentUncheckedUpdateWithoutUserInput = {
749
+ id?: Prisma.StringFieldUpdateOperationsInput | string
750
+ bugId?: Prisma.StringFieldUpdateOperationsInput | string
751
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
752
+ content?: Prisma.StringFieldUpdateOperationsInput | string
753
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
754
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
755
+ replies?: Prisma.BugCommentUncheckedUpdateManyWithoutParentNestedInput
756
+ }
757
+
758
+ export type BugCommentUncheckedUpdateManyWithoutUserInput = {
759
+ id?: Prisma.StringFieldUpdateOperationsInput | string
760
+ bugId?: Prisma.StringFieldUpdateOperationsInput | string
761
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
762
+ content?: Prisma.StringFieldUpdateOperationsInput | string
763
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
764
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
765
+ }
766
+
767
+ export type BugCommentCreateManyBugInput = {
768
+ id?: string
769
+ userId: string
770
+ parentId?: string | null
771
+ content: string
772
+ createdAt?: Date | string
773
+ updatedAt?: Date | string
774
+ }
775
+
776
+ export type BugCommentUpdateWithoutBugInput = {
777
+ id?: Prisma.StringFieldUpdateOperationsInput | string
778
+ content?: Prisma.StringFieldUpdateOperationsInput | string
779
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
780
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
781
+ user?: Prisma.UserUpdateOneRequiredWithoutBugCommentsNestedInput
782
+ parent?: Prisma.BugCommentUpdateOneWithoutRepliesNestedInput
783
+ replies?: Prisma.BugCommentUpdateManyWithoutParentNestedInput
784
+ }
785
+
786
+ export type BugCommentUncheckedUpdateWithoutBugInput = {
787
+ id?: Prisma.StringFieldUpdateOperationsInput | string
788
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
789
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
790
+ content?: Prisma.StringFieldUpdateOperationsInput | string
791
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
792
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
793
+ replies?: Prisma.BugCommentUncheckedUpdateManyWithoutParentNestedInput
794
+ }
795
+
796
+ export type BugCommentUncheckedUpdateManyWithoutBugInput = {
797
+ id?: Prisma.StringFieldUpdateOperationsInput | string
798
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
799
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
800
+ content?: Prisma.StringFieldUpdateOperationsInput | string
801
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
802
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
803
+ }
804
+
805
+ export type BugCommentCreateManyParentInput = {
806
+ id?: string
807
+ bugId: string
808
+ userId: string
809
+ content: string
810
+ createdAt?: Date | string
811
+ updatedAt?: Date | string
812
+ }
813
+
814
+ export type BugCommentUpdateWithoutParentInput = {
815
+ id?: Prisma.StringFieldUpdateOperationsInput | string
816
+ content?: Prisma.StringFieldUpdateOperationsInput | string
817
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
818
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
819
+ bug?: Prisma.BugUpdateOneRequiredWithoutCommentsNestedInput
820
+ user?: Prisma.UserUpdateOneRequiredWithoutBugCommentsNestedInput
821
+ replies?: Prisma.BugCommentUpdateManyWithoutParentNestedInput
822
+ }
823
+
824
+ export type BugCommentUncheckedUpdateWithoutParentInput = {
825
+ id?: Prisma.StringFieldUpdateOperationsInput | string
826
+ bugId?: Prisma.StringFieldUpdateOperationsInput | string
827
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
828
+ content?: Prisma.StringFieldUpdateOperationsInput | string
829
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
830
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
831
+ replies?: Prisma.BugCommentUncheckedUpdateManyWithoutParentNestedInput
832
+ }
833
+
834
+ export type BugCommentUncheckedUpdateManyWithoutParentInput = {
835
+ id?: Prisma.StringFieldUpdateOperationsInput | string
836
+ bugId?: Prisma.StringFieldUpdateOperationsInput | string
837
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
838
+ content?: Prisma.StringFieldUpdateOperationsInput | string
839
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
840
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
841
+ }
842
+
843
+
844
+ /**
845
+ * Count Type BugCommentCountOutputType
846
+ */
847
+
848
+ export type BugCommentCountOutputType = {
849
+ replies: number
850
+ }
851
+
852
+ export type BugCommentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
853
+ replies?: boolean | BugCommentCountOutputTypeCountRepliesArgs
854
+ }
855
+
856
+ /**
857
+ * BugCommentCountOutputType without action
858
+ */
859
+ export type BugCommentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
860
+ /**
861
+ * Select specific fields to fetch from the BugCommentCountOutputType
862
+ */
863
+ select?: Prisma.BugCommentCountOutputTypeSelect<ExtArgs> | null
864
+ }
865
+
866
+ /**
867
+ * BugCommentCountOutputType without action
868
+ */
869
+ export type BugCommentCountOutputTypeCountRepliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
870
+ where?: Prisma.BugCommentWhereInput
871
+ }
872
+
873
+
874
+ export type BugCommentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
875
+ id?: boolean
876
+ bugId?: boolean
877
+ userId?: boolean
878
+ parentId?: boolean
879
+ content?: boolean
880
+ createdAt?: boolean
881
+ updatedAt?: boolean
882
+ bug?: boolean | Prisma.BugDefaultArgs<ExtArgs>
883
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
884
+ parent?: boolean | Prisma.BugComment$parentArgs<ExtArgs>
885
+ replies?: boolean | Prisma.BugComment$repliesArgs<ExtArgs>
886
+ _count?: boolean | Prisma.BugCommentCountOutputTypeDefaultArgs<ExtArgs>
887
+ }, ExtArgs["result"]["bugComment"]>
888
+
889
+ export type BugCommentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
890
+ id?: boolean
891
+ bugId?: boolean
892
+ userId?: boolean
893
+ parentId?: boolean
894
+ content?: boolean
895
+ createdAt?: boolean
896
+ updatedAt?: boolean
897
+ bug?: boolean | Prisma.BugDefaultArgs<ExtArgs>
898
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
899
+ parent?: boolean | Prisma.BugComment$parentArgs<ExtArgs>
900
+ }, ExtArgs["result"]["bugComment"]>
901
+
902
+ export type BugCommentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
903
+ id?: boolean
904
+ bugId?: boolean
905
+ userId?: boolean
906
+ parentId?: boolean
907
+ content?: boolean
908
+ createdAt?: boolean
909
+ updatedAt?: boolean
910
+ bug?: boolean | Prisma.BugDefaultArgs<ExtArgs>
911
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
912
+ parent?: boolean | Prisma.BugComment$parentArgs<ExtArgs>
913
+ }, ExtArgs["result"]["bugComment"]>
914
+
915
+ export type BugCommentSelectScalar = {
916
+ id?: boolean
917
+ bugId?: boolean
918
+ userId?: boolean
919
+ parentId?: boolean
920
+ content?: boolean
921
+ createdAt?: boolean
922
+ updatedAt?: boolean
923
+ }
924
+
925
+ export type BugCommentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "bugId" | "userId" | "parentId" | "content" | "createdAt" | "updatedAt", ExtArgs["result"]["bugComment"]>
926
+ export type BugCommentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
927
+ bug?: boolean | Prisma.BugDefaultArgs<ExtArgs>
928
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
929
+ parent?: boolean | Prisma.BugComment$parentArgs<ExtArgs>
930
+ replies?: boolean | Prisma.BugComment$repliesArgs<ExtArgs>
931
+ _count?: boolean | Prisma.BugCommentCountOutputTypeDefaultArgs<ExtArgs>
932
+ }
933
+ export type BugCommentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
934
+ bug?: boolean | Prisma.BugDefaultArgs<ExtArgs>
935
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
936
+ parent?: boolean | Prisma.BugComment$parentArgs<ExtArgs>
937
+ }
938
+ export type BugCommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
939
+ bug?: boolean | Prisma.BugDefaultArgs<ExtArgs>
940
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
941
+ parent?: boolean | Prisma.BugComment$parentArgs<ExtArgs>
942
+ }
943
+
944
+ export type $BugCommentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
945
+ name: "BugComment"
946
+ objects: {
947
+ bug: Prisma.$BugPayload<ExtArgs>
948
+ user: Prisma.$UserPayload<ExtArgs>
949
+ parent: Prisma.$BugCommentPayload<ExtArgs> | null
950
+ replies: Prisma.$BugCommentPayload<ExtArgs>[]
951
+ }
952
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
953
+ id: string
954
+ bugId: string
955
+ userId: string
956
+ parentId: string | null
957
+ content: string
958
+ createdAt: Date
959
+ updatedAt: Date
960
+ }, ExtArgs["result"]["bugComment"]>
961
+ composites: {}
962
+ }
963
+
964
+ export type BugCommentGetPayload<S extends boolean | null | undefined | BugCommentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BugCommentPayload, S>
965
+
966
+ export type BugCommentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
967
+ Omit<BugCommentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
968
+ select?: BugCommentCountAggregateInputType | true
969
+ }
970
+
971
+ export interface BugCommentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
972
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['BugComment'], meta: { name: 'BugComment' } }
973
+ /**
974
+ * Find zero or one BugComment that matches the filter.
975
+ * @param {BugCommentFindUniqueArgs} args - Arguments to find a BugComment
976
+ * @example
977
+ * // Get one BugComment
978
+ * const bugComment = await prisma.bugComment.findUnique({
979
+ * where: {
980
+ * // ... provide filter here
981
+ * }
982
+ * })
983
+ */
984
+ findUnique<T extends BugCommentFindUniqueArgs>(args: Prisma.SelectSubset<T, BugCommentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
985
+
986
+ /**
987
+ * Find one BugComment that matches the filter or throw an error with `error.code='P2025'`
988
+ * if no matches were found.
989
+ * @param {BugCommentFindUniqueOrThrowArgs} args - Arguments to find a BugComment
990
+ * @example
991
+ * // Get one BugComment
992
+ * const bugComment = await prisma.bugComment.findUniqueOrThrow({
993
+ * where: {
994
+ * // ... provide filter here
995
+ * }
996
+ * })
997
+ */
998
+ findUniqueOrThrow<T extends BugCommentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, BugCommentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
999
+
1000
+ /**
1001
+ * Find the first BugComment that matches the filter.
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 {BugCommentFindFirstArgs} args - Arguments to find a BugComment
1005
+ * @example
1006
+ * // Get one BugComment
1007
+ * const bugComment = await prisma.bugComment.findFirst({
1008
+ * where: {
1009
+ * // ... provide filter here
1010
+ * }
1011
+ * })
1012
+ */
1013
+ findFirst<T extends BugCommentFindFirstArgs>(args?: Prisma.SelectSubset<T, BugCommentFindFirstArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1014
+
1015
+ /**
1016
+ * Find the first BugComment that matches the filter or
1017
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1018
+ * Note, that providing `undefined` is treated as the value not being there.
1019
+ * Read more here: https://pris.ly/d/null-undefined
1020
+ * @param {BugCommentFindFirstOrThrowArgs} args - Arguments to find a BugComment
1021
+ * @example
1022
+ * // Get one BugComment
1023
+ * const bugComment = await prisma.bugComment.findFirstOrThrow({
1024
+ * where: {
1025
+ * // ... provide filter here
1026
+ * }
1027
+ * })
1028
+ */
1029
+ findFirstOrThrow<T extends BugCommentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, BugCommentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1030
+
1031
+ /**
1032
+ * Find zero or more BugComments that matches the filter.
1033
+ * Note, that providing `undefined` is treated as the value not being there.
1034
+ * Read more here: https://pris.ly/d/null-undefined
1035
+ * @param {BugCommentFindManyArgs} args - Arguments to filter and select certain fields only.
1036
+ * @example
1037
+ * // Get all BugComments
1038
+ * const bugComments = await prisma.bugComment.findMany()
1039
+ *
1040
+ * // Get first 10 BugComments
1041
+ * const bugComments = await prisma.bugComment.findMany({ take: 10 })
1042
+ *
1043
+ * // Only select the `id`
1044
+ * const bugCommentWithIdOnly = await prisma.bugComment.findMany({ select: { id: true } })
1045
+ *
1046
+ */
1047
+ findMany<T extends BugCommentFindManyArgs>(args?: Prisma.SelectSubset<T, BugCommentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1048
+
1049
+ /**
1050
+ * Create a BugComment.
1051
+ * @param {BugCommentCreateArgs} args - Arguments to create a BugComment.
1052
+ * @example
1053
+ * // Create one BugComment
1054
+ * const BugComment = await prisma.bugComment.create({
1055
+ * data: {
1056
+ * // ... data to create a BugComment
1057
+ * }
1058
+ * })
1059
+ *
1060
+ */
1061
+ create<T extends BugCommentCreateArgs>(args: Prisma.SelectSubset<T, BugCommentCreateArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1062
+
1063
+ /**
1064
+ * Create many BugComments.
1065
+ * @param {BugCommentCreateManyArgs} args - Arguments to create many BugComments.
1066
+ * @example
1067
+ * // Create many BugComments
1068
+ * const bugComment = await prisma.bugComment.createMany({
1069
+ * data: [
1070
+ * // ... provide data here
1071
+ * ]
1072
+ * })
1073
+ *
1074
+ */
1075
+ createMany<T extends BugCommentCreateManyArgs>(args?: Prisma.SelectSubset<T, BugCommentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1076
+
1077
+ /**
1078
+ * Create many BugComments and returns the data saved in the database.
1079
+ * @param {BugCommentCreateManyAndReturnArgs} args - Arguments to create many BugComments.
1080
+ * @example
1081
+ * // Create many BugComments
1082
+ * const bugComment = await prisma.bugComment.createManyAndReturn({
1083
+ * data: [
1084
+ * // ... provide data here
1085
+ * ]
1086
+ * })
1087
+ *
1088
+ * // Create many BugComments and only return the `id`
1089
+ * const bugCommentWithIdOnly = await prisma.bugComment.createManyAndReturn({
1090
+ * select: { id: true },
1091
+ * data: [
1092
+ * // ... provide data here
1093
+ * ]
1094
+ * })
1095
+ * Note, that providing `undefined` is treated as the value not being there.
1096
+ * Read more here: https://pris.ly/d/null-undefined
1097
+ *
1098
+ */
1099
+ createManyAndReturn<T extends BugCommentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, BugCommentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1100
+
1101
+ /**
1102
+ * Delete a BugComment.
1103
+ * @param {BugCommentDeleteArgs} args - Arguments to delete one BugComment.
1104
+ * @example
1105
+ * // Delete one BugComment
1106
+ * const BugComment = await prisma.bugComment.delete({
1107
+ * where: {
1108
+ * // ... filter to delete one BugComment
1109
+ * }
1110
+ * })
1111
+ *
1112
+ */
1113
+ delete<T extends BugCommentDeleteArgs>(args: Prisma.SelectSubset<T, BugCommentDeleteArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1114
+
1115
+ /**
1116
+ * Update one BugComment.
1117
+ * @param {BugCommentUpdateArgs} args - Arguments to update one BugComment.
1118
+ * @example
1119
+ * // Update one BugComment
1120
+ * const bugComment = await prisma.bugComment.update({
1121
+ * where: {
1122
+ * // ... provide filter here
1123
+ * },
1124
+ * data: {
1125
+ * // ... provide data here
1126
+ * }
1127
+ * })
1128
+ *
1129
+ */
1130
+ update<T extends BugCommentUpdateArgs>(args: Prisma.SelectSubset<T, BugCommentUpdateArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1131
+
1132
+ /**
1133
+ * Delete zero or more BugComments.
1134
+ * @param {BugCommentDeleteManyArgs} args - Arguments to filter BugComments to delete.
1135
+ * @example
1136
+ * // Delete a few BugComments
1137
+ * const { count } = await prisma.bugComment.deleteMany({
1138
+ * where: {
1139
+ * // ... provide filter here
1140
+ * }
1141
+ * })
1142
+ *
1143
+ */
1144
+ deleteMany<T extends BugCommentDeleteManyArgs>(args?: Prisma.SelectSubset<T, BugCommentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1145
+
1146
+ /**
1147
+ * Update zero or more BugComments.
1148
+ * Note, that providing `undefined` is treated as the value not being there.
1149
+ * Read more here: https://pris.ly/d/null-undefined
1150
+ * @param {BugCommentUpdateManyArgs} args - Arguments to update one or more rows.
1151
+ * @example
1152
+ * // Update many BugComments
1153
+ * const bugComment = await prisma.bugComment.updateMany({
1154
+ * where: {
1155
+ * // ... provide filter here
1156
+ * },
1157
+ * data: {
1158
+ * // ... provide data here
1159
+ * }
1160
+ * })
1161
+ *
1162
+ */
1163
+ updateMany<T extends BugCommentUpdateManyArgs>(args: Prisma.SelectSubset<T, BugCommentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1164
+
1165
+ /**
1166
+ * Update zero or more BugComments and returns the data updated in the database.
1167
+ * @param {BugCommentUpdateManyAndReturnArgs} args - Arguments to update many BugComments.
1168
+ * @example
1169
+ * // Update many BugComments
1170
+ * const bugComment = await prisma.bugComment.updateManyAndReturn({
1171
+ * where: {
1172
+ * // ... provide filter here
1173
+ * },
1174
+ * data: [
1175
+ * // ... provide data here
1176
+ * ]
1177
+ * })
1178
+ *
1179
+ * // Update zero or more BugComments and only return the `id`
1180
+ * const bugCommentWithIdOnly = await prisma.bugComment.updateManyAndReturn({
1181
+ * select: { id: true },
1182
+ * where: {
1183
+ * // ... provide filter here
1184
+ * },
1185
+ * data: [
1186
+ * // ... provide data here
1187
+ * ]
1188
+ * })
1189
+ * Note, that providing `undefined` is treated as the value not being there.
1190
+ * Read more here: https://pris.ly/d/null-undefined
1191
+ *
1192
+ */
1193
+ updateManyAndReturn<T extends BugCommentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, BugCommentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1194
+
1195
+ /**
1196
+ * Create or update one BugComment.
1197
+ * @param {BugCommentUpsertArgs} args - Arguments to update or create a BugComment.
1198
+ * @example
1199
+ * // Update or create a BugComment
1200
+ * const bugComment = await prisma.bugComment.upsert({
1201
+ * create: {
1202
+ * // ... data to create a BugComment
1203
+ * },
1204
+ * update: {
1205
+ * // ... in case it already exists, update
1206
+ * },
1207
+ * where: {
1208
+ * // ... the filter for the BugComment we want to update
1209
+ * }
1210
+ * })
1211
+ */
1212
+ upsert<T extends BugCommentUpsertArgs>(args: Prisma.SelectSubset<T, BugCommentUpsertArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1213
+
1214
+
1215
+ /**
1216
+ * Count the number of BugComments.
1217
+ * Note, that providing `undefined` is treated as the value not being there.
1218
+ * Read more here: https://pris.ly/d/null-undefined
1219
+ * @param {BugCommentCountArgs} args - Arguments to filter BugComments to count.
1220
+ * @example
1221
+ * // Count the number of BugComments
1222
+ * const count = await prisma.bugComment.count({
1223
+ * where: {
1224
+ * // ... the filter for the BugComments we want to count
1225
+ * }
1226
+ * })
1227
+ **/
1228
+ count<T extends BugCommentCountArgs>(
1229
+ args?: Prisma.Subset<T, BugCommentCountArgs>,
1230
+ ): Prisma.PrismaPromise<
1231
+ T extends runtime.Types.Utils.Record<'select', any>
1232
+ ? T['select'] extends true
1233
+ ? number
1234
+ : Prisma.GetScalarType<T['select'], BugCommentCountAggregateOutputType>
1235
+ : number
1236
+ >
1237
+
1238
+ /**
1239
+ * Allows you to perform aggregations operations on a BugComment.
1240
+ * Note, that providing `undefined` is treated as the value not being there.
1241
+ * Read more here: https://pris.ly/d/null-undefined
1242
+ * @param {BugCommentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1243
+ * @example
1244
+ * // Ordered by age ascending
1245
+ * // Where email contains prisma.io
1246
+ * // Limited to the 10 users
1247
+ * const aggregations = await prisma.user.aggregate({
1248
+ * _avg: {
1249
+ * age: true,
1250
+ * },
1251
+ * where: {
1252
+ * email: {
1253
+ * contains: "prisma.io",
1254
+ * },
1255
+ * },
1256
+ * orderBy: {
1257
+ * age: "asc",
1258
+ * },
1259
+ * take: 10,
1260
+ * })
1261
+ **/
1262
+ aggregate<T extends BugCommentAggregateArgs>(args: Prisma.Subset<T, BugCommentAggregateArgs>): Prisma.PrismaPromise<GetBugCommentAggregateType<T>>
1263
+
1264
+ /**
1265
+ * Group by BugComment.
1266
+ * Note, that providing `undefined` is treated as the value not being there.
1267
+ * Read more here: https://pris.ly/d/null-undefined
1268
+ * @param {BugCommentGroupByArgs} args - Group by arguments.
1269
+ * @example
1270
+ * // Group by city, order by createdAt, get count
1271
+ * const result = await prisma.user.groupBy({
1272
+ * by: ['city', 'createdAt'],
1273
+ * orderBy: {
1274
+ * createdAt: true
1275
+ * },
1276
+ * _count: {
1277
+ * _all: true
1278
+ * },
1279
+ * })
1280
+ *
1281
+ **/
1282
+ groupBy<
1283
+ T extends BugCommentGroupByArgs,
1284
+ HasSelectOrTake extends Prisma.Or<
1285
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1286
+ Prisma.Extends<'take', Prisma.Keys<T>>
1287
+ >,
1288
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1289
+ ? { orderBy: BugCommentGroupByArgs['orderBy'] }
1290
+ : { orderBy?: BugCommentGroupByArgs['orderBy'] },
1291
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1292
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1293
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1294
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1295
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1296
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1297
+ InputErrors extends ByEmpty extends Prisma.True
1298
+ ? `Error: "by" must not be empty.`
1299
+ : HavingValid extends Prisma.False
1300
+ ? {
1301
+ [P in HavingFields]: P extends ByFields
1302
+ ? never
1303
+ : P extends string
1304
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1305
+ : [
1306
+ Error,
1307
+ 'Field ',
1308
+ P,
1309
+ ` in "having" needs to be provided in "by"`,
1310
+ ]
1311
+ }[HavingFields]
1312
+ : 'take' extends Prisma.Keys<T>
1313
+ ? 'orderBy' extends Prisma.Keys<T>
1314
+ ? ByValid extends Prisma.True
1315
+ ? {}
1316
+ : {
1317
+ [P in OrderFields]: P extends ByFields
1318
+ ? never
1319
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1320
+ }[OrderFields]
1321
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1322
+ : 'skip' extends Prisma.Keys<T>
1323
+ ? 'orderBy' extends Prisma.Keys<T>
1324
+ ? ByValid extends Prisma.True
1325
+ ? {}
1326
+ : {
1327
+ [P in OrderFields]: P extends ByFields
1328
+ ? never
1329
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1330
+ }[OrderFields]
1331
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1332
+ : ByValid extends Prisma.True
1333
+ ? {}
1334
+ : {
1335
+ [P in OrderFields]: P extends ByFields
1336
+ ? never
1337
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1338
+ }[OrderFields]
1339
+ >(args: Prisma.SubsetIntersection<T, BugCommentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBugCommentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1340
+ /**
1341
+ * Fields of the BugComment model
1342
+ */
1343
+ readonly fields: BugCommentFieldRefs;
1344
+ }
1345
+
1346
+ /**
1347
+ * The delegate class that acts as a "Promise-like" for BugComment.
1348
+ * Why is this prefixed with `Prisma__`?
1349
+ * Because we want to prevent naming conflicts as mentioned in
1350
+ * https://github.com/prisma/prisma-client-js/issues/707
1351
+ */
1352
+ export interface Prisma__BugCommentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1353
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1354
+ bug<T extends Prisma.BugDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BugDefaultArgs<ExtArgs>>): Prisma.Prisma__BugClient<runtime.Types.Result.GetResult<Prisma.$BugPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1355
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1356
+ parent<T extends Prisma.BugComment$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BugComment$parentArgs<ExtArgs>>): Prisma.Prisma__BugCommentClient<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1357
+ replies<T extends Prisma.BugComment$repliesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BugComment$repliesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BugCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1358
+ /**
1359
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1360
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1361
+ * @param onrejected The callback to execute when the Promise is rejected.
1362
+ * @returns A Promise for the completion of which ever callback is executed.
1363
+ */
1364
+ 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>
1365
+ /**
1366
+ * Attaches a callback for only the rejection of the Promise.
1367
+ * @param onrejected The callback to execute when the Promise is rejected.
1368
+ * @returns A Promise for the completion of the callback.
1369
+ */
1370
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1371
+ /**
1372
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1373
+ * resolved value cannot be modified from the callback.
1374
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1375
+ * @returns A Promise for the completion of the callback.
1376
+ */
1377
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1378
+ }
1379
+
1380
+
1381
+
1382
+
1383
+ /**
1384
+ * Fields of the BugComment model
1385
+ */
1386
+ export interface BugCommentFieldRefs {
1387
+ readonly id: Prisma.FieldRef<"BugComment", 'String'>
1388
+ readonly bugId: Prisma.FieldRef<"BugComment", 'String'>
1389
+ readonly userId: Prisma.FieldRef<"BugComment", 'String'>
1390
+ readonly parentId: Prisma.FieldRef<"BugComment", 'String'>
1391
+ readonly content: Prisma.FieldRef<"BugComment", 'String'>
1392
+ readonly createdAt: Prisma.FieldRef<"BugComment", 'DateTime'>
1393
+ readonly updatedAt: Prisma.FieldRef<"BugComment", 'DateTime'>
1394
+ }
1395
+
1396
+
1397
+ // Custom InputTypes
1398
+ /**
1399
+ * BugComment findUnique
1400
+ */
1401
+ export type BugCommentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1402
+ /**
1403
+ * Select specific fields to fetch from the BugComment
1404
+ */
1405
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1406
+ /**
1407
+ * Omit specific fields from the BugComment
1408
+ */
1409
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1410
+ /**
1411
+ * Choose, which related nodes to fetch as well
1412
+ */
1413
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1414
+ /**
1415
+ * Filter, which BugComment to fetch.
1416
+ */
1417
+ where: Prisma.BugCommentWhereUniqueInput
1418
+ }
1419
+
1420
+ /**
1421
+ * BugComment findUniqueOrThrow
1422
+ */
1423
+ export type BugCommentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1424
+ /**
1425
+ * Select specific fields to fetch from the BugComment
1426
+ */
1427
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1428
+ /**
1429
+ * Omit specific fields from the BugComment
1430
+ */
1431
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1432
+ /**
1433
+ * Choose, which related nodes to fetch as well
1434
+ */
1435
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1436
+ /**
1437
+ * Filter, which BugComment to fetch.
1438
+ */
1439
+ where: Prisma.BugCommentWhereUniqueInput
1440
+ }
1441
+
1442
+ /**
1443
+ * BugComment findFirst
1444
+ */
1445
+ export type BugCommentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1446
+ /**
1447
+ * Select specific fields to fetch from the BugComment
1448
+ */
1449
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1450
+ /**
1451
+ * Omit specific fields from the BugComment
1452
+ */
1453
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1454
+ /**
1455
+ * Choose, which related nodes to fetch as well
1456
+ */
1457
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1458
+ /**
1459
+ * Filter, which BugComment to fetch.
1460
+ */
1461
+ where?: Prisma.BugCommentWhereInput
1462
+ /**
1463
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1464
+ *
1465
+ * Determine the order of BugComments to fetch.
1466
+ */
1467
+ orderBy?: Prisma.BugCommentOrderByWithRelationInput | Prisma.BugCommentOrderByWithRelationInput[]
1468
+ /**
1469
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1470
+ *
1471
+ * Sets the position for searching for BugComments.
1472
+ */
1473
+ cursor?: Prisma.BugCommentWhereUniqueInput
1474
+ /**
1475
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1476
+ *
1477
+ * Take `±n` BugComments from the position of the cursor.
1478
+ */
1479
+ take?: number
1480
+ /**
1481
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1482
+ *
1483
+ * Skip the first `n` BugComments.
1484
+ */
1485
+ skip?: number
1486
+ /**
1487
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1488
+ *
1489
+ * Filter by unique combinations of BugComments.
1490
+ */
1491
+ distinct?: Prisma.BugCommentScalarFieldEnum | Prisma.BugCommentScalarFieldEnum[]
1492
+ }
1493
+
1494
+ /**
1495
+ * BugComment findFirstOrThrow
1496
+ */
1497
+ export type BugCommentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1498
+ /**
1499
+ * Select specific fields to fetch from the BugComment
1500
+ */
1501
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1502
+ /**
1503
+ * Omit specific fields from the BugComment
1504
+ */
1505
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1506
+ /**
1507
+ * Choose, which related nodes to fetch as well
1508
+ */
1509
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1510
+ /**
1511
+ * Filter, which BugComment to fetch.
1512
+ */
1513
+ where?: Prisma.BugCommentWhereInput
1514
+ /**
1515
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1516
+ *
1517
+ * Determine the order of BugComments to fetch.
1518
+ */
1519
+ orderBy?: Prisma.BugCommentOrderByWithRelationInput | Prisma.BugCommentOrderByWithRelationInput[]
1520
+ /**
1521
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1522
+ *
1523
+ * Sets the position for searching for BugComments.
1524
+ */
1525
+ cursor?: Prisma.BugCommentWhereUniqueInput
1526
+ /**
1527
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1528
+ *
1529
+ * Take `±n` BugComments from the position of the cursor.
1530
+ */
1531
+ take?: number
1532
+ /**
1533
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1534
+ *
1535
+ * Skip the first `n` BugComments.
1536
+ */
1537
+ skip?: number
1538
+ /**
1539
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1540
+ *
1541
+ * Filter by unique combinations of BugComments.
1542
+ */
1543
+ distinct?: Prisma.BugCommentScalarFieldEnum | Prisma.BugCommentScalarFieldEnum[]
1544
+ }
1545
+
1546
+ /**
1547
+ * BugComment findMany
1548
+ */
1549
+ export type BugCommentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1550
+ /**
1551
+ * Select specific fields to fetch from the BugComment
1552
+ */
1553
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1554
+ /**
1555
+ * Omit specific fields from the BugComment
1556
+ */
1557
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1558
+ /**
1559
+ * Choose, which related nodes to fetch as well
1560
+ */
1561
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1562
+ /**
1563
+ * Filter, which BugComments to fetch.
1564
+ */
1565
+ where?: Prisma.BugCommentWhereInput
1566
+ /**
1567
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1568
+ *
1569
+ * Determine the order of BugComments to fetch.
1570
+ */
1571
+ orderBy?: Prisma.BugCommentOrderByWithRelationInput | Prisma.BugCommentOrderByWithRelationInput[]
1572
+ /**
1573
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1574
+ *
1575
+ * Sets the position for listing BugComments.
1576
+ */
1577
+ cursor?: Prisma.BugCommentWhereUniqueInput
1578
+ /**
1579
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1580
+ *
1581
+ * Take `±n` BugComments from the position of the cursor.
1582
+ */
1583
+ take?: number
1584
+ /**
1585
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1586
+ *
1587
+ * Skip the first `n` BugComments.
1588
+ */
1589
+ skip?: number
1590
+ /**
1591
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1592
+ *
1593
+ * Filter by unique combinations of BugComments.
1594
+ */
1595
+ distinct?: Prisma.BugCommentScalarFieldEnum | Prisma.BugCommentScalarFieldEnum[]
1596
+ }
1597
+
1598
+ /**
1599
+ * BugComment create
1600
+ */
1601
+ export type BugCommentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * Select specific fields to fetch from the BugComment
1604
+ */
1605
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1606
+ /**
1607
+ * Omit specific fields from the BugComment
1608
+ */
1609
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1610
+ /**
1611
+ * Choose, which related nodes to fetch as well
1612
+ */
1613
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1614
+ /**
1615
+ * The data needed to create a BugComment.
1616
+ */
1617
+ data: Prisma.XOR<Prisma.BugCommentCreateInput, Prisma.BugCommentUncheckedCreateInput>
1618
+ }
1619
+
1620
+ /**
1621
+ * BugComment createMany
1622
+ */
1623
+ export type BugCommentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1624
+ /**
1625
+ * The data used to create many BugComments.
1626
+ */
1627
+ data: Prisma.BugCommentCreateManyInput | Prisma.BugCommentCreateManyInput[]
1628
+ skipDuplicates?: boolean
1629
+ }
1630
+
1631
+ /**
1632
+ * BugComment createManyAndReturn
1633
+ */
1634
+ export type BugCommentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1635
+ /**
1636
+ * Select specific fields to fetch from the BugComment
1637
+ */
1638
+ select?: Prisma.BugCommentSelectCreateManyAndReturn<ExtArgs> | null
1639
+ /**
1640
+ * Omit specific fields from the BugComment
1641
+ */
1642
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1643
+ /**
1644
+ * The data used to create many BugComments.
1645
+ */
1646
+ data: Prisma.BugCommentCreateManyInput | Prisma.BugCommentCreateManyInput[]
1647
+ skipDuplicates?: boolean
1648
+ /**
1649
+ * Choose, which related nodes to fetch as well
1650
+ */
1651
+ include?: Prisma.BugCommentIncludeCreateManyAndReturn<ExtArgs> | null
1652
+ }
1653
+
1654
+ /**
1655
+ * BugComment update
1656
+ */
1657
+ export type BugCommentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1658
+ /**
1659
+ * Select specific fields to fetch from the BugComment
1660
+ */
1661
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1662
+ /**
1663
+ * Omit specific fields from the BugComment
1664
+ */
1665
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1666
+ /**
1667
+ * Choose, which related nodes to fetch as well
1668
+ */
1669
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1670
+ /**
1671
+ * The data needed to update a BugComment.
1672
+ */
1673
+ data: Prisma.XOR<Prisma.BugCommentUpdateInput, Prisma.BugCommentUncheckedUpdateInput>
1674
+ /**
1675
+ * Choose, which BugComment to update.
1676
+ */
1677
+ where: Prisma.BugCommentWhereUniqueInput
1678
+ }
1679
+
1680
+ /**
1681
+ * BugComment updateMany
1682
+ */
1683
+ export type BugCommentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1684
+ /**
1685
+ * The data used to update BugComments.
1686
+ */
1687
+ data: Prisma.XOR<Prisma.BugCommentUpdateManyMutationInput, Prisma.BugCommentUncheckedUpdateManyInput>
1688
+ /**
1689
+ * Filter which BugComments to update
1690
+ */
1691
+ where?: Prisma.BugCommentWhereInput
1692
+ /**
1693
+ * Limit how many BugComments to update.
1694
+ */
1695
+ limit?: number
1696
+ }
1697
+
1698
+ /**
1699
+ * BugComment updateManyAndReturn
1700
+ */
1701
+ export type BugCommentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1702
+ /**
1703
+ * Select specific fields to fetch from the BugComment
1704
+ */
1705
+ select?: Prisma.BugCommentSelectUpdateManyAndReturn<ExtArgs> | null
1706
+ /**
1707
+ * Omit specific fields from the BugComment
1708
+ */
1709
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1710
+ /**
1711
+ * The data used to update BugComments.
1712
+ */
1713
+ data: Prisma.XOR<Prisma.BugCommentUpdateManyMutationInput, Prisma.BugCommentUncheckedUpdateManyInput>
1714
+ /**
1715
+ * Filter which BugComments to update
1716
+ */
1717
+ where?: Prisma.BugCommentWhereInput
1718
+ /**
1719
+ * Limit how many BugComments to update.
1720
+ */
1721
+ limit?: number
1722
+ /**
1723
+ * Choose, which related nodes to fetch as well
1724
+ */
1725
+ include?: Prisma.BugCommentIncludeUpdateManyAndReturn<ExtArgs> | null
1726
+ }
1727
+
1728
+ /**
1729
+ * BugComment upsert
1730
+ */
1731
+ export type BugCommentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1732
+ /**
1733
+ * Select specific fields to fetch from the BugComment
1734
+ */
1735
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1736
+ /**
1737
+ * Omit specific fields from the BugComment
1738
+ */
1739
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1740
+ /**
1741
+ * Choose, which related nodes to fetch as well
1742
+ */
1743
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1744
+ /**
1745
+ * The filter to search for the BugComment to update in case it exists.
1746
+ */
1747
+ where: Prisma.BugCommentWhereUniqueInput
1748
+ /**
1749
+ * In case the BugComment found by the `where` argument doesn't exist, create a new BugComment with this data.
1750
+ */
1751
+ create: Prisma.XOR<Prisma.BugCommentCreateInput, Prisma.BugCommentUncheckedCreateInput>
1752
+ /**
1753
+ * In case the BugComment was found with the provided `where` argument, update it with this data.
1754
+ */
1755
+ update: Prisma.XOR<Prisma.BugCommentUpdateInput, Prisma.BugCommentUncheckedUpdateInput>
1756
+ }
1757
+
1758
+ /**
1759
+ * BugComment delete
1760
+ */
1761
+ export type BugCommentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1762
+ /**
1763
+ * Select specific fields to fetch from the BugComment
1764
+ */
1765
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1766
+ /**
1767
+ * Omit specific fields from the BugComment
1768
+ */
1769
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1770
+ /**
1771
+ * Choose, which related nodes to fetch as well
1772
+ */
1773
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1774
+ /**
1775
+ * Filter which BugComment to delete.
1776
+ */
1777
+ where: Prisma.BugCommentWhereUniqueInput
1778
+ }
1779
+
1780
+ /**
1781
+ * BugComment deleteMany
1782
+ */
1783
+ export type BugCommentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1784
+ /**
1785
+ * Filter which BugComments to delete
1786
+ */
1787
+ where?: Prisma.BugCommentWhereInput
1788
+ /**
1789
+ * Limit how many BugComments to delete.
1790
+ */
1791
+ limit?: number
1792
+ }
1793
+
1794
+ /**
1795
+ * BugComment.parent
1796
+ */
1797
+ export type BugComment$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1798
+ /**
1799
+ * Select specific fields to fetch from the BugComment
1800
+ */
1801
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1802
+ /**
1803
+ * Omit specific fields from the BugComment
1804
+ */
1805
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1806
+ /**
1807
+ * Choose, which related nodes to fetch as well
1808
+ */
1809
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1810
+ where?: Prisma.BugCommentWhereInput
1811
+ }
1812
+
1813
+ /**
1814
+ * BugComment.replies
1815
+ */
1816
+ export type BugComment$repliesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1817
+ /**
1818
+ * Select specific fields to fetch from the BugComment
1819
+ */
1820
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1821
+ /**
1822
+ * Omit specific fields from the BugComment
1823
+ */
1824
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1825
+ /**
1826
+ * Choose, which related nodes to fetch as well
1827
+ */
1828
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1829
+ where?: Prisma.BugCommentWhereInput
1830
+ orderBy?: Prisma.BugCommentOrderByWithRelationInput | Prisma.BugCommentOrderByWithRelationInput[]
1831
+ cursor?: Prisma.BugCommentWhereUniqueInput
1832
+ take?: number
1833
+ skip?: number
1834
+ distinct?: Prisma.BugCommentScalarFieldEnum | Prisma.BugCommentScalarFieldEnum[]
1835
+ }
1836
+
1837
+ /**
1838
+ * BugComment without action
1839
+ */
1840
+ export type BugCommentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1841
+ /**
1842
+ * Select specific fields to fetch from the BugComment
1843
+ */
1844
+ select?: Prisma.BugCommentSelect<ExtArgs> | null
1845
+ /**
1846
+ * Omit specific fields from the BugComment
1847
+ */
1848
+ omit?: Prisma.BugCommentOmit<ExtArgs> | null
1849
+ /**
1850
+ * Choose, which related nodes to fetch as well
1851
+ */
1852
+ include?: Prisma.BugCommentInclude<ExtArgs> | null
1853
+ }