@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,1430 @@
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
+ skipDuplicates?: boolean
410
+ }
411
+
412
+ export type DesignTagUpsertWithWhereUniqueWithoutDesignInput = {
413
+ where: Prisma.DesignTagWhereUniqueInput
414
+ update: Prisma.XOR<Prisma.DesignTagUpdateWithoutDesignInput, Prisma.DesignTagUncheckedUpdateWithoutDesignInput>
415
+ create: Prisma.XOR<Prisma.DesignTagCreateWithoutDesignInput, Prisma.DesignTagUncheckedCreateWithoutDesignInput>
416
+ }
417
+
418
+ export type DesignTagUpdateWithWhereUniqueWithoutDesignInput = {
419
+ where: Prisma.DesignTagWhereUniqueInput
420
+ data: Prisma.XOR<Prisma.DesignTagUpdateWithoutDesignInput, Prisma.DesignTagUncheckedUpdateWithoutDesignInput>
421
+ }
422
+
423
+ export type DesignTagUpdateManyWithWhereWithoutDesignInput = {
424
+ where: Prisma.DesignTagScalarWhereInput
425
+ data: Prisma.XOR<Prisma.DesignTagUpdateManyMutationInput, Prisma.DesignTagUncheckedUpdateManyWithoutDesignInput>
426
+ }
427
+
428
+ export type DesignTagScalarWhereInput = {
429
+ AND?: Prisma.DesignTagScalarWhereInput | Prisma.DesignTagScalarWhereInput[]
430
+ OR?: Prisma.DesignTagScalarWhereInput[]
431
+ NOT?: Prisma.DesignTagScalarWhereInput | Prisma.DesignTagScalarWhereInput[]
432
+ id?: Prisma.StringFilter<"DesignTag"> | string
433
+ designId?: Prisma.StringFilter<"DesignTag"> | string
434
+ tagId?: Prisma.StringFilter<"DesignTag"> | string
435
+ createdAt?: Prisma.DateTimeFilter<"DesignTag"> | Date | string
436
+ }
437
+
438
+ export type DesignTagCreateWithoutTagInput = {
439
+ id?: string
440
+ createdAt?: Date | string
441
+ design: Prisma.DesignCreateNestedOneWithoutDesignTagsInput
442
+ }
443
+
444
+ export type DesignTagUncheckedCreateWithoutTagInput = {
445
+ id?: string
446
+ designId: string
447
+ createdAt?: Date | string
448
+ }
449
+
450
+ export type DesignTagCreateOrConnectWithoutTagInput = {
451
+ where: Prisma.DesignTagWhereUniqueInput
452
+ create: Prisma.XOR<Prisma.DesignTagCreateWithoutTagInput, Prisma.DesignTagUncheckedCreateWithoutTagInput>
453
+ }
454
+
455
+ export type DesignTagCreateManyTagInputEnvelope = {
456
+ data: Prisma.DesignTagCreateManyTagInput | Prisma.DesignTagCreateManyTagInput[]
457
+ skipDuplicates?: boolean
458
+ }
459
+
460
+ export type DesignTagUpsertWithWhereUniqueWithoutTagInput = {
461
+ where: Prisma.DesignTagWhereUniqueInput
462
+ update: Prisma.XOR<Prisma.DesignTagUpdateWithoutTagInput, Prisma.DesignTagUncheckedUpdateWithoutTagInput>
463
+ create: Prisma.XOR<Prisma.DesignTagCreateWithoutTagInput, Prisma.DesignTagUncheckedCreateWithoutTagInput>
464
+ }
465
+
466
+ export type DesignTagUpdateWithWhereUniqueWithoutTagInput = {
467
+ where: Prisma.DesignTagWhereUniqueInput
468
+ data: Prisma.XOR<Prisma.DesignTagUpdateWithoutTagInput, Prisma.DesignTagUncheckedUpdateWithoutTagInput>
469
+ }
470
+
471
+ export type DesignTagUpdateManyWithWhereWithoutTagInput = {
472
+ where: Prisma.DesignTagScalarWhereInput
473
+ data: Prisma.XOR<Prisma.DesignTagUpdateManyMutationInput, Prisma.DesignTagUncheckedUpdateManyWithoutTagInput>
474
+ }
475
+
476
+ export type DesignTagCreateManyDesignInput = {
477
+ id?: string
478
+ tagId: string
479
+ createdAt?: Date | string
480
+ }
481
+
482
+ export type DesignTagUpdateWithoutDesignInput = {
483
+ id?: Prisma.StringFieldUpdateOperationsInput | string
484
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
485
+ tag?: Prisma.TagUpdateOneRequiredWithoutDesignTagsNestedInput
486
+ }
487
+
488
+ export type DesignTagUncheckedUpdateWithoutDesignInput = {
489
+ id?: Prisma.StringFieldUpdateOperationsInput | string
490
+ tagId?: Prisma.StringFieldUpdateOperationsInput | string
491
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
492
+ }
493
+
494
+ export type DesignTagUncheckedUpdateManyWithoutDesignInput = {
495
+ id?: Prisma.StringFieldUpdateOperationsInput | string
496
+ tagId?: Prisma.StringFieldUpdateOperationsInput | string
497
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
498
+ }
499
+
500
+ export type DesignTagCreateManyTagInput = {
501
+ id?: string
502
+ designId: string
503
+ createdAt?: Date | string
504
+ }
505
+
506
+ export type DesignTagUpdateWithoutTagInput = {
507
+ id?: Prisma.StringFieldUpdateOperationsInput | string
508
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
509
+ design?: Prisma.DesignUpdateOneRequiredWithoutDesignTagsNestedInput
510
+ }
511
+
512
+ export type DesignTagUncheckedUpdateWithoutTagInput = {
513
+ id?: Prisma.StringFieldUpdateOperationsInput | string
514
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
515
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
516
+ }
517
+
518
+ export type DesignTagUncheckedUpdateManyWithoutTagInput = {
519
+ id?: Prisma.StringFieldUpdateOperationsInput | string
520
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
521
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
522
+ }
523
+
524
+
525
+
526
+ export type DesignTagSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
527
+ id?: boolean
528
+ designId?: boolean
529
+ tagId?: boolean
530
+ createdAt?: boolean
531
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
532
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
533
+ }, ExtArgs["result"]["designTag"]>
534
+
535
+ export type DesignTagSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
536
+ id?: boolean
537
+ designId?: boolean
538
+ tagId?: boolean
539
+ createdAt?: boolean
540
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
541
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
542
+ }, ExtArgs["result"]["designTag"]>
543
+
544
+ export type DesignTagSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
545
+ id?: boolean
546
+ designId?: boolean
547
+ tagId?: boolean
548
+ createdAt?: boolean
549
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
550
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
551
+ }, ExtArgs["result"]["designTag"]>
552
+
553
+ export type DesignTagSelectScalar = {
554
+ id?: boolean
555
+ designId?: boolean
556
+ tagId?: boolean
557
+ createdAt?: boolean
558
+ }
559
+
560
+ export type DesignTagOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "designId" | "tagId" | "createdAt", ExtArgs["result"]["designTag"]>
561
+ export type DesignTagInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
562
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
563
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
564
+ }
565
+ export type DesignTagIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
566
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
567
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
568
+ }
569
+ export type DesignTagIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
570
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
571
+ tag?: boolean | Prisma.TagDefaultArgs<ExtArgs>
572
+ }
573
+
574
+ export type $DesignTagPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
575
+ name: "DesignTag"
576
+ objects: {
577
+ design: Prisma.$DesignPayload<ExtArgs>
578
+ tag: Prisma.$TagPayload<ExtArgs>
579
+ }
580
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
581
+ id: string
582
+ designId: string
583
+ tagId: string
584
+ createdAt: Date
585
+ }, ExtArgs["result"]["designTag"]>
586
+ composites: {}
587
+ }
588
+
589
+ export type DesignTagGetPayload<S extends boolean | null | undefined | DesignTagDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DesignTagPayload, S>
590
+
591
+ export type DesignTagCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
592
+ Omit<DesignTagFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
593
+ select?: DesignTagCountAggregateInputType | true
594
+ }
595
+
596
+ export interface DesignTagDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
597
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DesignTag'], meta: { name: 'DesignTag' } }
598
+ /**
599
+ * Find zero or one DesignTag that matches the filter.
600
+ * @param {DesignTagFindUniqueArgs} args - Arguments to find a DesignTag
601
+ * @example
602
+ * // Get one DesignTag
603
+ * const designTag = await prisma.designTag.findUnique({
604
+ * where: {
605
+ * // ... provide filter here
606
+ * }
607
+ * })
608
+ */
609
+ 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>
610
+
611
+ /**
612
+ * Find one DesignTag that matches the filter or throw an error with `error.code='P2025'`
613
+ * if no matches were found.
614
+ * @param {DesignTagFindUniqueOrThrowArgs} args - Arguments to find a DesignTag
615
+ * @example
616
+ * // Get one DesignTag
617
+ * const designTag = await prisma.designTag.findUniqueOrThrow({
618
+ * where: {
619
+ * // ... provide filter here
620
+ * }
621
+ * })
622
+ */
623
+ 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>
624
+
625
+ /**
626
+ * Find the first DesignTag that matches the filter.
627
+ * Note, that providing `undefined` is treated as the value not being there.
628
+ * Read more here: https://pris.ly/d/null-undefined
629
+ * @param {DesignTagFindFirstArgs} args - Arguments to find a DesignTag
630
+ * @example
631
+ * // Get one DesignTag
632
+ * const designTag = await prisma.designTag.findFirst({
633
+ * where: {
634
+ * // ... provide filter here
635
+ * }
636
+ * })
637
+ */
638
+ 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>
639
+
640
+ /**
641
+ * Find the first DesignTag that matches the filter or
642
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
643
+ * Note, that providing `undefined` is treated as the value not being there.
644
+ * Read more here: https://pris.ly/d/null-undefined
645
+ * @param {DesignTagFindFirstOrThrowArgs} args - Arguments to find a DesignTag
646
+ * @example
647
+ * // Get one DesignTag
648
+ * const designTag = await prisma.designTag.findFirstOrThrow({
649
+ * where: {
650
+ * // ... provide filter here
651
+ * }
652
+ * })
653
+ */
654
+ 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>
655
+
656
+ /**
657
+ * Find zero or more DesignTags that matches the filter.
658
+ * Note, that providing `undefined` is treated as the value not being there.
659
+ * Read more here: https://pris.ly/d/null-undefined
660
+ * @param {DesignTagFindManyArgs} args - Arguments to filter and select certain fields only.
661
+ * @example
662
+ * // Get all DesignTags
663
+ * const designTags = await prisma.designTag.findMany()
664
+ *
665
+ * // Get first 10 DesignTags
666
+ * const designTags = await prisma.designTag.findMany({ take: 10 })
667
+ *
668
+ * // Only select the `id`
669
+ * const designTagWithIdOnly = await prisma.designTag.findMany({ select: { id: true } })
670
+ *
671
+ */
672
+ findMany<T extends DesignTagFindManyArgs>(args?: Prisma.SelectSubset<T, DesignTagFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
673
+
674
+ /**
675
+ * Create a DesignTag.
676
+ * @param {DesignTagCreateArgs} args - Arguments to create a DesignTag.
677
+ * @example
678
+ * // Create one DesignTag
679
+ * const DesignTag = await prisma.designTag.create({
680
+ * data: {
681
+ * // ... data to create a DesignTag
682
+ * }
683
+ * })
684
+ *
685
+ */
686
+ 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>
687
+
688
+ /**
689
+ * Create many DesignTags.
690
+ * @param {DesignTagCreateManyArgs} args - Arguments to create many DesignTags.
691
+ * @example
692
+ * // Create many DesignTags
693
+ * const designTag = await prisma.designTag.createMany({
694
+ * data: [
695
+ * // ... provide data here
696
+ * ]
697
+ * })
698
+ *
699
+ */
700
+ createMany<T extends DesignTagCreateManyArgs>(args?: Prisma.SelectSubset<T, DesignTagCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
701
+
702
+ /**
703
+ * Create many DesignTags and returns the data saved in the database.
704
+ * @param {DesignTagCreateManyAndReturnArgs} args - Arguments to create many DesignTags.
705
+ * @example
706
+ * // Create many DesignTags
707
+ * const designTag = await prisma.designTag.createManyAndReturn({
708
+ * data: [
709
+ * // ... provide data here
710
+ * ]
711
+ * })
712
+ *
713
+ * // Create many DesignTags and only return the `id`
714
+ * const designTagWithIdOnly = await prisma.designTag.createManyAndReturn({
715
+ * select: { id: true },
716
+ * data: [
717
+ * // ... provide data here
718
+ * ]
719
+ * })
720
+ * Note, that providing `undefined` is treated as the value not being there.
721
+ * Read more here: https://pris.ly/d/null-undefined
722
+ *
723
+ */
724
+ createManyAndReturn<T extends DesignTagCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DesignTagCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
725
+
726
+ /**
727
+ * Delete a DesignTag.
728
+ * @param {DesignTagDeleteArgs} args - Arguments to delete one DesignTag.
729
+ * @example
730
+ * // Delete one DesignTag
731
+ * const DesignTag = await prisma.designTag.delete({
732
+ * where: {
733
+ * // ... filter to delete one DesignTag
734
+ * }
735
+ * })
736
+ *
737
+ */
738
+ 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>
739
+
740
+ /**
741
+ * Update one DesignTag.
742
+ * @param {DesignTagUpdateArgs} args - Arguments to update one DesignTag.
743
+ * @example
744
+ * // Update one DesignTag
745
+ * const designTag = await prisma.designTag.update({
746
+ * where: {
747
+ * // ... provide filter here
748
+ * },
749
+ * data: {
750
+ * // ... provide data here
751
+ * }
752
+ * })
753
+ *
754
+ */
755
+ 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>
756
+
757
+ /**
758
+ * Delete zero or more DesignTags.
759
+ * @param {DesignTagDeleteManyArgs} args - Arguments to filter DesignTags to delete.
760
+ * @example
761
+ * // Delete a few DesignTags
762
+ * const { count } = await prisma.designTag.deleteMany({
763
+ * where: {
764
+ * // ... provide filter here
765
+ * }
766
+ * })
767
+ *
768
+ */
769
+ deleteMany<T extends DesignTagDeleteManyArgs>(args?: Prisma.SelectSubset<T, DesignTagDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
770
+
771
+ /**
772
+ * Update zero or more DesignTags.
773
+ * Note, that providing `undefined` is treated as the value not being there.
774
+ * Read more here: https://pris.ly/d/null-undefined
775
+ * @param {DesignTagUpdateManyArgs} args - Arguments to update one or more rows.
776
+ * @example
777
+ * // Update many DesignTags
778
+ * const designTag = await prisma.designTag.updateMany({
779
+ * where: {
780
+ * // ... provide filter here
781
+ * },
782
+ * data: {
783
+ * // ... provide data here
784
+ * }
785
+ * })
786
+ *
787
+ */
788
+ updateMany<T extends DesignTagUpdateManyArgs>(args: Prisma.SelectSubset<T, DesignTagUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
789
+
790
+ /**
791
+ * Update zero or more DesignTags and returns the data updated in the database.
792
+ * @param {DesignTagUpdateManyAndReturnArgs} args - Arguments to update many DesignTags.
793
+ * @example
794
+ * // Update many DesignTags
795
+ * const designTag = await prisma.designTag.updateManyAndReturn({
796
+ * where: {
797
+ * // ... provide filter here
798
+ * },
799
+ * data: [
800
+ * // ... provide data here
801
+ * ]
802
+ * })
803
+ *
804
+ * // Update zero or more DesignTags and only return the `id`
805
+ * const designTagWithIdOnly = await prisma.designTag.updateManyAndReturn({
806
+ * select: { id: true },
807
+ * where: {
808
+ * // ... provide filter here
809
+ * },
810
+ * data: [
811
+ * // ... provide data here
812
+ * ]
813
+ * })
814
+ * Note, that providing `undefined` is treated as the value not being there.
815
+ * Read more here: https://pris.ly/d/null-undefined
816
+ *
817
+ */
818
+ updateManyAndReturn<T extends DesignTagUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DesignTagUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DesignTagPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
819
+
820
+ /**
821
+ * Create or update one DesignTag.
822
+ * @param {DesignTagUpsertArgs} args - Arguments to update or create a DesignTag.
823
+ * @example
824
+ * // Update or create a DesignTag
825
+ * const designTag = await prisma.designTag.upsert({
826
+ * create: {
827
+ * // ... data to create a DesignTag
828
+ * },
829
+ * update: {
830
+ * // ... in case it already exists, update
831
+ * },
832
+ * where: {
833
+ * // ... the filter for the DesignTag we want to update
834
+ * }
835
+ * })
836
+ */
837
+ 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>
838
+
839
+
840
+ /**
841
+ * Count the number of DesignTags.
842
+ * Note, that providing `undefined` is treated as the value not being there.
843
+ * Read more here: https://pris.ly/d/null-undefined
844
+ * @param {DesignTagCountArgs} args - Arguments to filter DesignTags to count.
845
+ * @example
846
+ * // Count the number of DesignTags
847
+ * const count = await prisma.designTag.count({
848
+ * where: {
849
+ * // ... the filter for the DesignTags we want to count
850
+ * }
851
+ * })
852
+ **/
853
+ count<T extends DesignTagCountArgs>(
854
+ args?: Prisma.Subset<T, DesignTagCountArgs>,
855
+ ): Prisma.PrismaPromise<
856
+ T extends runtime.Types.Utils.Record<'select', any>
857
+ ? T['select'] extends true
858
+ ? number
859
+ : Prisma.GetScalarType<T['select'], DesignTagCountAggregateOutputType>
860
+ : number
861
+ >
862
+
863
+ /**
864
+ * Allows you to perform aggregations operations on a DesignTag.
865
+ * Note, that providing `undefined` is treated as the value not being there.
866
+ * Read more here: https://pris.ly/d/null-undefined
867
+ * @param {DesignTagAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
868
+ * @example
869
+ * // Ordered by age ascending
870
+ * // Where email contains prisma.io
871
+ * // Limited to the 10 users
872
+ * const aggregations = await prisma.user.aggregate({
873
+ * _avg: {
874
+ * age: true,
875
+ * },
876
+ * where: {
877
+ * email: {
878
+ * contains: "prisma.io",
879
+ * },
880
+ * },
881
+ * orderBy: {
882
+ * age: "asc",
883
+ * },
884
+ * take: 10,
885
+ * })
886
+ **/
887
+ aggregate<T extends DesignTagAggregateArgs>(args: Prisma.Subset<T, DesignTagAggregateArgs>): Prisma.PrismaPromise<GetDesignTagAggregateType<T>>
888
+
889
+ /**
890
+ * Group by DesignTag.
891
+ * Note, that providing `undefined` is treated as the value not being there.
892
+ * Read more here: https://pris.ly/d/null-undefined
893
+ * @param {DesignTagGroupByArgs} args - Group by arguments.
894
+ * @example
895
+ * // Group by city, order by createdAt, get count
896
+ * const result = await prisma.user.groupBy({
897
+ * by: ['city', 'createdAt'],
898
+ * orderBy: {
899
+ * createdAt: true
900
+ * },
901
+ * _count: {
902
+ * _all: true
903
+ * },
904
+ * })
905
+ *
906
+ **/
907
+ groupBy<
908
+ T extends DesignTagGroupByArgs,
909
+ HasSelectOrTake extends Prisma.Or<
910
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
911
+ Prisma.Extends<'take', Prisma.Keys<T>>
912
+ >,
913
+ OrderByArg extends Prisma.True extends HasSelectOrTake
914
+ ? { orderBy: DesignTagGroupByArgs['orderBy'] }
915
+ : { orderBy?: DesignTagGroupByArgs['orderBy'] },
916
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
917
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
918
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
919
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
920
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
921
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
922
+ InputErrors extends ByEmpty extends Prisma.True
923
+ ? `Error: "by" must not be empty.`
924
+ : HavingValid extends Prisma.False
925
+ ? {
926
+ [P in HavingFields]: P extends ByFields
927
+ ? never
928
+ : P extends string
929
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
930
+ : [
931
+ Error,
932
+ 'Field ',
933
+ P,
934
+ ` in "having" needs to be provided in "by"`,
935
+ ]
936
+ }[HavingFields]
937
+ : 'take' extends Prisma.Keys<T>
938
+ ? 'orderBy' extends Prisma.Keys<T>
939
+ ? ByValid extends Prisma.True
940
+ ? {}
941
+ : {
942
+ [P in OrderFields]: P extends ByFields
943
+ ? never
944
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
945
+ }[OrderFields]
946
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
947
+ : 'skip' extends Prisma.Keys<T>
948
+ ? 'orderBy' extends Prisma.Keys<T>
949
+ ? ByValid extends Prisma.True
950
+ ? {}
951
+ : {
952
+ [P in OrderFields]: P extends ByFields
953
+ ? never
954
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
955
+ }[OrderFields]
956
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
957
+ : ByValid extends Prisma.True
958
+ ? {}
959
+ : {
960
+ [P in OrderFields]: P extends ByFields
961
+ ? never
962
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
963
+ }[OrderFields]
964
+ >(args: Prisma.SubsetIntersection<T, DesignTagGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDesignTagGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
965
+ /**
966
+ * Fields of the DesignTag model
967
+ */
968
+ readonly fields: DesignTagFieldRefs;
969
+ }
970
+
971
+ /**
972
+ * The delegate class that acts as a "Promise-like" for DesignTag.
973
+ * Why is this prefixed with `Prisma__`?
974
+ * Because we want to prevent naming conflicts as mentioned in
975
+ * https://github.com/prisma/prisma-client-js/issues/707
976
+ */
977
+ export interface Prisma__DesignTagClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
978
+ readonly [Symbol.toStringTag]: "PrismaPromise"
979
+ 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>
980
+ 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>
981
+ /**
982
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
983
+ * @param onfulfilled The callback to execute when the Promise is resolved.
984
+ * @param onrejected The callback to execute when the Promise is rejected.
985
+ * @returns A Promise for the completion of which ever callback is executed.
986
+ */
987
+ 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>
988
+ /**
989
+ * Attaches a callback for only the rejection of the Promise.
990
+ * @param onrejected The callback to execute when the Promise is rejected.
991
+ * @returns A Promise for the completion of the callback.
992
+ */
993
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
994
+ /**
995
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
996
+ * resolved value cannot be modified from the callback.
997
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
998
+ * @returns A Promise for the completion of the callback.
999
+ */
1000
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1001
+ }
1002
+
1003
+
1004
+
1005
+
1006
+ /**
1007
+ * Fields of the DesignTag model
1008
+ */
1009
+ export interface DesignTagFieldRefs {
1010
+ readonly id: Prisma.FieldRef<"DesignTag", 'String'>
1011
+ readonly designId: Prisma.FieldRef<"DesignTag", 'String'>
1012
+ readonly tagId: Prisma.FieldRef<"DesignTag", 'String'>
1013
+ readonly createdAt: Prisma.FieldRef<"DesignTag", 'DateTime'>
1014
+ }
1015
+
1016
+
1017
+ // Custom InputTypes
1018
+ /**
1019
+ * DesignTag findUnique
1020
+ */
1021
+ export type DesignTagFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1022
+ /**
1023
+ * Select specific fields to fetch from the DesignTag
1024
+ */
1025
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1026
+ /**
1027
+ * Omit specific fields from the DesignTag
1028
+ */
1029
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1030
+ /**
1031
+ * Choose, which related nodes to fetch as well
1032
+ */
1033
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1034
+ /**
1035
+ * Filter, which DesignTag to fetch.
1036
+ */
1037
+ where: Prisma.DesignTagWhereUniqueInput
1038
+ }
1039
+
1040
+ /**
1041
+ * DesignTag findUniqueOrThrow
1042
+ */
1043
+ export type DesignTagFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1044
+ /**
1045
+ * Select specific fields to fetch from the DesignTag
1046
+ */
1047
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1048
+ /**
1049
+ * Omit specific fields from the DesignTag
1050
+ */
1051
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1052
+ /**
1053
+ * Choose, which related nodes to fetch as well
1054
+ */
1055
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1056
+ /**
1057
+ * Filter, which DesignTag to fetch.
1058
+ */
1059
+ where: Prisma.DesignTagWhereUniqueInput
1060
+ }
1061
+
1062
+ /**
1063
+ * DesignTag findFirst
1064
+ */
1065
+ export type DesignTagFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1066
+ /**
1067
+ * Select specific fields to fetch from the DesignTag
1068
+ */
1069
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1070
+ /**
1071
+ * Omit specific fields from the DesignTag
1072
+ */
1073
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1074
+ /**
1075
+ * Choose, which related nodes to fetch as well
1076
+ */
1077
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1078
+ /**
1079
+ * Filter, which DesignTag to fetch.
1080
+ */
1081
+ where?: Prisma.DesignTagWhereInput
1082
+ /**
1083
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1084
+ *
1085
+ * Determine the order of DesignTags to fetch.
1086
+ */
1087
+ orderBy?: Prisma.DesignTagOrderByWithRelationInput | Prisma.DesignTagOrderByWithRelationInput[]
1088
+ /**
1089
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1090
+ *
1091
+ * Sets the position for searching for DesignTags.
1092
+ */
1093
+ cursor?: Prisma.DesignTagWhereUniqueInput
1094
+ /**
1095
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1096
+ *
1097
+ * Take `±n` DesignTags from the position of the cursor.
1098
+ */
1099
+ take?: number
1100
+ /**
1101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1102
+ *
1103
+ * Skip the first `n` DesignTags.
1104
+ */
1105
+ skip?: number
1106
+ /**
1107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1108
+ *
1109
+ * Filter by unique combinations of DesignTags.
1110
+ */
1111
+ distinct?: Prisma.DesignTagScalarFieldEnum | Prisma.DesignTagScalarFieldEnum[]
1112
+ }
1113
+
1114
+ /**
1115
+ * DesignTag findFirstOrThrow
1116
+ */
1117
+ export type DesignTagFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
+ /**
1119
+ * Select specific fields to fetch from the DesignTag
1120
+ */
1121
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1122
+ /**
1123
+ * Omit specific fields from the DesignTag
1124
+ */
1125
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1126
+ /**
1127
+ * Choose, which related nodes to fetch as well
1128
+ */
1129
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1130
+ /**
1131
+ * Filter, which DesignTag to fetch.
1132
+ */
1133
+ where?: Prisma.DesignTagWhereInput
1134
+ /**
1135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1136
+ *
1137
+ * Determine the order of DesignTags to fetch.
1138
+ */
1139
+ orderBy?: Prisma.DesignTagOrderByWithRelationInput | Prisma.DesignTagOrderByWithRelationInput[]
1140
+ /**
1141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1142
+ *
1143
+ * Sets the position for searching for DesignTags.
1144
+ */
1145
+ cursor?: Prisma.DesignTagWhereUniqueInput
1146
+ /**
1147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1148
+ *
1149
+ * Take `±n` DesignTags from the position of the cursor.
1150
+ */
1151
+ take?: number
1152
+ /**
1153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1154
+ *
1155
+ * Skip the first `n` DesignTags.
1156
+ */
1157
+ skip?: number
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1160
+ *
1161
+ * Filter by unique combinations of DesignTags.
1162
+ */
1163
+ distinct?: Prisma.DesignTagScalarFieldEnum | Prisma.DesignTagScalarFieldEnum[]
1164
+ }
1165
+
1166
+ /**
1167
+ * DesignTag findMany
1168
+ */
1169
+ export type DesignTagFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1170
+ /**
1171
+ * Select specific fields to fetch from the DesignTag
1172
+ */
1173
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1174
+ /**
1175
+ * Omit specific fields from the DesignTag
1176
+ */
1177
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1178
+ /**
1179
+ * Choose, which related nodes to fetch as well
1180
+ */
1181
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1182
+ /**
1183
+ * Filter, which DesignTags to fetch.
1184
+ */
1185
+ where?: Prisma.DesignTagWhereInput
1186
+ /**
1187
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1188
+ *
1189
+ * Determine the order of DesignTags to fetch.
1190
+ */
1191
+ orderBy?: Prisma.DesignTagOrderByWithRelationInput | Prisma.DesignTagOrderByWithRelationInput[]
1192
+ /**
1193
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1194
+ *
1195
+ * Sets the position for listing DesignTags.
1196
+ */
1197
+ cursor?: Prisma.DesignTagWhereUniqueInput
1198
+ /**
1199
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1200
+ *
1201
+ * Take `±n` DesignTags from the position of the cursor.
1202
+ */
1203
+ take?: number
1204
+ /**
1205
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1206
+ *
1207
+ * Skip the first `n` DesignTags.
1208
+ */
1209
+ skip?: number
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1212
+ *
1213
+ * Filter by unique combinations of DesignTags.
1214
+ */
1215
+ distinct?: Prisma.DesignTagScalarFieldEnum | Prisma.DesignTagScalarFieldEnum[]
1216
+ }
1217
+
1218
+ /**
1219
+ * DesignTag create
1220
+ */
1221
+ export type DesignTagCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the DesignTag
1224
+ */
1225
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1226
+ /**
1227
+ * Omit specific fields from the DesignTag
1228
+ */
1229
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1230
+ /**
1231
+ * Choose, which related nodes to fetch as well
1232
+ */
1233
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1234
+ /**
1235
+ * The data needed to create a DesignTag.
1236
+ */
1237
+ data: Prisma.XOR<Prisma.DesignTagCreateInput, Prisma.DesignTagUncheckedCreateInput>
1238
+ }
1239
+
1240
+ /**
1241
+ * DesignTag createMany
1242
+ */
1243
+ export type DesignTagCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * The data used to create many DesignTags.
1246
+ */
1247
+ data: Prisma.DesignTagCreateManyInput | Prisma.DesignTagCreateManyInput[]
1248
+ skipDuplicates?: boolean
1249
+ }
1250
+
1251
+ /**
1252
+ * DesignTag createManyAndReturn
1253
+ */
1254
+ export type DesignTagCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1255
+ /**
1256
+ * Select specific fields to fetch from the DesignTag
1257
+ */
1258
+ select?: Prisma.DesignTagSelectCreateManyAndReturn<ExtArgs> | null
1259
+ /**
1260
+ * Omit specific fields from the DesignTag
1261
+ */
1262
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1263
+ /**
1264
+ * The data used to create many DesignTags.
1265
+ */
1266
+ data: Prisma.DesignTagCreateManyInput | Prisma.DesignTagCreateManyInput[]
1267
+ skipDuplicates?: boolean
1268
+ /**
1269
+ * Choose, which related nodes to fetch as well
1270
+ */
1271
+ include?: Prisma.DesignTagIncludeCreateManyAndReturn<ExtArgs> | null
1272
+ }
1273
+
1274
+ /**
1275
+ * DesignTag update
1276
+ */
1277
+ export type DesignTagUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1278
+ /**
1279
+ * Select specific fields to fetch from the DesignTag
1280
+ */
1281
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1282
+ /**
1283
+ * Omit specific fields from the DesignTag
1284
+ */
1285
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1286
+ /**
1287
+ * Choose, which related nodes to fetch as well
1288
+ */
1289
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1290
+ /**
1291
+ * The data needed to update a DesignTag.
1292
+ */
1293
+ data: Prisma.XOR<Prisma.DesignTagUpdateInput, Prisma.DesignTagUncheckedUpdateInput>
1294
+ /**
1295
+ * Choose, which DesignTag to update.
1296
+ */
1297
+ where: Prisma.DesignTagWhereUniqueInput
1298
+ }
1299
+
1300
+ /**
1301
+ * DesignTag updateMany
1302
+ */
1303
+ export type DesignTagUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
+ /**
1305
+ * The data used to update DesignTags.
1306
+ */
1307
+ data: Prisma.XOR<Prisma.DesignTagUpdateManyMutationInput, Prisma.DesignTagUncheckedUpdateManyInput>
1308
+ /**
1309
+ * Filter which DesignTags to update
1310
+ */
1311
+ where?: Prisma.DesignTagWhereInput
1312
+ /**
1313
+ * Limit how many DesignTags to update.
1314
+ */
1315
+ limit?: number
1316
+ }
1317
+
1318
+ /**
1319
+ * DesignTag updateManyAndReturn
1320
+ */
1321
+ export type DesignTagUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
+ /**
1323
+ * Select specific fields to fetch from the DesignTag
1324
+ */
1325
+ select?: Prisma.DesignTagSelectUpdateManyAndReturn<ExtArgs> | null
1326
+ /**
1327
+ * Omit specific fields from the DesignTag
1328
+ */
1329
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1330
+ /**
1331
+ * The data used to update DesignTags.
1332
+ */
1333
+ data: Prisma.XOR<Prisma.DesignTagUpdateManyMutationInput, Prisma.DesignTagUncheckedUpdateManyInput>
1334
+ /**
1335
+ * Filter which DesignTags to update
1336
+ */
1337
+ where?: Prisma.DesignTagWhereInput
1338
+ /**
1339
+ * Limit how many DesignTags to update.
1340
+ */
1341
+ limit?: number
1342
+ /**
1343
+ * Choose, which related nodes to fetch as well
1344
+ */
1345
+ include?: Prisma.DesignTagIncludeUpdateManyAndReturn<ExtArgs> | null
1346
+ }
1347
+
1348
+ /**
1349
+ * DesignTag upsert
1350
+ */
1351
+ export type DesignTagUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1352
+ /**
1353
+ * Select specific fields to fetch from the DesignTag
1354
+ */
1355
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1356
+ /**
1357
+ * Omit specific fields from the DesignTag
1358
+ */
1359
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1360
+ /**
1361
+ * Choose, which related nodes to fetch as well
1362
+ */
1363
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1364
+ /**
1365
+ * The filter to search for the DesignTag to update in case it exists.
1366
+ */
1367
+ where: Prisma.DesignTagWhereUniqueInput
1368
+ /**
1369
+ * In case the DesignTag found by the `where` argument doesn't exist, create a new DesignTag with this data.
1370
+ */
1371
+ create: Prisma.XOR<Prisma.DesignTagCreateInput, Prisma.DesignTagUncheckedCreateInput>
1372
+ /**
1373
+ * In case the DesignTag was found with the provided `where` argument, update it with this data.
1374
+ */
1375
+ update: Prisma.XOR<Prisma.DesignTagUpdateInput, Prisma.DesignTagUncheckedUpdateInput>
1376
+ }
1377
+
1378
+ /**
1379
+ * DesignTag delete
1380
+ */
1381
+ export type DesignTagDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1382
+ /**
1383
+ * Select specific fields to fetch from the DesignTag
1384
+ */
1385
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1386
+ /**
1387
+ * Omit specific fields from the DesignTag
1388
+ */
1389
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1390
+ /**
1391
+ * Choose, which related nodes to fetch as well
1392
+ */
1393
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1394
+ /**
1395
+ * Filter which DesignTag to delete.
1396
+ */
1397
+ where: Prisma.DesignTagWhereUniqueInput
1398
+ }
1399
+
1400
+ /**
1401
+ * DesignTag deleteMany
1402
+ */
1403
+ export type DesignTagDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1404
+ /**
1405
+ * Filter which DesignTags to delete
1406
+ */
1407
+ where?: Prisma.DesignTagWhereInput
1408
+ /**
1409
+ * Limit how many DesignTags to delete.
1410
+ */
1411
+ limit?: number
1412
+ }
1413
+
1414
+ /**
1415
+ * DesignTag without action
1416
+ */
1417
+ export type DesignTagDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1418
+ /**
1419
+ * Select specific fields to fetch from the DesignTag
1420
+ */
1421
+ select?: Prisma.DesignTagSelect<ExtArgs> | null
1422
+ /**
1423
+ * Omit specific fields from the DesignTag
1424
+ */
1425
+ omit?: Prisma.DesignTagOmit<ExtArgs> | null
1426
+ /**
1427
+ * Choose, which related nodes to fetch as well
1428
+ */
1429
+ include?: Prisma.DesignTagInclude<ExtArgs> | null
1430
+ }