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