@allbluecn/database 0.9.1 → 0.9.3

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