@allbluecn/database 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/desktop-init.ts +2 -2
  2. package/dist/lib/share-utils.js +3 -3
  3. package/generated/browser.ts +115 -25
  4. package/generated/client.ts +115 -25
  5. package/generated/commonInputTypes.ts +34 -0
  6. package/generated/enums.ts +14 -0
  7. package/generated/internal/class.ts +234 -54
  8. package/generated/internal/prismaNamespace.ts +2190 -511
  9. package/generated/internal/prismaNamespaceBrowser.ts +391 -76
  10. package/generated/models/AgentConversation.ts +89 -89
  11. package/generated/models/AiProvider.ts +3 -3
  12. package/generated/models/AiStreamChunk.ts +3 -3
  13. package/generated/models/AnyHubMarketApp.ts +8 -8
  14. package/generated/models/AuditLog.ts +6 -6
  15. package/generated/models/BlockInstance.ts +17 -17
  16. package/generated/models/Bug.ts +5023 -0
  17. package/generated/models/BugActivity.ts +1765 -0
  18. package/generated/models/BugComment.ts +1853 -0
  19. package/generated/models/BugEvent.ts +1339 -0
  20. package/generated/models/BugFilterView.ts +1438 -0
  21. package/generated/models/BugFixRun.ts +1479 -0
  22. package/generated/models/BugLabel.ts +1349 -0
  23. package/generated/models/BugProjectSettings.ts +1403 -0
  24. package/generated/models/BugReproRun.ts +1582 -0
  25. package/generated/models/ChatPersistenceMeta.ts +3 -3
  26. package/generated/models/Comment.ts +99 -99
  27. package/generated/models/Component.ts +9 -9
  28. package/generated/models/ComponentInstance.ts +17 -17
  29. package/generated/models/CustomRole.ts +8 -8
  30. package/generated/models/Design.ts +2872 -0
  31. package/generated/models/DesignPage.ts +2402 -0
  32. package/generated/models/DesignTag.ts +1430 -0
  33. package/generated/models/DesignVersion.ts +2121 -0
  34. package/generated/models/DesktopSetting.ts +3 -3
  35. package/generated/models/Iteration.ts +148 -0
  36. package/generated/models/Label.ts +118 -0
  37. package/generated/models/LicenseKey.ts +16 -16
  38. package/generated/models/NotificationPreference.ts +5 -5
  39. package/generated/models/PageVersion.ts +49 -49
  40. package/generated/models/Plan.ts +5 -5
  41. package/generated/models/Project.ts +1970 -58
  42. package/generated/models/ProjectAccessToken.ts +1705 -0
  43. package/generated/models/ProjectWebhook.ts +1409 -0
  44. package/generated/models/Review.ts +118 -118
  45. package/generated/models/Share.ts +83 -83
  46. package/generated/models/ShareVersion.ts +15 -15
  47. package/generated/models/SsoProvider.ts +8 -8
  48. package/generated/models/Story.ts +973 -87
  49. package/generated/models/StoryDesignLink.ts +1430 -0
  50. package/generated/models/StoryFilterView.ts +12 -12
  51. package/generated/models/SystemPromptVersion.ts +6 -6
  52. package/generated/models/Tag.ts +49 -49
  53. package/generated/models/TestAutomationArtifact.ts +1790 -0
  54. package/generated/models/TestCase.ts +3568 -0
  55. package/generated/models/TestCaseFilterView.ts +1587 -0
  56. package/generated/models/TestCaseFolder.ts +1795 -0
  57. package/generated/models/TestExecRun.ts +1673 -0
  58. package/generated/models/TestGenerationRun.ts +1952 -0
  59. package/generated/models/TestPlan.ts +1950 -0
  60. package/generated/models/TestPlanCase.ts +1430 -0
  61. package/generated/models/TestRun.ts +1979 -0
  62. package/generated/models/TestRunCase.ts +2772 -0
  63. package/generated/models/ThirdPartyDependency.ts +19 -15
  64. package/generated/models/User.ts +12141 -2721
  65. package/generated/models.ts +26 -8
  66. package/generated-sqlite/browser.ts +8 -23
  67. package/generated-sqlite/client.ts +8 -23
  68. package/generated-sqlite/internal/class.ts +20 -50
  69. package/generated-sqlite/internal/prismaNamespace.ts +166 -437
  70. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +25 -71
  71. package/generated-sqlite/models/AgentConversation.ts +89 -89
  72. package/generated-sqlite/models/AiProvider.ts +3 -3
  73. package/generated-sqlite/models/AiStreamChunk.ts +3 -3
  74. package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
  75. package/generated-sqlite/models/BlockInstance.ts +17 -17
  76. package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
  77. package/generated-sqlite/models/Comment.ts +99 -99
  78. package/generated-sqlite/models/Component.ts +9 -9
  79. package/generated-sqlite/models/ComponentInstance.ts +17 -17
  80. package/generated-sqlite/models/Design.ts +2679 -0
  81. package/generated-sqlite/models/DesignPage.ts +2398 -0
  82. package/generated-sqlite/models/DesignTag.ts +1426 -0
  83. package/generated-sqlite/models/DesignVersion.ts +2117 -0
  84. package/generated-sqlite/models/DesktopSetting.ts +3 -3
  85. package/generated-sqlite/models/KnowledgeBase.ts +240 -1
  86. package/generated-sqlite/models/NotificationPreference.ts +5 -5
  87. package/generated-sqlite/models/PageVersion.ts +49 -49
  88. package/generated-sqlite/models/Review.ts +118 -118
  89. package/generated-sqlite/models/Share.ts +83 -83
  90. package/generated-sqlite/models/ShareVersion.ts +15 -15
  91. package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
  92. package/generated-sqlite/models/Tag.ts +49 -49
  93. package/generated-sqlite/models/User.ts +1201 -1321
  94. package/generated-sqlite/models/Workspace.ts +164 -0
  95. package/generated-sqlite/models.ts +4 -7
  96. package/index.ts +17 -3
  97. package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
  98. package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
  99. package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
  100. package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
  101. package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
  102. package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
  103. package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
  104. package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
  105. package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
  106. package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
  107. package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
  108. package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
  109. package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
  110. package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
  111. package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
  112. package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
  113. package/package.json +2 -2
  114. package/schema.prisma +687 -177
  115. package/schema.sqlite.prisma +149 -151
  116. package/src/lib/share-utils.ts +2 -2
  117. package/generated/models/Artboard.ts +0 -1811
  118. package/generated/models/ArtboardExport.ts +0 -1548
  119. package/generated/models/DesignProject.ts +0 -1643
  120. package/generated/models/PRD.ts +0 -2805
  121. package/generated/models/PRDPage.ts +0 -2402
  122. package/generated/models/PRDTag.ts +0 -1430
  123. package/generated/models/PRDVersion.ts +0 -2121
  124. package/generated/models/StoryPrdLink.ts +0 -1430
  125. package/generated-sqlite/models/Artboard.ts +0 -1808
  126. package/generated-sqlite/models/ArtboardExport.ts +0 -1545
  127. package/generated-sqlite/models/DesignProject.ts +0 -1640
  128. package/generated-sqlite/models/PRD.ts +0 -2616
  129. package/generated-sqlite/models/PRDPage.ts +0 -2398
  130. package/generated-sqlite/models/PRDTag.ts +0 -1426
  131. package/generated-sqlite/models/PRDVersion.ts +0 -2117
