@allbluecn/database 0.4.0 → 0.4.1

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 (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1655 @@
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 `Tag` 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"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model Tag
17
+ *
18
+ */
19
+ export type TagModel = runtime.Types.Result.DefaultSelection<Prisma.$TagPayload>
20
+
21
+ export type AggregateTag = {
22
+ _count: TagCountAggregateOutputType | null
23
+ _avg: TagAvgAggregateOutputType | null
24
+ _sum: TagSumAggregateOutputType | null
25
+ _min: TagMinAggregateOutputType | null
26
+ _max: TagMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type TagAvgAggregateOutputType = {
30
+ color: number | null
31
+ sortOrder: number | null
32
+ }
33
+
34
+ export type TagSumAggregateOutputType = {
35
+ color: number | null
36
+ sortOrder: number | null
37
+ }
38
+
39
+ export type TagMinAggregateOutputType = {
40
+ id: string | null
41
+ name: string | null
42
+ color: number | null
43
+ sortOrder: number | null
44
+ isHidden: boolean | null
45
+ userId: string | null
46
+ createdAt: Date | null
47
+ updatedAt: Date | null
48
+ }
49
+
50
+ export type TagMaxAggregateOutputType = {
51
+ id: string | null
52
+ name: string | null
53
+ color: number | null
54
+ sortOrder: number | null
55
+ isHidden: boolean | null
56
+ userId: string | null
57
+ createdAt: Date | null
58
+ updatedAt: Date | null
59
+ }
60
+
61
+ export type TagCountAggregateOutputType = {
62
+ id: number
63
+ name: number
64
+ color: number
65
+ sortOrder: number
66
+ isHidden: number
67
+ userId: number
68
+ createdAt: number
69
+ updatedAt: number
70
+ _all: number
71
+ }
72
+
73
+
74
+ export type TagAvgAggregateInputType = {
75
+ color?: true
76
+ sortOrder?: true
77
+ }
78
+
79
+ export type TagSumAggregateInputType = {
80
+ color?: true
81
+ sortOrder?: true
82
+ }
83
+
84
+ export type TagMinAggregateInputType = {
85
+ id?: true
86
+ name?: true
87
+ color?: true
88
+ sortOrder?: true
89
+ isHidden?: true
90
+ userId?: true
91
+ createdAt?: true
92
+ updatedAt?: true
93
+ }
94
+
95
+ export type TagMaxAggregateInputType = {
96
+ id?: true
97
+ name?: true
98
+ color?: true
99
+ sortOrder?: true
100
+ isHidden?: true
101
+ userId?: true
102
+ createdAt?: true
103
+ updatedAt?: true
104
+ }
105
+
106
+ export type TagCountAggregateInputType = {
107
+ id?: true
108
+ name?: true
109
+ color?: true
110
+ sortOrder?: true
111
+ isHidden?: true
112
+ userId?: true
113
+ createdAt?: true
114
+ updatedAt?: true
115
+ _all?: true
116
+ }
117
+
118
+ export type TagAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
119
+ /**
120
+ * Filter which Tag to aggregate.
121
+ */
122
+ where?: Prisma.TagWhereInput
123
+ /**
124
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
125
+ *
126
+ * Determine the order of Tags to fetch.
127
+ */
128
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
129
+ /**
130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
131
+ *
132
+ * Sets the start position
133
+ */
134
+ cursor?: Prisma.TagWhereUniqueInput
135
+ /**
136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
137
+ *
138
+ * Take `±n` Tags from the position of the cursor.
139
+ */
140
+ take?: number
141
+ /**
142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
143
+ *
144
+ * Skip the first `n` Tags.
145
+ */
146
+ skip?: number
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
149
+ *
150
+ * Count returned Tags
151
+ **/
152
+ _count?: true | TagCountAggregateInputType
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
155
+ *
156
+ * Select which fields to average
157
+ **/
158
+ _avg?: TagAvgAggregateInputType
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
+ *
162
+ * Select which fields to sum
163
+ **/
164
+ _sum?: TagSumAggregateInputType
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
+ *
168
+ * Select which fields to find the minimum value
169
+ **/
170
+ _min?: TagMinAggregateInputType
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Select which fields to find the maximum value
175
+ **/
176
+ _max?: TagMaxAggregateInputType
177
+ }
178
+
179
+ export type GetTagAggregateType<T extends TagAggregateArgs> = {
180
+ [P in keyof T & keyof AggregateTag]: P extends '_count' | 'count'
181
+ ? T[P] extends true
182
+ ? number
183
+ : Prisma.GetScalarType<T[P], AggregateTag[P]>
184
+ : Prisma.GetScalarType<T[P], AggregateTag[P]>
185
+ }
186
+
187
+
188
+
189
+
190
+ export type TagGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
191
+ where?: Prisma.TagWhereInput
192
+ orderBy?: Prisma.TagOrderByWithAggregationInput | Prisma.TagOrderByWithAggregationInput[]
193
+ by: Prisma.TagScalarFieldEnum[] | Prisma.TagScalarFieldEnum
194
+ having?: Prisma.TagScalarWhereWithAggregatesInput
195
+ take?: number
196
+ skip?: number
197
+ _count?: TagCountAggregateInputType | true
198
+ _avg?: TagAvgAggregateInputType
199
+ _sum?: TagSumAggregateInputType
200
+ _min?: TagMinAggregateInputType
201
+ _max?: TagMaxAggregateInputType
202
+ }
203
+
204
+ export type TagGroupByOutputType = {
205
+ id: string
206
+ name: string
207
+ color: number
208
+ sortOrder: number
209
+ isHidden: boolean
210
+ userId: string
211
+ createdAt: Date
212
+ updatedAt: Date
213
+ _count: TagCountAggregateOutputType | null
214
+ _avg: TagAvgAggregateOutputType | null
215
+ _sum: TagSumAggregateOutputType | null
216
+ _min: TagMinAggregateOutputType | null
217
+ _max: TagMaxAggregateOutputType | null
218
+ }
219
+
220
+ export type GetTagGroupByPayload<T extends TagGroupByArgs> = Prisma.PrismaPromise<
221
+ Array<
222
+ Prisma.PickEnumerable<TagGroupByOutputType, T['by']> &
223
+ {
224
+ [P in ((keyof T) & (keyof TagGroupByOutputType))]: P extends '_count'
225
+ ? T[P] extends boolean
226
+ ? number
227
+ : Prisma.GetScalarType<T[P], TagGroupByOutputType[P]>
228
+ : Prisma.GetScalarType<T[P], TagGroupByOutputType[P]>
229
+ }
230
+ >
231
+ >
232
+
233
+
234
+
235
+ export type TagWhereInput = {
236
+ AND?: Prisma.TagWhereInput | Prisma.TagWhereInput[]
237
+ OR?: Prisma.TagWhereInput[]
238
+ NOT?: Prisma.TagWhereInput | Prisma.TagWhereInput[]
239
+ id?: Prisma.StringFilter<"Tag"> | string
240
+ name?: Prisma.StringFilter<"Tag"> | string
241
+ color?: Prisma.IntFilter<"Tag"> | number
242
+ sortOrder?: Prisma.IntFilter<"Tag"> | number
243
+ isHidden?: Prisma.BoolFilter<"Tag"> | boolean
244
+ userId?: Prisma.StringFilter<"Tag"> | string
245
+ createdAt?: Prisma.DateTimeFilter<"Tag"> | Date | string
246
+ updatedAt?: Prisma.DateTimeFilter<"Tag"> | Date | string
247
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
248
+ prdTags?: Prisma.PRDTagListRelationFilter
249
+ }
250
+
251
+ export type TagOrderByWithRelationInput = {
252
+ id?: Prisma.SortOrder
253
+ name?: Prisma.SortOrder
254
+ color?: Prisma.SortOrder
255
+ sortOrder?: Prisma.SortOrder
256
+ isHidden?: Prisma.SortOrder
257
+ userId?: Prisma.SortOrder
258
+ createdAt?: Prisma.SortOrder
259
+ updatedAt?: Prisma.SortOrder
260
+ user?: Prisma.UserOrderByWithRelationInput
261
+ prdTags?: Prisma.PRDTagOrderByRelationAggregateInput
262
+ }
263
+
264
+ export type TagWhereUniqueInput = Prisma.AtLeast<{
265
+ id?: string
266
+ name_userId?: Prisma.TagNameUserIdCompoundUniqueInput
267
+ AND?: Prisma.TagWhereInput | Prisma.TagWhereInput[]
268
+ OR?: Prisma.TagWhereInput[]
269
+ NOT?: Prisma.TagWhereInput | Prisma.TagWhereInput[]
270
+ name?: Prisma.StringFilter<"Tag"> | string
271
+ color?: Prisma.IntFilter<"Tag"> | number
272
+ sortOrder?: Prisma.IntFilter<"Tag"> | number
273
+ isHidden?: Prisma.BoolFilter<"Tag"> | boolean
274
+ userId?: Prisma.StringFilter<"Tag"> | string
275
+ createdAt?: Prisma.DateTimeFilter<"Tag"> | Date | string
276
+ updatedAt?: Prisma.DateTimeFilter<"Tag"> | Date | string
277
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
278
+ prdTags?: Prisma.PRDTagListRelationFilter
279
+ }, "id" | "name_userId">
280
+
281
+ export type TagOrderByWithAggregationInput = {
282
+ id?: Prisma.SortOrder
283
+ name?: Prisma.SortOrder
284
+ color?: Prisma.SortOrder
285
+ sortOrder?: Prisma.SortOrder
286
+ isHidden?: Prisma.SortOrder
287
+ userId?: Prisma.SortOrder
288
+ createdAt?: Prisma.SortOrder
289
+ updatedAt?: Prisma.SortOrder
290
+ _count?: Prisma.TagCountOrderByAggregateInput
291
+ _avg?: Prisma.TagAvgOrderByAggregateInput
292
+ _max?: Prisma.TagMaxOrderByAggregateInput
293
+ _min?: Prisma.TagMinOrderByAggregateInput
294
+ _sum?: Prisma.TagSumOrderByAggregateInput
295
+ }
296
+
297
+ export type TagScalarWhereWithAggregatesInput = {
298
+ AND?: Prisma.TagScalarWhereWithAggregatesInput | Prisma.TagScalarWhereWithAggregatesInput[]
299
+ OR?: Prisma.TagScalarWhereWithAggregatesInput[]
300
+ NOT?: Prisma.TagScalarWhereWithAggregatesInput | Prisma.TagScalarWhereWithAggregatesInput[]
301
+ id?: Prisma.StringWithAggregatesFilter<"Tag"> | string
302
+ name?: Prisma.StringWithAggregatesFilter<"Tag"> | string
303
+ color?: Prisma.IntWithAggregatesFilter<"Tag"> | number
304
+ sortOrder?: Prisma.IntWithAggregatesFilter<"Tag"> | number
305
+ isHidden?: Prisma.BoolWithAggregatesFilter<"Tag"> | boolean
306
+ userId?: Prisma.StringWithAggregatesFilter<"Tag"> | string
307
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Tag"> | Date | string
308
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Tag"> | Date | string
309
+ }
310
+
311
+ export type TagCreateInput = {
312
+ id?: string
313
+ name: string
314
+ color?: number
315
+ sortOrder?: number
316
+ isHidden?: boolean
317
+ createdAt?: Date | string
318
+ updatedAt?: Date | string
319
+ user: Prisma.UserCreateNestedOneWithoutTagsInput
320
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutTagInput
321
+ }
322
+
323
+ export type TagUncheckedCreateInput = {
324
+ id?: string
325
+ name: string
326
+ color?: number
327
+ sortOrder?: number
328
+ isHidden?: boolean
329
+ userId: string
330
+ createdAt?: Date | string
331
+ updatedAt?: Date | string
332
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutTagInput
333
+ }
334
+
335
+ export type TagUpdateInput = {
336
+ id?: Prisma.StringFieldUpdateOperationsInput | string
337
+ name?: Prisma.StringFieldUpdateOperationsInput | string
338
+ color?: Prisma.IntFieldUpdateOperationsInput | number
339
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
340
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
341
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
342
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
343
+ user?: Prisma.UserUpdateOneRequiredWithoutTagsNestedInput
344
+ prdTags?: Prisma.PRDTagUpdateManyWithoutTagNestedInput
345
+ }
346
+
347
+ export type TagUncheckedUpdateInput = {
348
+ id?: Prisma.StringFieldUpdateOperationsInput | string
349
+ name?: Prisma.StringFieldUpdateOperationsInput | string
350
+ color?: Prisma.IntFieldUpdateOperationsInput | number
351
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
352
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
353
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
354
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
355
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
356
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutTagNestedInput
357
+ }
358
+
359
+ export type TagCreateManyInput = {
360
+ id?: string
361
+ name: string
362
+ color?: number
363
+ sortOrder?: number
364
+ isHidden?: boolean
365
+ userId: string
366
+ createdAt?: Date | string
367
+ updatedAt?: Date | string
368
+ }
369
+
370
+ export type TagUpdateManyMutationInput = {
371
+ id?: Prisma.StringFieldUpdateOperationsInput | string
372
+ name?: Prisma.StringFieldUpdateOperationsInput | string
373
+ color?: Prisma.IntFieldUpdateOperationsInput | number
374
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
375
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
376
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
377
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
378
+ }
379
+
380
+ export type TagUncheckedUpdateManyInput = {
381
+ id?: Prisma.StringFieldUpdateOperationsInput | string
382
+ name?: Prisma.StringFieldUpdateOperationsInput | string
383
+ color?: Prisma.IntFieldUpdateOperationsInput | number
384
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
385
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
386
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
387
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
388
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
389
+ }
390
+
391
+ export type TagListRelationFilter = {
392
+ every?: Prisma.TagWhereInput
393
+ some?: Prisma.TagWhereInput
394
+ none?: Prisma.TagWhereInput
395
+ }
396
+
397
+ export type TagOrderByRelationAggregateInput = {
398
+ _count?: Prisma.SortOrder
399
+ }
400
+
401
+ export type TagNameUserIdCompoundUniqueInput = {
402
+ name: string
403
+ userId: string
404
+ }
405
+
406
+ export type TagCountOrderByAggregateInput = {
407
+ id?: Prisma.SortOrder
408
+ name?: Prisma.SortOrder
409
+ color?: Prisma.SortOrder
410
+ sortOrder?: Prisma.SortOrder
411
+ isHidden?: Prisma.SortOrder
412
+ userId?: Prisma.SortOrder
413
+ createdAt?: Prisma.SortOrder
414
+ updatedAt?: Prisma.SortOrder
415
+ }
416
+
417
+ export type TagAvgOrderByAggregateInput = {
418
+ color?: Prisma.SortOrder
419
+ sortOrder?: Prisma.SortOrder
420
+ }
421
+
422
+ export type TagMaxOrderByAggregateInput = {
423
+ id?: Prisma.SortOrder
424
+ name?: Prisma.SortOrder
425
+ color?: Prisma.SortOrder
426
+ sortOrder?: Prisma.SortOrder
427
+ isHidden?: Prisma.SortOrder
428
+ userId?: Prisma.SortOrder
429
+ createdAt?: Prisma.SortOrder
430
+ updatedAt?: Prisma.SortOrder
431
+ }
432
+
433
+ export type TagMinOrderByAggregateInput = {
434
+ id?: Prisma.SortOrder
435
+ name?: Prisma.SortOrder
436
+ color?: Prisma.SortOrder
437
+ sortOrder?: Prisma.SortOrder
438
+ isHidden?: Prisma.SortOrder
439
+ userId?: Prisma.SortOrder
440
+ createdAt?: Prisma.SortOrder
441
+ updatedAt?: Prisma.SortOrder
442
+ }
443
+
444
+ export type TagSumOrderByAggregateInput = {
445
+ color?: Prisma.SortOrder
446
+ sortOrder?: Prisma.SortOrder
447
+ }
448
+
449
+ export type TagScalarRelationFilter = {
450
+ is?: Prisma.TagWhereInput
451
+ isNot?: Prisma.TagWhereInput
452
+ }
453
+
454
+ export type TagCreateNestedManyWithoutUserInput = {
455
+ create?: Prisma.XOR<Prisma.TagCreateWithoutUserInput, Prisma.TagUncheckedCreateWithoutUserInput> | Prisma.TagCreateWithoutUserInput[] | Prisma.TagUncheckedCreateWithoutUserInput[]
456
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutUserInput | Prisma.TagCreateOrConnectWithoutUserInput[]
457
+ createMany?: Prisma.TagCreateManyUserInputEnvelope
458
+ connect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
459
+ }
460
+
461
+ export type TagUncheckedCreateNestedManyWithoutUserInput = {
462
+ create?: Prisma.XOR<Prisma.TagCreateWithoutUserInput, Prisma.TagUncheckedCreateWithoutUserInput> | Prisma.TagCreateWithoutUserInput[] | Prisma.TagUncheckedCreateWithoutUserInput[]
463
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutUserInput | Prisma.TagCreateOrConnectWithoutUserInput[]
464
+ createMany?: Prisma.TagCreateManyUserInputEnvelope
465
+ connect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
466
+ }
467
+
468
+ export type TagUpdateManyWithoutUserNestedInput = {
469
+ create?: Prisma.XOR<Prisma.TagCreateWithoutUserInput, Prisma.TagUncheckedCreateWithoutUserInput> | Prisma.TagCreateWithoutUserInput[] | Prisma.TagUncheckedCreateWithoutUserInput[]
470
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutUserInput | Prisma.TagCreateOrConnectWithoutUserInput[]
471
+ upsert?: Prisma.TagUpsertWithWhereUniqueWithoutUserInput | Prisma.TagUpsertWithWhereUniqueWithoutUserInput[]
472
+ createMany?: Prisma.TagCreateManyUserInputEnvelope
473
+ set?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
474
+ disconnect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
475
+ delete?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
476
+ connect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
477
+ update?: Prisma.TagUpdateWithWhereUniqueWithoutUserInput | Prisma.TagUpdateWithWhereUniqueWithoutUserInput[]
478
+ updateMany?: Prisma.TagUpdateManyWithWhereWithoutUserInput | Prisma.TagUpdateManyWithWhereWithoutUserInput[]
479
+ deleteMany?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
480
+ }
481
+
482
+ export type TagUncheckedUpdateManyWithoutUserNestedInput = {
483
+ create?: Prisma.XOR<Prisma.TagCreateWithoutUserInput, Prisma.TagUncheckedCreateWithoutUserInput> | Prisma.TagCreateWithoutUserInput[] | Prisma.TagUncheckedCreateWithoutUserInput[]
484
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutUserInput | Prisma.TagCreateOrConnectWithoutUserInput[]
485
+ upsert?: Prisma.TagUpsertWithWhereUniqueWithoutUserInput | Prisma.TagUpsertWithWhereUniqueWithoutUserInput[]
486
+ createMany?: Prisma.TagCreateManyUserInputEnvelope
487
+ set?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
488
+ disconnect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
489
+ delete?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
490
+ connect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
491
+ update?: Prisma.TagUpdateWithWhereUniqueWithoutUserInput | Prisma.TagUpdateWithWhereUniqueWithoutUserInput[]
492
+ updateMany?: Prisma.TagUpdateManyWithWhereWithoutUserInput | Prisma.TagUpdateManyWithWhereWithoutUserInput[]
493
+ deleteMany?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
494
+ }
495
+
496
+ export type TagCreateNestedOneWithoutPrdTagsInput = {
497
+ create?: Prisma.XOR<Prisma.TagCreateWithoutPrdTagsInput, Prisma.TagUncheckedCreateWithoutPrdTagsInput>
498
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutPrdTagsInput
499
+ connect?: Prisma.TagWhereUniqueInput
500
+ }
501
+
502
+ export type TagUpdateOneRequiredWithoutPrdTagsNestedInput = {
503
+ create?: Prisma.XOR<Prisma.TagCreateWithoutPrdTagsInput, Prisma.TagUncheckedCreateWithoutPrdTagsInput>
504
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutPrdTagsInput
505
+ upsert?: Prisma.TagUpsertWithoutPrdTagsInput
506
+ connect?: Prisma.TagWhereUniqueInput
507
+ update?: Prisma.XOR<Prisma.XOR<Prisma.TagUpdateToOneWithWhereWithoutPrdTagsInput, Prisma.TagUpdateWithoutPrdTagsInput>, Prisma.TagUncheckedUpdateWithoutPrdTagsInput>
508
+ }
509
+
510
+ export type TagCreateWithoutUserInput = {
511
+ id?: string
512
+ name: string
513
+ color?: number
514
+ sortOrder?: number
515
+ isHidden?: boolean
516
+ createdAt?: Date | string
517
+ updatedAt?: Date | string
518
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutTagInput
519
+ }
520
+
521
+ export type TagUncheckedCreateWithoutUserInput = {
522
+ id?: string
523
+ name: string
524
+ color?: number
525
+ sortOrder?: number
526
+ isHidden?: boolean
527
+ createdAt?: Date | string
528
+ updatedAt?: Date | string
529
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutTagInput
530
+ }
531
+
532
+ export type TagCreateOrConnectWithoutUserInput = {
533
+ where: Prisma.TagWhereUniqueInput
534
+ create: Prisma.XOR<Prisma.TagCreateWithoutUserInput, Prisma.TagUncheckedCreateWithoutUserInput>
535
+ }
536
+
537
+ export type TagCreateManyUserInputEnvelope = {
538
+ data: Prisma.TagCreateManyUserInput | Prisma.TagCreateManyUserInput[]
539
+ skipDuplicates?: boolean
540
+ }
541
+
542
+ export type TagUpsertWithWhereUniqueWithoutUserInput = {
543
+ where: Prisma.TagWhereUniqueInput
544
+ update: Prisma.XOR<Prisma.TagUpdateWithoutUserInput, Prisma.TagUncheckedUpdateWithoutUserInput>
545
+ create: Prisma.XOR<Prisma.TagCreateWithoutUserInput, Prisma.TagUncheckedCreateWithoutUserInput>
546
+ }
547
+
548
+ export type TagUpdateWithWhereUniqueWithoutUserInput = {
549
+ where: Prisma.TagWhereUniqueInput
550
+ data: Prisma.XOR<Prisma.TagUpdateWithoutUserInput, Prisma.TagUncheckedUpdateWithoutUserInput>
551
+ }
552
+
553
+ export type TagUpdateManyWithWhereWithoutUserInput = {
554
+ where: Prisma.TagScalarWhereInput
555
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyWithoutUserInput>
556
+ }
557
+
558
+ export type TagScalarWhereInput = {
559
+ AND?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
560
+ OR?: Prisma.TagScalarWhereInput[]
561
+ NOT?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
562
+ id?: Prisma.StringFilter<"Tag"> | string
563
+ name?: Prisma.StringFilter<"Tag"> | string
564
+ color?: Prisma.IntFilter<"Tag"> | number
565
+ sortOrder?: Prisma.IntFilter<"Tag"> | number
566
+ isHidden?: Prisma.BoolFilter<"Tag"> | boolean
567
+ userId?: Prisma.StringFilter<"Tag"> | string
568
+ createdAt?: Prisma.DateTimeFilter<"Tag"> | Date | string
569
+ updatedAt?: Prisma.DateTimeFilter<"Tag"> | Date | string
570
+ }
571
+
572
+ export type TagCreateWithoutPrdTagsInput = {
573
+ id?: string
574
+ name: string
575
+ color?: number
576
+ sortOrder?: number
577
+ isHidden?: boolean
578
+ createdAt?: Date | string
579
+ updatedAt?: Date | string
580
+ user: Prisma.UserCreateNestedOneWithoutTagsInput
581
+ }
582
+
583
+ export type TagUncheckedCreateWithoutPrdTagsInput = {
584
+ id?: string
585
+ name: string
586
+ color?: number
587
+ sortOrder?: number
588
+ isHidden?: boolean
589
+ userId: string
590
+ createdAt?: Date | string
591
+ updatedAt?: Date | string
592
+ }
593
+
594
+ export type TagCreateOrConnectWithoutPrdTagsInput = {
595
+ where: Prisma.TagWhereUniqueInput
596
+ create: Prisma.XOR<Prisma.TagCreateWithoutPrdTagsInput, Prisma.TagUncheckedCreateWithoutPrdTagsInput>
597
+ }
598
+
599
+ export type TagUpsertWithoutPrdTagsInput = {
600
+ update: Prisma.XOR<Prisma.TagUpdateWithoutPrdTagsInput, Prisma.TagUncheckedUpdateWithoutPrdTagsInput>
601
+ create: Prisma.XOR<Prisma.TagCreateWithoutPrdTagsInput, Prisma.TagUncheckedCreateWithoutPrdTagsInput>
602
+ where?: Prisma.TagWhereInput
603
+ }
604
+
605
+ export type TagUpdateToOneWithWhereWithoutPrdTagsInput = {
606
+ where?: Prisma.TagWhereInput
607
+ data: Prisma.XOR<Prisma.TagUpdateWithoutPrdTagsInput, Prisma.TagUncheckedUpdateWithoutPrdTagsInput>
608
+ }
609
+
610
+ export type TagUpdateWithoutPrdTagsInput = {
611
+ id?: Prisma.StringFieldUpdateOperationsInput | string
612
+ name?: Prisma.StringFieldUpdateOperationsInput | string
613
+ color?: Prisma.IntFieldUpdateOperationsInput | number
614
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
615
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
616
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
617
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
618
+ user?: Prisma.UserUpdateOneRequiredWithoutTagsNestedInput
619
+ }
620
+
621
+ export type TagUncheckedUpdateWithoutPrdTagsInput = {
622
+ id?: Prisma.StringFieldUpdateOperationsInput | string
623
+ name?: Prisma.StringFieldUpdateOperationsInput | string
624
+ color?: Prisma.IntFieldUpdateOperationsInput | number
625
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
626
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
627
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
628
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
629
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
630
+ }
631
+
632
+ export type TagCreateManyUserInput = {
633
+ id?: string
634
+ name: string
635
+ color?: number
636
+ sortOrder?: number
637
+ isHidden?: boolean
638
+ createdAt?: Date | string
639
+ updatedAt?: Date | string
640
+ }
641
+
642
+ export type TagUpdateWithoutUserInput = {
643
+ id?: Prisma.StringFieldUpdateOperationsInput | string
644
+ name?: Prisma.StringFieldUpdateOperationsInput | string
645
+ color?: Prisma.IntFieldUpdateOperationsInput | number
646
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
647
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
648
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
649
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
650
+ prdTags?: Prisma.PRDTagUpdateManyWithoutTagNestedInput
651
+ }
652
+
653
+ export type TagUncheckedUpdateWithoutUserInput = {
654
+ id?: Prisma.StringFieldUpdateOperationsInput | string
655
+ name?: Prisma.StringFieldUpdateOperationsInput | string
656
+ color?: Prisma.IntFieldUpdateOperationsInput | number
657
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
658
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
659
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
660
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
661
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutTagNestedInput
662
+ }
663
+
664
+ export type TagUncheckedUpdateManyWithoutUserInput = {
665
+ id?: Prisma.StringFieldUpdateOperationsInput | string
666
+ name?: Prisma.StringFieldUpdateOperationsInput | string
667
+ color?: Prisma.IntFieldUpdateOperationsInput | number
668
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
669
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
670
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
671
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
672
+ }
673
+
674
+
675
+ /**
676
+ * Count Type TagCountOutputType
677
+ */
678
+
679
+ export type TagCountOutputType = {
680
+ prdTags: number
681
+ }
682
+
683
+ export type TagCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
684
+ prdTags?: boolean | TagCountOutputTypeCountPrdTagsArgs
685
+ }
686
+
687
+ /**
688
+ * TagCountOutputType without action
689
+ */
690
+ export type TagCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
691
+ /**
692
+ * Select specific fields to fetch from the TagCountOutputType
693
+ */
694
+ select?: Prisma.TagCountOutputTypeSelect<ExtArgs> | null
695
+ }
696
+
697
+ /**
698
+ * TagCountOutputType without action
699
+ */
700
+ export type TagCountOutputTypeCountPrdTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
701
+ where?: Prisma.PRDTagWhereInput
702
+ }
703
+
704
+
705
+ export type TagSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
706
+ id?: boolean
707
+ name?: boolean
708
+ color?: boolean
709
+ sortOrder?: boolean
710
+ isHidden?: boolean
711
+ userId?: boolean
712
+ createdAt?: boolean
713
+ updatedAt?: boolean
714
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
715
+ prdTags?: boolean | Prisma.Tag$prdTagsArgs<ExtArgs>
716
+ _count?: boolean | Prisma.TagCountOutputTypeDefaultArgs<ExtArgs>
717
+ }, ExtArgs["result"]["tag"]>
718
+
719
+ export type TagSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
720
+ id?: boolean
721
+ name?: boolean
722
+ color?: boolean
723
+ sortOrder?: boolean
724
+ isHidden?: boolean
725
+ userId?: boolean
726
+ createdAt?: boolean
727
+ updatedAt?: boolean
728
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
729
+ }, ExtArgs["result"]["tag"]>
730
+
731
+ export type TagSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
732
+ id?: boolean
733
+ name?: boolean
734
+ color?: boolean
735
+ sortOrder?: boolean
736
+ isHidden?: boolean
737
+ userId?: boolean
738
+ createdAt?: boolean
739
+ updatedAt?: boolean
740
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
741
+ }, ExtArgs["result"]["tag"]>
742
+
743
+ export type TagSelectScalar = {
744
+ id?: boolean
745
+ name?: boolean
746
+ color?: boolean
747
+ sortOrder?: boolean
748
+ isHidden?: boolean
749
+ userId?: boolean
750
+ createdAt?: boolean
751
+ updatedAt?: boolean
752
+ }
753
+
754
+ export type TagOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "color" | "sortOrder" | "isHidden" | "userId" | "createdAt" | "updatedAt", ExtArgs["result"]["tag"]>
755
+ export type TagInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
756
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
757
+ prdTags?: boolean | Prisma.Tag$prdTagsArgs<ExtArgs>
758
+ _count?: boolean | Prisma.TagCountOutputTypeDefaultArgs<ExtArgs>
759
+ }
760
+ export type TagIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
761
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
762
+ }
763
+ export type TagIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
764
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
765
+ }
766
+
767
+ export type $TagPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
768
+ name: "Tag"
769
+ objects: {
770
+ user: Prisma.$UserPayload<ExtArgs>
771
+ prdTags: Prisma.$PRDTagPayload<ExtArgs>[]
772
+ }
773
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
774
+ id: string
775
+ name: string
776
+ color: number
777
+ sortOrder: number
778
+ isHidden: boolean
779
+ userId: string
780
+ createdAt: Date
781
+ updatedAt: Date
782
+ }, ExtArgs["result"]["tag"]>
783
+ composites: {}
784
+ }
785
+
786
+ export type TagGetPayload<S extends boolean | null | undefined | TagDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TagPayload, S>
787
+
788
+ export type TagCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
789
+ Omit<TagFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
790
+ select?: TagCountAggregateInputType | true
791
+ }
792
+
793
+ export interface TagDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
794
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Tag'], meta: { name: 'Tag' } }
795
+ /**
796
+ * Find zero or one Tag that matches the filter.
797
+ * @param {TagFindUniqueArgs} args - Arguments to find a Tag
798
+ * @example
799
+ * // Get one Tag
800
+ * const tag = await prisma.tag.findUnique({
801
+ * where: {
802
+ * // ... provide filter here
803
+ * }
804
+ * })
805
+ */
806
+ findUnique<T extends TagFindUniqueArgs>(args: Prisma.SelectSubset<T, TagFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
807
+
808
+ /**
809
+ * Find one Tag that matches the filter or throw an error with `error.code='P2025'`
810
+ * if no matches were found.
811
+ * @param {TagFindUniqueOrThrowArgs} args - Arguments to find a Tag
812
+ * @example
813
+ * // Get one Tag
814
+ * const tag = await prisma.tag.findUniqueOrThrow({
815
+ * where: {
816
+ * // ... provide filter here
817
+ * }
818
+ * })
819
+ */
820
+ findUniqueOrThrow<T extends TagFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TagFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
821
+
822
+ /**
823
+ * Find the first Tag that matches the filter.
824
+ * Note, that providing `undefined` is treated as the value not being there.
825
+ * Read more here: https://pris.ly/d/null-undefined
826
+ * @param {TagFindFirstArgs} args - Arguments to find a Tag
827
+ * @example
828
+ * // Get one Tag
829
+ * const tag = await prisma.tag.findFirst({
830
+ * where: {
831
+ * // ... provide filter here
832
+ * }
833
+ * })
834
+ */
835
+ findFirst<T extends TagFindFirstArgs>(args?: Prisma.SelectSubset<T, TagFindFirstArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
836
+
837
+ /**
838
+ * Find the first Tag that matches the filter or
839
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
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 {TagFindFirstOrThrowArgs} args - Arguments to find a Tag
843
+ * @example
844
+ * // Get one Tag
845
+ * const tag = await prisma.tag.findFirstOrThrow({
846
+ * where: {
847
+ * // ... provide filter here
848
+ * }
849
+ * })
850
+ */
851
+ findFirstOrThrow<T extends TagFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TagFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
852
+
853
+ /**
854
+ * Find zero or more Tags that matches the filter.
855
+ * Note, that providing `undefined` is treated as the value not being there.
856
+ * Read more here: https://pris.ly/d/null-undefined
857
+ * @param {TagFindManyArgs} args - Arguments to filter and select certain fields only.
858
+ * @example
859
+ * // Get all Tags
860
+ * const tags = await prisma.tag.findMany()
861
+ *
862
+ * // Get first 10 Tags
863
+ * const tags = await prisma.tag.findMany({ take: 10 })
864
+ *
865
+ * // Only select the `id`
866
+ * const tagWithIdOnly = await prisma.tag.findMany({ select: { id: true } })
867
+ *
868
+ */
869
+ findMany<T extends TagFindManyArgs>(args?: Prisma.SelectSubset<T, TagFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
870
+
871
+ /**
872
+ * Create a Tag.
873
+ * @param {TagCreateArgs} args - Arguments to create a Tag.
874
+ * @example
875
+ * // Create one Tag
876
+ * const Tag = await prisma.tag.create({
877
+ * data: {
878
+ * // ... data to create a Tag
879
+ * }
880
+ * })
881
+ *
882
+ */
883
+ create<T extends TagCreateArgs>(args: Prisma.SelectSubset<T, TagCreateArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
884
+
885
+ /**
886
+ * Create many Tags.
887
+ * @param {TagCreateManyArgs} args - Arguments to create many Tags.
888
+ * @example
889
+ * // Create many Tags
890
+ * const tag = await prisma.tag.createMany({
891
+ * data: [
892
+ * // ... provide data here
893
+ * ]
894
+ * })
895
+ *
896
+ */
897
+ createMany<T extends TagCreateManyArgs>(args?: Prisma.SelectSubset<T, TagCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
898
+
899
+ /**
900
+ * Create many Tags and returns the data saved in the database.
901
+ * @param {TagCreateManyAndReturnArgs} args - Arguments to create many Tags.
902
+ * @example
903
+ * // Create many Tags
904
+ * const tag = await prisma.tag.createManyAndReturn({
905
+ * data: [
906
+ * // ... provide data here
907
+ * ]
908
+ * })
909
+ *
910
+ * // Create many Tags and only return the `id`
911
+ * const tagWithIdOnly = await prisma.tag.createManyAndReturn({
912
+ * select: { id: true },
913
+ * data: [
914
+ * // ... provide data here
915
+ * ]
916
+ * })
917
+ * Note, that providing `undefined` is treated as the value not being there.
918
+ * Read more here: https://pris.ly/d/null-undefined
919
+ *
920
+ */
921
+ createManyAndReturn<T extends TagCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TagCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
922
+
923
+ /**
924
+ * Delete a Tag.
925
+ * @param {TagDeleteArgs} args - Arguments to delete one Tag.
926
+ * @example
927
+ * // Delete one Tag
928
+ * const Tag = await prisma.tag.delete({
929
+ * where: {
930
+ * // ... filter to delete one Tag
931
+ * }
932
+ * })
933
+ *
934
+ */
935
+ delete<T extends TagDeleteArgs>(args: Prisma.SelectSubset<T, TagDeleteArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
936
+
937
+ /**
938
+ * Update one Tag.
939
+ * @param {TagUpdateArgs} args - Arguments to update one Tag.
940
+ * @example
941
+ * // Update one Tag
942
+ * const tag = await prisma.tag.update({
943
+ * where: {
944
+ * // ... provide filter here
945
+ * },
946
+ * data: {
947
+ * // ... provide data here
948
+ * }
949
+ * })
950
+ *
951
+ */
952
+ update<T extends TagUpdateArgs>(args: Prisma.SelectSubset<T, TagUpdateArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
953
+
954
+ /**
955
+ * Delete zero or more Tags.
956
+ * @param {TagDeleteManyArgs} args - Arguments to filter Tags to delete.
957
+ * @example
958
+ * // Delete a few Tags
959
+ * const { count } = await prisma.tag.deleteMany({
960
+ * where: {
961
+ * // ... provide filter here
962
+ * }
963
+ * })
964
+ *
965
+ */
966
+ deleteMany<T extends TagDeleteManyArgs>(args?: Prisma.SelectSubset<T, TagDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
967
+
968
+ /**
969
+ * Update zero or more Tags.
970
+ * Note, that providing `undefined` is treated as the value not being there.
971
+ * Read more here: https://pris.ly/d/null-undefined
972
+ * @param {TagUpdateManyArgs} args - Arguments to update one or more rows.
973
+ * @example
974
+ * // Update many Tags
975
+ * const tag = await prisma.tag.updateMany({
976
+ * where: {
977
+ * // ... provide filter here
978
+ * },
979
+ * data: {
980
+ * // ... provide data here
981
+ * }
982
+ * })
983
+ *
984
+ */
985
+ updateMany<T extends TagUpdateManyArgs>(args: Prisma.SelectSubset<T, TagUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
986
+
987
+ /**
988
+ * Update zero or more Tags and returns the data updated in the database.
989
+ * @param {TagUpdateManyAndReturnArgs} args - Arguments to update many Tags.
990
+ * @example
991
+ * // Update many Tags
992
+ * const tag = await prisma.tag.updateManyAndReturn({
993
+ * where: {
994
+ * // ... provide filter here
995
+ * },
996
+ * data: [
997
+ * // ... provide data here
998
+ * ]
999
+ * })
1000
+ *
1001
+ * // Update zero or more Tags and only return the `id`
1002
+ * const tagWithIdOnly = await prisma.tag.updateManyAndReturn({
1003
+ * select: { id: true },
1004
+ * where: {
1005
+ * // ... provide filter here
1006
+ * },
1007
+ * data: [
1008
+ * // ... provide data here
1009
+ * ]
1010
+ * })
1011
+ * Note, that providing `undefined` is treated as the value not being there.
1012
+ * Read more here: https://pris.ly/d/null-undefined
1013
+ *
1014
+ */
1015
+ updateManyAndReturn<T extends TagUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TagUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1016
+
1017
+ /**
1018
+ * Create or update one Tag.
1019
+ * @param {TagUpsertArgs} args - Arguments to update or create a Tag.
1020
+ * @example
1021
+ * // Update or create a Tag
1022
+ * const tag = await prisma.tag.upsert({
1023
+ * create: {
1024
+ * // ... data to create a Tag
1025
+ * },
1026
+ * update: {
1027
+ * // ... in case it already exists, update
1028
+ * },
1029
+ * where: {
1030
+ * // ... the filter for the Tag we want to update
1031
+ * }
1032
+ * })
1033
+ */
1034
+ upsert<T extends TagUpsertArgs>(args: Prisma.SelectSubset<T, TagUpsertArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1035
+
1036
+
1037
+ /**
1038
+ * Count the number of Tags.
1039
+ * Note, that providing `undefined` is treated as the value not being there.
1040
+ * Read more here: https://pris.ly/d/null-undefined
1041
+ * @param {TagCountArgs} args - Arguments to filter Tags to count.
1042
+ * @example
1043
+ * // Count the number of Tags
1044
+ * const count = await prisma.tag.count({
1045
+ * where: {
1046
+ * // ... the filter for the Tags we want to count
1047
+ * }
1048
+ * })
1049
+ **/
1050
+ count<T extends TagCountArgs>(
1051
+ args?: Prisma.Subset<T, TagCountArgs>,
1052
+ ): Prisma.PrismaPromise<
1053
+ T extends runtime.Types.Utils.Record<'select', any>
1054
+ ? T['select'] extends true
1055
+ ? number
1056
+ : Prisma.GetScalarType<T['select'], TagCountAggregateOutputType>
1057
+ : number
1058
+ >
1059
+
1060
+ /**
1061
+ * Allows you to perform aggregations operations on a Tag.
1062
+ * Note, that providing `undefined` is treated as the value not being there.
1063
+ * Read more here: https://pris.ly/d/null-undefined
1064
+ * @param {TagAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1065
+ * @example
1066
+ * // Ordered by age ascending
1067
+ * // Where email contains prisma.io
1068
+ * // Limited to the 10 users
1069
+ * const aggregations = await prisma.user.aggregate({
1070
+ * _avg: {
1071
+ * age: true,
1072
+ * },
1073
+ * where: {
1074
+ * email: {
1075
+ * contains: "prisma.io",
1076
+ * },
1077
+ * },
1078
+ * orderBy: {
1079
+ * age: "asc",
1080
+ * },
1081
+ * take: 10,
1082
+ * })
1083
+ **/
1084
+ aggregate<T extends TagAggregateArgs>(args: Prisma.Subset<T, TagAggregateArgs>): Prisma.PrismaPromise<GetTagAggregateType<T>>
1085
+
1086
+ /**
1087
+ * Group by Tag.
1088
+ * Note, that providing `undefined` is treated as the value not being there.
1089
+ * Read more here: https://pris.ly/d/null-undefined
1090
+ * @param {TagGroupByArgs} args - Group by arguments.
1091
+ * @example
1092
+ * // Group by city, order by createdAt, get count
1093
+ * const result = await prisma.user.groupBy({
1094
+ * by: ['city', 'createdAt'],
1095
+ * orderBy: {
1096
+ * createdAt: true
1097
+ * },
1098
+ * _count: {
1099
+ * _all: true
1100
+ * },
1101
+ * })
1102
+ *
1103
+ **/
1104
+ groupBy<
1105
+ T extends TagGroupByArgs,
1106
+ HasSelectOrTake extends Prisma.Or<
1107
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1108
+ Prisma.Extends<'take', Prisma.Keys<T>>
1109
+ >,
1110
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1111
+ ? { orderBy: TagGroupByArgs['orderBy'] }
1112
+ : { orderBy?: TagGroupByArgs['orderBy'] },
1113
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1114
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1115
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1116
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1117
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1118
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1119
+ InputErrors extends ByEmpty extends Prisma.True
1120
+ ? `Error: "by" must not be empty.`
1121
+ : HavingValid extends Prisma.False
1122
+ ? {
1123
+ [P in HavingFields]: P extends ByFields
1124
+ ? never
1125
+ : P extends string
1126
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1127
+ : [
1128
+ Error,
1129
+ 'Field ',
1130
+ P,
1131
+ ` in "having" needs to be provided in "by"`,
1132
+ ]
1133
+ }[HavingFields]
1134
+ : 'take' extends Prisma.Keys<T>
1135
+ ? 'orderBy' extends Prisma.Keys<T>
1136
+ ? ByValid extends Prisma.True
1137
+ ? {}
1138
+ : {
1139
+ [P in OrderFields]: P extends ByFields
1140
+ ? never
1141
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1142
+ }[OrderFields]
1143
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1144
+ : 'skip' extends Prisma.Keys<T>
1145
+ ? 'orderBy' extends Prisma.Keys<T>
1146
+ ? ByValid extends Prisma.True
1147
+ ? {}
1148
+ : {
1149
+ [P in OrderFields]: P extends ByFields
1150
+ ? never
1151
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1152
+ }[OrderFields]
1153
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1154
+ : ByValid extends Prisma.True
1155
+ ? {}
1156
+ : {
1157
+ [P in OrderFields]: P extends ByFields
1158
+ ? never
1159
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1160
+ }[OrderFields]
1161
+ >(args: Prisma.SubsetIntersection<T, TagGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTagGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1162
+ /**
1163
+ * Fields of the Tag model
1164
+ */
1165
+ readonly fields: TagFieldRefs;
1166
+ }
1167
+
1168
+ /**
1169
+ * The delegate class that acts as a "Promise-like" for Tag.
1170
+ * Why is this prefixed with `Prisma__`?
1171
+ * Because we want to prevent naming conflicts as mentioned in
1172
+ * https://github.com/prisma/prisma-client-js/issues/707
1173
+ */
1174
+ export interface Prisma__TagClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1175
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1176
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1177
+ prdTags<T extends Prisma.Tag$prdTagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tag$prdTagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PRDTagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1178
+ /**
1179
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1180
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1181
+ * @param onrejected The callback to execute when the Promise is rejected.
1182
+ * @returns A Promise for the completion of which ever callback is executed.
1183
+ */
1184
+ 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>
1185
+ /**
1186
+ * Attaches a callback for only the rejection of the Promise.
1187
+ * @param onrejected The callback to execute when the Promise is rejected.
1188
+ * @returns A Promise for the completion of the callback.
1189
+ */
1190
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1191
+ /**
1192
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1193
+ * resolved value cannot be modified from the callback.
1194
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1195
+ * @returns A Promise for the completion of the callback.
1196
+ */
1197
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1198
+ }
1199
+
1200
+
1201
+
1202
+
1203
+ /**
1204
+ * Fields of the Tag model
1205
+ */
1206
+ export interface TagFieldRefs {
1207
+ readonly id: Prisma.FieldRef<"Tag", 'String'>
1208
+ readonly name: Prisma.FieldRef<"Tag", 'String'>
1209
+ readonly color: Prisma.FieldRef<"Tag", 'Int'>
1210
+ readonly sortOrder: Prisma.FieldRef<"Tag", 'Int'>
1211
+ readonly isHidden: Prisma.FieldRef<"Tag", 'Boolean'>
1212
+ readonly userId: Prisma.FieldRef<"Tag", 'String'>
1213
+ readonly createdAt: Prisma.FieldRef<"Tag", 'DateTime'>
1214
+ readonly updatedAt: Prisma.FieldRef<"Tag", 'DateTime'>
1215
+ }
1216
+
1217
+
1218
+ // Custom InputTypes
1219
+ /**
1220
+ * Tag findUnique
1221
+ */
1222
+ export type TagFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1223
+ /**
1224
+ * Select specific fields to fetch from the Tag
1225
+ */
1226
+ select?: Prisma.TagSelect<ExtArgs> | null
1227
+ /**
1228
+ * Omit specific fields from the Tag
1229
+ */
1230
+ omit?: Prisma.TagOmit<ExtArgs> | null
1231
+ /**
1232
+ * Choose, which related nodes to fetch as well
1233
+ */
1234
+ include?: Prisma.TagInclude<ExtArgs> | null
1235
+ /**
1236
+ * Filter, which Tag to fetch.
1237
+ */
1238
+ where: Prisma.TagWhereUniqueInput
1239
+ }
1240
+
1241
+ /**
1242
+ * Tag findUniqueOrThrow
1243
+ */
1244
+ export type TagFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1245
+ /**
1246
+ * Select specific fields to fetch from the Tag
1247
+ */
1248
+ select?: Prisma.TagSelect<ExtArgs> | null
1249
+ /**
1250
+ * Omit specific fields from the Tag
1251
+ */
1252
+ omit?: Prisma.TagOmit<ExtArgs> | null
1253
+ /**
1254
+ * Choose, which related nodes to fetch as well
1255
+ */
1256
+ include?: Prisma.TagInclude<ExtArgs> | null
1257
+ /**
1258
+ * Filter, which Tag to fetch.
1259
+ */
1260
+ where: Prisma.TagWhereUniqueInput
1261
+ }
1262
+
1263
+ /**
1264
+ * Tag findFirst
1265
+ */
1266
+ export type TagFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1267
+ /**
1268
+ * Select specific fields to fetch from the Tag
1269
+ */
1270
+ select?: Prisma.TagSelect<ExtArgs> | null
1271
+ /**
1272
+ * Omit specific fields from the Tag
1273
+ */
1274
+ omit?: Prisma.TagOmit<ExtArgs> | null
1275
+ /**
1276
+ * Choose, which related nodes to fetch as well
1277
+ */
1278
+ include?: Prisma.TagInclude<ExtArgs> | null
1279
+ /**
1280
+ * Filter, which Tag to fetch.
1281
+ */
1282
+ where?: Prisma.TagWhereInput
1283
+ /**
1284
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1285
+ *
1286
+ * Determine the order of Tags to fetch.
1287
+ */
1288
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
1289
+ /**
1290
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1291
+ *
1292
+ * Sets the position for searching for Tags.
1293
+ */
1294
+ cursor?: Prisma.TagWhereUniqueInput
1295
+ /**
1296
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1297
+ *
1298
+ * Take `±n` Tags from the position of the cursor.
1299
+ */
1300
+ take?: number
1301
+ /**
1302
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1303
+ *
1304
+ * Skip the first `n` Tags.
1305
+ */
1306
+ skip?: number
1307
+ /**
1308
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1309
+ *
1310
+ * Filter by unique combinations of Tags.
1311
+ */
1312
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
1313
+ }
1314
+
1315
+ /**
1316
+ * Tag findFirstOrThrow
1317
+ */
1318
+ export type TagFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1319
+ /**
1320
+ * Select specific fields to fetch from the Tag
1321
+ */
1322
+ select?: Prisma.TagSelect<ExtArgs> | null
1323
+ /**
1324
+ * Omit specific fields from the Tag
1325
+ */
1326
+ omit?: Prisma.TagOmit<ExtArgs> | null
1327
+ /**
1328
+ * Choose, which related nodes to fetch as well
1329
+ */
1330
+ include?: Prisma.TagInclude<ExtArgs> | null
1331
+ /**
1332
+ * Filter, which Tag to fetch.
1333
+ */
1334
+ where?: Prisma.TagWhereInput
1335
+ /**
1336
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1337
+ *
1338
+ * Determine the order of Tags to fetch.
1339
+ */
1340
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
1341
+ /**
1342
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1343
+ *
1344
+ * Sets the position for searching for Tags.
1345
+ */
1346
+ cursor?: Prisma.TagWhereUniqueInput
1347
+ /**
1348
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1349
+ *
1350
+ * Take `±n` Tags from the position of the cursor.
1351
+ */
1352
+ take?: number
1353
+ /**
1354
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1355
+ *
1356
+ * Skip the first `n` Tags.
1357
+ */
1358
+ skip?: number
1359
+ /**
1360
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1361
+ *
1362
+ * Filter by unique combinations of Tags.
1363
+ */
1364
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
1365
+ }
1366
+
1367
+ /**
1368
+ * Tag findMany
1369
+ */
1370
+ export type TagFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1371
+ /**
1372
+ * Select specific fields to fetch from the Tag
1373
+ */
1374
+ select?: Prisma.TagSelect<ExtArgs> | null
1375
+ /**
1376
+ * Omit specific fields from the Tag
1377
+ */
1378
+ omit?: Prisma.TagOmit<ExtArgs> | null
1379
+ /**
1380
+ * Choose, which related nodes to fetch as well
1381
+ */
1382
+ include?: Prisma.TagInclude<ExtArgs> | null
1383
+ /**
1384
+ * Filter, which Tags to fetch.
1385
+ */
1386
+ where?: Prisma.TagWhereInput
1387
+ /**
1388
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1389
+ *
1390
+ * Determine the order of Tags to fetch.
1391
+ */
1392
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
1393
+ /**
1394
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1395
+ *
1396
+ * Sets the position for listing Tags.
1397
+ */
1398
+ cursor?: Prisma.TagWhereUniqueInput
1399
+ /**
1400
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1401
+ *
1402
+ * Take `±n` Tags from the position of the cursor.
1403
+ */
1404
+ take?: number
1405
+ /**
1406
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1407
+ *
1408
+ * Skip the first `n` Tags.
1409
+ */
1410
+ skip?: number
1411
+ /**
1412
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1413
+ *
1414
+ * Filter by unique combinations of Tags.
1415
+ */
1416
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
1417
+ }
1418
+
1419
+ /**
1420
+ * Tag create
1421
+ */
1422
+ export type TagCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1423
+ /**
1424
+ * Select specific fields to fetch from the Tag
1425
+ */
1426
+ select?: Prisma.TagSelect<ExtArgs> | null
1427
+ /**
1428
+ * Omit specific fields from the Tag
1429
+ */
1430
+ omit?: Prisma.TagOmit<ExtArgs> | null
1431
+ /**
1432
+ * Choose, which related nodes to fetch as well
1433
+ */
1434
+ include?: Prisma.TagInclude<ExtArgs> | null
1435
+ /**
1436
+ * The data needed to create a Tag.
1437
+ */
1438
+ data: Prisma.XOR<Prisma.TagCreateInput, Prisma.TagUncheckedCreateInput>
1439
+ }
1440
+
1441
+ /**
1442
+ * Tag createMany
1443
+ */
1444
+ export type TagCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1445
+ /**
1446
+ * The data used to create many Tags.
1447
+ */
1448
+ data: Prisma.TagCreateManyInput | Prisma.TagCreateManyInput[]
1449
+ skipDuplicates?: boolean
1450
+ }
1451
+
1452
+ /**
1453
+ * Tag createManyAndReturn
1454
+ */
1455
+ export type TagCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1456
+ /**
1457
+ * Select specific fields to fetch from the Tag
1458
+ */
1459
+ select?: Prisma.TagSelectCreateManyAndReturn<ExtArgs> | null
1460
+ /**
1461
+ * Omit specific fields from the Tag
1462
+ */
1463
+ omit?: Prisma.TagOmit<ExtArgs> | null
1464
+ /**
1465
+ * The data used to create many Tags.
1466
+ */
1467
+ data: Prisma.TagCreateManyInput | Prisma.TagCreateManyInput[]
1468
+ skipDuplicates?: boolean
1469
+ /**
1470
+ * Choose, which related nodes to fetch as well
1471
+ */
1472
+ include?: Prisma.TagIncludeCreateManyAndReturn<ExtArgs> | null
1473
+ }
1474
+
1475
+ /**
1476
+ * Tag update
1477
+ */
1478
+ export type TagUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1479
+ /**
1480
+ * Select specific fields to fetch from the Tag
1481
+ */
1482
+ select?: Prisma.TagSelect<ExtArgs> | null
1483
+ /**
1484
+ * Omit specific fields from the Tag
1485
+ */
1486
+ omit?: Prisma.TagOmit<ExtArgs> | null
1487
+ /**
1488
+ * Choose, which related nodes to fetch as well
1489
+ */
1490
+ include?: Prisma.TagInclude<ExtArgs> | null
1491
+ /**
1492
+ * The data needed to update a Tag.
1493
+ */
1494
+ data: Prisma.XOR<Prisma.TagUpdateInput, Prisma.TagUncheckedUpdateInput>
1495
+ /**
1496
+ * Choose, which Tag to update.
1497
+ */
1498
+ where: Prisma.TagWhereUniqueInput
1499
+ }
1500
+
1501
+ /**
1502
+ * Tag updateMany
1503
+ */
1504
+ export type TagUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1505
+ /**
1506
+ * The data used to update Tags.
1507
+ */
1508
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyInput>
1509
+ /**
1510
+ * Filter which Tags to update
1511
+ */
1512
+ where?: Prisma.TagWhereInput
1513
+ /**
1514
+ * Limit how many Tags to update.
1515
+ */
1516
+ limit?: number
1517
+ }
1518
+
1519
+ /**
1520
+ * Tag updateManyAndReturn
1521
+ */
1522
+ export type TagUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * Select specific fields to fetch from the Tag
1525
+ */
1526
+ select?: Prisma.TagSelectUpdateManyAndReturn<ExtArgs> | null
1527
+ /**
1528
+ * Omit specific fields from the Tag
1529
+ */
1530
+ omit?: Prisma.TagOmit<ExtArgs> | null
1531
+ /**
1532
+ * The data used to update Tags.
1533
+ */
1534
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyInput>
1535
+ /**
1536
+ * Filter which Tags to update
1537
+ */
1538
+ where?: Prisma.TagWhereInput
1539
+ /**
1540
+ * Limit how many Tags to update.
1541
+ */
1542
+ limit?: number
1543
+ /**
1544
+ * Choose, which related nodes to fetch as well
1545
+ */
1546
+ include?: Prisma.TagIncludeUpdateManyAndReturn<ExtArgs> | null
1547
+ }
1548
+
1549
+ /**
1550
+ * Tag upsert
1551
+ */
1552
+ export type TagUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1553
+ /**
1554
+ * Select specific fields to fetch from the Tag
1555
+ */
1556
+ select?: Prisma.TagSelect<ExtArgs> | null
1557
+ /**
1558
+ * Omit specific fields from the Tag
1559
+ */
1560
+ omit?: Prisma.TagOmit<ExtArgs> | null
1561
+ /**
1562
+ * Choose, which related nodes to fetch as well
1563
+ */
1564
+ include?: Prisma.TagInclude<ExtArgs> | null
1565
+ /**
1566
+ * The filter to search for the Tag to update in case it exists.
1567
+ */
1568
+ where: Prisma.TagWhereUniqueInput
1569
+ /**
1570
+ * In case the Tag found by the `where` argument doesn't exist, create a new Tag with this data.
1571
+ */
1572
+ create: Prisma.XOR<Prisma.TagCreateInput, Prisma.TagUncheckedCreateInput>
1573
+ /**
1574
+ * In case the Tag was found with the provided `where` argument, update it with this data.
1575
+ */
1576
+ update: Prisma.XOR<Prisma.TagUpdateInput, Prisma.TagUncheckedUpdateInput>
1577
+ }
1578
+
1579
+ /**
1580
+ * Tag delete
1581
+ */
1582
+ export type TagDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1583
+ /**
1584
+ * Select specific fields to fetch from the Tag
1585
+ */
1586
+ select?: Prisma.TagSelect<ExtArgs> | null
1587
+ /**
1588
+ * Omit specific fields from the Tag
1589
+ */
1590
+ omit?: Prisma.TagOmit<ExtArgs> | null
1591
+ /**
1592
+ * Choose, which related nodes to fetch as well
1593
+ */
1594
+ include?: Prisma.TagInclude<ExtArgs> | null
1595
+ /**
1596
+ * Filter which Tag to delete.
1597
+ */
1598
+ where: Prisma.TagWhereUniqueInput
1599
+ }
1600
+
1601
+ /**
1602
+ * Tag deleteMany
1603
+ */
1604
+ export type TagDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1605
+ /**
1606
+ * Filter which Tags to delete
1607
+ */
1608
+ where?: Prisma.TagWhereInput
1609
+ /**
1610
+ * Limit how many Tags to delete.
1611
+ */
1612
+ limit?: number
1613
+ }
1614
+
1615
+ /**
1616
+ * Tag.prdTags
1617
+ */
1618
+ export type Tag$prdTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1619
+ /**
1620
+ * Select specific fields to fetch from the PRDTag
1621
+ */
1622
+ select?: Prisma.PRDTagSelect<ExtArgs> | null
1623
+ /**
1624
+ * Omit specific fields from the PRDTag
1625
+ */
1626
+ omit?: Prisma.PRDTagOmit<ExtArgs> | null
1627
+ /**
1628
+ * Choose, which related nodes to fetch as well
1629
+ */
1630
+ include?: Prisma.PRDTagInclude<ExtArgs> | null
1631
+ where?: Prisma.PRDTagWhereInput
1632
+ orderBy?: Prisma.PRDTagOrderByWithRelationInput | Prisma.PRDTagOrderByWithRelationInput[]
1633
+ cursor?: Prisma.PRDTagWhereUniqueInput
1634
+ take?: number
1635
+ skip?: number
1636
+ distinct?: Prisma.PRDTagScalarFieldEnum | Prisma.PRDTagScalarFieldEnum[]
1637
+ }
1638
+
1639
+ /**
1640
+ * Tag without action
1641
+ */
1642
+ export type TagDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1643
+ /**
1644
+ * Select specific fields to fetch from the Tag
1645
+ */
1646
+ select?: Prisma.TagSelect<ExtArgs> | null
1647
+ /**
1648
+ * Omit specific fields from the Tag
1649
+ */
1650
+ omit?: Prisma.TagOmit<ExtArgs> | null
1651
+ /**
1652
+ * Choose, which related nodes to fetch as well
1653
+ */
1654
+ include?: Prisma.TagInclude<ExtArgs> | null
1655
+ }