@allbluecn/database 0.4.16 → 0.4.18

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