@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,2679 @@
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 `Design` 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 Design
17
+ *
18
+ */
19
+ export type DesignModel = runtime.Types.Result.DefaultSelection<Prisma.$DesignPayload>
20
+
21
+ export type AggregateDesign = {
22
+ _count: DesignCountAggregateOutputType | null
23
+ _min: DesignMinAggregateOutputType | null
24
+ _max: DesignMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type DesignMinAggregateOutputType = {
28
+ id: string | null
29
+ icon: string | null
30
+ name: string | null
31
+ description: string | null
32
+ kind: string | null
33
+ userId: string | null
34
+ isDeleted: boolean | null
35
+ deletedAt: Date | null
36
+ createdAt: Date | null
37
+ updatedAt: Date | null
38
+ }
39
+
40
+ export type DesignMaxAggregateOutputType = {
41
+ id: string | null
42
+ icon: string | null
43
+ name: string | null
44
+ description: string | null
45
+ kind: string | null
46
+ userId: string | null
47
+ isDeleted: boolean | null
48
+ deletedAt: Date | null
49
+ createdAt: Date | null
50
+ updatedAt: Date | null
51
+ }
52
+
53
+ export type DesignCountAggregateOutputType = {
54
+ id: number
55
+ icon: number
56
+ name: number
57
+ description: number
58
+ kind: number
59
+ settings: number
60
+ userId: number
61
+ isDeleted: number
62
+ deletedAt: number
63
+ createdAt: number
64
+ updatedAt: number
65
+ _all: number
66
+ }
67
+
68
+
69
+ export type DesignMinAggregateInputType = {
70
+ id?: true
71
+ icon?: true
72
+ name?: true
73
+ description?: true
74
+ kind?: true
75
+ userId?: true
76
+ isDeleted?: true
77
+ deletedAt?: true
78
+ createdAt?: true
79
+ updatedAt?: true
80
+ }
81
+
82
+ export type DesignMaxAggregateInputType = {
83
+ id?: true
84
+ icon?: true
85
+ name?: true
86
+ description?: true
87
+ kind?: true
88
+ userId?: true
89
+ isDeleted?: true
90
+ deletedAt?: true
91
+ createdAt?: true
92
+ updatedAt?: true
93
+ }
94
+
95
+ export type DesignCountAggregateInputType = {
96
+ id?: true
97
+ icon?: true
98
+ name?: true
99
+ description?: true
100
+ kind?: true
101
+ settings?: true
102
+ userId?: true
103
+ isDeleted?: true
104
+ deletedAt?: true
105
+ createdAt?: true
106
+ updatedAt?: true
107
+ _all?: true
108
+ }
109
+
110
+ export type DesignAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
111
+ /**
112
+ * Filter which Design to aggregate.
113
+ */
114
+ where?: Prisma.DesignWhereInput
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
117
+ *
118
+ * Determine the order of Designs to fetch.
119
+ */
120
+ orderBy?: Prisma.DesignOrderByWithRelationInput | Prisma.DesignOrderByWithRelationInput[]
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
123
+ *
124
+ * Sets the start position
125
+ */
126
+ cursor?: Prisma.DesignWhereUniqueInput
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Take `±n` Designs from the position of the cursor.
131
+ */
132
+ take?: number
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
+ *
136
+ * Skip the first `n` Designs.
137
+ */
138
+ skip?: number
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Count returned Designs
143
+ **/
144
+ _count?: true | DesignCountAggregateInputType
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the minimum value
149
+ **/
150
+ _min?: DesignMinAggregateInputType
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to find the maximum value
155
+ **/
156
+ _max?: DesignMaxAggregateInputType
157
+ }
158
+
159
+ export type GetDesignAggregateType<T extends DesignAggregateArgs> = {
160
+ [P in keyof T & keyof AggregateDesign]: P extends '_count' | 'count'
161
+ ? T[P] extends true
162
+ ? number
163
+ : Prisma.GetScalarType<T[P], AggregateDesign[P]>
164
+ : Prisma.GetScalarType<T[P], AggregateDesign[P]>
165
+ }
166
+
167
+
168
+
169
+
170
+ export type DesignGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
171
+ where?: Prisma.DesignWhereInput
172
+ orderBy?: Prisma.DesignOrderByWithAggregationInput | Prisma.DesignOrderByWithAggregationInput[]
173
+ by: Prisma.DesignScalarFieldEnum[] | Prisma.DesignScalarFieldEnum
174
+ having?: Prisma.DesignScalarWhereWithAggregatesInput
175
+ take?: number
176
+ skip?: number
177
+ _count?: DesignCountAggregateInputType | true
178
+ _min?: DesignMinAggregateInputType
179
+ _max?: DesignMaxAggregateInputType
180
+ }
181
+
182
+ export type DesignGroupByOutputType = {
183
+ id: string
184
+ icon: string
185
+ name: string
186
+ description: string | null
187
+ kind: string
188
+ settings: runtime.JsonValue | null
189
+ userId: string
190
+ isDeleted: boolean
191
+ deletedAt: Date | null
192
+ createdAt: Date
193
+ updatedAt: Date
194
+ _count: DesignCountAggregateOutputType | null
195
+ _min: DesignMinAggregateOutputType | null
196
+ _max: DesignMaxAggregateOutputType | null
197
+ }
198
+
199
+ export type GetDesignGroupByPayload<T extends DesignGroupByArgs> = Prisma.PrismaPromise<
200
+ Array<
201
+ Prisma.PickEnumerable<DesignGroupByOutputType, T['by']> &
202
+ {
203
+ [P in ((keyof T) & (keyof DesignGroupByOutputType))]: P extends '_count'
204
+ ? T[P] extends boolean
205
+ ? number
206
+ : Prisma.GetScalarType<T[P], DesignGroupByOutputType[P]>
207
+ : Prisma.GetScalarType<T[P], DesignGroupByOutputType[P]>
208
+ }
209
+ >
210
+ >
211
+
212
+
213
+
214
+ export type DesignWhereInput = {
215
+ AND?: Prisma.DesignWhereInput | Prisma.DesignWhereInput[]
216
+ OR?: Prisma.DesignWhereInput[]
217
+ NOT?: Prisma.DesignWhereInput | Prisma.DesignWhereInput[]
218
+ id?: Prisma.StringFilter<"Design"> | string
219
+ icon?: Prisma.StringFilter<"Design"> | string
220
+ name?: Prisma.StringFilter<"Design"> | string
221
+ description?: Prisma.StringNullableFilter<"Design"> | string | null
222
+ kind?: Prisma.StringFilter<"Design"> | string
223
+ settings?: Prisma.JsonNullableFilter<"Design">
224
+ userId?: Prisma.StringFilter<"Design"> | string
225
+ isDeleted?: Prisma.BoolFilter<"Design"> | boolean
226
+ deletedAt?: Prisma.DateTimeNullableFilter<"Design"> | Date | string | null
227
+ createdAt?: Prisma.DateTimeFilter<"Design"> | Date | string
228
+ updatedAt?: Prisma.DateTimeFilter<"Design"> | Date | string
229
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
230
+ pages?: Prisma.DesignPageListRelationFilter
231
+ versions?: Prisma.DesignVersionListRelationFilter
232
+ reviews?: Prisma.ReviewListRelationFilter
233
+ comments?: Prisma.CommentListRelationFilter
234
+ shares?: Prisma.ShareListRelationFilter
235
+ designTags?: Prisma.DesignTagListRelationFilter
236
+ agentConversations?: Prisma.AgentConversationListRelationFilter
237
+ }
238
+
239
+ export type DesignOrderByWithRelationInput = {
240
+ id?: Prisma.SortOrder
241
+ icon?: Prisma.SortOrder
242
+ name?: Prisma.SortOrder
243
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
244
+ kind?: Prisma.SortOrder
245
+ settings?: Prisma.SortOrderInput | Prisma.SortOrder
246
+ userId?: Prisma.SortOrder
247
+ isDeleted?: Prisma.SortOrder
248
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
249
+ createdAt?: Prisma.SortOrder
250
+ updatedAt?: Prisma.SortOrder
251
+ user?: Prisma.UserOrderByWithRelationInput
252
+ pages?: Prisma.DesignPageOrderByRelationAggregateInput
253
+ versions?: Prisma.DesignVersionOrderByRelationAggregateInput
254
+ reviews?: Prisma.ReviewOrderByRelationAggregateInput
255
+ comments?: Prisma.CommentOrderByRelationAggregateInput
256
+ shares?: Prisma.ShareOrderByRelationAggregateInput
257
+ designTags?: Prisma.DesignTagOrderByRelationAggregateInput
258
+ agentConversations?: Prisma.AgentConversationOrderByRelationAggregateInput
259
+ }
260
+
261
+ export type DesignWhereUniqueInput = Prisma.AtLeast<{
262
+ id?: string
263
+ AND?: Prisma.DesignWhereInput | Prisma.DesignWhereInput[]
264
+ OR?: Prisma.DesignWhereInput[]
265
+ NOT?: Prisma.DesignWhereInput | Prisma.DesignWhereInput[]
266
+ icon?: Prisma.StringFilter<"Design"> | string
267
+ name?: Prisma.StringFilter<"Design"> | string
268
+ description?: Prisma.StringNullableFilter<"Design"> | string | null
269
+ kind?: Prisma.StringFilter<"Design"> | string
270
+ settings?: Prisma.JsonNullableFilter<"Design">
271
+ userId?: Prisma.StringFilter<"Design"> | string
272
+ isDeleted?: Prisma.BoolFilter<"Design"> | boolean
273
+ deletedAt?: Prisma.DateTimeNullableFilter<"Design"> | Date | string | null
274
+ createdAt?: Prisma.DateTimeFilter<"Design"> | Date | string
275
+ updatedAt?: Prisma.DateTimeFilter<"Design"> | Date | string
276
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
277
+ pages?: Prisma.DesignPageListRelationFilter
278
+ versions?: Prisma.DesignVersionListRelationFilter
279
+ reviews?: Prisma.ReviewListRelationFilter
280
+ comments?: Prisma.CommentListRelationFilter
281
+ shares?: Prisma.ShareListRelationFilter
282
+ designTags?: Prisma.DesignTagListRelationFilter
283
+ agentConversations?: Prisma.AgentConversationListRelationFilter
284
+ }, "id">
285
+
286
+ export type DesignOrderByWithAggregationInput = {
287
+ id?: Prisma.SortOrder
288
+ icon?: Prisma.SortOrder
289
+ name?: Prisma.SortOrder
290
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
291
+ kind?: Prisma.SortOrder
292
+ settings?: Prisma.SortOrderInput | Prisma.SortOrder
293
+ userId?: Prisma.SortOrder
294
+ isDeleted?: Prisma.SortOrder
295
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
296
+ createdAt?: Prisma.SortOrder
297
+ updatedAt?: Prisma.SortOrder
298
+ _count?: Prisma.DesignCountOrderByAggregateInput
299
+ _max?: Prisma.DesignMaxOrderByAggregateInput
300
+ _min?: Prisma.DesignMinOrderByAggregateInput
301
+ }
302
+
303
+ export type DesignScalarWhereWithAggregatesInput = {
304
+ AND?: Prisma.DesignScalarWhereWithAggregatesInput | Prisma.DesignScalarWhereWithAggregatesInput[]
305
+ OR?: Prisma.DesignScalarWhereWithAggregatesInput[]
306
+ NOT?: Prisma.DesignScalarWhereWithAggregatesInput | Prisma.DesignScalarWhereWithAggregatesInput[]
307
+ id?: Prisma.StringWithAggregatesFilter<"Design"> | string
308
+ icon?: Prisma.StringWithAggregatesFilter<"Design"> | string
309
+ name?: Prisma.StringWithAggregatesFilter<"Design"> | string
310
+ description?: Prisma.StringNullableWithAggregatesFilter<"Design"> | string | null
311
+ kind?: Prisma.StringWithAggregatesFilter<"Design"> | string
312
+ settings?: Prisma.JsonNullableWithAggregatesFilter<"Design">
313
+ userId?: Prisma.StringWithAggregatesFilter<"Design"> | string
314
+ isDeleted?: Prisma.BoolWithAggregatesFilter<"Design"> | boolean
315
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Design"> | Date | string | null
316
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Design"> | Date | string
317
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Design"> | Date | string
318
+ }
319
+
320
+ export type DesignCreateInput = {
321
+ id?: string
322
+ icon?: string
323
+ name: string
324
+ description?: string | null
325
+ kind?: string
326
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
327
+ isDeleted?: boolean
328
+ deletedAt?: Date | string | null
329
+ createdAt?: Date | string
330
+ updatedAt?: Date | string
331
+ user: Prisma.UserCreateNestedOneWithoutDesignsInput
332
+ pages?: Prisma.DesignPageCreateNestedManyWithoutDesignInput
333
+ versions?: Prisma.DesignVersionCreateNestedManyWithoutDesignInput
334
+ reviews?: Prisma.ReviewCreateNestedManyWithoutDesignInput
335
+ comments?: Prisma.CommentCreateNestedManyWithoutDesignInput
336
+ shares?: Prisma.ShareCreateNestedManyWithoutDesignInput
337
+ designTags?: Prisma.DesignTagCreateNestedManyWithoutDesignInput
338
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutDesignInput
339
+ }
340
+
341
+ export type DesignUncheckedCreateInput = {
342
+ id?: string
343
+ icon?: string
344
+ name: string
345
+ description?: string | null
346
+ kind?: string
347
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
348
+ userId: string
349
+ isDeleted?: boolean
350
+ deletedAt?: Date | string | null
351
+ createdAt?: Date | string
352
+ updatedAt?: Date | string
353
+ pages?: Prisma.DesignPageUncheckedCreateNestedManyWithoutDesignInput
354
+ versions?: Prisma.DesignVersionUncheckedCreateNestedManyWithoutDesignInput
355
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutDesignInput
356
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutDesignInput
357
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutDesignInput
358
+ designTags?: Prisma.DesignTagUncheckedCreateNestedManyWithoutDesignInput
359
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutDesignInput
360
+ }
361
+
362
+ export type DesignUpdateInput = {
363
+ id?: Prisma.StringFieldUpdateOperationsInput | string
364
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
365
+ name?: Prisma.StringFieldUpdateOperationsInput | string
366
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
367
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
368
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
369
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
370
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
371
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
372
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
373
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignsNestedInput
374
+ pages?: Prisma.DesignPageUpdateManyWithoutDesignNestedInput
375
+ versions?: Prisma.DesignVersionUpdateManyWithoutDesignNestedInput
376
+ reviews?: Prisma.ReviewUpdateManyWithoutDesignNestedInput
377
+ comments?: Prisma.CommentUpdateManyWithoutDesignNestedInput
378
+ shares?: Prisma.ShareUpdateManyWithoutDesignNestedInput
379
+ designTags?: Prisma.DesignTagUpdateManyWithoutDesignNestedInput
380
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutDesignNestedInput
381
+ }
382
+
383
+ export type DesignUncheckedUpdateInput = {
384
+ id?: Prisma.StringFieldUpdateOperationsInput | string
385
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
386
+ name?: Prisma.StringFieldUpdateOperationsInput | string
387
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
388
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
389
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
390
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
391
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
392
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
393
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
394
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
395
+ pages?: Prisma.DesignPageUncheckedUpdateManyWithoutDesignNestedInput
396
+ versions?: Prisma.DesignVersionUncheckedUpdateManyWithoutDesignNestedInput
397
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutDesignNestedInput
398
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutDesignNestedInput
399
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutDesignNestedInput
400
+ designTags?: Prisma.DesignTagUncheckedUpdateManyWithoutDesignNestedInput
401
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutDesignNestedInput
402
+ }
403
+
404
+ export type DesignCreateManyInput = {
405
+ id?: string
406
+ icon?: string
407
+ name: string
408
+ description?: string | null
409
+ kind?: string
410
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
411
+ userId: string
412
+ isDeleted?: boolean
413
+ deletedAt?: Date | string | null
414
+ createdAt?: Date | string
415
+ updatedAt?: Date | string
416
+ }
417
+
418
+ export type DesignUpdateManyMutationInput = {
419
+ id?: Prisma.StringFieldUpdateOperationsInput | string
420
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
421
+ name?: Prisma.StringFieldUpdateOperationsInput | string
422
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
423
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
424
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
425
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
426
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
427
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
428
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
429
+ }
430
+
431
+ export type DesignUncheckedUpdateManyInput = {
432
+ id?: Prisma.StringFieldUpdateOperationsInput | string
433
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
434
+ name?: Prisma.StringFieldUpdateOperationsInput | string
435
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
436
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
437
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
438
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
439
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
440
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
441
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
442
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
443
+ }
444
+
445
+ export type DesignListRelationFilter = {
446
+ every?: Prisma.DesignWhereInput
447
+ some?: Prisma.DesignWhereInput
448
+ none?: Prisma.DesignWhereInput
449
+ }
450
+
451
+ export type DesignOrderByRelationAggregateInput = {
452
+ _count?: Prisma.SortOrder
453
+ }
454
+
455
+ export type DesignCountOrderByAggregateInput = {
456
+ id?: Prisma.SortOrder
457
+ icon?: Prisma.SortOrder
458
+ name?: Prisma.SortOrder
459
+ description?: Prisma.SortOrder
460
+ kind?: Prisma.SortOrder
461
+ settings?: Prisma.SortOrder
462
+ userId?: Prisma.SortOrder
463
+ isDeleted?: Prisma.SortOrder
464
+ deletedAt?: Prisma.SortOrder
465
+ createdAt?: Prisma.SortOrder
466
+ updatedAt?: Prisma.SortOrder
467
+ }
468
+
469
+ export type DesignMaxOrderByAggregateInput = {
470
+ id?: Prisma.SortOrder
471
+ icon?: Prisma.SortOrder
472
+ name?: Prisma.SortOrder
473
+ description?: Prisma.SortOrder
474
+ kind?: Prisma.SortOrder
475
+ userId?: Prisma.SortOrder
476
+ isDeleted?: Prisma.SortOrder
477
+ deletedAt?: Prisma.SortOrder
478
+ createdAt?: Prisma.SortOrder
479
+ updatedAt?: Prisma.SortOrder
480
+ }
481
+
482
+ export type DesignMinOrderByAggregateInput = {
483
+ id?: Prisma.SortOrder
484
+ icon?: Prisma.SortOrder
485
+ name?: Prisma.SortOrder
486
+ description?: Prisma.SortOrder
487
+ kind?: Prisma.SortOrder
488
+ userId?: Prisma.SortOrder
489
+ isDeleted?: Prisma.SortOrder
490
+ deletedAt?: Prisma.SortOrder
491
+ createdAt?: Prisma.SortOrder
492
+ updatedAt?: Prisma.SortOrder
493
+ }
494
+
495
+ export type DesignScalarRelationFilter = {
496
+ is?: Prisma.DesignWhereInput
497
+ isNot?: Prisma.DesignWhereInput
498
+ }
499
+
500
+ export type DesignCreateNestedManyWithoutUserInput = {
501
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutUserInput, Prisma.DesignUncheckedCreateWithoutUserInput> | Prisma.DesignCreateWithoutUserInput[] | Prisma.DesignUncheckedCreateWithoutUserInput[]
502
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutUserInput | Prisma.DesignCreateOrConnectWithoutUserInput[]
503
+ createMany?: Prisma.DesignCreateManyUserInputEnvelope
504
+ connect?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
505
+ }
506
+
507
+ export type DesignUncheckedCreateNestedManyWithoutUserInput = {
508
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutUserInput, Prisma.DesignUncheckedCreateWithoutUserInput> | Prisma.DesignCreateWithoutUserInput[] | Prisma.DesignUncheckedCreateWithoutUserInput[]
509
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutUserInput | Prisma.DesignCreateOrConnectWithoutUserInput[]
510
+ createMany?: Prisma.DesignCreateManyUserInputEnvelope
511
+ connect?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
512
+ }
513
+
514
+ export type DesignUpdateManyWithoutUserNestedInput = {
515
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutUserInput, Prisma.DesignUncheckedCreateWithoutUserInput> | Prisma.DesignCreateWithoutUserInput[] | Prisma.DesignUncheckedCreateWithoutUserInput[]
516
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutUserInput | Prisma.DesignCreateOrConnectWithoutUserInput[]
517
+ upsert?: Prisma.DesignUpsertWithWhereUniqueWithoutUserInput | Prisma.DesignUpsertWithWhereUniqueWithoutUserInput[]
518
+ createMany?: Prisma.DesignCreateManyUserInputEnvelope
519
+ set?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
520
+ disconnect?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
521
+ delete?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
522
+ connect?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
523
+ update?: Prisma.DesignUpdateWithWhereUniqueWithoutUserInput | Prisma.DesignUpdateWithWhereUniqueWithoutUserInput[]
524
+ updateMany?: Prisma.DesignUpdateManyWithWhereWithoutUserInput | Prisma.DesignUpdateManyWithWhereWithoutUserInput[]
525
+ deleteMany?: Prisma.DesignScalarWhereInput | Prisma.DesignScalarWhereInput[]
526
+ }
527
+
528
+ export type DesignUncheckedUpdateManyWithoutUserNestedInput = {
529
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutUserInput, Prisma.DesignUncheckedCreateWithoutUserInput> | Prisma.DesignCreateWithoutUserInput[] | Prisma.DesignUncheckedCreateWithoutUserInput[]
530
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutUserInput | Prisma.DesignCreateOrConnectWithoutUserInput[]
531
+ upsert?: Prisma.DesignUpsertWithWhereUniqueWithoutUserInput | Prisma.DesignUpsertWithWhereUniqueWithoutUserInput[]
532
+ createMany?: Prisma.DesignCreateManyUserInputEnvelope
533
+ set?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
534
+ disconnect?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
535
+ delete?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
536
+ connect?: Prisma.DesignWhereUniqueInput | Prisma.DesignWhereUniqueInput[]
537
+ update?: Prisma.DesignUpdateWithWhereUniqueWithoutUserInput | Prisma.DesignUpdateWithWhereUniqueWithoutUserInput[]
538
+ updateMany?: Prisma.DesignUpdateManyWithWhereWithoutUserInput | Prisma.DesignUpdateManyWithWhereWithoutUserInput[]
539
+ deleteMany?: Prisma.DesignScalarWhereInput | Prisma.DesignScalarWhereInput[]
540
+ }
541
+
542
+ export type DesignCreateNestedOneWithoutAgentConversationsInput = {
543
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutAgentConversationsInput, Prisma.DesignUncheckedCreateWithoutAgentConversationsInput>
544
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutAgentConversationsInput
545
+ connect?: Prisma.DesignWhereUniqueInput
546
+ }
547
+
548
+ export type DesignUpdateOneRequiredWithoutAgentConversationsNestedInput = {
549
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutAgentConversationsInput, Prisma.DesignUncheckedCreateWithoutAgentConversationsInput>
550
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutAgentConversationsInput
551
+ upsert?: Prisma.DesignUpsertWithoutAgentConversationsInput
552
+ connect?: Prisma.DesignWhereUniqueInput
553
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignUpdateToOneWithWhereWithoutAgentConversationsInput, Prisma.DesignUpdateWithoutAgentConversationsInput>, Prisma.DesignUncheckedUpdateWithoutAgentConversationsInput>
554
+ }
555
+
556
+ export type DesignCreateNestedOneWithoutPagesInput = {
557
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutPagesInput, Prisma.DesignUncheckedCreateWithoutPagesInput>
558
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutPagesInput
559
+ connect?: Prisma.DesignWhereUniqueInput
560
+ }
561
+
562
+ export type DesignUpdateOneRequiredWithoutPagesNestedInput = {
563
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutPagesInput, Prisma.DesignUncheckedCreateWithoutPagesInput>
564
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutPagesInput
565
+ upsert?: Prisma.DesignUpsertWithoutPagesInput
566
+ connect?: Prisma.DesignWhereUniqueInput
567
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignUpdateToOneWithWhereWithoutPagesInput, Prisma.DesignUpdateWithoutPagesInput>, Prisma.DesignUncheckedUpdateWithoutPagesInput>
568
+ }
569
+
570
+ export type DesignCreateNestedOneWithoutVersionsInput = {
571
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutVersionsInput, Prisma.DesignUncheckedCreateWithoutVersionsInput>
572
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutVersionsInput
573
+ connect?: Prisma.DesignWhereUniqueInput
574
+ }
575
+
576
+ export type DesignUpdateOneRequiredWithoutVersionsNestedInput = {
577
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutVersionsInput, Prisma.DesignUncheckedCreateWithoutVersionsInput>
578
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutVersionsInput
579
+ upsert?: Prisma.DesignUpsertWithoutVersionsInput
580
+ connect?: Prisma.DesignWhereUniqueInput
581
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignUpdateToOneWithWhereWithoutVersionsInput, Prisma.DesignUpdateWithoutVersionsInput>, Prisma.DesignUncheckedUpdateWithoutVersionsInput>
582
+ }
583
+
584
+ export type DesignCreateNestedOneWithoutReviewsInput = {
585
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutReviewsInput, Prisma.DesignUncheckedCreateWithoutReviewsInput>
586
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutReviewsInput
587
+ connect?: Prisma.DesignWhereUniqueInput
588
+ }
589
+
590
+ export type DesignUpdateOneRequiredWithoutReviewsNestedInput = {
591
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutReviewsInput, Prisma.DesignUncheckedCreateWithoutReviewsInput>
592
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutReviewsInput
593
+ upsert?: Prisma.DesignUpsertWithoutReviewsInput
594
+ connect?: Prisma.DesignWhereUniqueInput
595
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignUpdateToOneWithWhereWithoutReviewsInput, Prisma.DesignUpdateWithoutReviewsInput>, Prisma.DesignUncheckedUpdateWithoutReviewsInput>
596
+ }
597
+
598
+ export type DesignCreateNestedOneWithoutCommentsInput = {
599
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutCommentsInput, Prisma.DesignUncheckedCreateWithoutCommentsInput>
600
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutCommentsInput
601
+ connect?: Prisma.DesignWhereUniqueInput
602
+ }
603
+
604
+ export type DesignUpdateOneRequiredWithoutCommentsNestedInput = {
605
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutCommentsInput, Prisma.DesignUncheckedCreateWithoutCommentsInput>
606
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutCommentsInput
607
+ upsert?: Prisma.DesignUpsertWithoutCommentsInput
608
+ connect?: Prisma.DesignWhereUniqueInput
609
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignUpdateToOneWithWhereWithoutCommentsInput, Prisma.DesignUpdateWithoutCommentsInput>, Prisma.DesignUncheckedUpdateWithoutCommentsInput>
610
+ }
611
+
612
+ export type DesignCreateNestedOneWithoutSharesInput = {
613
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutSharesInput, Prisma.DesignUncheckedCreateWithoutSharesInput>
614
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutSharesInput
615
+ connect?: Prisma.DesignWhereUniqueInput
616
+ }
617
+
618
+ export type DesignUpdateOneRequiredWithoutSharesNestedInput = {
619
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutSharesInput, Prisma.DesignUncheckedCreateWithoutSharesInput>
620
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutSharesInput
621
+ upsert?: Prisma.DesignUpsertWithoutSharesInput
622
+ connect?: Prisma.DesignWhereUniqueInput
623
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignUpdateToOneWithWhereWithoutSharesInput, Prisma.DesignUpdateWithoutSharesInput>, Prisma.DesignUncheckedUpdateWithoutSharesInput>
624
+ }
625
+
626
+ export type DesignCreateNestedOneWithoutDesignTagsInput = {
627
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutDesignTagsInput, Prisma.DesignUncheckedCreateWithoutDesignTagsInput>
628
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutDesignTagsInput
629
+ connect?: Prisma.DesignWhereUniqueInput
630
+ }
631
+
632
+ export type DesignUpdateOneRequiredWithoutDesignTagsNestedInput = {
633
+ create?: Prisma.XOR<Prisma.DesignCreateWithoutDesignTagsInput, Prisma.DesignUncheckedCreateWithoutDesignTagsInput>
634
+ connectOrCreate?: Prisma.DesignCreateOrConnectWithoutDesignTagsInput
635
+ upsert?: Prisma.DesignUpsertWithoutDesignTagsInput
636
+ connect?: Prisma.DesignWhereUniqueInput
637
+ update?: Prisma.XOR<Prisma.XOR<Prisma.DesignUpdateToOneWithWhereWithoutDesignTagsInput, Prisma.DesignUpdateWithoutDesignTagsInput>, Prisma.DesignUncheckedUpdateWithoutDesignTagsInput>
638
+ }
639
+
640
+ export type DesignCreateWithoutUserInput = {
641
+ id?: string
642
+ icon?: string
643
+ name: string
644
+ description?: string | null
645
+ kind?: string
646
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
647
+ isDeleted?: boolean
648
+ deletedAt?: Date | string | null
649
+ createdAt?: Date | string
650
+ updatedAt?: Date | string
651
+ pages?: Prisma.DesignPageCreateNestedManyWithoutDesignInput
652
+ versions?: Prisma.DesignVersionCreateNestedManyWithoutDesignInput
653
+ reviews?: Prisma.ReviewCreateNestedManyWithoutDesignInput
654
+ comments?: Prisma.CommentCreateNestedManyWithoutDesignInput
655
+ shares?: Prisma.ShareCreateNestedManyWithoutDesignInput
656
+ designTags?: Prisma.DesignTagCreateNestedManyWithoutDesignInput
657
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutDesignInput
658
+ }
659
+
660
+ export type DesignUncheckedCreateWithoutUserInput = {
661
+ id?: string
662
+ icon?: string
663
+ name: string
664
+ description?: string | null
665
+ kind?: string
666
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
667
+ isDeleted?: boolean
668
+ deletedAt?: Date | string | null
669
+ createdAt?: Date | string
670
+ updatedAt?: Date | string
671
+ pages?: Prisma.DesignPageUncheckedCreateNestedManyWithoutDesignInput
672
+ versions?: Prisma.DesignVersionUncheckedCreateNestedManyWithoutDesignInput
673
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutDesignInput
674
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutDesignInput
675
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutDesignInput
676
+ designTags?: Prisma.DesignTagUncheckedCreateNestedManyWithoutDesignInput
677
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutDesignInput
678
+ }
679
+
680
+ export type DesignCreateOrConnectWithoutUserInput = {
681
+ where: Prisma.DesignWhereUniqueInput
682
+ create: Prisma.XOR<Prisma.DesignCreateWithoutUserInput, Prisma.DesignUncheckedCreateWithoutUserInput>
683
+ }
684
+
685
+ export type DesignCreateManyUserInputEnvelope = {
686
+ data: Prisma.DesignCreateManyUserInput | Prisma.DesignCreateManyUserInput[]
687
+ }
688
+
689
+ export type DesignUpsertWithWhereUniqueWithoutUserInput = {
690
+ where: Prisma.DesignWhereUniqueInput
691
+ update: Prisma.XOR<Prisma.DesignUpdateWithoutUserInput, Prisma.DesignUncheckedUpdateWithoutUserInput>
692
+ create: Prisma.XOR<Prisma.DesignCreateWithoutUserInput, Prisma.DesignUncheckedCreateWithoutUserInput>
693
+ }
694
+
695
+ export type DesignUpdateWithWhereUniqueWithoutUserInput = {
696
+ where: Prisma.DesignWhereUniqueInput
697
+ data: Prisma.XOR<Prisma.DesignUpdateWithoutUserInput, Prisma.DesignUncheckedUpdateWithoutUserInput>
698
+ }
699
+
700
+ export type DesignUpdateManyWithWhereWithoutUserInput = {
701
+ where: Prisma.DesignScalarWhereInput
702
+ data: Prisma.XOR<Prisma.DesignUpdateManyMutationInput, Prisma.DesignUncheckedUpdateManyWithoutUserInput>
703
+ }
704
+
705
+ export type DesignScalarWhereInput = {
706
+ AND?: Prisma.DesignScalarWhereInput | Prisma.DesignScalarWhereInput[]
707
+ OR?: Prisma.DesignScalarWhereInput[]
708
+ NOT?: Prisma.DesignScalarWhereInput | Prisma.DesignScalarWhereInput[]
709
+ id?: Prisma.StringFilter<"Design"> | string
710
+ icon?: Prisma.StringFilter<"Design"> | string
711
+ name?: Prisma.StringFilter<"Design"> | string
712
+ description?: Prisma.StringNullableFilter<"Design"> | string | null
713
+ kind?: Prisma.StringFilter<"Design"> | string
714
+ settings?: Prisma.JsonNullableFilter<"Design">
715
+ userId?: Prisma.StringFilter<"Design"> | string
716
+ isDeleted?: Prisma.BoolFilter<"Design"> | boolean
717
+ deletedAt?: Prisma.DateTimeNullableFilter<"Design"> | Date | string | null
718
+ createdAt?: Prisma.DateTimeFilter<"Design"> | Date | string
719
+ updatedAt?: Prisma.DateTimeFilter<"Design"> | Date | string
720
+ }
721
+
722
+ export type DesignCreateWithoutAgentConversationsInput = {
723
+ id?: string
724
+ icon?: string
725
+ name: string
726
+ description?: string | null
727
+ kind?: string
728
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
729
+ isDeleted?: boolean
730
+ deletedAt?: Date | string | null
731
+ createdAt?: Date | string
732
+ updatedAt?: Date | string
733
+ user: Prisma.UserCreateNestedOneWithoutDesignsInput
734
+ pages?: Prisma.DesignPageCreateNestedManyWithoutDesignInput
735
+ versions?: Prisma.DesignVersionCreateNestedManyWithoutDesignInput
736
+ reviews?: Prisma.ReviewCreateNestedManyWithoutDesignInput
737
+ comments?: Prisma.CommentCreateNestedManyWithoutDesignInput
738
+ shares?: Prisma.ShareCreateNestedManyWithoutDesignInput
739
+ designTags?: Prisma.DesignTagCreateNestedManyWithoutDesignInput
740
+ }
741
+
742
+ export type DesignUncheckedCreateWithoutAgentConversationsInput = {
743
+ id?: string
744
+ icon?: string
745
+ name: string
746
+ description?: string | null
747
+ kind?: string
748
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
749
+ userId: string
750
+ isDeleted?: boolean
751
+ deletedAt?: Date | string | null
752
+ createdAt?: Date | string
753
+ updatedAt?: Date | string
754
+ pages?: Prisma.DesignPageUncheckedCreateNestedManyWithoutDesignInput
755
+ versions?: Prisma.DesignVersionUncheckedCreateNestedManyWithoutDesignInput
756
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutDesignInput
757
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutDesignInput
758
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutDesignInput
759
+ designTags?: Prisma.DesignTagUncheckedCreateNestedManyWithoutDesignInput
760
+ }
761
+
762
+ export type DesignCreateOrConnectWithoutAgentConversationsInput = {
763
+ where: Prisma.DesignWhereUniqueInput
764
+ create: Prisma.XOR<Prisma.DesignCreateWithoutAgentConversationsInput, Prisma.DesignUncheckedCreateWithoutAgentConversationsInput>
765
+ }
766
+
767
+ export type DesignUpsertWithoutAgentConversationsInput = {
768
+ update: Prisma.XOR<Prisma.DesignUpdateWithoutAgentConversationsInput, Prisma.DesignUncheckedUpdateWithoutAgentConversationsInput>
769
+ create: Prisma.XOR<Prisma.DesignCreateWithoutAgentConversationsInput, Prisma.DesignUncheckedCreateWithoutAgentConversationsInput>
770
+ where?: Prisma.DesignWhereInput
771
+ }
772
+
773
+ export type DesignUpdateToOneWithWhereWithoutAgentConversationsInput = {
774
+ where?: Prisma.DesignWhereInput
775
+ data: Prisma.XOR<Prisma.DesignUpdateWithoutAgentConversationsInput, Prisma.DesignUncheckedUpdateWithoutAgentConversationsInput>
776
+ }
777
+
778
+ export type DesignUpdateWithoutAgentConversationsInput = {
779
+ id?: Prisma.StringFieldUpdateOperationsInput | string
780
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
781
+ name?: Prisma.StringFieldUpdateOperationsInput | string
782
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
783
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
784
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
785
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
786
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
787
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
788
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
789
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignsNestedInput
790
+ pages?: Prisma.DesignPageUpdateManyWithoutDesignNestedInput
791
+ versions?: Prisma.DesignVersionUpdateManyWithoutDesignNestedInput
792
+ reviews?: Prisma.ReviewUpdateManyWithoutDesignNestedInput
793
+ comments?: Prisma.CommentUpdateManyWithoutDesignNestedInput
794
+ shares?: Prisma.ShareUpdateManyWithoutDesignNestedInput
795
+ designTags?: Prisma.DesignTagUpdateManyWithoutDesignNestedInput
796
+ }
797
+
798
+ export type DesignUncheckedUpdateWithoutAgentConversationsInput = {
799
+ id?: Prisma.StringFieldUpdateOperationsInput | string
800
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
801
+ name?: Prisma.StringFieldUpdateOperationsInput | string
802
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
803
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
804
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
805
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
806
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
807
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
808
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
809
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
810
+ pages?: Prisma.DesignPageUncheckedUpdateManyWithoutDesignNestedInput
811
+ versions?: Prisma.DesignVersionUncheckedUpdateManyWithoutDesignNestedInput
812
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutDesignNestedInput
813
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutDesignNestedInput
814
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutDesignNestedInput
815
+ designTags?: Prisma.DesignTagUncheckedUpdateManyWithoutDesignNestedInput
816
+ }
817
+
818
+ export type DesignCreateWithoutPagesInput = {
819
+ id?: string
820
+ icon?: string
821
+ name: string
822
+ description?: string | null
823
+ kind?: string
824
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
825
+ isDeleted?: boolean
826
+ deletedAt?: Date | string | null
827
+ createdAt?: Date | string
828
+ updatedAt?: Date | string
829
+ user: Prisma.UserCreateNestedOneWithoutDesignsInput
830
+ versions?: Prisma.DesignVersionCreateNestedManyWithoutDesignInput
831
+ reviews?: Prisma.ReviewCreateNestedManyWithoutDesignInput
832
+ comments?: Prisma.CommentCreateNestedManyWithoutDesignInput
833
+ shares?: Prisma.ShareCreateNestedManyWithoutDesignInput
834
+ designTags?: Prisma.DesignTagCreateNestedManyWithoutDesignInput
835
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutDesignInput
836
+ }
837
+
838
+ export type DesignUncheckedCreateWithoutPagesInput = {
839
+ id?: string
840
+ icon?: string
841
+ name: string
842
+ description?: string | null
843
+ kind?: string
844
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
845
+ userId: string
846
+ isDeleted?: boolean
847
+ deletedAt?: Date | string | null
848
+ createdAt?: Date | string
849
+ updatedAt?: Date | string
850
+ versions?: Prisma.DesignVersionUncheckedCreateNestedManyWithoutDesignInput
851
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutDesignInput
852
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutDesignInput
853
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutDesignInput
854
+ designTags?: Prisma.DesignTagUncheckedCreateNestedManyWithoutDesignInput
855
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutDesignInput
856
+ }
857
+
858
+ export type DesignCreateOrConnectWithoutPagesInput = {
859
+ where: Prisma.DesignWhereUniqueInput
860
+ create: Prisma.XOR<Prisma.DesignCreateWithoutPagesInput, Prisma.DesignUncheckedCreateWithoutPagesInput>
861
+ }
862
+
863
+ export type DesignUpsertWithoutPagesInput = {
864
+ update: Prisma.XOR<Prisma.DesignUpdateWithoutPagesInput, Prisma.DesignUncheckedUpdateWithoutPagesInput>
865
+ create: Prisma.XOR<Prisma.DesignCreateWithoutPagesInput, Prisma.DesignUncheckedCreateWithoutPagesInput>
866
+ where?: Prisma.DesignWhereInput
867
+ }
868
+
869
+ export type DesignUpdateToOneWithWhereWithoutPagesInput = {
870
+ where?: Prisma.DesignWhereInput
871
+ data: Prisma.XOR<Prisma.DesignUpdateWithoutPagesInput, Prisma.DesignUncheckedUpdateWithoutPagesInput>
872
+ }
873
+
874
+ export type DesignUpdateWithoutPagesInput = {
875
+ id?: Prisma.StringFieldUpdateOperationsInput | string
876
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
877
+ name?: Prisma.StringFieldUpdateOperationsInput | string
878
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
879
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
880
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
881
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
882
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
883
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
884
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
885
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignsNestedInput
886
+ versions?: Prisma.DesignVersionUpdateManyWithoutDesignNestedInput
887
+ reviews?: Prisma.ReviewUpdateManyWithoutDesignNestedInput
888
+ comments?: Prisma.CommentUpdateManyWithoutDesignNestedInput
889
+ shares?: Prisma.ShareUpdateManyWithoutDesignNestedInput
890
+ designTags?: Prisma.DesignTagUpdateManyWithoutDesignNestedInput
891
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutDesignNestedInput
892
+ }
893
+
894
+ export type DesignUncheckedUpdateWithoutPagesInput = {
895
+ id?: Prisma.StringFieldUpdateOperationsInput | string
896
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
897
+ name?: Prisma.StringFieldUpdateOperationsInput | string
898
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
899
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
900
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
901
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
902
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
903
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
904
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
905
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
906
+ versions?: Prisma.DesignVersionUncheckedUpdateManyWithoutDesignNestedInput
907
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutDesignNestedInput
908
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutDesignNestedInput
909
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutDesignNestedInput
910
+ designTags?: Prisma.DesignTagUncheckedUpdateManyWithoutDesignNestedInput
911
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutDesignNestedInput
912
+ }
913
+
914
+ export type DesignCreateWithoutVersionsInput = {
915
+ id?: string
916
+ icon?: string
917
+ name: string
918
+ description?: string | null
919
+ kind?: string
920
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
921
+ isDeleted?: boolean
922
+ deletedAt?: Date | string | null
923
+ createdAt?: Date | string
924
+ updatedAt?: Date | string
925
+ user: Prisma.UserCreateNestedOneWithoutDesignsInput
926
+ pages?: Prisma.DesignPageCreateNestedManyWithoutDesignInput
927
+ reviews?: Prisma.ReviewCreateNestedManyWithoutDesignInput
928
+ comments?: Prisma.CommentCreateNestedManyWithoutDesignInput
929
+ shares?: Prisma.ShareCreateNestedManyWithoutDesignInput
930
+ designTags?: Prisma.DesignTagCreateNestedManyWithoutDesignInput
931
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutDesignInput
932
+ }
933
+
934
+ export type DesignUncheckedCreateWithoutVersionsInput = {
935
+ id?: string
936
+ icon?: string
937
+ name: string
938
+ description?: string | null
939
+ kind?: string
940
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
941
+ userId: string
942
+ isDeleted?: boolean
943
+ deletedAt?: Date | string | null
944
+ createdAt?: Date | string
945
+ updatedAt?: Date | string
946
+ pages?: Prisma.DesignPageUncheckedCreateNestedManyWithoutDesignInput
947
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutDesignInput
948
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutDesignInput
949
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutDesignInput
950
+ designTags?: Prisma.DesignTagUncheckedCreateNestedManyWithoutDesignInput
951
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutDesignInput
952
+ }
953
+
954
+ export type DesignCreateOrConnectWithoutVersionsInput = {
955
+ where: Prisma.DesignWhereUniqueInput
956
+ create: Prisma.XOR<Prisma.DesignCreateWithoutVersionsInput, Prisma.DesignUncheckedCreateWithoutVersionsInput>
957
+ }
958
+
959
+ export type DesignUpsertWithoutVersionsInput = {
960
+ update: Prisma.XOR<Prisma.DesignUpdateWithoutVersionsInput, Prisma.DesignUncheckedUpdateWithoutVersionsInput>
961
+ create: Prisma.XOR<Prisma.DesignCreateWithoutVersionsInput, Prisma.DesignUncheckedCreateWithoutVersionsInput>
962
+ where?: Prisma.DesignWhereInput
963
+ }
964
+
965
+ export type DesignUpdateToOneWithWhereWithoutVersionsInput = {
966
+ where?: Prisma.DesignWhereInput
967
+ data: Prisma.XOR<Prisma.DesignUpdateWithoutVersionsInput, Prisma.DesignUncheckedUpdateWithoutVersionsInput>
968
+ }
969
+
970
+ export type DesignUpdateWithoutVersionsInput = {
971
+ id?: Prisma.StringFieldUpdateOperationsInput | string
972
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
973
+ name?: Prisma.StringFieldUpdateOperationsInput | string
974
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
975
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
976
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
977
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
978
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
979
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
980
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
981
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignsNestedInput
982
+ pages?: Prisma.DesignPageUpdateManyWithoutDesignNestedInput
983
+ reviews?: Prisma.ReviewUpdateManyWithoutDesignNestedInput
984
+ comments?: Prisma.CommentUpdateManyWithoutDesignNestedInput
985
+ shares?: Prisma.ShareUpdateManyWithoutDesignNestedInput
986
+ designTags?: Prisma.DesignTagUpdateManyWithoutDesignNestedInput
987
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutDesignNestedInput
988
+ }
989
+
990
+ export type DesignUncheckedUpdateWithoutVersionsInput = {
991
+ id?: Prisma.StringFieldUpdateOperationsInput | string
992
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
993
+ name?: Prisma.StringFieldUpdateOperationsInput | string
994
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
995
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
996
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
997
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
998
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
999
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1000
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1001
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1002
+ pages?: Prisma.DesignPageUncheckedUpdateManyWithoutDesignNestedInput
1003
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutDesignNestedInput
1004
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutDesignNestedInput
1005
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutDesignNestedInput
1006
+ designTags?: Prisma.DesignTagUncheckedUpdateManyWithoutDesignNestedInput
1007
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutDesignNestedInput
1008
+ }
1009
+
1010
+ export type DesignCreateWithoutReviewsInput = {
1011
+ id?: string
1012
+ icon?: string
1013
+ name: string
1014
+ description?: string | null
1015
+ kind?: string
1016
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1017
+ isDeleted?: boolean
1018
+ deletedAt?: Date | string | null
1019
+ createdAt?: Date | string
1020
+ updatedAt?: Date | string
1021
+ user: Prisma.UserCreateNestedOneWithoutDesignsInput
1022
+ pages?: Prisma.DesignPageCreateNestedManyWithoutDesignInput
1023
+ versions?: Prisma.DesignVersionCreateNestedManyWithoutDesignInput
1024
+ comments?: Prisma.CommentCreateNestedManyWithoutDesignInput
1025
+ shares?: Prisma.ShareCreateNestedManyWithoutDesignInput
1026
+ designTags?: Prisma.DesignTagCreateNestedManyWithoutDesignInput
1027
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutDesignInput
1028
+ }
1029
+
1030
+ export type DesignUncheckedCreateWithoutReviewsInput = {
1031
+ id?: string
1032
+ icon?: string
1033
+ name: string
1034
+ description?: string | null
1035
+ kind?: string
1036
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1037
+ userId: string
1038
+ isDeleted?: boolean
1039
+ deletedAt?: Date | string | null
1040
+ createdAt?: Date | string
1041
+ updatedAt?: Date | string
1042
+ pages?: Prisma.DesignPageUncheckedCreateNestedManyWithoutDesignInput
1043
+ versions?: Prisma.DesignVersionUncheckedCreateNestedManyWithoutDesignInput
1044
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutDesignInput
1045
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutDesignInput
1046
+ designTags?: Prisma.DesignTagUncheckedCreateNestedManyWithoutDesignInput
1047
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutDesignInput
1048
+ }
1049
+
1050
+ export type DesignCreateOrConnectWithoutReviewsInput = {
1051
+ where: Prisma.DesignWhereUniqueInput
1052
+ create: Prisma.XOR<Prisma.DesignCreateWithoutReviewsInput, Prisma.DesignUncheckedCreateWithoutReviewsInput>
1053
+ }
1054
+
1055
+ export type DesignUpsertWithoutReviewsInput = {
1056
+ update: Prisma.XOR<Prisma.DesignUpdateWithoutReviewsInput, Prisma.DesignUncheckedUpdateWithoutReviewsInput>
1057
+ create: Prisma.XOR<Prisma.DesignCreateWithoutReviewsInput, Prisma.DesignUncheckedCreateWithoutReviewsInput>
1058
+ where?: Prisma.DesignWhereInput
1059
+ }
1060
+
1061
+ export type DesignUpdateToOneWithWhereWithoutReviewsInput = {
1062
+ where?: Prisma.DesignWhereInput
1063
+ data: Prisma.XOR<Prisma.DesignUpdateWithoutReviewsInput, Prisma.DesignUncheckedUpdateWithoutReviewsInput>
1064
+ }
1065
+
1066
+ export type DesignUpdateWithoutReviewsInput = {
1067
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1068
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1069
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1070
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1071
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1072
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1073
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1074
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1075
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1076
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1077
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignsNestedInput
1078
+ pages?: Prisma.DesignPageUpdateManyWithoutDesignNestedInput
1079
+ versions?: Prisma.DesignVersionUpdateManyWithoutDesignNestedInput
1080
+ comments?: Prisma.CommentUpdateManyWithoutDesignNestedInput
1081
+ shares?: Prisma.ShareUpdateManyWithoutDesignNestedInput
1082
+ designTags?: Prisma.DesignTagUpdateManyWithoutDesignNestedInput
1083
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutDesignNestedInput
1084
+ }
1085
+
1086
+ export type DesignUncheckedUpdateWithoutReviewsInput = {
1087
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1088
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1089
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1090
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1091
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1092
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1093
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1094
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1095
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1096
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1097
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1098
+ pages?: Prisma.DesignPageUncheckedUpdateManyWithoutDesignNestedInput
1099
+ versions?: Prisma.DesignVersionUncheckedUpdateManyWithoutDesignNestedInput
1100
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutDesignNestedInput
1101
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutDesignNestedInput
1102
+ designTags?: Prisma.DesignTagUncheckedUpdateManyWithoutDesignNestedInput
1103
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutDesignNestedInput
1104
+ }
1105
+
1106
+ export type DesignCreateWithoutCommentsInput = {
1107
+ id?: string
1108
+ icon?: string
1109
+ name: string
1110
+ description?: string | null
1111
+ kind?: string
1112
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1113
+ isDeleted?: boolean
1114
+ deletedAt?: Date | string | null
1115
+ createdAt?: Date | string
1116
+ updatedAt?: Date | string
1117
+ user: Prisma.UserCreateNestedOneWithoutDesignsInput
1118
+ pages?: Prisma.DesignPageCreateNestedManyWithoutDesignInput
1119
+ versions?: Prisma.DesignVersionCreateNestedManyWithoutDesignInput
1120
+ reviews?: Prisma.ReviewCreateNestedManyWithoutDesignInput
1121
+ shares?: Prisma.ShareCreateNestedManyWithoutDesignInput
1122
+ designTags?: Prisma.DesignTagCreateNestedManyWithoutDesignInput
1123
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutDesignInput
1124
+ }
1125
+
1126
+ export type DesignUncheckedCreateWithoutCommentsInput = {
1127
+ id?: string
1128
+ icon?: string
1129
+ name: string
1130
+ description?: string | null
1131
+ kind?: string
1132
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1133
+ userId: string
1134
+ isDeleted?: boolean
1135
+ deletedAt?: Date | string | null
1136
+ createdAt?: Date | string
1137
+ updatedAt?: Date | string
1138
+ pages?: Prisma.DesignPageUncheckedCreateNestedManyWithoutDesignInput
1139
+ versions?: Prisma.DesignVersionUncheckedCreateNestedManyWithoutDesignInput
1140
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutDesignInput
1141
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutDesignInput
1142
+ designTags?: Prisma.DesignTagUncheckedCreateNestedManyWithoutDesignInput
1143
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutDesignInput
1144
+ }
1145
+
1146
+ export type DesignCreateOrConnectWithoutCommentsInput = {
1147
+ where: Prisma.DesignWhereUniqueInput
1148
+ create: Prisma.XOR<Prisma.DesignCreateWithoutCommentsInput, Prisma.DesignUncheckedCreateWithoutCommentsInput>
1149
+ }
1150
+
1151
+ export type DesignUpsertWithoutCommentsInput = {
1152
+ update: Prisma.XOR<Prisma.DesignUpdateWithoutCommentsInput, Prisma.DesignUncheckedUpdateWithoutCommentsInput>
1153
+ create: Prisma.XOR<Prisma.DesignCreateWithoutCommentsInput, Prisma.DesignUncheckedCreateWithoutCommentsInput>
1154
+ where?: Prisma.DesignWhereInput
1155
+ }
1156
+
1157
+ export type DesignUpdateToOneWithWhereWithoutCommentsInput = {
1158
+ where?: Prisma.DesignWhereInput
1159
+ data: Prisma.XOR<Prisma.DesignUpdateWithoutCommentsInput, Prisma.DesignUncheckedUpdateWithoutCommentsInput>
1160
+ }
1161
+
1162
+ export type DesignUpdateWithoutCommentsInput = {
1163
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1164
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1165
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1166
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1167
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1168
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1169
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1170
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1171
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1172
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1173
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignsNestedInput
1174
+ pages?: Prisma.DesignPageUpdateManyWithoutDesignNestedInput
1175
+ versions?: Prisma.DesignVersionUpdateManyWithoutDesignNestedInput
1176
+ reviews?: Prisma.ReviewUpdateManyWithoutDesignNestedInput
1177
+ shares?: Prisma.ShareUpdateManyWithoutDesignNestedInput
1178
+ designTags?: Prisma.DesignTagUpdateManyWithoutDesignNestedInput
1179
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutDesignNestedInput
1180
+ }
1181
+
1182
+ export type DesignUncheckedUpdateWithoutCommentsInput = {
1183
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1184
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1185
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1186
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1187
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1188
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1189
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1190
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1191
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1192
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1193
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1194
+ pages?: Prisma.DesignPageUncheckedUpdateManyWithoutDesignNestedInput
1195
+ versions?: Prisma.DesignVersionUncheckedUpdateManyWithoutDesignNestedInput
1196
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutDesignNestedInput
1197
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutDesignNestedInput
1198
+ designTags?: Prisma.DesignTagUncheckedUpdateManyWithoutDesignNestedInput
1199
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutDesignNestedInput
1200
+ }
1201
+
1202
+ export type DesignCreateWithoutSharesInput = {
1203
+ id?: string
1204
+ icon?: string
1205
+ name: string
1206
+ description?: string | null
1207
+ kind?: string
1208
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1209
+ isDeleted?: boolean
1210
+ deletedAt?: Date | string | null
1211
+ createdAt?: Date | string
1212
+ updatedAt?: Date | string
1213
+ user: Prisma.UserCreateNestedOneWithoutDesignsInput
1214
+ pages?: Prisma.DesignPageCreateNestedManyWithoutDesignInput
1215
+ versions?: Prisma.DesignVersionCreateNestedManyWithoutDesignInput
1216
+ reviews?: Prisma.ReviewCreateNestedManyWithoutDesignInput
1217
+ comments?: Prisma.CommentCreateNestedManyWithoutDesignInput
1218
+ designTags?: Prisma.DesignTagCreateNestedManyWithoutDesignInput
1219
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutDesignInput
1220
+ }
1221
+
1222
+ export type DesignUncheckedCreateWithoutSharesInput = {
1223
+ id?: string
1224
+ icon?: string
1225
+ name: string
1226
+ description?: string | null
1227
+ kind?: string
1228
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1229
+ userId: string
1230
+ isDeleted?: boolean
1231
+ deletedAt?: Date | string | null
1232
+ createdAt?: Date | string
1233
+ updatedAt?: Date | string
1234
+ pages?: Prisma.DesignPageUncheckedCreateNestedManyWithoutDesignInput
1235
+ versions?: Prisma.DesignVersionUncheckedCreateNestedManyWithoutDesignInput
1236
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutDesignInput
1237
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutDesignInput
1238
+ designTags?: Prisma.DesignTagUncheckedCreateNestedManyWithoutDesignInput
1239
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutDesignInput
1240
+ }
1241
+
1242
+ export type DesignCreateOrConnectWithoutSharesInput = {
1243
+ where: Prisma.DesignWhereUniqueInput
1244
+ create: Prisma.XOR<Prisma.DesignCreateWithoutSharesInput, Prisma.DesignUncheckedCreateWithoutSharesInput>
1245
+ }
1246
+
1247
+ export type DesignUpsertWithoutSharesInput = {
1248
+ update: Prisma.XOR<Prisma.DesignUpdateWithoutSharesInput, Prisma.DesignUncheckedUpdateWithoutSharesInput>
1249
+ create: Prisma.XOR<Prisma.DesignCreateWithoutSharesInput, Prisma.DesignUncheckedCreateWithoutSharesInput>
1250
+ where?: Prisma.DesignWhereInput
1251
+ }
1252
+
1253
+ export type DesignUpdateToOneWithWhereWithoutSharesInput = {
1254
+ where?: Prisma.DesignWhereInput
1255
+ data: Prisma.XOR<Prisma.DesignUpdateWithoutSharesInput, Prisma.DesignUncheckedUpdateWithoutSharesInput>
1256
+ }
1257
+
1258
+ export type DesignUpdateWithoutSharesInput = {
1259
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1260
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1261
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1262
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1263
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1264
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1265
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1266
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1267
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1268
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1269
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignsNestedInput
1270
+ pages?: Prisma.DesignPageUpdateManyWithoutDesignNestedInput
1271
+ versions?: Prisma.DesignVersionUpdateManyWithoutDesignNestedInput
1272
+ reviews?: Prisma.ReviewUpdateManyWithoutDesignNestedInput
1273
+ comments?: Prisma.CommentUpdateManyWithoutDesignNestedInput
1274
+ designTags?: Prisma.DesignTagUpdateManyWithoutDesignNestedInput
1275
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutDesignNestedInput
1276
+ }
1277
+
1278
+ export type DesignUncheckedUpdateWithoutSharesInput = {
1279
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1280
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1281
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1282
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1283
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1284
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1285
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1286
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1287
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1288
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1289
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1290
+ pages?: Prisma.DesignPageUncheckedUpdateManyWithoutDesignNestedInput
1291
+ versions?: Prisma.DesignVersionUncheckedUpdateManyWithoutDesignNestedInput
1292
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutDesignNestedInput
1293
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutDesignNestedInput
1294
+ designTags?: Prisma.DesignTagUncheckedUpdateManyWithoutDesignNestedInput
1295
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutDesignNestedInput
1296
+ }
1297
+
1298
+ export type DesignCreateWithoutDesignTagsInput = {
1299
+ id?: string
1300
+ icon?: string
1301
+ name: string
1302
+ description?: string | null
1303
+ kind?: string
1304
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1305
+ isDeleted?: boolean
1306
+ deletedAt?: Date | string | null
1307
+ createdAt?: Date | string
1308
+ updatedAt?: Date | string
1309
+ user: Prisma.UserCreateNestedOneWithoutDesignsInput
1310
+ pages?: Prisma.DesignPageCreateNestedManyWithoutDesignInput
1311
+ versions?: Prisma.DesignVersionCreateNestedManyWithoutDesignInput
1312
+ reviews?: Prisma.ReviewCreateNestedManyWithoutDesignInput
1313
+ comments?: Prisma.CommentCreateNestedManyWithoutDesignInput
1314
+ shares?: Prisma.ShareCreateNestedManyWithoutDesignInput
1315
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutDesignInput
1316
+ }
1317
+
1318
+ export type DesignUncheckedCreateWithoutDesignTagsInput = {
1319
+ id?: string
1320
+ icon?: string
1321
+ name: string
1322
+ description?: string | null
1323
+ kind?: string
1324
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1325
+ userId: string
1326
+ isDeleted?: boolean
1327
+ deletedAt?: Date | string | null
1328
+ createdAt?: Date | string
1329
+ updatedAt?: Date | string
1330
+ pages?: Prisma.DesignPageUncheckedCreateNestedManyWithoutDesignInput
1331
+ versions?: Prisma.DesignVersionUncheckedCreateNestedManyWithoutDesignInput
1332
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutDesignInput
1333
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutDesignInput
1334
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutDesignInput
1335
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutDesignInput
1336
+ }
1337
+
1338
+ export type DesignCreateOrConnectWithoutDesignTagsInput = {
1339
+ where: Prisma.DesignWhereUniqueInput
1340
+ create: Prisma.XOR<Prisma.DesignCreateWithoutDesignTagsInput, Prisma.DesignUncheckedCreateWithoutDesignTagsInput>
1341
+ }
1342
+
1343
+ export type DesignUpsertWithoutDesignTagsInput = {
1344
+ update: Prisma.XOR<Prisma.DesignUpdateWithoutDesignTagsInput, Prisma.DesignUncheckedUpdateWithoutDesignTagsInput>
1345
+ create: Prisma.XOR<Prisma.DesignCreateWithoutDesignTagsInput, Prisma.DesignUncheckedCreateWithoutDesignTagsInput>
1346
+ where?: Prisma.DesignWhereInput
1347
+ }
1348
+
1349
+ export type DesignUpdateToOneWithWhereWithoutDesignTagsInput = {
1350
+ where?: Prisma.DesignWhereInput
1351
+ data: Prisma.XOR<Prisma.DesignUpdateWithoutDesignTagsInput, Prisma.DesignUncheckedUpdateWithoutDesignTagsInput>
1352
+ }
1353
+
1354
+ export type DesignUpdateWithoutDesignTagsInput = {
1355
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1356
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1357
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1358
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1359
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1360
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1361
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1362
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1363
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1364
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1365
+ user?: Prisma.UserUpdateOneRequiredWithoutDesignsNestedInput
1366
+ pages?: Prisma.DesignPageUpdateManyWithoutDesignNestedInput
1367
+ versions?: Prisma.DesignVersionUpdateManyWithoutDesignNestedInput
1368
+ reviews?: Prisma.ReviewUpdateManyWithoutDesignNestedInput
1369
+ comments?: Prisma.CommentUpdateManyWithoutDesignNestedInput
1370
+ shares?: Prisma.ShareUpdateManyWithoutDesignNestedInput
1371
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutDesignNestedInput
1372
+ }
1373
+
1374
+ export type DesignUncheckedUpdateWithoutDesignTagsInput = {
1375
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1376
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1377
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1378
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1379
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1380
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1381
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1382
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1383
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1384
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1385
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1386
+ pages?: Prisma.DesignPageUncheckedUpdateManyWithoutDesignNestedInput
1387
+ versions?: Prisma.DesignVersionUncheckedUpdateManyWithoutDesignNestedInput
1388
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutDesignNestedInput
1389
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutDesignNestedInput
1390
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutDesignNestedInput
1391
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutDesignNestedInput
1392
+ }
1393
+
1394
+ export type DesignCreateManyUserInput = {
1395
+ id?: string
1396
+ icon?: string
1397
+ name: string
1398
+ description?: string | null
1399
+ kind?: string
1400
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1401
+ isDeleted?: boolean
1402
+ deletedAt?: Date | string | null
1403
+ createdAt?: Date | string
1404
+ updatedAt?: Date | string
1405
+ }
1406
+
1407
+ export type DesignUpdateWithoutUserInput = {
1408
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1409
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1410
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1411
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1412
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1413
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1414
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1415
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1416
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1417
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1418
+ pages?: Prisma.DesignPageUpdateManyWithoutDesignNestedInput
1419
+ versions?: Prisma.DesignVersionUpdateManyWithoutDesignNestedInput
1420
+ reviews?: Prisma.ReviewUpdateManyWithoutDesignNestedInput
1421
+ comments?: Prisma.CommentUpdateManyWithoutDesignNestedInput
1422
+ shares?: Prisma.ShareUpdateManyWithoutDesignNestedInput
1423
+ designTags?: Prisma.DesignTagUpdateManyWithoutDesignNestedInput
1424
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutDesignNestedInput
1425
+ }
1426
+
1427
+ export type DesignUncheckedUpdateWithoutUserInput = {
1428
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1429
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1430
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1431
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1432
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1433
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1434
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1435
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1436
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1437
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1438
+ pages?: Prisma.DesignPageUncheckedUpdateManyWithoutDesignNestedInput
1439
+ versions?: Prisma.DesignVersionUncheckedUpdateManyWithoutDesignNestedInput
1440
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutDesignNestedInput
1441
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutDesignNestedInput
1442
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutDesignNestedInput
1443
+ designTags?: Prisma.DesignTagUncheckedUpdateManyWithoutDesignNestedInput
1444
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutDesignNestedInput
1445
+ }
1446
+
1447
+ export type DesignUncheckedUpdateManyWithoutUserInput = {
1448
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1449
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1450
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1451
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1452
+ kind?: Prisma.StringFieldUpdateOperationsInput | string
1453
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1454
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1455
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1456
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1457
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1458
+ }
1459
+
1460
+
1461
+ /**
1462
+ * Count Type DesignCountOutputType
1463
+ */
1464
+
1465
+ export type DesignCountOutputType = {
1466
+ pages: number
1467
+ versions: number
1468
+ reviews: number
1469
+ comments: number
1470
+ shares: number
1471
+ designTags: number
1472
+ agentConversations: number
1473
+ }
1474
+
1475
+ export type DesignCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1476
+ pages?: boolean | DesignCountOutputTypeCountPagesArgs
1477
+ versions?: boolean | DesignCountOutputTypeCountVersionsArgs
1478
+ reviews?: boolean | DesignCountOutputTypeCountReviewsArgs
1479
+ comments?: boolean | DesignCountOutputTypeCountCommentsArgs
1480
+ shares?: boolean | DesignCountOutputTypeCountSharesArgs
1481
+ designTags?: boolean | DesignCountOutputTypeCountDesignTagsArgs
1482
+ agentConversations?: boolean | DesignCountOutputTypeCountAgentConversationsArgs
1483
+ }
1484
+
1485
+ /**
1486
+ * DesignCountOutputType without action
1487
+ */
1488
+ export type DesignCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1489
+ /**
1490
+ * Select specific fields to fetch from the DesignCountOutputType
1491
+ */
1492
+ select?: Prisma.DesignCountOutputTypeSelect<ExtArgs> | null
1493
+ }
1494
+
1495
+ /**
1496
+ * DesignCountOutputType without action
1497
+ */
1498
+ export type DesignCountOutputTypeCountPagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1499
+ where?: Prisma.DesignPageWhereInput
1500
+ }
1501
+
1502
+ /**
1503
+ * DesignCountOutputType without action
1504
+ */
1505
+ export type DesignCountOutputTypeCountVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1506
+ where?: Prisma.DesignVersionWhereInput
1507
+ }
1508
+
1509
+ /**
1510
+ * DesignCountOutputType without action
1511
+ */
1512
+ export type DesignCountOutputTypeCountReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1513
+ where?: Prisma.ReviewWhereInput
1514
+ }
1515
+
1516
+ /**
1517
+ * DesignCountOutputType without action
1518
+ */
1519
+ export type DesignCountOutputTypeCountCommentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
+ where?: Prisma.CommentWhereInput
1521
+ }
1522
+
1523
+ /**
1524
+ * DesignCountOutputType without action
1525
+ */
1526
+ export type DesignCountOutputTypeCountSharesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1527
+ where?: Prisma.ShareWhereInput
1528
+ }
1529
+
1530
+ /**
1531
+ * DesignCountOutputType without action
1532
+ */
1533
+ export type DesignCountOutputTypeCountDesignTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1534
+ where?: Prisma.DesignTagWhereInput
1535
+ }
1536
+
1537
+ /**
1538
+ * DesignCountOutputType without action
1539
+ */
1540
+ export type DesignCountOutputTypeCountAgentConversationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1541
+ where?: Prisma.AgentConversationWhereInput
1542
+ }
1543
+
1544
+
1545
+ export type DesignSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1546
+ id?: boolean
1547
+ icon?: boolean
1548
+ name?: boolean
1549
+ description?: boolean
1550
+ kind?: boolean
1551
+ settings?: boolean
1552
+ userId?: boolean
1553
+ isDeleted?: boolean
1554
+ deletedAt?: boolean
1555
+ createdAt?: boolean
1556
+ updatedAt?: boolean
1557
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1558
+ pages?: boolean | Prisma.Design$pagesArgs<ExtArgs>
1559
+ versions?: boolean | Prisma.Design$versionsArgs<ExtArgs>
1560
+ reviews?: boolean | Prisma.Design$reviewsArgs<ExtArgs>
1561
+ comments?: boolean | Prisma.Design$commentsArgs<ExtArgs>
1562
+ shares?: boolean | Prisma.Design$sharesArgs<ExtArgs>
1563
+ designTags?: boolean | Prisma.Design$designTagsArgs<ExtArgs>
1564
+ agentConversations?: boolean | Prisma.Design$agentConversationsArgs<ExtArgs>
1565
+ _count?: boolean | Prisma.DesignCountOutputTypeDefaultArgs<ExtArgs>
1566
+ }, ExtArgs["result"]["design"]>
1567
+
1568
+ export type DesignSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1569
+ id?: boolean
1570
+ icon?: boolean
1571
+ name?: boolean
1572
+ description?: boolean
1573
+ kind?: boolean
1574
+ settings?: boolean
1575
+ userId?: boolean
1576
+ isDeleted?: boolean
1577
+ deletedAt?: boolean
1578
+ createdAt?: boolean
1579
+ updatedAt?: boolean
1580
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1581
+ }, ExtArgs["result"]["design"]>
1582
+
1583
+ export type DesignSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1584
+ id?: boolean
1585
+ icon?: boolean
1586
+ name?: boolean
1587
+ description?: boolean
1588
+ kind?: boolean
1589
+ settings?: boolean
1590
+ userId?: boolean
1591
+ isDeleted?: boolean
1592
+ deletedAt?: boolean
1593
+ createdAt?: boolean
1594
+ updatedAt?: boolean
1595
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1596
+ }, ExtArgs["result"]["design"]>
1597
+
1598
+ export type DesignSelectScalar = {
1599
+ id?: boolean
1600
+ icon?: boolean
1601
+ name?: boolean
1602
+ description?: boolean
1603
+ kind?: boolean
1604
+ settings?: boolean
1605
+ userId?: boolean
1606
+ isDeleted?: boolean
1607
+ deletedAt?: boolean
1608
+ createdAt?: boolean
1609
+ updatedAt?: boolean
1610
+ }
1611
+
1612
+ export type DesignOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "icon" | "name" | "description" | "kind" | "settings" | "userId" | "isDeleted" | "deletedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["design"]>
1613
+ export type DesignInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1614
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1615
+ pages?: boolean | Prisma.Design$pagesArgs<ExtArgs>
1616
+ versions?: boolean | Prisma.Design$versionsArgs<ExtArgs>
1617
+ reviews?: boolean | Prisma.Design$reviewsArgs<ExtArgs>
1618
+ comments?: boolean | Prisma.Design$commentsArgs<ExtArgs>
1619
+ shares?: boolean | Prisma.Design$sharesArgs<ExtArgs>
1620
+ designTags?: boolean | Prisma.Design$designTagsArgs<ExtArgs>
1621
+ agentConversations?: boolean | Prisma.Design$agentConversationsArgs<ExtArgs>
1622
+ _count?: boolean | Prisma.DesignCountOutputTypeDefaultArgs<ExtArgs>
1623
+ }
1624
+ export type DesignIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1625
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1626
+ }
1627
+ export type DesignIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1628
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1629
+ }
1630
+
1631
+ export type $DesignPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1632
+ name: "Design"
1633
+ objects: {
1634
+ user: Prisma.$UserPayload<ExtArgs>
1635
+ pages: Prisma.$DesignPagePayload<ExtArgs>[]
1636
+ versions: Prisma.$DesignVersionPayload<ExtArgs>[]
1637
+ reviews: Prisma.$ReviewPayload<ExtArgs>[]
1638
+ comments: Prisma.$CommentPayload<ExtArgs>[]
1639
+ shares: Prisma.$SharePayload<ExtArgs>[]
1640
+ designTags: Prisma.$DesignTagPayload<ExtArgs>[]
1641
+ agentConversations: Prisma.$AgentConversationPayload<ExtArgs>[]
1642
+ }
1643
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1644
+ id: string
1645
+ icon: string
1646
+ name: string
1647
+ description: string | null
1648
+ kind: string
1649
+ settings: runtime.JsonValue | null
1650
+ userId: string
1651
+ isDeleted: boolean
1652
+ deletedAt: Date | null
1653
+ createdAt: Date
1654
+ updatedAt: Date
1655
+ }, ExtArgs["result"]["design"]>
1656
+ composites: {}
1657
+ }
1658
+
1659
+ export type DesignGetPayload<S extends boolean | null | undefined | DesignDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DesignPayload, S>
1660
+
1661
+ export type DesignCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1662
+ Omit<DesignFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1663
+ select?: DesignCountAggregateInputType | true
1664
+ }
1665
+
1666
+ export interface DesignDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1667
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Design'], meta: { name: 'Design' } }
1668
+ /**
1669
+ * Find zero or one Design that matches the filter.
1670
+ * @param {DesignFindUniqueArgs} args - Arguments to find a Design
1671
+ * @example
1672
+ * // Get one Design
1673
+ * const design = await prisma.design.findUnique({
1674
+ * where: {
1675
+ * // ... provide filter here
1676
+ * }
1677
+ * })
1678
+ */
1679
+ findUnique<T extends DesignFindUniqueArgs>(args: Prisma.SelectSubset<T, DesignFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1680
+
1681
+ /**
1682
+ * Find one Design that matches the filter or throw an error with `error.code='P2025'`
1683
+ * if no matches were found.
1684
+ * @param {DesignFindUniqueOrThrowArgs} args - Arguments to find a Design
1685
+ * @example
1686
+ * // Get one Design
1687
+ * const design = await prisma.design.findUniqueOrThrow({
1688
+ * where: {
1689
+ * // ... provide filter here
1690
+ * }
1691
+ * })
1692
+ */
1693
+ findUniqueOrThrow<T extends DesignFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DesignFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1694
+
1695
+ /**
1696
+ * Find the first Design that matches the filter.
1697
+ * Note, that providing `undefined` is treated as the value not being there.
1698
+ * Read more here: https://pris.ly/d/null-undefined
1699
+ * @param {DesignFindFirstArgs} args - Arguments to find a Design
1700
+ * @example
1701
+ * // Get one Design
1702
+ * const design = await prisma.design.findFirst({
1703
+ * where: {
1704
+ * // ... provide filter here
1705
+ * }
1706
+ * })
1707
+ */
1708
+ findFirst<T extends DesignFindFirstArgs>(args?: Prisma.SelectSubset<T, DesignFindFirstArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1709
+
1710
+ /**
1711
+ * Find the first Design that matches the filter or
1712
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1713
+ * Note, that providing `undefined` is treated as the value not being there.
1714
+ * Read more here: https://pris.ly/d/null-undefined
1715
+ * @param {DesignFindFirstOrThrowArgs} args - Arguments to find a Design
1716
+ * @example
1717
+ * // Get one Design
1718
+ * const design = await prisma.design.findFirstOrThrow({
1719
+ * where: {
1720
+ * // ... provide filter here
1721
+ * }
1722
+ * })
1723
+ */
1724
+ findFirstOrThrow<T extends DesignFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DesignFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1725
+
1726
+ /**
1727
+ * Find zero or more Designs that matches the filter.
1728
+ * Note, that providing `undefined` is treated as the value not being there.
1729
+ * Read more here: https://pris.ly/d/null-undefined
1730
+ * @param {DesignFindManyArgs} args - Arguments to filter and select certain fields only.
1731
+ * @example
1732
+ * // Get all Designs
1733
+ * const designs = await prisma.design.findMany()
1734
+ *
1735
+ * // Get first 10 Designs
1736
+ * const designs = await prisma.design.findMany({ take: 10 })
1737
+ *
1738
+ * // Only select the `id`
1739
+ * const designWithIdOnly = await prisma.design.findMany({ select: { id: true } })
1740
+ *
1741
+ */
1742
+ findMany<T extends DesignFindManyArgs>(args?: Prisma.SelectSubset<T, DesignFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1743
+
1744
+ /**
1745
+ * Create a Design.
1746
+ * @param {DesignCreateArgs} args - Arguments to create a Design.
1747
+ * @example
1748
+ * // Create one Design
1749
+ * const Design = await prisma.design.create({
1750
+ * data: {
1751
+ * // ... data to create a Design
1752
+ * }
1753
+ * })
1754
+ *
1755
+ */
1756
+ create<T extends DesignCreateArgs>(args: Prisma.SelectSubset<T, DesignCreateArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1757
+
1758
+ /**
1759
+ * Create many Designs.
1760
+ * @param {DesignCreateManyArgs} args - Arguments to create many Designs.
1761
+ * @example
1762
+ * // Create many Designs
1763
+ * const design = await prisma.design.createMany({
1764
+ * data: [
1765
+ * // ... provide data here
1766
+ * ]
1767
+ * })
1768
+ *
1769
+ */
1770
+ createMany<T extends DesignCreateManyArgs>(args?: Prisma.SelectSubset<T, DesignCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1771
+
1772
+ /**
1773
+ * Create many Designs and returns the data saved in the database.
1774
+ * @param {DesignCreateManyAndReturnArgs} args - Arguments to create many Designs.
1775
+ * @example
1776
+ * // Create many Designs
1777
+ * const design = await prisma.design.createManyAndReturn({
1778
+ * data: [
1779
+ * // ... provide data here
1780
+ * ]
1781
+ * })
1782
+ *
1783
+ * // Create many Designs and only return the `id`
1784
+ * const designWithIdOnly = await prisma.design.createManyAndReturn({
1785
+ * select: { id: true },
1786
+ * data: [
1787
+ * // ... provide data here
1788
+ * ]
1789
+ * })
1790
+ * Note, that providing `undefined` is treated as the value not being there.
1791
+ * Read more here: https://pris.ly/d/null-undefined
1792
+ *
1793
+ */
1794
+ createManyAndReturn<T extends DesignCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DesignCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1795
+
1796
+ /**
1797
+ * Delete a Design.
1798
+ * @param {DesignDeleteArgs} args - Arguments to delete one Design.
1799
+ * @example
1800
+ * // Delete one Design
1801
+ * const Design = await prisma.design.delete({
1802
+ * where: {
1803
+ * // ... filter to delete one Design
1804
+ * }
1805
+ * })
1806
+ *
1807
+ */
1808
+ delete<T extends DesignDeleteArgs>(args: Prisma.SelectSubset<T, DesignDeleteArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1809
+
1810
+ /**
1811
+ * Update one Design.
1812
+ * @param {DesignUpdateArgs} args - Arguments to update one Design.
1813
+ * @example
1814
+ * // Update one Design
1815
+ * const design = await prisma.design.update({
1816
+ * where: {
1817
+ * // ... provide filter here
1818
+ * },
1819
+ * data: {
1820
+ * // ... provide data here
1821
+ * }
1822
+ * })
1823
+ *
1824
+ */
1825
+ update<T extends DesignUpdateArgs>(args: Prisma.SelectSubset<T, DesignUpdateArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1826
+
1827
+ /**
1828
+ * Delete zero or more Designs.
1829
+ * @param {DesignDeleteManyArgs} args - Arguments to filter Designs to delete.
1830
+ * @example
1831
+ * // Delete a few Designs
1832
+ * const { count } = await prisma.design.deleteMany({
1833
+ * where: {
1834
+ * // ... provide filter here
1835
+ * }
1836
+ * })
1837
+ *
1838
+ */
1839
+ deleteMany<T extends DesignDeleteManyArgs>(args?: Prisma.SelectSubset<T, DesignDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1840
+
1841
+ /**
1842
+ * Update zero or more Designs.
1843
+ * Note, that providing `undefined` is treated as the value not being there.
1844
+ * Read more here: https://pris.ly/d/null-undefined
1845
+ * @param {DesignUpdateManyArgs} args - Arguments to update one or more rows.
1846
+ * @example
1847
+ * // Update many Designs
1848
+ * const design = await prisma.design.updateMany({
1849
+ * where: {
1850
+ * // ... provide filter here
1851
+ * },
1852
+ * data: {
1853
+ * // ... provide data here
1854
+ * }
1855
+ * })
1856
+ *
1857
+ */
1858
+ updateMany<T extends DesignUpdateManyArgs>(args: Prisma.SelectSubset<T, DesignUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1859
+
1860
+ /**
1861
+ * Update zero or more Designs and returns the data updated in the database.
1862
+ * @param {DesignUpdateManyAndReturnArgs} args - Arguments to update many Designs.
1863
+ * @example
1864
+ * // Update many Designs
1865
+ * const design = await prisma.design.updateManyAndReturn({
1866
+ * where: {
1867
+ * // ... provide filter here
1868
+ * },
1869
+ * data: [
1870
+ * // ... provide data here
1871
+ * ]
1872
+ * })
1873
+ *
1874
+ * // Update zero or more Designs and only return the `id`
1875
+ * const designWithIdOnly = await prisma.design.updateManyAndReturn({
1876
+ * select: { id: true },
1877
+ * where: {
1878
+ * // ... provide filter here
1879
+ * },
1880
+ * data: [
1881
+ * // ... provide data here
1882
+ * ]
1883
+ * })
1884
+ * Note, that providing `undefined` is treated as the value not being there.
1885
+ * Read more here: https://pris.ly/d/null-undefined
1886
+ *
1887
+ */
1888
+ updateManyAndReturn<T extends DesignUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DesignUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1889
+
1890
+ /**
1891
+ * Create or update one Design.
1892
+ * @param {DesignUpsertArgs} args - Arguments to update or create a Design.
1893
+ * @example
1894
+ * // Update or create a Design
1895
+ * const design = await prisma.design.upsert({
1896
+ * create: {
1897
+ * // ... data to create a Design
1898
+ * },
1899
+ * update: {
1900
+ * // ... in case it already exists, update
1901
+ * },
1902
+ * where: {
1903
+ * // ... the filter for the Design we want to update
1904
+ * }
1905
+ * })
1906
+ */
1907
+ upsert<T extends DesignUpsertArgs>(args: Prisma.SelectSubset<T, DesignUpsertArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1908
+
1909
+
1910
+ /**
1911
+ * Count the number of Designs.
1912
+ * Note, that providing `undefined` is treated as the value not being there.
1913
+ * Read more here: https://pris.ly/d/null-undefined
1914
+ * @param {DesignCountArgs} args - Arguments to filter Designs to count.
1915
+ * @example
1916
+ * // Count the number of Designs
1917
+ * const count = await prisma.design.count({
1918
+ * where: {
1919
+ * // ... the filter for the Designs we want to count
1920
+ * }
1921
+ * })
1922
+ **/
1923
+ count<T extends DesignCountArgs>(
1924
+ args?: Prisma.Subset<T, DesignCountArgs>,
1925
+ ): Prisma.PrismaPromise<
1926
+ T extends runtime.Types.Utils.Record<'select', any>
1927
+ ? T['select'] extends true
1928
+ ? number
1929
+ : Prisma.GetScalarType<T['select'], DesignCountAggregateOutputType>
1930
+ : number
1931
+ >
1932
+
1933
+ /**
1934
+ * Allows you to perform aggregations operations on a Design.
1935
+ * Note, that providing `undefined` is treated as the value not being there.
1936
+ * Read more here: https://pris.ly/d/null-undefined
1937
+ * @param {DesignAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1938
+ * @example
1939
+ * // Ordered by age ascending
1940
+ * // Where email contains prisma.io
1941
+ * // Limited to the 10 users
1942
+ * const aggregations = await prisma.user.aggregate({
1943
+ * _avg: {
1944
+ * age: true,
1945
+ * },
1946
+ * where: {
1947
+ * email: {
1948
+ * contains: "prisma.io",
1949
+ * },
1950
+ * },
1951
+ * orderBy: {
1952
+ * age: "asc",
1953
+ * },
1954
+ * take: 10,
1955
+ * })
1956
+ **/
1957
+ aggregate<T extends DesignAggregateArgs>(args: Prisma.Subset<T, DesignAggregateArgs>): Prisma.PrismaPromise<GetDesignAggregateType<T>>
1958
+
1959
+ /**
1960
+ * Group by Design.
1961
+ * Note, that providing `undefined` is treated as the value not being there.
1962
+ * Read more here: https://pris.ly/d/null-undefined
1963
+ * @param {DesignGroupByArgs} args - Group by arguments.
1964
+ * @example
1965
+ * // Group by city, order by createdAt, get count
1966
+ * const result = await prisma.user.groupBy({
1967
+ * by: ['city', 'createdAt'],
1968
+ * orderBy: {
1969
+ * createdAt: true
1970
+ * },
1971
+ * _count: {
1972
+ * _all: true
1973
+ * },
1974
+ * })
1975
+ *
1976
+ **/
1977
+ groupBy<
1978
+ T extends DesignGroupByArgs,
1979
+ HasSelectOrTake extends Prisma.Or<
1980
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1981
+ Prisma.Extends<'take', Prisma.Keys<T>>
1982
+ >,
1983
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1984
+ ? { orderBy: DesignGroupByArgs['orderBy'] }
1985
+ : { orderBy?: DesignGroupByArgs['orderBy'] },
1986
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1987
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1988
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1989
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1990
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1991
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1992
+ InputErrors extends ByEmpty extends Prisma.True
1993
+ ? `Error: "by" must not be empty.`
1994
+ : HavingValid extends Prisma.False
1995
+ ? {
1996
+ [P in HavingFields]: P extends ByFields
1997
+ ? never
1998
+ : P extends string
1999
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
2000
+ : [
2001
+ Error,
2002
+ 'Field ',
2003
+ P,
2004
+ ` in "having" needs to be provided in "by"`,
2005
+ ]
2006
+ }[HavingFields]
2007
+ : 'take' extends Prisma.Keys<T>
2008
+ ? 'orderBy' extends Prisma.Keys<T>
2009
+ ? ByValid extends Prisma.True
2010
+ ? {}
2011
+ : {
2012
+ [P in OrderFields]: P extends ByFields
2013
+ ? never
2014
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2015
+ }[OrderFields]
2016
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
2017
+ : 'skip' extends Prisma.Keys<T>
2018
+ ? 'orderBy' extends Prisma.Keys<T>
2019
+ ? ByValid extends Prisma.True
2020
+ ? {}
2021
+ : {
2022
+ [P in OrderFields]: P extends ByFields
2023
+ ? never
2024
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2025
+ }[OrderFields]
2026
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
2027
+ : ByValid extends Prisma.True
2028
+ ? {}
2029
+ : {
2030
+ [P in OrderFields]: P extends ByFields
2031
+ ? never
2032
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
2033
+ }[OrderFields]
2034
+ >(args: Prisma.SubsetIntersection<T, DesignGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDesignGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
2035
+ /**
2036
+ * Fields of the Design model
2037
+ */
2038
+ readonly fields: DesignFieldRefs;
2039
+ }
2040
+
2041
+ /**
2042
+ * The delegate class that acts as a "Promise-like" for Design.
2043
+ * Why is this prefixed with `Prisma__`?
2044
+ * Because we want to prevent naming conflicts as mentioned in
2045
+ * https://github.com/prisma/prisma-client-js/issues/707
2046
+ */
2047
+ export interface Prisma__DesignClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2048
+ readonly [Symbol.toStringTag]: "PrismaPromise"
2049
+ 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>
2050
+ pages<T extends Prisma.Design$pagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Design$pagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignPagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2051
+ versions<T extends Prisma.Design$versionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Design$versionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2052
+ reviews<T extends Prisma.Design$reviewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Design$reviewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2053
+ comments<T extends Prisma.Design$commentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Design$commentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2054
+ shares<T extends Prisma.Design$sharesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Design$sharesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2055
+ designTags<T extends Prisma.Design$designTagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Design$designTagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2056
+ agentConversations<T extends Prisma.Design$agentConversationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Design$agentConversationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentConversationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
2057
+ /**
2058
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2059
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2060
+ * @param onrejected The callback to execute when the Promise is rejected.
2061
+ * @returns A Promise for the completion of which ever callback is executed.
2062
+ */
2063
+ 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>
2064
+ /**
2065
+ * Attaches a callback for only the rejection of the Promise.
2066
+ * @param onrejected The callback to execute when the Promise is rejected.
2067
+ * @returns A Promise for the completion of the callback.
2068
+ */
2069
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
2070
+ /**
2071
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2072
+ * resolved value cannot be modified from the callback.
2073
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2074
+ * @returns A Promise for the completion of the callback.
2075
+ */
2076
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
2077
+ }
2078
+
2079
+
2080
+
2081
+
2082
+ /**
2083
+ * Fields of the Design model
2084
+ */
2085
+ export interface DesignFieldRefs {
2086
+ readonly id: Prisma.FieldRef<"Design", 'String'>
2087
+ readonly icon: Prisma.FieldRef<"Design", 'String'>
2088
+ readonly name: Prisma.FieldRef<"Design", 'String'>
2089
+ readonly description: Prisma.FieldRef<"Design", 'String'>
2090
+ readonly kind: Prisma.FieldRef<"Design", 'String'>
2091
+ readonly settings: Prisma.FieldRef<"Design", 'Json'>
2092
+ readonly userId: Prisma.FieldRef<"Design", 'String'>
2093
+ readonly isDeleted: Prisma.FieldRef<"Design", 'Boolean'>
2094
+ readonly deletedAt: Prisma.FieldRef<"Design", 'DateTime'>
2095
+ readonly createdAt: Prisma.FieldRef<"Design", 'DateTime'>
2096
+ readonly updatedAt: Prisma.FieldRef<"Design", 'DateTime'>
2097
+ }
2098
+
2099
+
2100
+ // Custom InputTypes
2101
+ /**
2102
+ * Design findUnique
2103
+ */
2104
+ export type DesignFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2105
+ /**
2106
+ * Select specific fields to fetch from the Design
2107
+ */
2108
+ select?: Prisma.DesignSelect<ExtArgs> | null
2109
+ /**
2110
+ * Omit specific fields from the Design
2111
+ */
2112
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2113
+ /**
2114
+ * Choose, which related nodes to fetch as well
2115
+ */
2116
+ include?: Prisma.DesignInclude<ExtArgs> | null
2117
+ /**
2118
+ * Filter, which Design to fetch.
2119
+ */
2120
+ where: Prisma.DesignWhereUniqueInput
2121
+ }
2122
+
2123
+ /**
2124
+ * Design findUniqueOrThrow
2125
+ */
2126
+ export type DesignFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2127
+ /**
2128
+ * Select specific fields to fetch from the Design
2129
+ */
2130
+ select?: Prisma.DesignSelect<ExtArgs> | null
2131
+ /**
2132
+ * Omit specific fields from the Design
2133
+ */
2134
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2135
+ /**
2136
+ * Choose, which related nodes to fetch as well
2137
+ */
2138
+ include?: Prisma.DesignInclude<ExtArgs> | null
2139
+ /**
2140
+ * Filter, which Design to fetch.
2141
+ */
2142
+ where: Prisma.DesignWhereUniqueInput
2143
+ }
2144
+
2145
+ /**
2146
+ * Design findFirst
2147
+ */
2148
+ export type DesignFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2149
+ /**
2150
+ * Select specific fields to fetch from the Design
2151
+ */
2152
+ select?: Prisma.DesignSelect<ExtArgs> | null
2153
+ /**
2154
+ * Omit specific fields from the Design
2155
+ */
2156
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2157
+ /**
2158
+ * Choose, which related nodes to fetch as well
2159
+ */
2160
+ include?: Prisma.DesignInclude<ExtArgs> | null
2161
+ /**
2162
+ * Filter, which Design to fetch.
2163
+ */
2164
+ where?: Prisma.DesignWhereInput
2165
+ /**
2166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2167
+ *
2168
+ * Determine the order of Designs to fetch.
2169
+ */
2170
+ orderBy?: Prisma.DesignOrderByWithRelationInput | Prisma.DesignOrderByWithRelationInput[]
2171
+ /**
2172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2173
+ *
2174
+ * Sets the position for searching for Designs.
2175
+ */
2176
+ cursor?: Prisma.DesignWhereUniqueInput
2177
+ /**
2178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2179
+ *
2180
+ * Take `±n` Designs from the position of the cursor.
2181
+ */
2182
+ take?: number
2183
+ /**
2184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2185
+ *
2186
+ * Skip the first `n` Designs.
2187
+ */
2188
+ skip?: number
2189
+ /**
2190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2191
+ *
2192
+ * Filter by unique combinations of Designs.
2193
+ */
2194
+ distinct?: Prisma.DesignScalarFieldEnum | Prisma.DesignScalarFieldEnum[]
2195
+ }
2196
+
2197
+ /**
2198
+ * Design findFirstOrThrow
2199
+ */
2200
+ export type DesignFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2201
+ /**
2202
+ * Select specific fields to fetch from the Design
2203
+ */
2204
+ select?: Prisma.DesignSelect<ExtArgs> | null
2205
+ /**
2206
+ * Omit specific fields from the Design
2207
+ */
2208
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2209
+ /**
2210
+ * Choose, which related nodes to fetch as well
2211
+ */
2212
+ include?: Prisma.DesignInclude<ExtArgs> | null
2213
+ /**
2214
+ * Filter, which Design to fetch.
2215
+ */
2216
+ where?: Prisma.DesignWhereInput
2217
+ /**
2218
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2219
+ *
2220
+ * Determine the order of Designs to fetch.
2221
+ */
2222
+ orderBy?: Prisma.DesignOrderByWithRelationInput | Prisma.DesignOrderByWithRelationInput[]
2223
+ /**
2224
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2225
+ *
2226
+ * Sets the position for searching for Designs.
2227
+ */
2228
+ cursor?: Prisma.DesignWhereUniqueInput
2229
+ /**
2230
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2231
+ *
2232
+ * Take `±n` Designs from the position of the cursor.
2233
+ */
2234
+ take?: number
2235
+ /**
2236
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2237
+ *
2238
+ * Skip the first `n` Designs.
2239
+ */
2240
+ skip?: number
2241
+ /**
2242
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2243
+ *
2244
+ * Filter by unique combinations of Designs.
2245
+ */
2246
+ distinct?: Prisma.DesignScalarFieldEnum | Prisma.DesignScalarFieldEnum[]
2247
+ }
2248
+
2249
+ /**
2250
+ * Design findMany
2251
+ */
2252
+ export type DesignFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2253
+ /**
2254
+ * Select specific fields to fetch from the Design
2255
+ */
2256
+ select?: Prisma.DesignSelect<ExtArgs> | null
2257
+ /**
2258
+ * Omit specific fields from the Design
2259
+ */
2260
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2261
+ /**
2262
+ * Choose, which related nodes to fetch as well
2263
+ */
2264
+ include?: Prisma.DesignInclude<ExtArgs> | null
2265
+ /**
2266
+ * Filter, which Designs to fetch.
2267
+ */
2268
+ where?: Prisma.DesignWhereInput
2269
+ /**
2270
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2271
+ *
2272
+ * Determine the order of Designs to fetch.
2273
+ */
2274
+ orderBy?: Prisma.DesignOrderByWithRelationInput | Prisma.DesignOrderByWithRelationInput[]
2275
+ /**
2276
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2277
+ *
2278
+ * Sets the position for listing Designs.
2279
+ */
2280
+ cursor?: Prisma.DesignWhereUniqueInput
2281
+ /**
2282
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2283
+ *
2284
+ * Take `±n` Designs from the position of the cursor.
2285
+ */
2286
+ take?: number
2287
+ /**
2288
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2289
+ *
2290
+ * Skip the first `n` Designs.
2291
+ */
2292
+ skip?: number
2293
+ /**
2294
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2295
+ *
2296
+ * Filter by unique combinations of Designs.
2297
+ */
2298
+ distinct?: Prisma.DesignScalarFieldEnum | Prisma.DesignScalarFieldEnum[]
2299
+ }
2300
+
2301
+ /**
2302
+ * Design create
2303
+ */
2304
+ export type DesignCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2305
+ /**
2306
+ * Select specific fields to fetch from the Design
2307
+ */
2308
+ select?: Prisma.DesignSelect<ExtArgs> | null
2309
+ /**
2310
+ * Omit specific fields from the Design
2311
+ */
2312
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2313
+ /**
2314
+ * Choose, which related nodes to fetch as well
2315
+ */
2316
+ include?: Prisma.DesignInclude<ExtArgs> | null
2317
+ /**
2318
+ * The data needed to create a Design.
2319
+ */
2320
+ data: Prisma.XOR<Prisma.DesignCreateInput, Prisma.DesignUncheckedCreateInput>
2321
+ }
2322
+
2323
+ /**
2324
+ * Design createMany
2325
+ */
2326
+ export type DesignCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2327
+ /**
2328
+ * The data used to create many Designs.
2329
+ */
2330
+ data: Prisma.DesignCreateManyInput | Prisma.DesignCreateManyInput[]
2331
+ }
2332
+
2333
+ /**
2334
+ * Design createManyAndReturn
2335
+ */
2336
+ export type DesignCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2337
+ /**
2338
+ * Select specific fields to fetch from the Design
2339
+ */
2340
+ select?: Prisma.DesignSelectCreateManyAndReturn<ExtArgs> | null
2341
+ /**
2342
+ * Omit specific fields from the Design
2343
+ */
2344
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2345
+ /**
2346
+ * The data used to create many Designs.
2347
+ */
2348
+ data: Prisma.DesignCreateManyInput | Prisma.DesignCreateManyInput[]
2349
+ /**
2350
+ * Choose, which related nodes to fetch as well
2351
+ */
2352
+ include?: Prisma.DesignIncludeCreateManyAndReturn<ExtArgs> | null
2353
+ }
2354
+
2355
+ /**
2356
+ * Design update
2357
+ */
2358
+ export type DesignUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2359
+ /**
2360
+ * Select specific fields to fetch from the Design
2361
+ */
2362
+ select?: Prisma.DesignSelect<ExtArgs> | null
2363
+ /**
2364
+ * Omit specific fields from the Design
2365
+ */
2366
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2367
+ /**
2368
+ * Choose, which related nodes to fetch as well
2369
+ */
2370
+ include?: Prisma.DesignInclude<ExtArgs> | null
2371
+ /**
2372
+ * The data needed to update a Design.
2373
+ */
2374
+ data: Prisma.XOR<Prisma.DesignUpdateInput, Prisma.DesignUncheckedUpdateInput>
2375
+ /**
2376
+ * Choose, which Design to update.
2377
+ */
2378
+ where: Prisma.DesignWhereUniqueInput
2379
+ }
2380
+
2381
+ /**
2382
+ * Design updateMany
2383
+ */
2384
+ export type DesignUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2385
+ /**
2386
+ * The data used to update Designs.
2387
+ */
2388
+ data: Prisma.XOR<Prisma.DesignUpdateManyMutationInput, Prisma.DesignUncheckedUpdateManyInput>
2389
+ /**
2390
+ * Filter which Designs to update
2391
+ */
2392
+ where?: Prisma.DesignWhereInput
2393
+ /**
2394
+ * Limit how many Designs to update.
2395
+ */
2396
+ limit?: number
2397
+ }
2398
+
2399
+ /**
2400
+ * Design updateManyAndReturn
2401
+ */
2402
+ export type DesignUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2403
+ /**
2404
+ * Select specific fields to fetch from the Design
2405
+ */
2406
+ select?: Prisma.DesignSelectUpdateManyAndReturn<ExtArgs> | null
2407
+ /**
2408
+ * Omit specific fields from the Design
2409
+ */
2410
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2411
+ /**
2412
+ * The data used to update Designs.
2413
+ */
2414
+ data: Prisma.XOR<Prisma.DesignUpdateManyMutationInput, Prisma.DesignUncheckedUpdateManyInput>
2415
+ /**
2416
+ * Filter which Designs to update
2417
+ */
2418
+ where?: Prisma.DesignWhereInput
2419
+ /**
2420
+ * Limit how many Designs to update.
2421
+ */
2422
+ limit?: number
2423
+ /**
2424
+ * Choose, which related nodes to fetch as well
2425
+ */
2426
+ include?: Prisma.DesignIncludeUpdateManyAndReturn<ExtArgs> | null
2427
+ }
2428
+
2429
+ /**
2430
+ * Design upsert
2431
+ */
2432
+ export type DesignUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2433
+ /**
2434
+ * Select specific fields to fetch from the Design
2435
+ */
2436
+ select?: Prisma.DesignSelect<ExtArgs> | null
2437
+ /**
2438
+ * Omit specific fields from the Design
2439
+ */
2440
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2441
+ /**
2442
+ * Choose, which related nodes to fetch as well
2443
+ */
2444
+ include?: Prisma.DesignInclude<ExtArgs> | null
2445
+ /**
2446
+ * The filter to search for the Design to update in case it exists.
2447
+ */
2448
+ where: Prisma.DesignWhereUniqueInput
2449
+ /**
2450
+ * In case the Design found by the `where` argument doesn't exist, create a new Design with this data.
2451
+ */
2452
+ create: Prisma.XOR<Prisma.DesignCreateInput, Prisma.DesignUncheckedCreateInput>
2453
+ /**
2454
+ * In case the Design was found with the provided `where` argument, update it with this data.
2455
+ */
2456
+ update: Prisma.XOR<Prisma.DesignUpdateInput, Prisma.DesignUncheckedUpdateInput>
2457
+ }
2458
+
2459
+ /**
2460
+ * Design delete
2461
+ */
2462
+ export type DesignDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2463
+ /**
2464
+ * Select specific fields to fetch from the Design
2465
+ */
2466
+ select?: Prisma.DesignSelect<ExtArgs> | null
2467
+ /**
2468
+ * Omit specific fields from the Design
2469
+ */
2470
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2471
+ /**
2472
+ * Choose, which related nodes to fetch as well
2473
+ */
2474
+ include?: Prisma.DesignInclude<ExtArgs> | null
2475
+ /**
2476
+ * Filter which Design to delete.
2477
+ */
2478
+ where: Prisma.DesignWhereUniqueInput
2479
+ }
2480
+
2481
+ /**
2482
+ * Design deleteMany
2483
+ */
2484
+ export type DesignDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2485
+ /**
2486
+ * Filter which Designs to delete
2487
+ */
2488
+ where?: Prisma.DesignWhereInput
2489
+ /**
2490
+ * Limit how many Designs to delete.
2491
+ */
2492
+ limit?: number
2493
+ }
2494
+
2495
+ /**
2496
+ * Design.pages
2497
+ */
2498
+ export type Design$pagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2499
+ /**
2500
+ * Select specific fields to fetch from the DesignPage
2501
+ */
2502
+ select?: Prisma.DesignPageSelect<ExtArgs> | null
2503
+ /**
2504
+ * Omit specific fields from the DesignPage
2505
+ */
2506
+ omit?: Prisma.DesignPageOmit<ExtArgs> | null
2507
+ /**
2508
+ * Choose, which related nodes to fetch as well
2509
+ */
2510
+ include?: Prisma.DesignPageInclude<ExtArgs> | null
2511
+ where?: Prisma.DesignPageWhereInput
2512
+ orderBy?: Prisma.DesignPageOrderByWithRelationInput | Prisma.DesignPageOrderByWithRelationInput[]
2513
+ cursor?: Prisma.DesignPageWhereUniqueInput
2514
+ take?: number
2515
+ skip?: number
2516
+ distinct?: Prisma.DesignPageScalarFieldEnum | Prisma.DesignPageScalarFieldEnum[]
2517
+ }
2518
+
2519
+ /**
2520
+ * Design.versions
2521
+ */
2522
+ export type Design$versionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2523
+ /**
2524
+ * Select specific fields to fetch from the DesignVersion
2525
+ */
2526
+ select?: Prisma.DesignVersionSelect<ExtArgs> | null
2527
+ /**
2528
+ * Omit specific fields from the DesignVersion
2529
+ */
2530
+ omit?: Prisma.DesignVersionOmit<ExtArgs> | null
2531
+ /**
2532
+ * Choose, which related nodes to fetch as well
2533
+ */
2534
+ include?: Prisma.DesignVersionInclude<ExtArgs> | null
2535
+ where?: Prisma.DesignVersionWhereInput
2536
+ orderBy?: Prisma.DesignVersionOrderByWithRelationInput | Prisma.DesignVersionOrderByWithRelationInput[]
2537
+ cursor?: Prisma.DesignVersionWhereUniqueInput
2538
+ take?: number
2539
+ skip?: number
2540
+ distinct?: Prisma.DesignVersionScalarFieldEnum | Prisma.DesignVersionScalarFieldEnum[]
2541
+ }
2542
+
2543
+ /**
2544
+ * Design.reviews
2545
+ */
2546
+ export type Design$reviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2547
+ /**
2548
+ * Select specific fields to fetch from the Review
2549
+ */
2550
+ select?: Prisma.ReviewSelect<ExtArgs> | null
2551
+ /**
2552
+ * Omit specific fields from the Review
2553
+ */
2554
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
2555
+ /**
2556
+ * Choose, which related nodes to fetch as well
2557
+ */
2558
+ include?: Prisma.ReviewInclude<ExtArgs> | null
2559
+ where?: Prisma.ReviewWhereInput
2560
+ orderBy?: Prisma.ReviewOrderByWithRelationInput | Prisma.ReviewOrderByWithRelationInput[]
2561
+ cursor?: Prisma.ReviewWhereUniqueInput
2562
+ take?: number
2563
+ skip?: number
2564
+ distinct?: Prisma.ReviewScalarFieldEnum | Prisma.ReviewScalarFieldEnum[]
2565
+ }
2566
+
2567
+ /**
2568
+ * Design.comments
2569
+ */
2570
+ export type Design$commentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2571
+ /**
2572
+ * Select specific fields to fetch from the Comment
2573
+ */
2574
+ select?: Prisma.CommentSelect<ExtArgs> | null
2575
+ /**
2576
+ * Omit specific fields from the Comment
2577
+ */
2578
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2579
+ /**
2580
+ * Choose, which related nodes to fetch as well
2581
+ */
2582
+ include?: Prisma.CommentInclude<ExtArgs> | null
2583
+ where?: Prisma.CommentWhereInput
2584
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
2585
+ cursor?: Prisma.CommentWhereUniqueInput
2586
+ take?: number
2587
+ skip?: number
2588
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
2589
+ }
2590
+
2591
+ /**
2592
+ * Design.shares
2593
+ */
2594
+ export type Design$sharesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2595
+ /**
2596
+ * Select specific fields to fetch from the Share
2597
+ */
2598
+ select?: Prisma.ShareSelect<ExtArgs> | null
2599
+ /**
2600
+ * Omit specific fields from the Share
2601
+ */
2602
+ omit?: Prisma.ShareOmit<ExtArgs> | null
2603
+ /**
2604
+ * Choose, which related nodes to fetch as well
2605
+ */
2606
+ include?: Prisma.ShareInclude<ExtArgs> | null
2607
+ where?: Prisma.ShareWhereInput
2608
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
2609
+ cursor?: Prisma.ShareWhereUniqueInput
2610
+ take?: number
2611
+ skip?: number
2612
+ distinct?: Prisma.ShareScalarFieldEnum | Prisma.ShareScalarFieldEnum[]
2613
+ }
2614
+
2615
+ /**
2616
+ * Design.designTags
2617
+ */
2618
+ export type Design$designTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2619
+ /**
2620
+ * Select specific fields to fetch from the DesignTag
2621
+ */
2622
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
2623
+ /**
2624
+ * Omit specific fields from the DesignTag
2625
+ */
2626
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
2627
+ /**
2628
+ * Choose, which related nodes to fetch as well
2629
+ */
2630
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
2631
+ where?: Prisma.DesignTagWhereInput
2632
+ orderBy?: Prisma.DesignTagOrderByWithRelationInput | Prisma.DesignTagOrderByWithRelationInput[]
2633
+ cursor?: Prisma.DesignTagWhereUniqueInput
2634
+ take?: number
2635
+ skip?: number
2636
+ distinct?: Prisma.DesignTagScalarFieldEnum | Prisma.DesignTagScalarFieldEnum[]
2637
+ }
2638
+
2639
+ /**
2640
+ * Design.agentConversations
2641
+ */
2642
+ export type Design$agentConversationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2643
+ /**
2644
+ * Select specific fields to fetch from the AgentConversation
2645
+ */
2646
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
2647
+ /**
2648
+ * Omit specific fields from the AgentConversation
2649
+ */
2650
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
2651
+ /**
2652
+ * Choose, which related nodes to fetch as well
2653
+ */
2654
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
2655
+ where?: Prisma.AgentConversationWhereInput
2656
+ orderBy?: Prisma.AgentConversationOrderByWithRelationInput | Prisma.AgentConversationOrderByWithRelationInput[]
2657
+ cursor?: Prisma.AgentConversationWhereUniqueInput
2658
+ take?: number
2659
+ skip?: number
2660
+ distinct?: Prisma.AgentConversationScalarFieldEnum | Prisma.AgentConversationScalarFieldEnum[]
2661
+ }
2662
+
2663
+ /**
2664
+ * Design without action
2665
+ */
2666
+ export type DesignDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2667
+ /**
2668
+ * Select specific fields to fetch from the Design
2669
+ */
2670
+ select?: Prisma.DesignSelect<ExtArgs> | null
2671
+ /**
2672
+ * Omit specific fields from the Design
2673
+ */
2674
+ omit?: Prisma.DesignOmit<ExtArgs> | null
2675
+ /**
2676
+ * Choose, which related nodes to fetch as well
2677
+ */
2678
+ include?: Prisma.DesignInclude<ExtArgs> | null
2679
+ }