@@ -0,0 +1,2121 @@
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 `DesignVersion` 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 DesignVersion
17
+ *
18
+ */
19
+ export type DesignVersionModel = runtime.Types.Result.DefaultSelection<Prisma.$DesignVersionPayload>
20
+
21
+ export type AggregateDesignVersion = {
22
+ _count: DesignVersionCountAggregateOutputType | null
23
+ _avg: DesignVersionAvgAggregateOutputType | null
24
+ _sum: DesignVersionSumAggregateOutputType | null
25
+ _min: DesignVersionMinAggregateOutputType | null
26
+ _max: DesignVersionMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type DesignVersionAvgAggregateOutputType = {
30
+ major: number | null
31
+ minor: number | null
32
+ patch: number | null
33
+ }
34
+
35
+ export type DesignVersionSumAggregateOutputType = {
36
+ major: number | null
37
+ minor: number | null
38
+ patch: number | null
39
+ }
40
+
41
+ export type DesignVersionMinAggregateOutputType = {
42
+ id: string | null
43
+ designId: string | null
44
+ major: number | null
45
+ minor: number | null
46
+ patch: number | null
47
+ versionLabel: string | null
48
+ parentVersion: string | null
49
+ notes: string | null
50
+ userId: string | null
51
+ createdAt: Date | null
52
+ updatedAt: Date | null
53
+ }
54
+
55
+ export type DesignVersionMaxAggregateOutputType = {
56
+ id: string | null
57
+ designId: string | null
58
+ major: number | null
59
+ minor: number | null
60
+ patch: number | null
61
+ versionLabel: string | null
62
+ parentVersion: string | null
63
+ notes: string | null
64
+ userId: string | null
65
+ createdAt: Date | null
66
+ updatedAt: Date | null
67
+ }
68
+
69
+ export type DesignVersionCountAggregateOutputType = {
70
+ id: number
71
+ designId: number
72
+ major: number
73
+ minor: number
74
+ patch: number
75
+ versionLabel: number
76
+ parentVersion: number
77
+ pageVersions: number
78
+ notes: number
79
+ userId: number
80
+ createdAt: number
81
+ updatedAt: number
82
+ _all: number
83
+ }
84
+
85
+
86
+ export type DesignVersionAvgAggregateInputType = {
87
+ major?: true
88
+ minor?: true
89
+ patch?: true
90
+ }
91
+
92
+ export type DesignVersionSumAggregateInputType = {
93
+ major?: true
94
+ minor?: true
95
+ patch?: true
96
+ }
97
+
98
+ export type DesignVersionMinAggregateInputType = {
99
+ id?: true
100
+ designId?: true
101
+ major?: true
102
+ minor?: true
103
+ patch?: true
104
+ versionLabel?: true
105
+ parentVersion?: true
106
+ notes?: true
107
+ userId?: true
108
+ createdAt?: true
109
+ updatedAt?: true
110
+ }
111
+
112
+ export type DesignVersionMaxAggregateInputType = {
113
+ id?: true
114
+ designId?: true
115
+ major?: true
116
+ minor?: true
117
+ patch?: true
118
+ versionLabel?: true
119
+ parentVersion?: true
120
+ notes?: true
121
+ userId?: true
122
+ createdAt?: true
123
+ updatedAt?: true
124
+ }
125
+
126
+ export type DesignVersionCountAggregateInputType = {
127
+ id?: true
128
+ designId?: true
129
+ major?: true
130
+ minor?: true
131
+ patch?: true
132
+ versionLabel?: true
133
+ parentVersion?: true
134
+ pageVersions?: true
135
+ notes?: true
136
+ userId?: true
137
+ createdAt?: true
138
+ updatedAt?: true
139
+ _all?: true
140
+ }
141
+
142
+ export type DesignVersionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
143
+ /**
144
+ * Filter which DesignVersion to aggregate.
145
+ */
146
+ where?: Prisma.DesignVersionWhereInput
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
149
+ *
150
+ * Determine the order of DesignVersions to fetch.
151
+ */
152
+ orderBy?: Prisma.DesignVersionOrderByWithRelationInput | Prisma.DesignVersionOrderByWithRelationInput[]
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
155
+ *
156
+ * Sets the start position
157
+ */
158
+ cursor?: Prisma.DesignVersionWhereUniqueInput
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
161
+ *
162
+ * Take `±n` DesignVersions from the position of the cursor.
163
+ */
164
+ take?: number
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
167
+ *
168
+ * Skip the first `n` DesignVersions.
169
+ */
170
+ skip?: number
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Count returned DesignVersions
175
+ **/
176
+ _count?: true | DesignVersionCountAggregateInputType
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Select which fields to average
181
+ **/
182
+ _avg?: DesignVersionAvgAggregateInputType
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Select which fields to sum
187
+ **/
188
+ _sum?: DesignVersionSumAggregateInputType
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Select which fields to find the minimum value
193
+ **/
194
+ _min?: DesignVersionMinAggregateInputType
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to find the maximum value
199
+ **/
200
+ _max?: DesignVersionMaxAggregateInputType
201
+ }
202
+
203
+ export type GetDesignVersionAggregateType<T extends DesignVersionAggregateArgs> = {
204
+ [P in keyof T & keyof AggregateDesignVersion]: P extends '_count' | 'count'
205
+ ? T[P] extends true
206
+ ? number
207
+ : Prisma.GetScalarType<T[P], AggregateDesignVersion[P]>
208
+ : Prisma.GetScalarType<T[P], AggregateDesignVersion[P]>
209
+ }
210
+
211
+
212
+
213
+
214
+ export type DesignVersionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
215
+ where?: Prisma.DesignVersionWhereInput
216
+ orderBy?: Prisma.DesignVersionOrderByWithAggregationInput | Prisma.DesignVersionOrderByWithAggregationInput[]
217
+ by: Prisma.DesignVersionScalarFieldEnum[] | Prisma.DesignVersionScalarFieldEnum
218
+ having?: Prisma.DesignVersionScalarWhereWithAggregatesInput
219
+ take?: number
220
+ skip?: number
221
+ _count?: DesignVersionCountAggregateInputType | true
222
+ _avg?: DesignVersionAvgAggregateInputType
223
+ _sum?: DesignVersionSumAggregateInputType
224
+ _min?: DesignVersionMinAggregateInputType
225
+ _max?: DesignVersionMaxAggregateInputType
226
+ }
227
+
228
+ export type DesignVersionGroupByOutputType = {
229
+ id: string
230
+ designId: string
231
+ major: number
232
+ minor: number
233
+ patch: number
234
+ versionLabel: string
235
+ parentVersion: string | null
236
+ pageVersions: runtime.JsonValue
237
+ notes: string | null
238
+ userId: string
239
+ createdAt: Date
240
+ updatedAt: Date | null
241
+ _count: DesignVersionCountAggregateOutputType | null
242
+ _avg: DesignVersionAvgAggregateOutputType | null
243
+ _sum: DesignVersionSumAggregateOutputType | null
244
+ _min: DesignVersionMinAggregateOutputType | null
245
+ _max: DesignVersionMaxAggregateOutputType | null
246
+ }
247
+
248
+ export type GetDesignVersionGroupByPayload<T extends DesignVersionGroupByArgs> = Prisma.PrismaPromise<
249
+ Array<
250
+ Prisma.PickEnumerable<DesignVersionGroupByOutputType, T['by']> &
251
+ {
252
+ [P in ((keyof T) & (keyof DesignVersionGroupByOutputType))]: P extends '_count'
253
+ ? T[P] extends boolean
254
+ ? number
255
+ : Prisma.GetScalarType<T[P], DesignVersionGroupByOutputType[P]>
256
+ : Prisma.GetScalarType<T[P], DesignVersionGroupByOutputType[P]>
257
+ }
258
+ >
259
+ >
260
+
261
+
262
+
263
+ export type DesignVersionWhereInput = {
264
+ AND?: Prisma.DesignVersionWhereInput | Prisma.DesignVersionWhereInput[]
265
+ OR?: Prisma.DesignVersionWhereInput[]
266
+ NOT?: Prisma.DesignVersionWhereInput | Prisma.DesignVersionWhereInput[]
267
+ id?: Prisma.StringFilter<"DesignVersion"> | string
268
+ designId?: Prisma.StringFilter<"DesignVersion"> | string
269
+ major?: Prisma.IntFilter<"DesignVersion"> | number
270
+ minor?: Prisma.IntFilter<"DesignVersion"> | number
271
+ patch?: Prisma.IntFilter<"DesignVersion"> | number
272
+ versionLabel?: Prisma.StringFilter<"DesignVersion"> | string
273
+ parentVersion?: Prisma.StringNullableFilter<"DesignVersion"> | string | null
274
+ pageVersions?: Prisma.JsonFilter<"DesignVersion">
275
+ notes?: Prisma.StringNullableFilter<"DesignVersion"> | string | null
276
+ userId?: Prisma.StringFilter<"DesignVersion"> | string
277
+ createdAt?: Prisma.DateTimeFilter<"DesignVersion"> | Date | string
278
+ updatedAt?: Prisma.DateTimeNullableFilter<"DesignVersion"> | Date | string | null
279
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
280
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
281
+ reviews?: Prisma.ReviewListRelationFilter
282
+ shareVersions?: Prisma.ShareVersionListRelationFilter
283
+ }
284
+
285
+ export type DesignVersionOrderByWithRelationInput = {
286
+ id?: Prisma.SortOrder
287
+ designId?: Prisma.SortOrder
288
+ major?: Prisma.SortOrder
289
+ minor?: Prisma.SortOrder
290
+ patch?: Prisma.SortOrder
291
+ versionLabel?: Prisma.SortOrder
292
+ parentVersion?: Prisma.SortOrderInput | Prisma.SortOrder
293
+ pageVersions?: Prisma.SortOrder
294
+ notes?: Prisma.SortOrderInput | Prisma.SortOrder
295
+ userId?: Prisma.SortOrder
296
+ createdAt?: Prisma.SortOrder
297
+ updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
298
+ design?: Prisma.DesignOrderByWithRelationInput
299
+ user?: Prisma.UserOrderByWithRelationInput
300
+ reviews?: Prisma.ReviewOrderByRelationAggregateInput
301
+ shareVersions?: Prisma.ShareVersionOrderByRelationAggregateInput
302
+ }
303
+
304
+ export type DesignVersionWhereUniqueInput = Prisma.AtLeast<{
305
+ id?: string
306
+ AND?: Prisma.DesignVersionWhereInput | Prisma.DesignVersionWhereInput[]
307
+ OR?: Prisma.DesignVersionWhereInput[]
308
+ NOT?: Prisma.DesignVersionWhereInput | Prisma.DesignVersionWhereInput[]
309
+ designId?: Prisma.StringFilter<"DesignVersion"> | string
310
+ major?: Prisma.IntFilter<"DesignVersion"> | number
311
+ minor?: Prisma.IntFilter<"DesignVersion"> | number
312
+ patch?: Prisma.IntFilter<"DesignVersion"> | number
313
+ versionLabel?: Prisma.StringFilter<"DesignVersion"> | string
314
+ parentVersion?: Prisma.StringNullableFilter<"DesignVersion"> | string | null
315
+ pageVersions?: Prisma.JsonFilter<"DesignVersion">
316
+ notes?: Prisma.StringNullableFilter<"DesignVersion"> | string | null
317
+ userId?: Prisma.StringFilter<"DesignVersion"> | string
318
+ createdAt?: Prisma.DateTimeFilter<"DesignVersion"> | Date | string
319
+ updatedAt?: Prisma.DateTimeNullableFilter<"DesignVersion"> | Date | string | null
320
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
321
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
322
+ reviews?: Prisma.ReviewListRelationFilter
323
+ shareVersions?: Prisma.ShareVersionListRelationFilter
324
+ }, "id">
325
+
326
+ export type DesignVersionOrderByWithAggregationInput = {
327
+ id?: Prisma.SortOrder
328
+ designId?: Prisma.SortOrder
329
+ major?: Prisma.SortOrder
330
+ minor?: Prisma.SortOrder
331
+ patch?: Prisma.SortOrder
332
+ versionLabel?: Prisma.SortOrder
333
+ parentVersion?: Prisma.SortOrderInput | Prisma.SortOrder
334
+ pageVersions?: Prisma.SortOrder
335
+ notes?: Prisma.SortOrderInput | Prisma.SortOrder
336
+ userId?: Prisma.SortOrder
337
+ createdAt?: Prisma.SortOrder
338
+ updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
339
+ _count?: Prisma.DesignVersionCountOrderByAggregateInput
340
+ _avg?: Prisma.DesignVersionAvgOrderByAggregateInput
341
+ _max?: Prisma.DesignVersionMaxOrderByAggregateInput
342
+ _min?: Prisma.DesignVersionMinOrderByAggregateInput
343
+ _sum?: Prisma.DesignVersionSumOrderByAggregateInput
344
+ }
345
+
346
+ export type DesignVersionScalarWhereWithAggregatesInput = {
347
+ AND?: Prisma.DesignVersionScalarWhereWithAggregatesInput | Prisma.DesignVersionScalarWhereWithAggregatesInput[]
348
+ OR?: Prisma.DesignVersionScalarWhereWithAggregatesInput[]
349
+ NOT?: Prisma.DesignVersionScalarWhereWithAggregatesInput | Prisma.DesignVersionScalarWhereWithAggregatesInput[]
350
+ id?: Prisma.StringWithAggregatesFilter<"DesignVersion"> | string
351
+ designId?: Prisma.StringWithAggregatesFilter<"DesignVersion"> | string
352
+ major?: Prisma.IntWithAggregatesFilter<"DesignVersion"> | number
353
+ minor?: Prisma.IntWithAggregatesFilter<"DesignVersion"> | number
354
+ patch?: Prisma.IntWithAggregatesFilter<"DesignVersion"> | number
355
+ versionLabel?: Prisma.StringWithAggregatesFilter<"DesignVersion"> | string
356
+ parentVersion?: Prisma.StringNullableWithAggregatesFilter<"DesignVersion"> | string | null
357
+ pageVersions?: Prisma.JsonWithAggregatesFilter<"DesignVersion">
358
+ notes?: Prisma.StringNullableWithAggregatesFilter<"DesignVersion"> | string | null
359
+ userId?: Prisma.StringWithAggregatesFilter<"DesignVersion"> | string
360
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"DesignVersion"> | Date | string
361
+ updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"DesignVersion"> | Date | string | null
362
+ }
363
+
364
+ export type DesignVersionCreateInput = {
365
+ id?: string
366
+ major?: number
367
+ minor?: number
368
+ patch?: number
369
+ versionLabel: string
370
+ parentVersion?: string | null
371
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
372
+ notes?: string | null
373
+ createdAt?: Date | string
374
+ updatedAt?: Date | string | null
375
+ design: Prisma.DesignCreateNestedOneWithoutVersionsInput
376
+ user: Prisma.UserCreateNestedOneWithoutDesignVersionsInput
377
+ reviews?: Prisma.ReviewCreateNestedManyWithoutVersionInput
378
+ shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutVersionInput
379
+ }
380
+
381
+ export type DesignVersionUncheckedCreateInput = {
382
+ id?: string
383
+ designId: string
384
+ major?: number
385
+ minor?: number
386
+ patch?: number
387
+ versionLabel: string
388
+ parentVersion?: string | null
389
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
390
+ notes?: string | null
391
+ userId: string
392
+ createdAt?: Date | string
393
+ updatedAt?: Date | string | null
394
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutVersionInput
395
+ shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutVersionInput
396
+ }
397
+
398
+ export type DesignVersionUpdateInput = {
399
+ id?: Prisma.StringFieldUpdateOperationsInput | string
400
+ major?: Prisma.IntFieldUpdateOperationsInput | number
401
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
402
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
403
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
404
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
405
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
406
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
407
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
408
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
409
+ design?: Prisma.DesignUpdateOneRequiredWithoutVersionsNestedInput
410
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignVersionsNestedInput
411
+ reviews?: Prisma.ReviewUpdateManyWithoutVersionNestedInput
412
+ shareVersions?: Prisma.ShareVersionUpdateManyWithoutVersionNestedInput
413
+ }
414
+
415
+ export type DesignVersionUncheckedUpdateInput = {
416
+ id?: Prisma.StringFieldUpdateOperationsInput | string
417
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
418
+ major?: Prisma.IntFieldUpdateOperationsInput | number
419
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
420
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
421
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
422
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
423
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
424
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
425
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
426
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
427
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
428
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutVersionNestedInput
429
+ shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutVersionNestedInput
430
+ }
431
+
432
+ export type DesignVersionCreateManyInput = {
433
+ id?: string
434
+ designId: string
435
+ major?: number
436
+ minor?: number
437
+ patch?: number
438
+ versionLabel: string
439
+ parentVersion?: string | null
440
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
441
+ notes?: string | null
442
+ userId: string
443
+ createdAt?: Date | string
444
+ updatedAt?: Date | string | null
445
+ }
446
+
447
+ export type DesignVersionUpdateManyMutationInput = {
448
+ id?: Prisma.StringFieldUpdateOperationsInput | string
449
+ major?: Prisma.IntFieldUpdateOperationsInput | number
450
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
451
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
452
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
453
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
454
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
455
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
456
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
457
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
458
+ }
459
+
460
+ export type DesignVersionUncheckedUpdateManyInput = {
461
+ id?: Prisma.StringFieldUpdateOperationsInput | string
462
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
463
+ major?: Prisma.IntFieldUpdateOperationsInput | number
464
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
465
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
466
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
467
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
468
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
469
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
470
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
471
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
472
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
473
+ }
474
+
475
+ export type DesignVersionListRelationFilter = {
476
+ every?: Prisma.DesignVersionWhereInput
477
+ some?: Prisma.DesignVersionWhereInput
478
+ none?: Prisma.DesignVersionWhereInput
479
+ }
480
+
481
+ export type DesignVersionOrderByRelationAggregateInput = {
482
+ _count?: Prisma.SortOrder
483
+ }
484
+
485
+ export type DesignVersionCountOrderByAggregateInput = {
486
+ id?: Prisma.SortOrder
487
+ designId?: Prisma.SortOrder
488
+ major?: Prisma.SortOrder
489
+ minor?: Prisma.SortOrder
490
+ patch?: Prisma.SortOrder
491
+ versionLabel?: Prisma.SortOrder
492
+ parentVersion?: Prisma.SortOrder
493
+ pageVersions?: Prisma.SortOrder
494
+ notes?: Prisma.SortOrder
495
+ userId?: Prisma.SortOrder
496
+ createdAt?: Prisma.SortOrder
497
+ updatedAt?: Prisma.SortOrder
498
+ }
499
+
500
+ export type DesignVersionAvgOrderByAggregateInput = {
501
+ major?: Prisma.SortOrder
502
+ minor?: Prisma.SortOrder
503
+ patch?: Prisma.SortOrder
504
+ }
505
+
506
+ export type DesignVersionMaxOrderByAggregateInput = {
507
+ id?: Prisma.SortOrder
508
+ designId?: Prisma.SortOrder
509
+ major?: Prisma.SortOrder
510
+ minor?: Prisma.SortOrder
511
+ patch?: Prisma.SortOrder
512
+ versionLabel?: Prisma.SortOrder
513
+ parentVersion?: Prisma.SortOrder
514
+ notes?: Prisma.SortOrder
515
+ userId?: Prisma.SortOrder
516
+ createdAt?: Prisma.SortOrder
517
+ updatedAt?: Prisma.SortOrder
518
+ }
519
+
520
+ export type DesignVersionMinOrderByAggregateInput = {
521
+ id?: Prisma.SortOrder
522
+ designId?: Prisma.SortOrder
523
+ major?: Prisma.SortOrder
524
+ minor?: Prisma.SortOrder
525
+ patch?: Prisma.SortOrder
526
+ versionLabel?: Prisma.SortOrder
527
+ parentVersion?: Prisma.SortOrder
528
+ notes?: Prisma.SortOrder
529
+ userId?: Prisma.SortOrder
530
+ createdAt?: Prisma.SortOrder
531
+ updatedAt?: Prisma.SortOrder
532
+ }
533
+
534
+ export type DesignVersionSumOrderByAggregateInput = {
535
+ major?: Prisma.SortOrder
536
+ minor?: Prisma.SortOrder
537
+ patch?: Prisma.SortOrder
538
+ }
539
+
540
+ export type DesignVersionScalarRelationFilter = {
541
+ is?: Prisma.DesignVersionWhereInput
542
+ isNot?: Prisma.DesignVersionWhereInput
543
+ }
544
+
545
+ export type DesignVersionCreateNestedManyWithoutUserInput = {
546
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutUserInput, Prisma.DesignVersionUncheckedCreateWithoutUserInput> | Prisma.DesignVersionCreateWithoutUserInput[] | Prisma.DesignVersionUncheckedCreateWithoutUserInput[]
547
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutUserInput | Prisma.DesignVersionCreateOrConnectWithoutUserInput[]
548
+ createMany?: Prisma.DesignVersionCreateManyUserInputEnvelope
549
+ connect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
550
+ }
551
+
552
+ export type DesignVersionUncheckedCreateNestedManyWithoutUserInput = {
553
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutUserInput, Prisma.DesignVersionUncheckedCreateWithoutUserInput> | Prisma.DesignVersionCreateWithoutUserInput[] | Prisma.DesignVersionUncheckedCreateWithoutUserInput[]
554
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutUserInput | Prisma.DesignVersionCreateOrConnectWithoutUserInput[]
555
+ createMany?: Prisma.DesignVersionCreateManyUserInputEnvelope
556
+ connect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
557
+ }
558
+
559
+ export type DesignVersionUpdateManyWithoutUserNestedInput = {
560
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutUserInput, Prisma.DesignVersionUncheckedCreateWithoutUserInput> | Prisma.DesignVersionCreateWithoutUserInput[] | Prisma.DesignVersionUncheckedCreateWithoutUserInput[]
561
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutUserInput | Prisma.DesignVersionCreateOrConnectWithoutUserInput[]
562
+ upsert?: Prisma.DesignVersionUpsertWithWhereUniqueWithoutUserInput | Prisma.DesignVersionUpsertWithWhereUniqueWithoutUserInput[]
563
+ createMany?: Prisma.DesignVersionCreateManyUserInputEnvelope
564
+ set?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
565
+ disconnect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
566
+ delete?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
567
+ connect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
568
+ update?: Prisma.DesignVersionUpdateWithWhereUniqueWithoutUserInput | Prisma.DesignVersionUpdateWithWhereUniqueWithoutUserInput[]
569
+ updateMany?: Prisma.DesignVersionUpdateManyWithWhereWithoutUserInput | Prisma.DesignVersionUpdateManyWithWhereWithoutUserInput[]
570
+ deleteMany?: Prisma.DesignVersionScalarWhereInput | Prisma.DesignVersionScalarWhereInput[]
571
+ }
572
+
573
+ export type DesignVersionUncheckedUpdateManyWithoutUserNestedInput = {
574
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutUserInput, Prisma.DesignVersionUncheckedCreateWithoutUserInput> | Prisma.DesignVersionCreateWithoutUserInput[] | Prisma.DesignVersionUncheckedCreateWithoutUserInput[]
575
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutUserInput | Prisma.DesignVersionCreateOrConnectWithoutUserInput[]
576
+ upsert?: Prisma.DesignVersionUpsertWithWhereUniqueWithoutUserInput | Prisma.DesignVersionUpsertWithWhereUniqueWithoutUserInput[]
577
+ createMany?: Prisma.DesignVersionCreateManyUserInputEnvelope
578
+ set?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
579
+ disconnect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
580
+ delete?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
581
+ connect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
582
+ update?: Prisma.DesignVersionUpdateWithWhereUniqueWithoutUserInput | Prisma.DesignVersionUpdateWithWhereUniqueWithoutUserInput[]
583
+ updateMany?: Prisma.DesignVersionUpdateManyWithWhereWithoutUserInput | Prisma.DesignVersionUpdateManyWithWhereWithoutUserInput[]
584
+ deleteMany?: Prisma.DesignVersionScalarWhereInput | Prisma.DesignVersionScalarWhereInput[]
585
+ }
586
+
587
+ export type DesignVersionCreateNestedManyWithoutDesignInput = {
588
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutDesignInput, Prisma.DesignVersionUncheckedCreateWithoutDesignInput> | Prisma.DesignVersionCreateWithoutDesignInput[] | Prisma.DesignVersionUncheckedCreateWithoutDesignInput[]
589
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutDesignInput | Prisma.DesignVersionCreateOrConnectWithoutDesignInput[]
590
+ createMany?: Prisma.DesignVersionCreateManyDesignInputEnvelope
591
+ connect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
592
+ }
593
+
594
+ export type DesignVersionUncheckedCreateNestedManyWithoutDesignInput = {
595
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutDesignInput, Prisma.DesignVersionUncheckedCreateWithoutDesignInput> | Prisma.DesignVersionCreateWithoutDesignInput[] | Prisma.DesignVersionUncheckedCreateWithoutDesignInput[]
596
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutDesignInput | Prisma.DesignVersionCreateOrConnectWithoutDesignInput[]
597
+ createMany?: Prisma.DesignVersionCreateManyDesignInputEnvelope
598
+ connect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
599
+ }
600
+
601
+ export type DesignVersionUpdateManyWithoutDesignNestedInput = {
602
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutDesignInput, Prisma.DesignVersionUncheckedCreateWithoutDesignInput> | Prisma.DesignVersionCreateWithoutDesignInput[] | Prisma.DesignVersionUncheckedCreateWithoutDesignInput[]
603
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutDesignInput | Prisma.DesignVersionCreateOrConnectWithoutDesignInput[]
604
+ upsert?: Prisma.DesignVersionUpsertWithWhereUniqueWithoutDesignInput | Prisma.DesignVersionUpsertWithWhereUniqueWithoutDesignInput[]
605
+ createMany?: Prisma.DesignVersionCreateManyDesignInputEnvelope
606
+ set?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
607
+ disconnect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
608
+ delete?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
609
+ connect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
610
+ update?: Prisma.DesignVersionUpdateWithWhereUniqueWithoutDesignInput | Prisma.DesignVersionUpdateWithWhereUniqueWithoutDesignInput[]
611
+ updateMany?: Prisma.DesignVersionUpdateManyWithWhereWithoutDesignInput | Prisma.DesignVersionUpdateManyWithWhereWithoutDesignInput[]
612
+ deleteMany?: Prisma.DesignVersionScalarWhereInput | Prisma.DesignVersionScalarWhereInput[]
613
+ }
614
+
615
+ export type DesignVersionUncheckedUpdateManyWithoutDesignNestedInput = {
616
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutDesignInput, Prisma.DesignVersionUncheckedCreateWithoutDesignInput> | Prisma.DesignVersionCreateWithoutDesignInput[] | Prisma.DesignVersionUncheckedCreateWithoutDesignInput[]
617
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutDesignInput | Prisma.DesignVersionCreateOrConnectWithoutDesignInput[]
618
+ upsert?: Prisma.DesignVersionUpsertWithWhereUniqueWithoutDesignInput | Prisma.DesignVersionUpsertWithWhereUniqueWithoutDesignInput[]
619
+ createMany?: Prisma.DesignVersionCreateManyDesignInputEnvelope
620
+ set?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
621
+ disconnect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
622
+ delete?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
623
+ connect?: Prisma.DesignVersionWhereUniqueInput | Prisma.DesignVersionWhereUniqueInput[]
624
+ update?: Prisma.DesignVersionUpdateWithWhereUniqueWithoutDesignInput | Prisma.DesignVersionUpdateWithWhereUniqueWithoutDesignInput[]
625
+ updateMany?: Prisma.DesignVersionUpdateManyWithWhereWithoutDesignInput | Prisma.DesignVersionUpdateManyWithWhereWithoutDesignInput[]
626
+ deleteMany?: Prisma.DesignVersionScalarWhereInput | Prisma.DesignVersionScalarWhereInput[]
627
+ }
628
+
629
+ export type DesignVersionCreateNestedOneWithoutReviewsInput = {
630
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutReviewsInput, Prisma.DesignVersionUncheckedCreateWithoutReviewsInput>
631
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutReviewsInput
632
+ connect?: Prisma.DesignVersionWhereUniqueInput
633
+ }
634
+
635
+ export type DesignVersionUpdateOneRequiredWithoutReviewsNestedInput = {
636
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutReviewsInput, Prisma.DesignVersionUncheckedCreateWithoutReviewsInput>
637
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutReviewsInput
638
+ upsert?: Prisma.DesignVersionUpsertWithoutReviewsInput
639
+ connect?: Prisma.DesignVersionWhereUniqueInput
640
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignVersionUpdateToOneWithWhereWithoutReviewsInput, Prisma.DesignVersionUpdateWithoutReviewsInput>, Prisma.DesignVersionUncheckedUpdateWithoutReviewsInput>
641
+ }
642
+
643
+ export type DesignVersionCreateNestedOneWithoutShareVersionsInput = {
644
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutShareVersionsInput, Prisma.DesignVersionUncheckedCreateWithoutShareVersionsInput>
645
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutShareVersionsInput
646
+ connect?: Prisma.DesignVersionWhereUniqueInput
647
+ }
648
+
649
+ export type DesignVersionUpdateOneRequiredWithoutShareVersionsNestedInput = {
650
+ create?: Prisma.XOR<Prisma.DesignVersionCreateWithoutShareVersionsInput, Prisma.DesignVersionUncheckedCreateWithoutShareVersionsInput>
651
+ connectOrCreate?: Prisma.DesignVersionCreateOrConnectWithoutShareVersionsInput
652
+ upsert?: Prisma.DesignVersionUpsertWithoutShareVersionsInput
653
+ connect?: Prisma.DesignVersionWhereUniqueInput
654
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignVersionUpdateToOneWithWhereWithoutShareVersionsInput, Prisma.DesignVersionUpdateWithoutShareVersionsInput>, Prisma.DesignVersionUncheckedUpdateWithoutShareVersionsInput>
655
+ }
656
+
657
+ export type DesignVersionCreateWithoutUserInput = {
658
+ id?: string
659
+ major?: number
660
+ minor?: number
661
+ patch?: number
662
+ versionLabel: string
663
+ parentVersion?: string | null
664
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
665
+ notes?: string | null
666
+ createdAt?: Date | string
667
+ updatedAt?: Date | string | null
668
+ design: Prisma.DesignCreateNestedOneWithoutVersionsInput
669
+ reviews?: Prisma.ReviewCreateNestedManyWithoutVersionInput
670
+ shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutVersionInput
671
+ }
672
+
673
+ export type DesignVersionUncheckedCreateWithoutUserInput = {
674
+ id?: string
675
+ designId: string
676
+ major?: number
677
+ minor?: number
678
+ patch?: number
679
+ versionLabel: string
680
+ parentVersion?: string | null
681
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
682
+ notes?: string | null
683
+ createdAt?: Date | string
684
+ updatedAt?: Date | string | null
685
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutVersionInput
686
+ shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutVersionInput
687
+ }
688
+
689
+ export type DesignVersionCreateOrConnectWithoutUserInput = {
690
+ where: Prisma.DesignVersionWhereUniqueInput
691
+ create: Prisma.XOR<Prisma.DesignVersionCreateWithoutUserInput, Prisma.DesignVersionUncheckedCreateWithoutUserInput>
692
+ }
693
+
694
+ export type DesignVersionCreateManyUserInputEnvelope = {
695
+ data: Prisma.DesignVersionCreateManyUserInput | Prisma.DesignVersionCreateManyUserInput[]
696
+ skipDuplicates?: boolean
697
+ }
698
+
699
+ export type DesignVersionUpsertWithWhereUniqueWithoutUserInput = {
700
+ where: Prisma.DesignVersionWhereUniqueInput
701
+ update: Prisma.XOR<Prisma.DesignVersionUpdateWithoutUserInput, Prisma.DesignVersionUncheckedUpdateWithoutUserInput>
702
+ create: Prisma.XOR<Prisma.DesignVersionCreateWithoutUserInput, Prisma.DesignVersionUncheckedCreateWithoutUserInput>
703
+ }
704
+
705
+ export type DesignVersionUpdateWithWhereUniqueWithoutUserInput = {
706
+ where: Prisma.DesignVersionWhereUniqueInput
707
+ data: Prisma.XOR<Prisma.DesignVersionUpdateWithoutUserInput, Prisma.DesignVersionUncheckedUpdateWithoutUserInput>
708
+ }
709
+
710
+ export type DesignVersionUpdateManyWithWhereWithoutUserInput = {
711
+ where: Prisma.DesignVersionScalarWhereInput
712
+ data: Prisma.XOR<Prisma.DesignVersionUpdateManyMutationInput, Prisma.DesignVersionUncheckedUpdateManyWithoutUserInput>
713
+ }
714
+
715
+ export type DesignVersionScalarWhereInput = {
716
+ AND?: Prisma.DesignVersionScalarWhereInput | Prisma.DesignVersionScalarWhereInput[]
717
+ OR?: Prisma.DesignVersionScalarWhereInput[]
718
+ NOT?: Prisma.DesignVersionScalarWhereInput | Prisma.DesignVersionScalarWhereInput[]
719
+ id?: Prisma.StringFilter<"DesignVersion"> | string
720
+ designId?: Prisma.StringFilter<"DesignVersion"> | string
721
+ major?: Prisma.IntFilter<"DesignVersion"> | number
722
+ minor?: Prisma.IntFilter<"DesignVersion"> | number
723
+ patch?: Prisma.IntFilter<"DesignVersion"> | number
724
+ versionLabel?: Prisma.StringFilter<"DesignVersion"> | string
725
+ parentVersion?: Prisma.StringNullableFilter<"DesignVersion"> | string | null
726
+ pageVersions?: Prisma.JsonFilter<"DesignVersion">
727
+ notes?: Prisma.StringNullableFilter<"DesignVersion"> | string | null
728
+ userId?: Prisma.StringFilter<"DesignVersion"> | string
729
+ createdAt?: Prisma.DateTimeFilter<"DesignVersion"> | Date | string
730
+ updatedAt?: Prisma.DateTimeNullableFilter<"DesignVersion"> | Date | string | null
731
+ }
732
+
733
+ export type DesignVersionCreateWithoutDesignInput = {
734
+ id?: string
735
+ major?: number
736
+ minor?: number
737
+ patch?: number
738
+ versionLabel: string
739
+ parentVersion?: string | null
740
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
741
+ notes?: string | null
742
+ createdAt?: Date | string
743
+ updatedAt?: Date | string | null
744
+ user: Prisma.UserCreateNestedOneWithoutDesignVersionsInput
745
+ reviews?: Prisma.ReviewCreateNestedManyWithoutVersionInput
746
+ shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutVersionInput
747
+ }
748
+
749
+ export type DesignVersionUncheckedCreateWithoutDesignInput = {
750
+ id?: string
751
+ major?: number
752
+ minor?: number
753
+ patch?: number
754
+ versionLabel: string
755
+ parentVersion?: string | null
756
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
757
+ notes?: string | null
758
+ userId: string
759
+ createdAt?: Date | string
760
+ updatedAt?: Date | string | null
761
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutVersionInput
762
+ shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutVersionInput
763
+ }
764
+
765
+ export type DesignVersionCreateOrConnectWithoutDesignInput = {
766
+ where: Prisma.DesignVersionWhereUniqueInput
767
+ create: Prisma.XOR<Prisma.DesignVersionCreateWithoutDesignInput, Prisma.DesignVersionUncheckedCreateWithoutDesignInput>
768
+ }
769
+
770
+ export type DesignVersionCreateManyDesignInputEnvelope = {
771
+ data: Prisma.DesignVersionCreateManyDesignInput | Prisma.DesignVersionCreateManyDesignInput[]
772
+ skipDuplicates?: boolean
773
+ }
774
+
775
+ export type DesignVersionUpsertWithWhereUniqueWithoutDesignInput = {
776
+ where: Prisma.DesignVersionWhereUniqueInput
777
+ update: Prisma.XOR<Prisma.DesignVersionUpdateWithoutDesignInput, Prisma.DesignVersionUncheckedUpdateWithoutDesignInput>
778
+ create: Prisma.XOR<Prisma.DesignVersionCreateWithoutDesignInput, Prisma.DesignVersionUncheckedCreateWithoutDesignInput>
779
+ }
780
+
781
+ export type DesignVersionUpdateWithWhereUniqueWithoutDesignInput = {
782
+ where: Prisma.DesignVersionWhereUniqueInput
783
+ data: Prisma.XOR<Prisma.DesignVersionUpdateWithoutDesignInput, Prisma.DesignVersionUncheckedUpdateWithoutDesignInput>
784
+ }
785
+
786
+ export type DesignVersionUpdateManyWithWhereWithoutDesignInput = {
787
+ where: Prisma.DesignVersionScalarWhereInput
788
+ data: Prisma.XOR<Prisma.DesignVersionUpdateManyMutationInput, Prisma.DesignVersionUncheckedUpdateManyWithoutDesignInput>
789
+ }
790
+
791
+ export type DesignVersionCreateWithoutReviewsInput = {
792
+ id?: string
793
+ major?: number
794
+ minor?: number
795
+ patch?: number
796
+ versionLabel: string
797
+ parentVersion?: string | null
798
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
799
+ notes?: string | null
800
+ createdAt?: Date | string
801
+ updatedAt?: Date | string | null
802
+ design: Prisma.DesignCreateNestedOneWithoutVersionsInput
803
+ user: Prisma.UserCreateNestedOneWithoutDesignVersionsInput
804
+ shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutVersionInput
805
+ }
806
+
807
+ export type DesignVersionUncheckedCreateWithoutReviewsInput = {
808
+ id?: string
809
+ designId: string
810
+ major?: number
811
+ minor?: number
812
+ patch?: number
813
+ versionLabel: string
814
+ parentVersion?: string | null
815
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
816
+ notes?: string | null
817
+ userId: string
818
+ createdAt?: Date | string
819
+ updatedAt?: Date | string | null
820
+ shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutVersionInput
821
+ }
822
+
823
+ export type DesignVersionCreateOrConnectWithoutReviewsInput = {
824
+ where: Prisma.DesignVersionWhereUniqueInput
825
+ create: Prisma.XOR<Prisma.DesignVersionCreateWithoutReviewsInput, Prisma.DesignVersionUncheckedCreateWithoutReviewsInput>
826
+ }
827
+
828
+ export type DesignVersionUpsertWithoutReviewsInput = {
829
+ update: Prisma.XOR<Prisma.DesignVersionUpdateWithoutReviewsInput, Prisma.DesignVersionUncheckedUpdateWithoutReviewsInput>
830
+ create: Prisma.XOR<Prisma.DesignVersionCreateWithoutReviewsInput, Prisma.DesignVersionUncheckedCreateWithoutReviewsInput>
831
+ where?: Prisma.DesignVersionWhereInput
832
+ }
833
+
834
+ export type DesignVersionUpdateToOneWithWhereWithoutReviewsInput = {
835
+ where?: Prisma.DesignVersionWhereInput
836
+ data: Prisma.XOR<Prisma.DesignVersionUpdateWithoutReviewsInput, Prisma.DesignVersionUncheckedUpdateWithoutReviewsInput>
837
+ }
838
+
839
+ export type DesignVersionUpdateWithoutReviewsInput = {
840
+ id?: Prisma.StringFieldUpdateOperationsInput | string
841
+ major?: Prisma.IntFieldUpdateOperationsInput | number
842
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
843
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
844
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
845
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
846
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
847
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
848
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
849
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
850
+ design?: Prisma.DesignUpdateOneRequiredWithoutVersionsNestedInput
851
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignVersionsNestedInput
852
+ shareVersions?: Prisma.ShareVersionUpdateManyWithoutVersionNestedInput
853
+ }
854
+
855
+ export type DesignVersionUncheckedUpdateWithoutReviewsInput = {
856
+ id?: Prisma.StringFieldUpdateOperationsInput | string
857
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
858
+ major?: Prisma.IntFieldUpdateOperationsInput | number
859
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
860
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
861
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
862
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
863
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
864
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
865
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
866
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
867
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
868
+ shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutVersionNestedInput
869
+ }
870
+
871
+ export type DesignVersionCreateWithoutShareVersionsInput = {
872
+ id?: string
873
+ major?: number
874
+ minor?: number
875
+ patch?: number
876
+ versionLabel: string
877
+ parentVersion?: string | null
878
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
879
+ notes?: string | null
880
+ createdAt?: Date | string
881
+ updatedAt?: Date | string | null
882
+ design: Prisma.DesignCreateNestedOneWithoutVersionsInput
883
+ user: Prisma.UserCreateNestedOneWithoutDesignVersionsInput
884
+ reviews?: Prisma.ReviewCreateNestedManyWithoutVersionInput
885
+ }
886
+
887
+ export type DesignVersionUncheckedCreateWithoutShareVersionsInput = {
888
+ id?: string
889
+ designId: string
890
+ major?: number
891
+ minor?: number
892
+ patch?: number
893
+ versionLabel: string
894
+ parentVersion?: string | null
895
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
896
+ notes?: string | null
897
+ userId: string
898
+ createdAt?: Date | string
899
+ updatedAt?: Date | string | null
900
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutVersionInput
901
+ }
902
+
903
+ export type DesignVersionCreateOrConnectWithoutShareVersionsInput = {
904
+ where: Prisma.DesignVersionWhereUniqueInput
905
+ create: Prisma.XOR<Prisma.DesignVersionCreateWithoutShareVersionsInput, Prisma.DesignVersionUncheckedCreateWithoutShareVersionsInput>
906
+ }
907
+
908
+ export type DesignVersionUpsertWithoutShareVersionsInput = {
909
+ update: Prisma.XOR<Prisma.DesignVersionUpdateWithoutShareVersionsInput, Prisma.DesignVersionUncheckedUpdateWithoutShareVersionsInput>
910
+ create: Prisma.XOR<Prisma.DesignVersionCreateWithoutShareVersionsInput, Prisma.DesignVersionUncheckedCreateWithoutShareVersionsInput>
911
+ where?: Prisma.DesignVersionWhereInput
912
+ }
913
+
914
+ export type DesignVersionUpdateToOneWithWhereWithoutShareVersionsInput = {
915
+ where?: Prisma.DesignVersionWhereInput
916
+ data: Prisma.XOR<Prisma.DesignVersionUpdateWithoutShareVersionsInput, Prisma.DesignVersionUncheckedUpdateWithoutShareVersionsInput>
917
+ }
918
+
919
+ export type DesignVersionUpdateWithoutShareVersionsInput = {
920
+ id?: Prisma.StringFieldUpdateOperationsInput | string
921
+ major?: Prisma.IntFieldUpdateOperationsInput | number
922
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
923
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
924
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
925
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
926
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
927
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
928
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
929
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
930
+ design?: Prisma.DesignUpdateOneRequiredWithoutVersionsNestedInput
931
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignVersionsNestedInput
932
+ reviews?: Prisma.ReviewUpdateManyWithoutVersionNestedInput
933
+ }
934
+
935
+ export type DesignVersionUncheckedUpdateWithoutShareVersionsInput = {
936
+ id?: Prisma.StringFieldUpdateOperationsInput | string
937
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
938
+ major?: Prisma.IntFieldUpdateOperationsInput | number
939
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
940
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
941
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
942
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
943
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
944
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
945
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
946
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
947
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
948
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutVersionNestedInput
949
+ }
950
+
951
+ export type DesignVersionCreateManyUserInput = {
952
+ id?: string
953
+ designId: string
954
+ major?: number
955
+ minor?: number
956
+ patch?: number
957
+ versionLabel: string
958
+ parentVersion?: string | null
959
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
960
+ notes?: string | null
961
+ createdAt?: Date | string
962
+ updatedAt?: Date | string | null
963
+ }
964
+
965
+ export type DesignVersionUpdateWithoutUserInput = {
966
+ id?: Prisma.StringFieldUpdateOperationsInput | string
967
+ major?: Prisma.IntFieldUpdateOperationsInput | number
968
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
969
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
970
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
971
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
972
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
973
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
974
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
975
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
976
+ design?: Prisma.DesignUpdateOneRequiredWithoutVersionsNestedInput
977
+ reviews?: Prisma.ReviewUpdateManyWithoutVersionNestedInput
978
+ shareVersions?: Prisma.ShareVersionUpdateManyWithoutVersionNestedInput
979
+ }
980
+
981
+ export type DesignVersionUncheckedUpdateWithoutUserInput = {
982
+ id?: Prisma.StringFieldUpdateOperationsInput | string
983
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
984
+ major?: Prisma.IntFieldUpdateOperationsInput | number
985
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
986
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
987
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
988
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
989
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
990
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
991
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
992
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
993
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutVersionNestedInput
994
+ shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutVersionNestedInput
995
+ }
996
+
997
+ export type DesignVersionUncheckedUpdateManyWithoutUserInput = {
998
+ id?: Prisma.StringFieldUpdateOperationsInput | string
999
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
1000
+ major?: Prisma.IntFieldUpdateOperationsInput | number
1001
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
1002
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
1003
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
1004
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1005
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1006
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1007
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1008
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1009
+ }
1010
+
1011
+ export type DesignVersionCreateManyDesignInput = {
1012
+ id?: string
1013
+ major?: number
1014
+ minor?: number
1015
+ patch?: number
1016
+ versionLabel: string
1017
+ parentVersion?: string | null
1018
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1019
+ notes?: string | null
1020
+ userId: string
1021
+ createdAt?: Date | string
1022
+ updatedAt?: Date | string | null
1023
+ }
1024
+
1025
+ export type DesignVersionUpdateWithoutDesignInput = {
1026
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1027
+ major?: Prisma.IntFieldUpdateOperationsInput | number
1028
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
1029
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
1030
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
1031
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1032
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1033
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1034
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1035
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1036
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignVersionsNestedInput
1037
+ reviews?: Prisma.ReviewUpdateManyWithoutVersionNestedInput
1038
+ shareVersions?: Prisma.ShareVersionUpdateManyWithoutVersionNestedInput
1039
+ }
1040
+
1041
+ export type DesignVersionUncheckedUpdateWithoutDesignInput = {
1042
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1043
+ major?: Prisma.IntFieldUpdateOperationsInput | number
1044
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
1045
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
1046
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
1047
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1048
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1049
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1050
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1051
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1052
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1053
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutVersionNestedInput
1054
+ shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutVersionNestedInput
1055
+ }
1056
+
1057
+ export type DesignVersionUncheckedUpdateManyWithoutDesignInput = {
1058
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1059
+ major?: Prisma.IntFieldUpdateOperationsInput | number
1060
+ minor?: Prisma.IntFieldUpdateOperationsInput | number
1061
+ patch?: Prisma.IntFieldUpdateOperationsInput | number
1062
+ versionLabel?: Prisma.StringFieldUpdateOperationsInput | string
1063
+ parentVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1064
+ pageVersions?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1065
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1066
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1067
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1068
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1069
+ }
1070
+
1071
+
1072
+ /**
1073
+ * Count Type DesignVersionCountOutputType
1074
+ */
1075
+
1076
+ export type DesignVersionCountOutputType = {
1077
+ reviews: number
1078
+ shareVersions: number
1079
+ }
1080
+
1081
+ export type DesignVersionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1082
+ reviews?: boolean | DesignVersionCountOutputTypeCountReviewsArgs
1083
+ shareVersions?: boolean | DesignVersionCountOutputTypeCountShareVersionsArgs
1084
+ }
1085
+
1086
+ /**
1087
+ * DesignVersionCountOutputType without action
1088
+ */
1089
+ export type DesignVersionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1090
+ /**
1091
+ * Select specific fields to fetch from the DesignVersionCountOutputType
1092
+ */
1093
+ select?: Prisma.DesignVersionCountOutputTypeSelect<ExtArgs> | null
1094
+ }
1095
+
1096
+ /**
1097
+ * DesignVersionCountOutputType without action
1098
+ */
1099
+ export type DesignVersionCountOutputTypeCountReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1100
+ where?: Prisma.ReviewWhereInput
1101
+ }
1102
+
1103
+ /**
1104
+ * DesignVersionCountOutputType without action
1105
+ */
1106
+ export type DesignVersionCountOutputTypeCountShareVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1107
+ where?: Prisma.ShareVersionWhereInput
1108
+ }
1109
+
1110
+
1111
+ export type DesignVersionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1112
+ id?: boolean
1113
+ designId?: boolean
1114
+ major?: boolean
1115
+ minor?: boolean
1116
+ patch?: boolean
1117
+ versionLabel?: boolean
1118
+ parentVersion?: boolean
1119
+ pageVersions?: boolean
1120
+ notes?: boolean
1121
+ userId?: boolean
1122
+ createdAt?: boolean
1123
+ updatedAt?: boolean
1124
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1125
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1126
+ reviews?: boolean | Prisma.DesignVersion$reviewsArgs<ExtArgs>
1127
+ shareVersions?: boolean | Prisma.DesignVersion$shareVersionsArgs<ExtArgs>
1128
+ _count?: boolean | Prisma.DesignVersionCountOutputTypeDefaultArgs<ExtArgs>
1129
+ }, ExtArgs["result"]["designVersion"]>
1130
+
1131
+ export type DesignVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1132
+ id?: boolean
1133
+ designId?: boolean
1134
+ major?: boolean
1135
+ minor?: boolean
1136
+ patch?: boolean
1137
+ versionLabel?: boolean
1138
+ parentVersion?: boolean
1139
+ pageVersions?: boolean
1140
+ notes?: boolean
1141
+ userId?: boolean
1142
+ createdAt?: boolean
1143
+ updatedAt?: boolean
1144
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1145
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1146
+ }, ExtArgs["result"]["designVersion"]>
1147
+
1148
+ export type DesignVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1149
+ id?: boolean
1150
+ designId?: boolean
1151
+ major?: boolean
1152
+ minor?: boolean
1153
+ patch?: boolean
1154
+ versionLabel?: boolean
1155
+ parentVersion?: boolean
1156
+ pageVersions?: boolean
1157
+ notes?: boolean
1158
+ userId?: boolean
1159
+ createdAt?: boolean
1160
+ updatedAt?: boolean
1161
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1162
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1163
+ }, ExtArgs["result"]["designVersion"]>
1164
+
1165
+ export type DesignVersionSelectScalar = {
1166
+ id?: boolean
1167
+ designId?: boolean
1168
+ major?: boolean
1169
+ minor?: boolean
1170
+ patch?: boolean
1171
+ versionLabel?: boolean
1172
+ parentVersion?: boolean
1173
+ pageVersions?: boolean
1174
+ notes?: boolean
1175
+ userId?: boolean
1176
+ createdAt?: boolean
1177
+ updatedAt?: boolean
1178
+ }
1179
+
1180
+ export type DesignVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "designId" | "major" | "minor" | "patch" | "versionLabel" | "parentVersion" | "pageVersions" | "notes" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["designVersion"]>
1181
+ export type DesignVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1182
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1183
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1184
+ reviews?: boolean | Prisma.DesignVersion$reviewsArgs<ExtArgs>
1185
+ shareVersions?: boolean | Prisma.DesignVersion$shareVersionsArgs<ExtArgs>
1186
+ _count?: boolean | Prisma.DesignVersionCountOutputTypeDefaultArgs<ExtArgs>
1187
+ }
1188
+ export type DesignVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1189
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1190
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1191
+ }
1192
+ export type DesignVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1193
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
1194
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1195
+ }
1196
+
1197
+ export type $DesignVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1198
+ name: "DesignVersion"
1199
+ objects: {
1200
+ design: Prisma.$DesignPayload<ExtArgs>
1201
+ user: Prisma.$UserPayload<ExtArgs>
1202
+ reviews: Prisma.$ReviewPayload<ExtArgs>[]
1203
+ shareVersions: Prisma.$ShareVersionPayload<ExtArgs>[]
1204
+ }
1205
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1206
+ id: string
1207
+ designId: string
1208
+ major: number
1209
+ minor: number
1210
+ patch: number
1211
+ versionLabel: string
1212
+ parentVersion: string | null
1213
+ pageVersions: runtime.JsonValue
1214
+ notes: string | null
1215
+ userId: string
1216
+ createdAt: Date
1217
+ updatedAt: Date | null
1218
+ }, ExtArgs["result"]["designVersion"]>
1219
+ composites: {}
1220
+ }
1221
+
1222
+ export type DesignVersionGetPayload<S extends boolean | null | undefined | DesignVersionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload, S>
1223
+
1224
+ export type DesignVersionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1225
+ Omit<DesignVersionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1226
+ select?: DesignVersionCountAggregateInputType | true
1227
+ }
1228
+
1229
+ export interface DesignVersionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1230
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DesignVersion'], meta: { name: 'DesignVersion' } }
1231
+ /**
1232
+ * Find zero or one DesignVersion that matches the filter.
1233
+ * @param {DesignVersionFindUniqueArgs} args - Arguments to find a DesignVersion
1234
+ * @example
1235
+ * // Get one DesignVersion
1236
+ * const designVersion = await prisma.designVersion.findUnique({
1237
+ * where: {
1238
+ * // ... provide filter here
1239
+ * }
1240
+ * })
1241
+ */
1242
+ findUnique<T extends DesignVersionFindUniqueArgs>(args: Prisma.SelectSubset<T, DesignVersionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1243
+
1244
+ /**
1245
+ * Find one DesignVersion that matches the filter or throw an error with `error.code='P2025'`
1246
+ * if no matches were found.
1247
+ * @param {DesignVersionFindUniqueOrThrowArgs} args - Arguments to find a DesignVersion
1248
+ * @example
1249
+ * // Get one DesignVersion
1250
+ * const designVersion = await prisma.designVersion.findUniqueOrThrow({
1251
+ * where: {
1252
+ * // ... provide filter here
1253
+ * }
1254
+ * })
1255
+ */
1256
+ findUniqueOrThrow<T extends DesignVersionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DesignVersionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1257
+
1258
+ /**
1259
+ * Find the first DesignVersion that matches the filter.
1260
+ * Note, that providing `undefined` is treated as the value not being there.
1261
+ * Read more here: https://pris.ly/d/null-undefined
1262
+ * @param {DesignVersionFindFirstArgs} args - Arguments to find a DesignVersion
1263
+ * @example
1264
+ * // Get one DesignVersion
1265
+ * const designVersion = await prisma.designVersion.findFirst({
1266
+ * where: {
1267
+ * // ... provide filter here
1268
+ * }
1269
+ * })
1270
+ */
1271
+ findFirst<T extends DesignVersionFindFirstArgs>(args?: Prisma.SelectSubset<T, DesignVersionFindFirstArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1272
+
1273
+ /**
1274
+ * Find the first DesignVersion that matches the filter or
1275
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1276
+ * Note, that providing `undefined` is treated as the value not being there.
1277
+ * Read more here: https://pris.ly/d/null-undefined
1278
+ * @param {DesignVersionFindFirstOrThrowArgs} args - Arguments to find a DesignVersion
1279
+ * @example
1280
+ * // Get one DesignVersion
1281
+ * const designVersion = await prisma.designVersion.findFirstOrThrow({
1282
+ * where: {
1283
+ * // ... provide filter here
1284
+ * }
1285
+ * })
1286
+ */
1287
+ findFirstOrThrow<T extends DesignVersionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DesignVersionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1288
+
1289
+ /**
1290
+ * Find zero or more DesignVersions that matches the filter.
1291
+ * Note, that providing `undefined` is treated as the value not being there.
1292
+ * Read more here: https://pris.ly/d/null-undefined
1293
+ * @param {DesignVersionFindManyArgs} args - Arguments to filter and select certain fields only.
1294
+ * @example
1295
+ * // Get all DesignVersions
1296
+ * const designVersions = await prisma.designVersion.findMany()
1297
+ *
1298
+ * // Get first 10 DesignVersions
1299
+ * const designVersions = await prisma.designVersion.findMany({ take: 10 })
1300
+ *
1301
+ * // Only select the `id`
1302
+ * const designVersionWithIdOnly = await prisma.designVersion.findMany({ select: { id: true } })
1303
+ *
1304
+ */
1305
+ findMany<T extends DesignVersionFindManyArgs>(args?: Prisma.SelectSubset<T, DesignVersionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1306
+
1307
+ /**
1308
+ * Create a DesignVersion.
1309
+ * @param {DesignVersionCreateArgs} args - Arguments to create a DesignVersion.
1310
+ * @example
1311
+ * // Create one DesignVersion
1312
+ * const DesignVersion = await prisma.designVersion.create({
1313
+ * data: {
1314
+ * // ... data to create a DesignVersion
1315
+ * }
1316
+ * })
1317
+ *
1318
+ */
1319
+ create<T extends DesignVersionCreateArgs>(args: Prisma.SelectSubset<T, DesignVersionCreateArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1320
+
1321
+ /**
1322
+ * Create many DesignVersions.
1323
+ * @param {DesignVersionCreateManyArgs} args - Arguments to create many DesignVersions.
1324
+ * @example
1325
+ * // Create many DesignVersions
1326
+ * const designVersion = await prisma.designVersion.createMany({
1327
+ * data: [
1328
+ * // ... provide data here
1329
+ * ]
1330
+ * })
1331
+ *
1332
+ */
1333
+ createMany<T extends DesignVersionCreateManyArgs>(args?: Prisma.SelectSubset<T, DesignVersionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1334
+
1335
+ /**
1336
+ * Create many DesignVersions and returns the data saved in the database.
1337
+ * @param {DesignVersionCreateManyAndReturnArgs} args - Arguments to create many DesignVersions.
1338
+ * @example
1339
+ * // Create many DesignVersions
1340
+ * const designVersion = await prisma.designVersion.createManyAndReturn({
1341
+ * data: [
1342
+ * // ... provide data here
1343
+ * ]
1344
+ * })
1345
+ *
1346
+ * // Create many DesignVersions and only return the `id`
1347
+ * const designVersionWithIdOnly = await prisma.designVersion.createManyAndReturn({
1348
+ * select: { id: true },
1349
+ * data: [
1350
+ * // ... provide data here
1351
+ * ]
1352
+ * })
1353
+ * Note, that providing `undefined` is treated as the value not being there.
1354
+ * Read more here: https://pris.ly/d/null-undefined
1355
+ *
1356
+ */
1357
+ createManyAndReturn<T extends DesignVersionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DesignVersionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1358
+
1359
+ /**
1360
+ * Delete a DesignVersion.
1361
+ * @param {DesignVersionDeleteArgs} args - Arguments to delete one DesignVersion.
1362
+ * @example
1363
+ * // Delete one DesignVersion
1364
+ * const DesignVersion = await prisma.designVersion.delete({
1365
+ * where: {
1366
+ * // ... filter to delete one DesignVersion
1367
+ * }
1368
+ * })
1369
+ *
1370
+ */
1371
+ delete<T extends DesignVersionDeleteArgs>(args: Prisma.SelectSubset<T, DesignVersionDeleteArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1372
+
1373
+ /**
1374
+ * Update one DesignVersion.
1375
+ * @param {DesignVersionUpdateArgs} args - Arguments to update one DesignVersion.
1376
+ * @example
1377
+ * // Update one DesignVersion
1378
+ * const designVersion = await prisma.designVersion.update({
1379
+ * where: {
1380
+ * // ... provide filter here
1381
+ * },
1382
+ * data: {
1383
+ * // ... provide data here
1384
+ * }
1385
+ * })
1386
+ *
1387
+ */
1388
+ update<T extends DesignVersionUpdateArgs>(args: Prisma.SelectSubset<T, DesignVersionUpdateArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1389
+
1390
+ /**
1391
+ * Delete zero or more DesignVersions.
1392
+ * @param {DesignVersionDeleteManyArgs} args - Arguments to filter DesignVersions to delete.
1393
+ * @example
1394
+ * // Delete a few DesignVersions
1395
+ * const { count } = await prisma.designVersion.deleteMany({
1396
+ * where: {
1397
+ * // ... provide filter here
1398
+ * }
1399
+ * })
1400
+ *
1401
+ */
1402
+ deleteMany<T extends DesignVersionDeleteManyArgs>(args?: Prisma.SelectSubset<T, DesignVersionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1403
+
1404
+ /**
1405
+ * Update zero or more DesignVersions.
1406
+ * Note, that providing `undefined` is treated as the value not being there.
1407
+ * Read more here: https://pris.ly/d/null-undefined
1408
+ * @param {DesignVersionUpdateManyArgs} args - Arguments to update one or more rows.
1409
+ * @example
1410
+ * // Update many DesignVersions
1411
+ * const designVersion = await prisma.designVersion.updateMany({
1412
+ * where: {
1413
+ * // ... provide filter here
1414
+ * },
1415
+ * data: {
1416
+ * // ... provide data here
1417
+ * }
1418
+ * })
1419
+ *
1420
+ */
1421
+ updateMany<T extends DesignVersionUpdateManyArgs>(args: Prisma.SelectSubset<T, DesignVersionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1422
+
1423
+ /**
1424
+ * Update zero or more DesignVersions and returns the data updated in the database.
1425
+ * @param {DesignVersionUpdateManyAndReturnArgs} args - Arguments to update many DesignVersions.
1426
+ * @example
1427
+ * // Update many DesignVersions
1428
+ * const designVersion = await prisma.designVersion.updateManyAndReturn({
1429
+ * where: {
1430
+ * // ... provide filter here
1431
+ * },
1432
+ * data: [
1433
+ * // ... provide data here
1434
+ * ]
1435
+ * })
1436
+ *
1437
+ * // Update zero or more DesignVersions and only return the `id`
1438
+ * const designVersionWithIdOnly = await prisma.designVersion.updateManyAndReturn({
1439
+ * select: { id: true },
1440
+ * where: {
1441
+ * // ... provide filter here
1442
+ * },
1443
+ * data: [
1444
+ * // ... provide data here
1445
+ * ]
1446
+ * })
1447
+ * Note, that providing `undefined` is treated as the value not being there.
1448
+ * Read more here: https://pris.ly/d/null-undefined
1449
+ *
1450
+ */
1451
+ updateManyAndReturn<T extends DesignVersionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DesignVersionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1452
+
1453
+ /**
1454
+ * Create or update one DesignVersion.
1455
+ * @param {DesignVersionUpsertArgs} args - Arguments to update or create a DesignVersion.
1456
+ * @example
1457
+ * // Update or create a DesignVersion
1458
+ * const designVersion = await prisma.designVersion.upsert({
1459
+ * create: {
1460
+ * // ... data to create a DesignVersion
1461
+ * },
1462
+ * update: {
1463
+ * // ... in case it already exists, update
1464
+ * },
1465
+ * where: {
1466
+ * // ... the filter for the DesignVersion we want to update
1467
+ * }
1468
+ * })
1469
+ */
1470
+ upsert<T extends DesignVersionUpsertArgs>(args: Prisma.SelectSubset<T, DesignVersionUpsertArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1471
+
1472
+
1473
+ /**
1474
+ * Count the number of DesignVersions.
1475
+ * Note, that providing `undefined` is treated as the value not being there.
1476
+ * Read more here: https://pris.ly/d/null-undefined
1477
+ * @param {DesignVersionCountArgs} args - Arguments to filter DesignVersions to count.
1478
+ * @example
1479
+ * // Count the number of DesignVersions
1480
+ * const count = await prisma.designVersion.count({
1481
+ * where: {
1482
+ * // ... the filter for the DesignVersions we want to count
1483
+ * }
1484
+ * })
1485
+ **/
1486
+ count<T extends DesignVersionCountArgs>(
1487
+ args?: Prisma.Subset<T, DesignVersionCountArgs>,
1488
+ ): Prisma.PrismaPromise<
1489
+ T extends runtime.Types.Utils.Record<'select', any>
1490
+ ? T['select'] extends true
1491
+ ? number
1492
+ : Prisma.GetScalarType<T['select'], DesignVersionCountAggregateOutputType>
1493
+ : number
1494
+ >
1495
+
1496
+ /**
1497
+ * Allows you to perform aggregations operations on a DesignVersion.
1498
+ * Note, that providing `undefined` is treated as the value not being there.
1499
+ * Read more here: https://pris.ly/d/null-undefined
1500
+ * @param {DesignVersionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1501
+ * @example
1502
+ * // Ordered by age ascending
1503
+ * // Where email contains prisma.io
1504
+ * // Limited to the 10 users
1505
+ * const aggregations = await prisma.user.aggregate({
1506
+ * _avg: {
1507
+ * age: true,
1508
+ * },
1509
+ * where: {
1510
+ * email: {
1511
+ * contains: "prisma.io",
1512
+ * },
1513
+ * },
1514
+ * orderBy: {
1515
+ * age: "asc",
1516
+ * },
1517
+ * take: 10,
1518
+ * })
1519
+ **/
1520
+ aggregate<T extends DesignVersionAggregateArgs>(args: Prisma.Subset<T, DesignVersionAggregateArgs>): Prisma.PrismaPromise<GetDesignVersionAggregateType<T>>
1521
+
1522
+ /**
1523
+ * Group by DesignVersion.
1524
+ * Note, that providing `undefined` is treated as the value not being there.
1525
+ * Read more here: https://pris.ly/d/null-undefined
1526
+ * @param {DesignVersionGroupByArgs} args - Group by arguments.
1527
+ * @example
1528
+ * // Group by city, order by createdAt, get count
1529
+ * const result = await prisma.user.groupBy({
1530
+ * by: ['city', 'createdAt'],
1531
+ * orderBy: {
1532
+ * createdAt: true
1533
+ * },
1534
+ * _count: {
1535
+ * _all: true
1536
+ * },
1537
+ * })
1538
+ *
1539
+ **/
1540
+ groupBy<
1541
+ T extends DesignVersionGroupByArgs,
1542
+ HasSelectOrTake extends Prisma.Or<
1543
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1544
+ Prisma.Extends<'take', Prisma.Keys<T>>
1545
+ >,
1546
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1547
+ ? { orderBy: DesignVersionGroupByArgs['orderBy'] }
1548
+ : { orderBy?: DesignVersionGroupByArgs['orderBy'] },
1549
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1550
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1551
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1552
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1553
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1554
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1555
+ InputErrors extends ByEmpty extends Prisma.True
1556
+ ? `Error: "by" must not be empty.`
1557
+ : HavingValid extends Prisma.False
1558
+ ? {
1559
+ [P in HavingFields]: P extends ByFields
1560
+ ? never
1561
+ : P extends string
1562
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1563
+ : [
1564
+ Error,
1565
+ 'Field ',
1566
+ P,
1567
+ ` in "having" needs to be provided in "by"`,
1568
+ ]
1569
+ }[HavingFields]
1570
+ : 'take' extends Prisma.Keys<T>
1571
+ ? 'orderBy' extends Prisma.Keys<T>
1572
+ ? ByValid extends Prisma.True
1573
+ ? {}
1574
+ : {
1575
+ [P in OrderFields]: P extends ByFields
1576
+ ? never
1577
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1578
+ }[OrderFields]
1579
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1580
+ : 'skip' extends Prisma.Keys<T>
1581
+ ? 'orderBy' extends Prisma.Keys<T>
1582
+ ? ByValid extends Prisma.True
1583
+ ? {}
1584
+ : {
1585
+ [P in OrderFields]: P extends ByFields
1586
+ ? never
1587
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1588
+ }[OrderFields]
1589
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1590
+ : ByValid extends Prisma.True
1591
+ ? {}
1592
+ : {
1593
+ [P in OrderFields]: P extends ByFields
1594
+ ? never
1595
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1596
+ }[OrderFields]
1597
+ >(args: Prisma.SubsetIntersection<T, DesignVersionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDesignVersionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1598
+ /**
1599
+ * Fields of the DesignVersion model
1600
+ */
1601
+ readonly fields: DesignVersionFieldRefs;
1602
+ }
1603
+
1604
+ /**
1605
+ * The delegate class that acts as a "Promise-like" for DesignVersion.
1606
+ * Why is this prefixed with `Prisma__`?
1607
+ * Because we want to prevent naming conflicts as mentioned in
1608
+ * https://github.com/prisma/prisma-client-js/issues/707
1609
+ */
1610
+ export interface Prisma__DesignVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1611
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1612
+ design<T extends Prisma.DesignDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignDefaultArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1613
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1614
+ reviews<T extends Prisma.DesignVersion$reviewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignVersion$reviewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1615
+ shareVersions<T extends Prisma.DesignVersion$shareVersionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignVersion$shareVersionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShareVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1616
+ /**
1617
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1618
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1619
+ * @param onrejected The callback to execute when the Promise is rejected.
1620
+ * @returns A Promise for the completion of which ever callback is executed.
1621
+ */
1622
+ 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>
1623
+ /**
1624
+ * Attaches a callback for only the rejection of the Promise.
1625
+ * @param onrejected The callback to execute when the Promise is rejected.
1626
+ * @returns A Promise for the completion of the callback.
1627
+ */
1628
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1629
+ /**
1630
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1631
+ * resolved value cannot be modified from the callback.
1632
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1633
+ * @returns A Promise for the completion of the callback.
1634
+ */
1635
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1636
+ }
1637
+
1638
+
1639
+
1640
+
1641
+ /**
1642
+ * Fields of the DesignVersion model
1643
+ */
1644
+ export interface DesignVersionFieldRefs {
1645
+ readonly id: Prisma.FieldRef<"DesignVersion", 'String'>
1646
+ readonly designId: Prisma.FieldRef<"DesignVersion", 'String'>
1647
+ readonly major: Prisma.FieldRef<"DesignVersion", 'Int'>
1648
+ readonly minor: Prisma.FieldRef<"DesignVersion", 'Int'>
1649
+ readonly patch: Prisma.FieldRef<"DesignVersion", 'Int'>
1650
+ readonly versionLabel: Prisma.FieldRef<"DesignVersion", 'String'>
1651
+ readonly parentVersion: Prisma.FieldRef<"DesignVersion", 'String'>
1652
+ readonly pageVersions: Prisma.FieldRef<"DesignVersion", 'Json'>
1653
+ readonly notes: Prisma.FieldRef<"DesignVersion", 'String'>
1654
+ readonly userId: Prisma.FieldRef<"DesignVersion", 'String'>
1655
+ readonly createdAt: Prisma.FieldRef<"DesignVersion", 'DateTime'>
1656
+ readonly updatedAt: Prisma.FieldRef<"DesignVersion", 'DateTime'>
1657
+ }
1658
+
1659
+
1660
+ // Custom InputTypes
1661
+ /**
1662
+ * DesignVersion findUnique
1663
+ */
1664
+ export type DesignVersionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1665
+ /**
1666
+ * Select specific fields to fetch from the DesignVersion
1667
+ */
1668
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
1669
+ /**
1670
+ * Omit specific fields from the DesignVersion
1671
+ */
1672
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1673
+ /**
1674
+ * Choose, which related nodes to fetch as well
1675
+ */
1676
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
1677
+ /**
1678
+ * Filter, which DesignVersion to fetch.
1679
+ */
1680
+ where: Prisma.DesignVersionWhereUniqueInput
1681
+ }
1682
+
1683
+ /**
1684
+ * DesignVersion findUniqueOrThrow
1685
+ */
1686
+ export type DesignVersionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1687
+ /**
1688
+ * Select specific fields to fetch from the DesignVersion
1689
+ */
1690
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
1691
+ /**
1692
+ * Omit specific fields from the DesignVersion
1693
+ */
1694
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1695
+ /**
1696
+ * Choose, which related nodes to fetch as well
1697
+ */
1698
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
1699
+ /**
1700
+ * Filter, which DesignVersion to fetch.
1701
+ */
1702
+ where: Prisma.DesignVersionWhereUniqueInput
1703
+ }
1704
+
1705
+ /**
1706
+ * DesignVersion findFirst
1707
+ */
1708
+ export type DesignVersionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1709
+ /**
1710
+ * Select specific fields to fetch from the DesignVersion
1711
+ */
1712
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
1713
+ /**
1714
+ * Omit specific fields from the DesignVersion
1715
+ */
1716
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1717
+ /**
1718
+ * Choose, which related nodes to fetch as well
1719
+ */
1720
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
1721
+ /**
1722
+ * Filter, which DesignVersion to fetch.
1723
+ */
1724
+ where?: Prisma.DesignVersionWhereInput
1725
+ /**
1726
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1727
+ *
1728
+ * Determine the order of DesignVersions to fetch.
1729
+ */
1730
+ orderBy?: Prisma.DesignVersionOrderByWithRelationInput | Prisma.DesignVersionOrderByWithRelationInput[]
1731
+ /**
1732
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1733
+ *
1734
+ * Sets the position for searching for DesignVersions.
1735
+ */
1736
+ cursor?: Prisma.DesignVersionWhereUniqueInput
1737
+ /**
1738
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1739
+ *
1740
+ * Take `±n` DesignVersions from the position of the cursor.
1741
+ */
1742
+ take?: number
1743
+ /**
1744
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1745
+ *
1746
+ * Skip the first `n` DesignVersions.
1747
+ */
1748
+ skip?: number
1749
+ /**
1750
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1751
+ *
1752
+ * Filter by unique combinations of DesignVersions.
1753
+ */
1754
+ distinct?: Prisma.DesignVersionScalarFieldEnum | Prisma.DesignVersionScalarFieldEnum[]
1755
+ }
1756
+
1757
+ /**
1758
+ * DesignVersion findFirstOrThrow
1759
+ */
1760
+ export type DesignVersionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1761
+ /**
1762
+ * Select specific fields to fetch from the DesignVersion
1763
+ */
1764
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
1765
+ /**
1766
+ * Omit specific fields from the DesignVersion
1767
+ */
1768
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1769
+ /**
1770
+ * Choose, which related nodes to fetch as well
1771
+ */
1772
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
1773
+ /**
1774
+ * Filter, which DesignVersion to fetch.
1775
+ */
1776
+ where?: Prisma.DesignVersionWhereInput
1777
+ /**
1778
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1779
+ *
1780
+ * Determine the order of DesignVersions to fetch.
1781
+ */
1782
+ orderBy?: Prisma.DesignVersionOrderByWithRelationInput | Prisma.DesignVersionOrderByWithRelationInput[]
1783
+ /**
1784
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1785
+ *
1786
+ * Sets the position for searching for DesignVersions.
1787
+ */
1788
+ cursor?: Prisma.DesignVersionWhereUniqueInput
1789
+ /**
1790
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1791
+ *
1792
+ * Take `±n` DesignVersions from the position of the cursor.
1793
+ */
1794
+ take?: number
1795
+ /**
1796
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1797
+ *
1798
+ * Skip the first `n` DesignVersions.
1799
+ */
1800
+ skip?: number
1801
+ /**
1802
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1803
+ *
1804
+ * Filter by unique combinations of DesignVersions.
1805
+ */
1806
+ distinct?: Prisma.DesignVersionScalarFieldEnum | Prisma.DesignVersionScalarFieldEnum[]
1807
+ }
1808
+
1809
+ /**
1810
+ * DesignVersion findMany
1811
+ */
1812
+ export type DesignVersionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1813
+ /**
1814
+ * Select specific fields to fetch from the DesignVersion
1815
+ */
1816
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
1817
+ /**
1818
+ * Omit specific fields from the DesignVersion
1819
+ */
1820
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1821
+ /**
1822
+ * Choose, which related nodes to fetch as well
1823
+ */
1824
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
1825
+ /**
1826
+ * Filter, which DesignVersions to fetch.
1827
+ */
1828
+ where?: Prisma.DesignVersionWhereInput
1829
+ /**
1830
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1831
+ *
1832
+ * Determine the order of DesignVersions to fetch.
1833
+ */
1834
+ orderBy?: Prisma.DesignVersionOrderByWithRelationInput | Prisma.DesignVersionOrderByWithRelationInput[]
1835
+ /**
1836
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1837
+ *
1838
+ * Sets the position for listing DesignVersions.
1839
+ */
1840
+ cursor?: Prisma.DesignVersionWhereUniqueInput
1841
+ /**
1842
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1843
+ *
1844
+ * Take `±n` DesignVersions from the position of the cursor.
1845
+ */
1846
+ take?: number
1847
+ /**
1848
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1849
+ *
1850
+ * Skip the first `n` DesignVersions.
1851
+ */
1852
+ skip?: number
1853
+ /**
1854
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1855
+ *
1856
+ * Filter by unique combinations of DesignVersions.
1857
+ */
1858
+ distinct?: Prisma.DesignVersionScalarFieldEnum | Prisma.DesignVersionScalarFieldEnum[]
1859
+ }
1860
+
1861
+ /**
1862
+ * DesignVersion create
1863
+ */
1864
+ export type DesignVersionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1865
+ /**
1866
+ * Select specific fields to fetch from the DesignVersion
1867
+ */
1868
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
1869
+ /**
1870
+ * Omit specific fields from the DesignVersion
1871
+ */
1872
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1873
+ /**
1874
+ * Choose, which related nodes to fetch as well
1875
+ */
1876
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
1877
+ /**
1878
+ * The data needed to create a DesignVersion.
1879
+ */
1880
+ data: Prisma.XOR<Prisma.DesignVersionCreateInput, Prisma.DesignVersionUncheckedCreateInput>
1881
+ }
1882
+
1883
+ /**
1884
+ * DesignVersion createMany
1885
+ */
1886
+ export type DesignVersionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1887
+ /**
1888
+ * The data used to create many DesignVersions.
1889
+ */
1890
+ data: Prisma.DesignVersionCreateManyInput | Prisma.DesignVersionCreateManyInput[]
1891
+ skipDuplicates?: boolean
1892
+ }
1893
+
1894
+ /**
1895
+ * DesignVersion createManyAndReturn
1896
+ */
1897
+ export type DesignVersionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1898
+ /**
1899
+ * Select specific fields to fetch from the DesignVersion
1900
+ */
1901
+ select?: Prisma.DesignVersionSelectCreateManyAndReturn<ExtArgs> | null
1902
+ /**
1903
+ * Omit specific fields from the DesignVersion
1904
+ */
1905
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1906
+ /**
1907
+ * The data used to create many DesignVersions.
1908
+ */
1909
+ data: Prisma.DesignVersionCreateManyInput | Prisma.DesignVersionCreateManyInput[]
1910
+ skipDuplicates?: boolean
1911
+ /**
1912
+ * Choose, which related nodes to fetch as well
1913
+ */
1914
+ include?: Prisma.DesignVersionIncludeCreateManyAndReturn<ExtArgs> | null
1915
+ }
1916
+
1917
+ /**
1918
+ * DesignVersion update
1919
+ */
1920
+ export type DesignVersionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1921
+ /**
1922
+ * Select specific fields to fetch from the DesignVersion
1923
+ */
1924
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
1925
+ /**
1926
+ * Omit specific fields from the DesignVersion
1927
+ */
1928
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1929
+ /**
1930
+ * Choose, which related nodes to fetch as well
1931
+ */
1932
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
1933
+ /**
1934
+ * The data needed to update a DesignVersion.
1935
+ */
1936
+ data: Prisma.XOR<Prisma.DesignVersionUpdateInput, Prisma.DesignVersionUncheckedUpdateInput>
1937
+ /**
1938
+ * Choose, which DesignVersion to update.
1939
+ */
1940
+ where: Prisma.DesignVersionWhereUniqueInput
1941
+ }
1942
+
1943
+ /**
1944
+ * DesignVersion updateMany
1945
+ */
1946
+ export type DesignVersionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1947
+ /**
1948
+ * The data used to update DesignVersions.
1949
+ */
1950
+ data: Prisma.XOR<Prisma.DesignVersionUpdateManyMutationInput, Prisma.DesignVersionUncheckedUpdateManyInput>
1951
+ /**
1952
+ * Filter which DesignVersions to update
1953
+ */
1954
+ where?: Prisma.DesignVersionWhereInput
1955
+ /**
1956
+ * Limit how many DesignVersions to update.
1957
+ */
1958
+ limit?: number
1959
+ }
1960
+
1961
+ /**
1962
+ * DesignVersion updateManyAndReturn
1963
+ */
1964
+ export type DesignVersionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1965
+ /**
1966
+ * Select specific fields to fetch from the DesignVersion
1967
+ */
1968
+ select?: Prisma.DesignVersionSelectUpdateManyAndReturn<ExtArgs> | null
1969
+ /**
1970
+ * Omit specific fields from the DesignVersion
1971
+ */
1972
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
1973
+ /**
1974
+ * The data used to update DesignVersions.
1975
+ */
1976
+ data: Prisma.XOR<Prisma.DesignVersionUpdateManyMutationInput, Prisma.DesignVersionUncheckedUpdateManyInput>
1977
+ /**
1978
+ * Filter which DesignVersions to update
1979
+ */
1980
+ where?: Prisma.DesignVersionWhereInput
1981
+ /**
1982
+ * Limit how many DesignVersions to update.
1983
+ */
1984
+ limit?: number
1985
+ /**
1986
+ * Choose, which related nodes to fetch as well
1987
+ */
1988
+ include?: Prisma.DesignVersionIncludeUpdateManyAndReturn<ExtArgs> | null
1989
+ }
1990
+
1991
+ /**
1992
+ * DesignVersion upsert
1993
+ */
1994
+ export type DesignVersionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1995
+ /**
1996
+ * Select specific fields to fetch from the DesignVersion
1997
+ */
1998
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
1999
+ /**
2000
+ * Omit specific fields from the DesignVersion
2001
+ */
2002
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
2003
+ /**
2004
+ * Choose, which related nodes to fetch as well
2005
+ */
2006
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
2007
+ /**
2008
+ * The filter to search for the DesignVersion to update in case it exists.
2009
+ */
2010
+ where: Prisma.DesignVersionWhereUniqueInput
2011
+ /**
2012
+ * In case the DesignVersion found by the `where` argument doesn't exist, create a new DesignVersion with this data.
2013
+ */
2014
+ create: Prisma.XOR<Prisma.DesignVersionCreateInput, Prisma.DesignVersionUncheckedCreateInput>
2015
+ /**
2016
+ * In case the DesignVersion was found with the provided `where` argument, update it with this data.
2017
+ */
2018
+ update: Prisma.XOR<Prisma.DesignVersionUpdateInput, Prisma.DesignVersionUncheckedUpdateInput>
2019
+ }
2020
+
2021
+ /**
2022
+ * DesignVersion delete
2023
+ */
2024
+ export type DesignVersionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2025
+ /**
2026
+ * Select specific fields to fetch from the DesignVersion
2027
+ */
2028
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
2029
+ /**
2030
+ * Omit specific fields from the DesignVersion
2031
+ */
2032
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
2033
+ /**
2034
+ * Choose, which related nodes to fetch as well
2035
+ */
2036
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
2037
+ /**
2038
+ * Filter which DesignVersion to delete.
2039
+ */
2040
+ where: Prisma.DesignVersionWhereUniqueInput
2041
+ }
2042
+
2043
+ /**
2044
+ * DesignVersion deleteMany
2045
+ */
2046
+ export type DesignVersionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2047
+ /**
2048
+ * Filter which DesignVersions to delete
2049
+ */
2050
+ where?: Prisma.DesignVersionWhereInput
2051
+ /**
2052
+ * Limit how many DesignVersions to delete.
2053
+ */
2054
+ limit?: number
2055
+ }
2056
+
2057
+ /**
2058
+ * DesignVersion.reviews
2059
+ */
2060
+ export type DesignVersion$reviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2061
+ /**
2062
+ * Select specific fields to fetch from the Review
2063
+ */
2064
+ select?: Prisma.ReviewSelect<ExtArgs> | null
2065
+ /**
2066
+ * Omit specific fields from the Review
2067
+ */
2068
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
2069
+ /**
2070
+ * Choose, which related nodes to fetch as well
2071
+ */
2072
+ include?: Prisma.ReviewInclude<ExtArgs> | null
2073
+ where?: Prisma.ReviewWhereInput
2074
+ orderBy?: Prisma.ReviewOrderByWithRelationInput | Prisma.ReviewOrderByWithRelationInput[]
2075
+ cursor?: Prisma.ReviewWhereUniqueInput
2076
+ take?: number
2077
+ skip?: number
2078
+ distinct?: Prisma.ReviewScalarFieldEnum | Prisma.ReviewScalarFieldEnum[]
2079
+ }
2080
+
2081
+ /**
2082
+ * DesignVersion.shareVersions
2083
+ */
2084
+ export type DesignVersion$shareVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2085
+ /**
2086
+ * Select specific fields to fetch from the ShareVersion
2087
+ */
2088
+ select?: Prisma.ShareVersionSelect<ExtArgs> | null
2089
+ /**
2090
+ * Omit specific fields from the ShareVersion
2091
+ */
2092
+ omit?: Prisma.ShareVersionOmit<ExtArgs> | null
2093
+ /**
2094
+ * Choose, which related nodes to fetch as well
2095
+ */
2096
+ include?: Prisma.ShareVersionInclude<ExtArgs> | null
2097
+ where?: Prisma.ShareVersionWhereInput
2098
+ orderBy?: Prisma.ShareVersionOrderByWithRelationInput | Prisma.ShareVersionOrderByWithRelationInput[]
2099
+ cursor?: Prisma.ShareVersionWhereUniqueInput
2100
+ take?: number
2101
+ skip?: number
2102
+ distinct?: Prisma.ShareVersionScalarFieldEnum | Prisma.ShareVersionScalarFieldEnum[]
2103
+ }
2104
+
2105
+ /**
2106
+ * DesignVersion without action
2107
+ */
2108
+ export type DesignVersionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2109
+ /**
2110
+ * Select specific fields to fetch from the DesignVersion
2111
+ */
2112
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
2113
+ /**
2114
+ * Omit specific fields from the DesignVersion
2115
+ */
2116
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
2117
+ /**
2118
+ * Choose, which related nodes to fetch as well
2119
+ */
2120
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
2121
+ }