@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,1426 @@
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 `DesignTag` 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 DesignTag
17
+ *
18
+ */
19
+ export type DesignTagModel = runtime.Types.Result.DefaultSelection<Prisma.$DesignTagPayload>
20
+
21
+ export type AggregateDesignTag = {
22
+ _count: DesignTagCountAggregateOutputType | null
23
+ _min: DesignTagMinAggregateOutputType | null
24
+ _max: DesignTagMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type DesignTagMinAggregateOutputType = {
28
+ id: string | null
29
+ designId: string | null
30
+ tagId: string | null
31
+ createdAt: Date | null
32
+ }
33
+
34
+ export type DesignTagMaxAggregateOutputType = {
35
+ id: string | null
36
+ designId: string | null
37
+ tagId: string | null
38
+ createdAt: Date | null
39
+ }
40
+
41
+ export type DesignTagCountAggregateOutputType = {
42
+ id: number
43
+ designId: number
44
+ tagId: number
45
+ createdAt: number
46
+ _all: number
47
+ }
48
+
49
+
50
+ export type DesignTagMinAggregateInputType = {
51
+ id?: true
52
+ designId?: true
53
+ tagId?: true
54
+ createdAt?: true
55
+ }
56
+
57
+ export type DesignTagMaxAggregateInputType = {
58
+ id?: true
59
+ designId?: true
60
+ tagId?: true
61
+ createdAt?: true
62
+ }
63
+
64
+ export type DesignTagCountAggregateInputType = {
65
+ id?: true
66
+ designId?: true
67
+ tagId?: true
68
+ createdAt?: true
69
+ _all?: true
70
+ }
71
+
72
+ export type DesignTagAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
73
+ /**
74
+ * Filter which DesignTag to aggregate.
75
+ */
76
+ where?: Prisma.DesignTagWhereInput
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
79
+ *
80
+ * Determine the order of DesignTags to fetch.
81
+ */
82
+ orderBy?: Prisma.DesignTagOrderByWithRelationInput | Prisma.DesignTagOrderByWithRelationInput[]
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
85
+ *
86
+ * Sets the start position
87
+ */
88
+ cursor?: Prisma.DesignTagWhereUniqueInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Take `±n` DesignTags from the position of the cursor.
93
+ */
94
+ take?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
97
+ *
98
+ * Skip the first `n` DesignTags.
99
+ */
100
+ skip?: number
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Count returned DesignTags
105
+ **/
106
+ _count?: true | DesignTagCountAggregateInputType
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the minimum value
111
+ **/
112
+ _min?: DesignTagMinAggregateInputType
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Select which fields to find the maximum value
117
+ **/
118
+ _max?: DesignTagMaxAggregateInputType
119
+ }
120
+
121
+ export type GetDesignTagAggregateType<T extends DesignTagAggregateArgs> = {
122
+ [P in keyof T & keyof AggregateDesignTag]: P extends '_count' | 'count'
123
+ ? T[P] extends true
124
+ ? number
125
+ : Prisma.GetScalarType<T[P], AggregateDesignTag[P]>
126
+ : Prisma.GetScalarType<T[P], AggregateDesignTag[P]>
127
+ }
128
+
129
+
130
+
131
+
132
+ export type DesignTagGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
133
+ where?: Prisma.DesignTagWhereInput
134
+ orderBy?: Prisma.DesignTagOrderByWithAggregationInput | Prisma.DesignTagOrderByWithAggregationInput[]
135
+ by: Prisma.DesignTagScalarFieldEnum[] | Prisma.DesignTagScalarFieldEnum
136
+ having?: Prisma.DesignTagScalarWhereWithAggregatesInput
137
+ take?: number
138
+ skip?: number
139
+ _count?: DesignTagCountAggregateInputType | true
140
+ _min?: DesignTagMinAggregateInputType
141
+ _max?: DesignTagMaxAggregateInputType
142
+ }
143
+
144
+ export type DesignTagGroupByOutputType = {
145
+ id: string
146
+ designId: string
147
+ tagId: string
148
+ createdAt: Date
149
+ _count: DesignTagCountAggregateOutputType | null
150
+ _min: DesignTagMinAggregateOutputType | null
151
+ _max: DesignTagMaxAggregateOutputType | null
152
+ }
153
+
154
+ export type GetDesignTagGroupByPayload<T extends DesignTagGroupByArgs> = Prisma.PrismaPromise<
155
+ Array<
156
+ Prisma.PickEnumerable<DesignTagGroupByOutputType, T['by']> &
157
+ {
158
+ [P in ((keyof T) & (keyof DesignTagGroupByOutputType))]: P extends '_count'
159
+ ? T[P] extends boolean
160
+ ? number
161
+ : Prisma.GetScalarType<T[P], DesignTagGroupByOutputType[P]>
162
+ : Prisma.GetScalarType<T[P], DesignTagGroupByOutputType[P]>
163
+ }
164
+ >
165
+ >
166
+
167
+
168
+
169
+ export type DesignTagWhereInput = {
170
+ AND?: Prisma.DesignTagWhereInput | Prisma.DesignTagWhereInput[]
171
+ OR?: Prisma.DesignTagWhereInput[]
172
+ NOT?: Prisma.DesignTagWhereInput | Prisma.DesignTagWhereInput[]
173
+ id?: Prisma.StringFilter<"DesignTag"> | string
174
+ designId?: Prisma.StringFilter<"DesignTag"> | string
175
+ tagId?: Prisma.StringFilter<"DesignTag"> | string
176
+ createdAt?: Prisma.DateTimeFilter<"DesignTag"> | Date | string
177
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
178
+ tag?: Prisma.XOR<Prisma.TagScalarRelationFilter, Prisma.TagWhereInput>
179
+ }
180
+
181
+ export type DesignTagOrderByWithRelationInput = {
182
+ id?: Prisma.SortOrder
183
+ designId?: Prisma.SortOrder
184
+ tagId?: Prisma.SortOrder
185
+ createdAt?: Prisma.SortOrder
186
+ design?: Prisma.DesignOrderByWithRelationInput
187
+ tag?: Prisma.TagOrderByWithRelationInput
188
+ }
189
+
190
+ export type DesignTagWhereUniqueInput = Prisma.AtLeast<{
191
+ id?: string
192
+ designId_tagId?: Prisma.DesignTagDesignIdTagIdCompoundUniqueInput
193
+ AND?: Prisma.DesignTagWhereInput | Prisma.DesignTagWhereInput[]
194
+ OR?: Prisma.DesignTagWhereInput[]
195
+ NOT?: Prisma.DesignTagWhereInput | Prisma.DesignTagWhereInput[]
196
+ designId?: Prisma.StringFilter<"DesignTag"> | string
197
+ tagId?: Prisma.StringFilter<"DesignTag"> | string
198
+ createdAt?: Prisma.DateTimeFilter<"DesignTag"> | Date | string
199
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
200
+ tag?: Prisma.XOR<Prisma.TagScalarRelationFilter, Prisma.TagWhereInput>
201
+ }, "id" | "designId_tagId">
202
+
203
+ export type DesignTagOrderByWithAggregationInput = {
204
+ id?: Prisma.SortOrder
205
+ designId?: Prisma.SortOrder
206
+ tagId?: Prisma.SortOrder
207
+ createdAt?: Prisma.SortOrder
208
+ _count?: Prisma.DesignTagCountOrderByAggregateInput
209
+ _max?: Prisma.DesignTagMaxOrderByAggregateInput
210
+ _min?: Prisma.DesignTagMinOrderByAggregateInput
211
+ }
212
+
213
+ export type DesignTagScalarWhereWithAggregatesInput = {
214
+ AND?: Prisma.DesignTagScalarWhereWithAggregatesInput | Prisma.DesignTagScalarWhereWithAggregatesInput[]
215
+ OR?: Prisma.DesignTagScalarWhereWithAggregatesInput[]
216
+ NOT?: Prisma.DesignTagScalarWhereWithAggregatesInput | Prisma.DesignTagScalarWhereWithAggregatesInput[]
217
+ id?: Prisma.StringWithAggregatesFilter<"DesignTag"> | string
218
+ designId?: Prisma.StringWithAggregatesFilter<"DesignTag"> | string
219
+ tagId?: Prisma.StringWithAggregatesFilter<"DesignTag"> | string
220
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"DesignTag"> | Date | string
221
+ }
222
+
223
+ export type DesignTagCreateInput = {
224
+ id?: string
225
+ createdAt?: Date | string
226
+ design: Prisma.DesignCreateNestedOneWithoutDesignTagsInput
227
+ tag: Prisma.TagCreateNestedOneWithoutDesignTagsInput
228
+ }
229
+
230
+ export type DesignTagUncheckedCreateInput = {
231
+ id?: string
232
+ designId: string
233
+ tagId: string
234
+ createdAt?: Date | string
235
+ }
236
+
237
+ export type DesignTagUpdateInput = {
238
+ id?: Prisma.StringFieldUpdateOperationsInput | string
239
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
240
+ design?: Prisma.DesignUpdateOneRequiredWithoutDesignTagsNestedInput
241
+ tag?: Prisma.TagUpdateOneRequiredWithoutDesignTagsNestedInput
242
+ }
243
+
244
+ export type DesignTagUncheckedUpdateInput = {
245
+ id?: Prisma.StringFieldUpdateOperationsInput | string
246
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
247
+ tagId?: Prisma.StringFieldUpdateOperationsInput | string
248
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
249
+ }
250
+
251
+ export type DesignTagCreateManyInput = {
252
+ id?: string
253
+ designId: string
254
+ tagId: string
255
+ createdAt?: Date | string
256
+ }
257
+
258
+ export type DesignTagUpdateManyMutationInput = {
259
+ id?: Prisma.StringFieldUpdateOperationsInput | string
260
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
261
+ }
262
+
263
+ export type DesignTagUncheckedUpdateManyInput = {
264
+ id?: Prisma.StringFieldUpdateOperationsInput | string
265
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
266
+ tagId?: Prisma.StringFieldUpdateOperationsInput | string
267
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
268
+ }
269
+
270
+ export type DesignTagListRelationFilter = {
271
+ every?: Prisma.DesignTagWhereInput
272
+ some?: Prisma.DesignTagWhereInput
273
+ none?: Prisma.DesignTagWhereInput
274
+ }
275
+
276
+ export type DesignTagOrderByRelationAggregateInput = {
277
+ _count?: Prisma.SortOrder
278
+ }
279
+
280
+ export type DesignTagDesignIdTagIdCompoundUniqueInput = {
281
+ designId: string
282
+ tagId: string
283
+ }
284
+
285
+ export type DesignTagCountOrderByAggregateInput = {
286
+ id?: Prisma.SortOrder
287
+ designId?: Prisma.SortOrder
288
+ tagId?: Prisma.SortOrder
289
+ createdAt?: Prisma.SortOrder
290
+ }
291
+
292
+ export type DesignTagMaxOrderByAggregateInput = {
293
+ id?: Prisma.SortOrder
294
+ designId?: Prisma.SortOrder
295
+ tagId?: Prisma.SortOrder
296
+ createdAt?: Prisma.SortOrder
297
+ }
298
+
299
+ export type DesignTagMinOrderByAggregateInput = {
300
+ id?: Prisma.SortOrder
301
+ designId?: Prisma.SortOrder
302
+ tagId?: Prisma.SortOrder
303
+ createdAt?: Prisma.SortOrder
304
+ }
305
+
306
+ export type DesignTagCreateNestedManyWithoutDesignInput = {
307
+ create?: Prisma.XOR<Prisma.DesignTagCreateWithoutDesignInput, Prisma.DesignTagUncheckedCreateWithoutDesignInput> | Prisma.DesignTagCreateWithoutDesignInput[] | Prisma.DesignTagUncheckedCreateWithoutDesignInput[]
308
+ connectOrCreate?: Prisma.DesignTagCreateOrConnectWithoutDesignInput | Prisma.DesignTagCreateOrConnectWithoutDesignInput[]
309
+ createMany?: Prisma.DesignTagCreateManyDesignInputEnvelope
310
+ connect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
311
+ }
312
+
313
+ export type DesignTagUncheckedCreateNestedManyWithoutDesignInput = {
314
+ create?: Prisma.XOR<Prisma.DesignTagCreateWithoutDesignInput, Prisma.DesignTagUncheckedCreateWithoutDesignInput> | Prisma.DesignTagCreateWithoutDesignInput[] | Prisma.DesignTagUncheckedCreateWithoutDesignInput[]
315
+ connectOrCreate?: Prisma.DesignTagCreateOrConnectWithoutDesignInput | Prisma.DesignTagCreateOrConnectWithoutDesignInput[]
316
+ createMany?: Prisma.DesignTagCreateManyDesignInputEnvelope
317
+ connect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
318
+ }
319
+
320
+ export type DesignTagUpdateManyWithoutDesignNestedInput = {
321
+ create?: Prisma.XOR<Prisma.DesignTagCreateWithoutDesignInput, Prisma.DesignTagUncheckedCreateWithoutDesignInput> | Prisma.DesignTagCreateWithoutDesignInput[] | Prisma.DesignTagUncheckedCreateWithoutDesignInput[]
322
+ connectOrCreate?: Prisma.DesignTagCreateOrConnectWithoutDesignInput | Prisma.DesignTagCreateOrConnectWithoutDesignInput[]
323
+ upsert?: Prisma.DesignTagUpsertWithWhereUniqueWithoutDesignInput | Prisma.DesignTagUpsertWithWhereUniqueWithoutDesignInput[]
324
+ createMany?: Prisma.DesignTagCreateManyDesignInputEnvelope
325
+ set?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
326
+ disconnect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
327
+ delete?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
328
+ connect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
329
+ update?: Prisma.DesignTagUpdateWithWhereUniqueWithoutDesignInput | Prisma.DesignTagUpdateWithWhereUniqueWithoutDesignInput[]
330
+ updateMany?: Prisma.DesignTagUpdateManyWithWhereWithoutDesignInput | Prisma.DesignTagUpdateManyWithWhereWithoutDesignInput[]
331
+ deleteMany?: Prisma.DesignTagScalarWhereInput | Prisma.DesignTagScalarWhereInput[]
332
+ }
333
+
334
+ export type DesignTagUncheckedUpdateManyWithoutDesignNestedInput = {
335
+ create?: Prisma.XOR<Prisma.DesignTagCreateWithoutDesignInput, Prisma.DesignTagUncheckedCreateWithoutDesignInput> | Prisma.DesignTagCreateWithoutDesignInput[] | Prisma.DesignTagUncheckedCreateWithoutDesignInput[]
336
+ connectOrCreate?: Prisma.DesignTagCreateOrConnectWithoutDesignInput | Prisma.DesignTagCreateOrConnectWithoutDesignInput[]
337
+ upsert?: Prisma.DesignTagUpsertWithWhereUniqueWithoutDesignInput | Prisma.DesignTagUpsertWithWhereUniqueWithoutDesignInput[]
338
+ createMany?: Prisma.DesignTagCreateManyDesignInputEnvelope
339
+ set?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
340
+ disconnect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
341
+ delete?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
342
+ connect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
343
+ update?: Prisma.DesignTagUpdateWithWhereUniqueWithoutDesignInput | Prisma.DesignTagUpdateWithWhereUniqueWithoutDesignInput[]
344
+ updateMany?: Prisma.DesignTagUpdateManyWithWhereWithoutDesignInput | Prisma.DesignTagUpdateManyWithWhereWithoutDesignInput[]
345
+ deleteMany?: Prisma.DesignTagScalarWhereInput | Prisma.DesignTagScalarWhereInput[]
346
+ }
347
+
348
+ export type DesignTagCreateNestedManyWithoutTagInput = {
349
+ create?: Prisma.XOR<Prisma.DesignTagCreateWithoutTagInput, Prisma.DesignTagUncheckedCreateWithoutTagInput> | Prisma.DesignTagCreateWithoutTagInput[] | Prisma.DesignTagUncheckedCreateWithoutTagInput[]
350
+ connectOrCreate?: Prisma.DesignTagCreateOrConnectWithoutTagInput | Prisma.DesignTagCreateOrConnectWithoutTagInput[]
351
+ createMany?: Prisma.DesignTagCreateManyTagInputEnvelope
352
+ connect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
353
+ }
354
+
355
+ export type DesignTagUncheckedCreateNestedManyWithoutTagInput = {
356
+ create?: Prisma.XOR<Prisma.DesignTagCreateWithoutTagInput, Prisma.DesignTagUncheckedCreateWithoutTagInput> | Prisma.DesignTagCreateWithoutTagInput[] | Prisma.DesignTagUncheckedCreateWithoutTagInput[]
357
+ connectOrCreate?: Prisma.DesignTagCreateOrConnectWithoutTagInput | Prisma.DesignTagCreateOrConnectWithoutTagInput[]
358
+ createMany?: Prisma.DesignTagCreateManyTagInputEnvelope
359
+ connect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
360
+ }
361
+
362
+ export type DesignTagUpdateManyWithoutTagNestedInput = {
363
+ create?: Prisma.XOR<Prisma.DesignTagCreateWithoutTagInput, Prisma.DesignTagUncheckedCreateWithoutTagInput> | Prisma.DesignTagCreateWithoutTagInput[] | Prisma.DesignTagUncheckedCreateWithoutTagInput[]
364
+ connectOrCreate?: Prisma.DesignTagCreateOrConnectWithoutTagInput | Prisma.DesignTagCreateOrConnectWithoutTagInput[]
365
+ upsert?: Prisma.DesignTagUpsertWithWhereUniqueWithoutTagInput | Prisma.DesignTagUpsertWithWhereUniqueWithoutTagInput[]
366
+ createMany?: Prisma.DesignTagCreateManyTagInputEnvelope
367
+ set?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
368
+ disconnect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
369
+ delete?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
370
+ connect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
371
+ update?: Prisma.DesignTagUpdateWithWhereUniqueWithoutTagInput | Prisma.DesignTagUpdateWithWhereUniqueWithoutTagInput[]
372
+ updateMany?: Prisma.DesignTagUpdateManyWithWhereWithoutTagInput | Prisma.DesignTagUpdateManyWithWhereWithoutTagInput[]
373
+ deleteMany?: Prisma.DesignTagScalarWhereInput | Prisma.DesignTagScalarWhereInput[]
374
+ }
375
+
376
+ export type DesignTagUncheckedUpdateManyWithoutTagNestedInput = {
377
+ create?: Prisma.XOR<Prisma.DesignTagCreateWithoutTagInput, Prisma.DesignTagUncheckedCreateWithoutTagInput> | Prisma.DesignTagCreateWithoutTagInput[] | Prisma.DesignTagUncheckedCreateWithoutTagInput[]
378
+ connectOrCreate?: Prisma.DesignTagCreateOrConnectWithoutTagInput | Prisma.DesignTagCreateOrConnectWithoutTagInput[]
379
+ upsert?: Prisma.DesignTagUpsertWithWhereUniqueWithoutTagInput | Prisma.DesignTagUpsertWithWhereUniqueWithoutTagInput[]
380
+ createMany?: Prisma.DesignTagCreateManyTagInputEnvelope
381
+ set?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
382
+ disconnect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
383
+ delete?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
384
+ connect?: Prisma.DesignTagWhereUniqueInput | Prisma.DesignTagWhereUniqueInput[]
385
+ update?: Prisma.DesignTagUpdateWithWhereUniqueWithoutTagInput | Prisma.DesignTagUpdateWithWhereUniqueWithoutTagInput[]
386
+ updateMany?: Prisma.DesignTagUpdateManyWithWhereWithoutTagInput | Prisma.DesignTagUpdateManyWithWhereWithoutTagInput[]
387
+ deleteMany?: Prisma.DesignTagScalarWhereInput | Prisma.DesignTagScalarWhereInput[]
388
+ }
389
+
390
+ export type DesignTagCreateWithoutDesignInput = {
391
+ id?: string
392
+ createdAt?: Date | string
393
+ tag: Prisma.TagCreateNestedOneWithoutDesignTagsInput
394
+ }
395
+
396
+ export type DesignTagUncheckedCreateWithoutDesignInput = {
397
+ id?: string
398
+ tagId: string
399
+ createdAt?: Date | string
400
+ }
401
+
402
+ export type DesignTagCreateOrConnectWithoutDesignInput = {
403
+ where: Prisma.DesignTagWhereUniqueInput
404
+ create: Prisma.XOR<Prisma.DesignTagCreateWithoutDesignInput, Prisma.DesignTagUncheckedCreateWithoutDesignInput>
405
+ }
406
+
407
+ export type DesignTagCreateManyDesignInputEnvelope = {
408
+ data: Prisma.DesignTagCreateManyDesignInput | Prisma.DesignTagCreateManyDesignInput[]
409
+ }
410
+
411
+ export type DesignTagUpsertWithWhereUniqueWithoutDesignInput = {
412
+ where: Prisma.DesignTagWhereUniqueInput
413
+ update: Prisma.XOR<Prisma.DesignTagUpdateWithoutDesignInput, Prisma.DesignTagUncheckedUpdateWithoutDesignInput>
414
+ create: Prisma.XOR<Prisma.DesignTagCreateWithoutDesignInput, Prisma.DesignTagUncheckedCreateWithoutDesignInput>
415
+ }
416
+
417
+ export type DesignTagUpdateWithWhereUniqueWithoutDesignInput = {
418
+ where: Prisma.DesignTagWhereUniqueInput
419
+ data: Prisma.XOR<Prisma.DesignTagUpdateWithoutDesignInput, Prisma.DesignTagUncheckedUpdateWithoutDesignInput>
420
+ }
421
+
422
+ export type DesignTagUpdateManyWithWhereWithoutDesignInput = {
423
+ where: Prisma.DesignTagScalarWhereInput
424
+ data: Prisma.XOR<Prisma.DesignTagUpdateManyMutationInput, Prisma.DesignTagUncheckedUpdateManyWithoutDesignInput>
425
+ }
426
+
427
+ export type DesignTagScalarWhereInput = {
428
+ AND?: Prisma.DesignTagScalarWhereInput | Prisma.DesignTagScalarWhereInput[]
429
+ OR?: Prisma.DesignTagScalarWhereInput[]
430
+ NOT?: Prisma.DesignTagScalarWhereInput | Prisma.DesignTagScalarWhereInput[]
431
+ id?: Prisma.StringFilter<"DesignTag"> | string
432
+ designId?: Prisma.StringFilter<"DesignTag"> | string
433
+ tagId?: Prisma.StringFilter<"DesignTag"> | string
434
+ createdAt?: Prisma.DateTimeFilter<"DesignTag"> | Date | string
435
+ }
436
+
437
+ export type DesignTagCreateWithoutTagInput = {
438
+ id?: string
439
+ createdAt?: Date | string
440
+ design: Prisma.DesignCreateNestedOneWithoutDesignTagsInput
441
+ }
442
+
443
+ export type DesignTagUncheckedCreateWithoutTagInput = {
444
+ id?: string
445
+ designId: string
446
+ createdAt?: Date | string
447
+ }
448
+
449
+ export type DesignTagCreateOrConnectWithoutTagInput = {
450
+ where: Prisma.DesignTagWhereUniqueInput
451
+ create: Prisma.XOR<Prisma.DesignTagCreateWithoutTagInput, Prisma.DesignTagUncheckedCreateWithoutTagInput>
452
+ }
453
+
454
+ export type DesignTagCreateManyTagInputEnvelope = {
455
+ data: Prisma.DesignTagCreateManyTagInput | Prisma.DesignTagCreateManyTagInput[]
456
+ }
457
+
458
+ export type DesignTagUpsertWithWhereUniqueWithoutTagInput = {
459
+ where: Prisma.DesignTagWhereUniqueInput
460
+ update: Prisma.XOR<Prisma.DesignTagUpdateWithoutTagInput, Prisma.DesignTagUncheckedUpdateWithoutTagInput>
461
+ create: Prisma.XOR<Prisma.DesignTagCreateWithoutTagInput, Prisma.DesignTagUncheckedCreateWithoutTagInput>
462
+ }
463
+
464
+ export type DesignTagUpdateWithWhereUniqueWithoutTagInput = {
465
+ where: Prisma.DesignTagWhereUniqueInput
466
+ data: Prisma.XOR<Prisma.DesignTagUpdateWithoutTagInput, Prisma.DesignTagUncheckedUpdateWithoutTagInput>
467
+ }
468
+
469
+ export type DesignTagUpdateManyWithWhereWithoutTagInput = {
470
+ where: Prisma.DesignTagScalarWhereInput
471
+ data: Prisma.XOR<Prisma.DesignTagUpdateManyMutationInput, Prisma.DesignTagUncheckedUpdateManyWithoutTagInput>
472
+ }
473
+
474
+ export type DesignTagCreateManyDesignInput = {
475
+ id?: string
476
+ tagId: string
477
+ createdAt?: Date | string
478
+ }
479
+
480
+ export type DesignTagUpdateWithoutDesignInput = {
481
+ id?: Prisma.StringFieldUpdateOperationsInput | string
482
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
483
+ tag?: Prisma.TagUpdateOneRequiredWithoutDesignTagsNestedInput
484
+ }
485
+
486
+ export type DesignTagUncheckedUpdateWithoutDesignInput = {
487
+ id?: Prisma.StringFieldUpdateOperationsInput | string
488
+ tagId?: Prisma.StringFieldUpdateOperationsInput | string
489
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
490
+ }
491
+
492
+ export type DesignTagUncheckedUpdateManyWithoutDesignInput = {
493
+ id?: Prisma.StringFieldUpdateOperationsInput | string
494
+ tagId?: Prisma.StringFieldUpdateOperationsInput | string
495
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
496
+ }
497
+
498
+ export type DesignTagCreateManyTagInput = {
499
+ id?: string
500
+ designId: string
501
+ createdAt?: Date | string
502
+ }
503
+
504
+ export type DesignTagUpdateWithoutTagInput = {
505
+ id?: Prisma.StringFieldUpdateOperationsInput | string
506
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
507
+ design?: Prisma.DesignUpdateOneRequiredWithoutDesignTagsNestedInput
508
+ }
509
+
510
+ export type DesignTagUncheckedUpdateWithoutTagInput = {
511
+ id?: Prisma.StringFieldUpdateOperationsInput | string
512
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
513
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
514
+ }
515
+
516
+ export type DesignTagUncheckedUpdateManyWithoutTagInput = {
517
+ id?: Prisma.StringFieldUpdateOperationsInput | string
518
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
519
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
520
+ }
521
+
522
+
523
+
524
+ export type DesignTagSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
525
+ id?: boolean
526
+ designId?: boolean
527
+ tagId?: boolean
528
+ createdAt?: boolean
529
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
530
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
531
+ }, ExtArgs["result"]["designTag"]>
532
+
533
+ export type DesignTagSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
534
+ id?: boolean
535
+ designId?: boolean
536
+ tagId?: boolean
537
+ createdAt?: boolean
538
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
539
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
540
+ }, ExtArgs["result"]["designTag"]>
541
+
542
+ export type DesignTagSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
543
+ id?: boolean
544
+ designId?: boolean
545
+ tagId?: boolean
546
+ createdAt?: boolean
547
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
548
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
549
+ }, ExtArgs["result"]["designTag"]>
550
+
551
+ export type DesignTagSelectScalar = {
552
+ id?: boolean
553
+ designId?: boolean
554
+ tagId?: boolean
555
+ createdAt?: boolean
556
+ }
557
+
558
+ export type DesignTagOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "designId" | "tagId" | "createdAt", ExtArgs["result"]["designTag"]>
559
+ export type DesignTagInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
560
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
561
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
562
+ }
563
+ export type DesignTagIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
564
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
565
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
566
+ }
567
+ export type DesignTagIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
568
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
569
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
570
+ }
571
+
572
+ export type $DesignTagPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
573
+ name: "DesignTag"
574
+ objects: {
575
+ design: Prisma.$DesignPayload<ExtArgs>
576
+ tag: Prisma.$TagPayload<ExtArgs>
577
+ }
578
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
579
+ id: string
580
+ designId: string
581
+ tagId: string
582
+ createdAt: Date
583
+ }, ExtArgs["result"]["designTag"]>
584
+ composites: {}
585
+ }
586
+
587
+ export type DesignTagGetPayload<S extends boolean | null | undefined | DesignTagDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DesignTagPayload, S>
588
+
589
+ export type DesignTagCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
590
+ Omit<DesignTagFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
591
+ select?: DesignTagCountAggregateInputType | true
592
+ }
593
+
594
+ export interface DesignTagDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
595
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DesignTag'], meta: { name: 'DesignTag' } }
596
+ /**
597
+ * Find zero or one DesignTag that matches the filter.
598
+ * @param {DesignTagFindUniqueArgs} args - Arguments to find a DesignTag
599
+ * @example
600
+ * // Get one DesignTag
601
+ * const designTag = await prisma.designTag.findUnique({
602
+ * where: {
603
+ * // ... provide filter here
604
+ * }
605
+ * })
606
+ */
607
+ findUnique<T extends DesignTagFindUniqueArgs>(args: Prisma.SelectSubset<T, DesignTagFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DesignTagClient<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
608
+
609
+ /**
610
+ * Find one DesignTag that matches the filter or throw an error with `error.code='P2025'`
611
+ * if no matches were found.
612
+ * @param {DesignTagFindUniqueOrThrowArgs} args - Arguments to find a DesignTag
613
+ * @example
614
+ * // Get one DesignTag
615
+ * const designTag = await prisma.designTag.findUniqueOrThrow({
616
+ * where: {
617
+ * // ... provide filter here
618
+ * }
619
+ * })
620
+ */
621
+ findUniqueOrThrow<T extends DesignTagFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DesignTagFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesignTagClient<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
622
+
623
+ /**
624
+ * Find the first DesignTag that matches the filter.
625
+ * Note, that providing `undefined` is treated as the value not being there.
626
+ * Read more here: https://pris.ly/d/null-undefined
627
+ * @param {DesignTagFindFirstArgs} args - Arguments to find a DesignTag
628
+ * @example
629
+ * // Get one DesignTag
630
+ * const designTag = await prisma.designTag.findFirst({
631
+ * where: {
632
+ * // ... provide filter here
633
+ * }
634
+ * })
635
+ */
636
+ findFirst<T extends DesignTagFindFirstArgs>(args?: Prisma.SelectSubset<T, DesignTagFindFirstArgs<ExtArgs>>): Prisma.Prisma__DesignTagClient<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
637
+
638
+ /**
639
+ * Find the first DesignTag that matches the filter or
640
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
641
+ * Note, that providing `undefined` is treated as the value not being there.
642
+ * Read more here: https://pris.ly/d/null-undefined
643
+ * @param {DesignTagFindFirstOrThrowArgs} args - Arguments to find a DesignTag
644
+ * @example
645
+ * // Get one DesignTag
646
+ * const designTag = await prisma.designTag.findFirstOrThrow({
647
+ * where: {
648
+ * // ... provide filter here
649
+ * }
650
+ * })
651
+ */
652
+ findFirstOrThrow<T extends DesignTagFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DesignTagFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DesignTagClient<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
653
+
654
+ /**
655
+ * Find zero or more DesignTags that matches the filter.
656
+ * Note, that providing `undefined` is treated as the value not being there.
657
+ * Read more here: https://pris.ly/d/null-undefined
658
+ * @param {DesignTagFindManyArgs} args - Arguments to filter and select certain fields only.
659
+ * @example
660
+ * // Get all DesignTags
661
+ * const designTags = await prisma.designTag.findMany()
662
+ *
663
+ * // Get first 10 DesignTags
664
+ * const designTags = await prisma.designTag.findMany({ take: 10 })
665
+ *
666
+ * // Only select the `id`
667
+ * const designTagWithIdOnly = await prisma.designTag.findMany({ select: { id: true } })
668
+ *
669
+ */
670
+ findMany<T extends DesignTagFindManyArgs>(args?: Prisma.SelectSubset<T, DesignTagFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
671
+
672
+ /**
673
+ * Create a DesignTag.
674
+ * @param {DesignTagCreateArgs} args - Arguments to create a DesignTag.
675
+ * @example
676
+ * // Create one DesignTag
677
+ * const DesignTag = await prisma.designTag.create({
678
+ * data: {
679
+ * // ... data to create a DesignTag
680
+ * }
681
+ * })
682
+ *
683
+ */
684
+ create<T extends DesignTagCreateArgs>(args: Prisma.SelectSubset<T, DesignTagCreateArgs<ExtArgs>>): Prisma.Prisma__DesignTagClient<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
685
+
686
+ /**
687
+ * Create many DesignTags.
688
+ * @param {DesignTagCreateManyArgs} args - Arguments to create many DesignTags.
689
+ * @example
690
+ * // Create many DesignTags
691
+ * const designTag = await prisma.designTag.createMany({
692
+ * data: [
693
+ * // ... provide data here
694
+ * ]
695
+ * })
696
+ *
697
+ */
698
+ createMany<T extends DesignTagCreateManyArgs>(args?: Prisma.SelectSubset<T, DesignTagCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
699
+
700
+ /**
701
+ * Create many DesignTags and returns the data saved in the database.
702
+ * @param {DesignTagCreateManyAndReturnArgs} args - Arguments to create many DesignTags.
703
+ * @example
704
+ * // Create many DesignTags
705
+ * const designTag = await prisma.designTag.createManyAndReturn({
706
+ * data: [
707
+ * // ... provide data here
708
+ * ]
709
+ * })
710
+ *
711
+ * // Create many DesignTags and only return the `id`
712
+ * const designTagWithIdOnly = await prisma.designTag.createManyAndReturn({
713
+ * select: { id: true },
714
+ * data: [
715
+ * // ... provide data here
716
+ * ]
717
+ * })
718
+ * Note, that providing `undefined` is treated as the value not being there.
719
+ * Read more here: https://pris.ly/d/null-undefined
720
+ *
721
+ */
722
+ createManyAndReturn<T extends DesignTagCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DesignTagCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
723
+
724
+ /**
725
+ * Delete a DesignTag.
726
+ * @param {DesignTagDeleteArgs} args - Arguments to delete one DesignTag.
727
+ * @example
728
+ * // Delete one DesignTag
729
+ * const DesignTag = await prisma.designTag.delete({
730
+ * where: {
731
+ * // ... filter to delete one DesignTag
732
+ * }
733
+ * })
734
+ *
735
+ */
736
+ delete<T extends DesignTagDeleteArgs>(args: Prisma.SelectSubset<T, DesignTagDeleteArgs<ExtArgs>>): Prisma.Prisma__DesignTagClient<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
737
+
738
+ /**
739
+ * Update one DesignTag.
740
+ * @param {DesignTagUpdateArgs} args - Arguments to update one DesignTag.
741
+ * @example
742
+ * // Update one DesignTag
743
+ * const designTag = await prisma.designTag.update({
744
+ * where: {
745
+ * // ... provide filter here
746
+ * },
747
+ * data: {
748
+ * // ... provide data here
749
+ * }
750
+ * })
751
+ *
752
+ */
753
+ update<T extends DesignTagUpdateArgs>(args: Prisma.SelectSubset<T, DesignTagUpdateArgs<ExtArgs>>): Prisma.Prisma__DesignTagClient<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
754
+
755
+ /**
756
+ * Delete zero or more DesignTags.
757
+ * @param {DesignTagDeleteManyArgs} args - Arguments to filter DesignTags to delete.
758
+ * @example
759
+ * // Delete a few DesignTags
760
+ * const { count } = await prisma.designTag.deleteMany({
761
+ * where: {
762
+ * // ... provide filter here
763
+ * }
764
+ * })
765
+ *
766
+ */
767
+ deleteMany<T extends DesignTagDeleteManyArgs>(args?: Prisma.SelectSubset<T, DesignTagDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
768
+
769
+ /**
770
+ * Update zero or more DesignTags.
771
+ * Note, that providing `undefined` is treated as the value not being there.
772
+ * Read more here: https://pris.ly/d/null-undefined
773
+ * @param {DesignTagUpdateManyArgs} args - Arguments to update one or more rows.
774
+ * @example
775
+ * // Update many DesignTags
776
+ * const designTag = await prisma.designTag.updateMany({
777
+ * where: {
778
+ * // ... provide filter here
779
+ * },
780
+ * data: {
781
+ * // ... provide data here
782
+ * }
783
+ * })
784
+ *
785
+ */
786
+ updateMany<T extends DesignTagUpdateManyArgs>(args: Prisma.SelectSubset<T, DesignTagUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
787
+
788
+ /**
789
+ * Update zero or more DesignTags and returns the data updated in the database.
790
+ * @param {DesignTagUpdateManyAndReturnArgs} args - Arguments to update many DesignTags.
791
+ * @example
792
+ * // Update many DesignTags
793
+ * const designTag = await prisma.designTag.updateManyAndReturn({
794
+ * where: {
795
+ * // ... provide filter here
796
+ * },
797
+ * data: [
798
+ * // ... provide data here
799
+ * ]
800
+ * })
801
+ *
802
+ * // Update zero or more DesignTags and only return the `id`
803
+ * const designTagWithIdOnly = await prisma.designTag.updateManyAndReturn({
804
+ * select: { id: true },
805
+ * where: {
806
+ * // ... provide filter here
807
+ * },
808
+ * data: [
809
+ * // ... provide data here
810
+ * ]
811
+ * })
812
+ * Note, that providing `undefined` is treated as the value not being there.
813
+ * Read more here: https://pris.ly/d/null-undefined
814
+ *
815
+ */
816
+ updateManyAndReturn<T extends DesignTagUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DesignTagUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
817
+
818
+ /**
819
+ * Create or update one DesignTag.
820
+ * @param {DesignTagUpsertArgs} args - Arguments to update or create a DesignTag.
821
+ * @example
822
+ * // Update or create a DesignTag
823
+ * const designTag = await prisma.designTag.upsert({
824
+ * create: {
825
+ * // ... data to create a DesignTag
826
+ * },
827
+ * update: {
828
+ * // ... in case it already exists, update
829
+ * },
830
+ * where: {
831
+ * // ... the filter for the DesignTag we want to update
832
+ * }
833
+ * })
834
+ */
835
+ upsert<T extends DesignTagUpsertArgs>(args: Prisma.SelectSubset<T, DesignTagUpsertArgs<ExtArgs>>): Prisma.Prisma__DesignTagClient<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
836
+
837
+
838
+ /**
839
+ * Count the number of DesignTags.
840
+ * Note, that providing `undefined` is treated as the value not being there.
841
+ * Read more here: https://pris.ly/d/null-undefined
842
+ * @param {DesignTagCountArgs} args - Arguments to filter DesignTags to count.
843
+ * @example
844
+ * // Count the number of DesignTags
845
+ * const count = await prisma.designTag.count({
846
+ * where: {
847
+ * // ... the filter for the DesignTags we want to count
848
+ * }
849
+ * })
850
+ **/
851
+ count<T extends DesignTagCountArgs>(
852
+ args?: Prisma.Subset<T, DesignTagCountArgs>,
853
+ ): Prisma.PrismaPromise<
854
+ T extends runtime.Types.Utils.Record<'select', any>
855
+ ? T['select'] extends true
856
+ ? number
857
+ : Prisma.GetScalarType<T['select'], DesignTagCountAggregateOutputType>
858
+ : number
859
+ >
860
+
861
+ /**
862
+ * Allows you to perform aggregations operations on a DesignTag.
863
+ * Note, that providing `undefined` is treated as the value not being there.
864
+ * Read more here: https://pris.ly/d/null-undefined
865
+ * @param {DesignTagAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
866
+ * @example
867
+ * // Ordered by age ascending
868
+ * // Where email contains prisma.io
869
+ * // Limited to the 10 users
870
+ * const aggregations = await prisma.user.aggregate({
871
+ * _avg: {
872
+ * age: true,
873
+ * },
874
+ * where: {
875
+ * email: {
876
+ * contains: "prisma.io",
877
+ * },
878
+ * },
879
+ * orderBy: {
880
+ * age: "asc",
881
+ * },
882
+ * take: 10,
883
+ * })
884
+ **/
885
+ aggregate<T extends DesignTagAggregateArgs>(args: Prisma.Subset<T, DesignTagAggregateArgs>): Prisma.PrismaPromise<GetDesignTagAggregateType<T>>
886
+
887
+ /**
888
+ * Group by DesignTag.
889
+ * Note, that providing `undefined` is treated as the value not being there.
890
+ * Read more here: https://pris.ly/d/null-undefined
891
+ * @param {DesignTagGroupByArgs} args - Group by arguments.
892
+ * @example
893
+ * // Group by city, order by createdAt, get count
894
+ * const result = await prisma.user.groupBy({
895
+ * by: ['city', 'createdAt'],
896
+ * orderBy: {
897
+ * createdAt: true
898
+ * },
899
+ * _count: {
900
+ * _all: true
901
+ * },
902
+ * })
903
+ *
904
+ **/
905
+ groupBy<
906
+ T extends DesignTagGroupByArgs,
907
+ HasSelectOrTake extends Prisma.Or<
908
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
909
+ Prisma.Extends<'take', Prisma.Keys<T>>
910
+ >,
911
+ OrderByArg extends Prisma.True extends HasSelectOrTake
912
+ ? { orderBy: DesignTagGroupByArgs['orderBy'] }
913
+ : { orderBy?: DesignTagGroupByArgs['orderBy'] },
914
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
915
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
916
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
917
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
918
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
919
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
920
+ InputErrors extends ByEmpty extends Prisma.True
921
+ ? `Error: "by" must not be empty.`
922
+ : HavingValid extends Prisma.False
923
+ ? {
924
+ [P in HavingFields]: P extends ByFields
925
+ ? never
926
+ : P extends string
927
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
928
+ : [
929
+ Error,
930
+ 'Field ',
931
+ P,
932
+ ` in "having" needs to be provided in "by"`,
933
+ ]
934
+ }[HavingFields]
935
+ : 'take' extends Prisma.Keys<T>
936
+ ? 'orderBy' extends Prisma.Keys<T>
937
+ ? ByValid extends Prisma.True
938
+ ? {}
939
+ : {
940
+ [P in OrderFields]: P extends ByFields
941
+ ? never
942
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
943
+ }[OrderFields]
944
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
945
+ : 'skip' extends Prisma.Keys<T>
946
+ ? 'orderBy' extends Prisma.Keys<T>
947
+ ? ByValid extends Prisma.True
948
+ ? {}
949
+ : {
950
+ [P in OrderFields]: P extends ByFields
951
+ ? never
952
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
953
+ }[OrderFields]
954
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
955
+ : ByValid extends Prisma.True
956
+ ? {}
957
+ : {
958
+ [P in OrderFields]: P extends ByFields
959
+ ? never
960
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
961
+ }[OrderFields]
962
+ >(args: Prisma.SubsetIntersection<T, DesignTagGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDesignTagGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
963
+ /**
964
+ * Fields of the DesignTag model
965
+ */
966
+ readonly fields: DesignTagFieldRefs;
967
+ }
968
+
969
+ /**
970
+ * The delegate class that acts as a "Promise-like" for DesignTag.
971
+ * Why is this prefixed with `Prisma__`?
972
+ * Because we want to prevent naming conflicts as mentioned in
973
+ * https://github.com/prisma/prisma-client-js/issues/707
974
+ */
975
+ export interface Prisma__DesignTagClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
976
+ readonly [Symbol.toStringTag]: "PrismaPromise"
977
+ design<T extends Prisma.DesignDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignDefaultArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
978
+ tag<T extends Prisma.TagDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TagDefaultArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
979
+ /**
980
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
981
+ * @param onfulfilled The callback to execute when the Promise is resolved.
982
+ * @param onrejected The callback to execute when the Promise is rejected.
983
+ * @returns A Promise for the completion of which ever callback is executed.
984
+ */
985
+ 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>
986
+ /**
987
+ * Attaches a callback for only the rejection of the Promise.
988
+ * @param onrejected The callback to execute when the Promise is rejected.
989
+ * @returns A Promise for the completion of the callback.
990
+ */
991
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
992
+ /**
993
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
994
+ * resolved value cannot be modified from the callback.
995
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
996
+ * @returns A Promise for the completion of the callback.
997
+ */
998
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
999
+ }
1000
+
1001
+
1002
+
1003
+
1004
+ /**
1005
+ * Fields of the DesignTag model
1006
+ */
1007
+ export interface DesignTagFieldRefs {
1008
+ readonly id: Prisma.FieldRef<"DesignTag", 'String'>
1009
+ readonly designId: Prisma.FieldRef<"DesignTag", 'String'>
1010
+ readonly tagId: Prisma.FieldRef<"DesignTag", 'String'>
1011
+ readonly createdAt: Prisma.FieldRef<"DesignTag", 'DateTime'>
1012
+ }
1013
+
1014
+
1015
+ // Custom InputTypes
1016
+ /**
1017
+ * DesignTag findUnique
1018
+ */
1019
+ export type DesignTagFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1020
+ /**
1021
+ * Select specific fields to fetch from the DesignTag
1022
+ */
1023
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1024
+ /**
1025
+ * Omit specific fields from the DesignTag
1026
+ */
1027
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1028
+ /**
1029
+ * Choose, which related nodes to fetch as well
1030
+ */
1031
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1032
+ /**
1033
+ * Filter, which DesignTag to fetch.
1034
+ */
1035
+ where: Prisma.DesignTagWhereUniqueInput
1036
+ }
1037
+
1038
+ /**
1039
+ * DesignTag findUniqueOrThrow
1040
+ */
1041
+ export type DesignTagFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1042
+ /**
1043
+ * Select specific fields to fetch from the DesignTag
1044
+ */
1045
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1046
+ /**
1047
+ * Omit specific fields from the DesignTag
1048
+ */
1049
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1050
+ /**
1051
+ * Choose, which related nodes to fetch as well
1052
+ */
1053
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1054
+ /**
1055
+ * Filter, which DesignTag to fetch.
1056
+ */
1057
+ where: Prisma.DesignTagWhereUniqueInput
1058
+ }
1059
+
1060
+ /**
1061
+ * DesignTag findFirst
1062
+ */
1063
+ export type DesignTagFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
+ /**
1065
+ * Select specific fields to fetch from the DesignTag
1066
+ */
1067
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1068
+ /**
1069
+ * Omit specific fields from the DesignTag
1070
+ */
1071
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1072
+ /**
1073
+ * Choose, which related nodes to fetch as well
1074
+ */
1075
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1076
+ /**
1077
+ * Filter, which DesignTag to fetch.
1078
+ */
1079
+ where?: Prisma.DesignTagWhereInput
1080
+ /**
1081
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1082
+ *
1083
+ * Determine the order of DesignTags to fetch.
1084
+ */
1085
+ orderBy?: Prisma.DesignTagOrderByWithRelationInput | Prisma.DesignTagOrderByWithRelationInput[]
1086
+ /**
1087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1088
+ *
1089
+ * Sets the position for searching for DesignTags.
1090
+ */
1091
+ cursor?: Prisma.DesignTagWhereUniqueInput
1092
+ /**
1093
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1094
+ *
1095
+ * Take `±n` DesignTags from the position of the cursor.
1096
+ */
1097
+ take?: number
1098
+ /**
1099
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1100
+ *
1101
+ * Skip the first `n` DesignTags.
1102
+ */
1103
+ skip?: number
1104
+ /**
1105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1106
+ *
1107
+ * Filter by unique combinations of DesignTags.
1108
+ */
1109
+ distinct?: Prisma.DesignTagScalarFieldEnum | Prisma.DesignTagScalarFieldEnum[]
1110
+ }
1111
+
1112
+ /**
1113
+ * DesignTag findFirstOrThrow
1114
+ */
1115
+ export type DesignTagFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1116
+ /**
1117
+ * Select specific fields to fetch from the DesignTag
1118
+ */
1119
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1120
+ /**
1121
+ * Omit specific fields from the DesignTag
1122
+ */
1123
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1124
+ /**
1125
+ * Choose, which related nodes to fetch as well
1126
+ */
1127
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1128
+ /**
1129
+ * Filter, which DesignTag to fetch.
1130
+ */
1131
+ where?: Prisma.DesignTagWhereInput
1132
+ /**
1133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1134
+ *
1135
+ * Determine the order of DesignTags to fetch.
1136
+ */
1137
+ orderBy?: Prisma.DesignTagOrderByWithRelationInput | Prisma.DesignTagOrderByWithRelationInput[]
1138
+ /**
1139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1140
+ *
1141
+ * Sets the position for searching for DesignTags.
1142
+ */
1143
+ cursor?: Prisma.DesignTagWhereUniqueInput
1144
+ /**
1145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1146
+ *
1147
+ * Take `±n` DesignTags from the position of the cursor.
1148
+ */
1149
+ take?: number
1150
+ /**
1151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1152
+ *
1153
+ * Skip the first `n` DesignTags.
1154
+ */
1155
+ skip?: number
1156
+ /**
1157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1158
+ *
1159
+ * Filter by unique combinations of DesignTags.
1160
+ */
1161
+ distinct?: Prisma.DesignTagScalarFieldEnum | Prisma.DesignTagScalarFieldEnum[]
1162
+ }
1163
+
1164
+ /**
1165
+ * DesignTag findMany
1166
+ */
1167
+ export type DesignTagFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1168
+ /**
1169
+ * Select specific fields to fetch from the DesignTag
1170
+ */
1171
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1172
+ /**
1173
+ * Omit specific fields from the DesignTag
1174
+ */
1175
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1176
+ /**
1177
+ * Choose, which related nodes to fetch as well
1178
+ */
1179
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1180
+ /**
1181
+ * Filter, which DesignTags to fetch.
1182
+ */
1183
+ where?: Prisma.DesignTagWhereInput
1184
+ /**
1185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1186
+ *
1187
+ * Determine the order of DesignTags to fetch.
1188
+ */
1189
+ orderBy?: Prisma.DesignTagOrderByWithRelationInput | Prisma.DesignTagOrderByWithRelationInput[]
1190
+ /**
1191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1192
+ *
1193
+ * Sets the position for listing DesignTags.
1194
+ */
1195
+ cursor?: Prisma.DesignTagWhereUniqueInput
1196
+ /**
1197
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1198
+ *
1199
+ * Take `±n` DesignTags from the position of the cursor.
1200
+ */
1201
+ take?: number
1202
+ /**
1203
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1204
+ *
1205
+ * Skip the first `n` DesignTags.
1206
+ */
1207
+ skip?: number
1208
+ /**
1209
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1210
+ *
1211
+ * Filter by unique combinations of DesignTags.
1212
+ */
1213
+ distinct?: Prisma.DesignTagScalarFieldEnum | Prisma.DesignTagScalarFieldEnum[]
1214
+ }
1215
+
1216
+ /**
1217
+ * DesignTag create
1218
+ */
1219
+ export type DesignTagCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1220
+ /**
1221
+ * Select specific fields to fetch from the DesignTag
1222
+ */
1223
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1224
+ /**
1225
+ * Omit specific fields from the DesignTag
1226
+ */
1227
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1228
+ /**
1229
+ * Choose, which related nodes to fetch as well
1230
+ */
1231
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1232
+ /**
1233
+ * The data needed to create a DesignTag.
1234
+ */
1235
+ data: Prisma.XOR<Prisma.DesignTagCreateInput, Prisma.DesignTagUncheckedCreateInput>
1236
+ }
1237
+
1238
+ /**
1239
+ * DesignTag createMany
1240
+ */
1241
+ export type DesignTagCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1242
+ /**
1243
+ * The data used to create many DesignTags.
1244
+ */
1245
+ data: Prisma.DesignTagCreateManyInput | Prisma.DesignTagCreateManyInput[]
1246
+ }
1247
+
1248
+ /**
1249
+ * DesignTag createManyAndReturn
1250
+ */
1251
+ export type DesignTagCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1252
+ /**
1253
+ * Select specific fields to fetch from the DesignTag
1254
+ */
1255
+ select?: Prisma.DesignTagSelectCreateManyAndReturn<ExtArgs> | null
1256
+ /**
1257
+ * Omit specific fields from the DesignTag
1258
+ */
1259
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1260
+ /**
1261
+ * The data used to create many DesignTags.
1262
+ */
1263
+ data: Prisma.DesignTagCreateManyInput | Prisma.DesignTagCreateManyInput[]
1264
+ /**
1265
+ * Choose, which related nodes to fetch as well
1266
+ */
1267
+ include?: Prisma.DesignTagIncludeCreateManyAndReturn<ExtArgs> | null
1268
+ }
1269
+
1270
+ /**
1271
+ * DesignTag update
1272
+ */
1273
+ export type DesignTagUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1274
+ /**
1275
+ * Select specific fields to fetch from the DesignTag
1276
+ */
1277
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1278
+ /**
1279
+ * Omit specific fields from the DesignTag
1280
+ */
1281
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1282
+ /**
1283
+ * Choose, which related nodes to fetch as well
1284
+ */
1285
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1286
+ /**
1287
+ * The data needed to update a DesignTag.
1288
+ */
1289
+ data: Prisma.XOR<Prisma.DesignTagUpdateInput, Prisma.DesignTagUncheckedUpdateInput>
1290
+ /**
1291
+ * Choose, which DesignTag to update.
1292
+ */
1293
+ where: Prisma.DesignTagWhereUniqueInput
1294
+ }
1295
+
1296
+ /**
1297
+ * DesignTag updateMany
1298
+ */
1299
+ export type DesignTagUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1300
+ /**
1301
+ * The data used to update DesignTags.
1302
+ */
1303
+ data: Prisma.XOR<Prisma.DesignTagUpdateManyMutationInput, Prisma.DesignTagUncheckedUpdateManyInput>
1304
+ /**
1305
+ * Filter which DesignTags to update
1306
+ */
1307
+ where?: Prisma.DesignTagWhereInput
1308
+ /**
1309
+ * Limit how many DesignTags to update.
1310
+ */
1311
+ limit?: number
1312
+ }
1313
+
1314
+ /**
1315
+ * DesignTag updateManyAndReturn
1316
+ */
1317
+ export type DesignTagUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
+ /**
1319
+ * Select specific fields to fetch from the DesignTag
1320
+ */
1321
+ select?: Prisma.DesignTagSelectUpdateManyAndReturn<ExtArgs> | null
1322
+ /**
1323
+ * Omit specific fields from the DesignTag
1324
+ */
1325
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1326
+ /**
1327
+ * The data used to update DesignTags.
1328
+ */
1329
+ data: Prisma.XOR<Prisma.DesignTagUpdateManyMutationInput, Prisma.DesignTagUncheckedUpdateManyInput>
1330
+ /**
1331
+ * Filter which DesignTags to update
1332
+ */
1333
+ where?: Prisma.DesignTagWhereInput
1334
+ /**
1335
+ * Limit how many DesignTags to update.
1336
+ */
1337
+ limit?: number
1338
+ /**
1339
+ * Choose, which related nodes to fetch as well
1340
+ */
1341
+ include?: Prisma.DesignTagIncludeUpdateManyAndReturn<ExtArgs> | null
1342
+ }
1343
+
1344
+ /**
1345
+ * DesignTag upsert
1346
+ */
1347
+ export type DesignTagUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * Select specific fields to fetch from the DesignTag
1350
+ */
1351
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1352
+ /**
1353
+ * Omit specific fields from the DesignTag
1354
+ */
1355
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1356
+ /**
1357
+ * Choose, which related nodes to fetch as well
1358
+ */
1359
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1360
+ /**
1361
+ * The filter to search for the DesignTag to update in case it exists.
1362
+ */
1363
+ where: Prisma.DesignTagWhereUniqueInput
1364
+ /**
1365
+ * In case the DesignTag found by the `where` argument doesn't exist, create a new DesignTag with this data.
1366
+ */
1367
+ create: Prisma.XOR<Prisma.DesignTagCreateInput, Prisma.DesignTagUncheckedCreateInput>
1368
+ /**
1369
+ * In case the DesignTag was found with the provided `where` argument, update it with this data.
1370
+ */
1371
+ update: Prisma.XOR<Prisma.DesignTagUpdateInput, Prisma.DesignTagUncheckedUpdateInput>
1372
+ }
1373
+
1374
+ /**
1375
+ * DesignTag delete
1376
+ */
1377
+ export type DesignTagDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
+ /**
1379
+ * Select specific fields to fetch from the DesignTag
1380
+ */
1381
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1382
+ /**
1383
+ * Omit specific fields from the DesignTag
1384
+ */
1385
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1386
+ /**
1387
+ * Choose, which related nodes to fetch as well
1388
+ */
1389
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1390
+ /**
1391
+ * Filter which DesignTag to delete.
1392
+ */
1393
+ where: Prisma.DesignTagWhereUniqueInput
1394
+ }
1395
+
1396
+ /**
1397
+ * DesignTag deleteMany
1398
+ */
1399
+ export type DesignTagDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
+ /**
1401
+ * Filter which DesignTags to delete
1402
+ */
1403
+ where?: Prisma.DesignTagWhereInput
1404
+ /**
1405
+ * Limit how many DesignTags to delete.
1406
+ */
1407
+ limit?: number
1408
+ }
1409
+
1410
+ /**
1411
+ * DesignTag without action
1412
+ */
1413
+ export type DesignTagDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1414
+ /**
1415
+ * Select specific fields to fetch from the DesignTag
1416
+ */
1417
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1418
+ /**
1419
+ * Omit specific fields from the DesignTag
1420
+ */
1421
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1422
+ /**
1423
+ * Choose, which related nodes to fetch as well
1424
+ */
1425
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1426
+ }