@allbluecn/database 0.4.0 → 0.4.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 (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,1652 @@
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
+ }
540
+
541
+ export type TagUpsertWithWhereUniqueWithoutUserInput = {
542
+ where: Prisma.TagWhereUniqueInput
543
+ update: Prisma.XOR<Prisma.TagUpdateWithoutUserInput, Prisma.TagUncheckedUpdateWithoutUserInput>
544
+ create: Prisma.XOR<Prisma.TagCreateWithoutUserInput, Prisma.TagUncheckedCreateWithoutUserInput>
545
+ }
546
+
547
+ export type TagUpdateWithWhereUniqueWithoutUserInput = {
548
+ where: Prisma.TagWhereUniqueInput
549
+ data: Prisma.XOR<Prisma.TagUpdateWithoutUserInput, Prisma.TagUncheckedUpdateWithoutUserInput>
550
+ }
551
+
552
+ export type TagUpdateManyWithWhereWithoutUserInput = {
553
+ where: Prisma.TagScalarWhereInput
554
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyWithoutUserInput>
555
+ }
556
+
557
+ export type TagScalarWhereInput = {
558
+ AND?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
559
+ OR?: Prisma.TagScalarWhereInput[]
560
+ NOT?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
561
+ id?: Prisma.StringFilter<"Tag"> | string
562
+ name?: Prisma.StringFilter<"Tag"> | string
563
+ color?: Prisma.IntFilter<"Tag"> | number
564
+ sortOrder?: Prisma.IntFilter<"Tag"> | number
565
+ isHidden?: Prisma.BoolFilter<"Tag"> | boolean
566
+ userId?: Prisma.StringFilter<"Tag"> | string
567
+ createdAt?: Prisma.DateTimeFilter<"Tag"> | Date | string
568
+ updatedAt?: Prisma.DateTimeFilter<"Tag"> | Date | string
569
+ }
570
+
571
+ export type TagCreateWithoutPrdTagsInput = {
572
+ id?: string
573
+ name: string
574
+ color?: number
575
+ sortOrder?: number
576
+ isHidden?: boolean
577
+ createdAt?: Date | string
578
+ updatedAt?: Date | string
579
+ user: Prisma.UserCreateNestedOneWithoutTagsInput
580
+ }
581
+
582
+ export type TagUncheckedCreateWithoutPrdTagsInput = {
583
+ id?: string
584
+ name: string
585
+ color?: number
586
+ sortOrder?: number
587
+ isHidden?: boolean
588
+ userId: string
589
+ createdAt?: Date | string
590
+ updatedAt?: Date | string
591
+ }
592
+
593
+ export type TagCreateOrConnectWithoutPrdTagsInput = {
594
+ where: Prisma.TagWhereUniqueInput
595
+ create: Prisma.XOR<Prisma.TagCreateWithoutPrdTagsInput, Prisma.TagUncheckedCreateWithoutPrdTagsInput>
596
+ }
597
+
598
+ export type TagUpsertWithoutPrdTagsInput = {
599
+ update: Prisma.XOR<Prisma.TagUpdateWithoutPrdTagsInput, Prisma.TagUncheckedUpdateWithoutPrdTagsInput>
600
+ create: Prisma.XOR<Prisma.TagCreateWithoutPrdTagsInput, Prisma.TagUncheckedCreateWithoutPrdTagsInput>
601
+ where?: Prisma.TagWhereInput
602
+ }
603
+
604
+ export type TagUpdateToOneWithWhereWithoutPrdTagsInput = {
605
+ where?: Prisma.TagWhereInput
606
+ data: Prisma.XOR<Prisma.TagUpdateWithoutPrdTagsInput, Prisma.TagUncheckedUpdateWithoutPrdTagsInput>
607
+ }
608
+
609
+ export type TagUpdateWithoutPrdTagsInput = {
610
+ id?: Prisma.StringFieldUpdateOperationsInput | string
611
+ name?: Prisma.StringFieldUpdateOperationsInput | string
612
+ color?: Prisma.IntFieldUpdateOperationsInput | number
613
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
614
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
615
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
616
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
617
+ user?: Prisma.UserUpdateOneRequiredWithoutTagsNestedInput
618
+ }
619
+
620
+ export type TagUncheckedUpdateWithoutPrdTagsInput = {
621
+ id?: Prisma.StringFieldUpdateOperationsInput | string
622
+ name?: Prisma.StringFieldUpdateOperationsInput | string
623
+ color?: Prisma.IntFieldUpdateOperationsInput | number
624
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
625
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
626
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
627
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
628
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
629
+ }
630
+
631
+ export type TagCreateManyUserInput = {
632
+ id?: string
633
+ name: string
634
+ color?: number
635
+ sortOrder?: number
636
+ isHidden?: boolean
637
+ createdAt?: Date | string
638
+ updatedAt?: Date | string
639
+ }
640
+
641
+ export type TagUpdateWithoutUserInput = {
642
+ id?: Prisma.StringFieldUpdateOperationsInput | string
643
+ name?: Prisma.StringFieldUpdateOperationsInput | string
644
+ color?: Prisma.IntFieldUpdateOperationsInput | number
645
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
646
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
647
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
648
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
649
+ prdTags?: Prisma.PRDTagUpdateManyWithoutTagNestedInput
650
+ }
651
+
652
+ export type TagUncheckedUpdateWithoutUserInput = {
653
+ id?: Prisma.StringFieldUpdateOperationsInput | string
654
+ name?: Prisma.StringFieldUpdateOperationsInput | string
655
+ color?: Prisma.IntFieldUpdateOperationsInput | number
656
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
657
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
658
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
659
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
660
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutTagNestedInput
661
+ }
662
+
663
+ export type TagUncheckedUpdateManyWithoutUserInput = {
664
+ id?: Prisma.StringFieldUpdateOperationsInput | string
665
+ name?: Prisma.StringFieldUpdateOperationsInput | string
666
+ color?: Prisma.IntFieldUpdateOperationsInput | number
667
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
668
+ isHidden?: Prisma.BoolFieldUpdateOperationsInput | boolean
669
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
670
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
671
+ }
672
+
673
+
674
+ /**
675
+ * Count Type TagCountOutputType
676
+ */
677
+
678
+ export type TagCountOutputType = {
679
+ prdTags: number
680
+ }
681
+
682
+ export type TagCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
683
+ prdTags?: boolean | TagCountOutputTypeCountPrdTagsArgs
684
+ }
685
+
686
+ /**
687
+ * TagCountOutputType without action
688
+ */
689
+ export type TagCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
690
+ /**
691
+ * Select specific fields to fetch from the TagCountOutputType
692
+ */
693
+ select?: Prisma.TagCountOutputTypeSelect<ExtArgs> | null
694
+ }
695
+
696
+ /**
697
+ * TagCountOutputType without action
698
+ */
699
+ export type TagCountOutputTypeCountPrdTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
700
+ where?: Prisma.PRDTagWhereInput
701
+ }
702
+
703
+
704
+ export type TagSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
705
+ id?: boolean
706
+ name?: boolean
707
+ color?: boolean
708
+ sortOrder?: boolean
709
+ isHidden?: boolean
710
+ userId?: boolean
711
+ createdAt?: boolean
712
+ updatedAt?: boolean
713
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
714
+ prdTags?: boolean | Prisma.Tag$prdTagsArgs<ExtArgs>
715
+ _count?: boolean | Prisma.TagCountOutputTypeDefaultArgs<ExtArgs>
716
+ }, ExtArgs["result"]["tag"]>
717
+
718
+ export type TagSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
719
+ id?: boolean
720
+ name?: boolean
721
+ color?: boolean
722
+ sortOrder?: boolean
723
+ isHidden?: boolean
724
+ userId?: boolean
725
+ createdAt?: boolean
726
+ updatedAt?: boolean
727
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
728
+ }, ExtArgs["result"]["tag"]>
729
+
730
+ export type TagSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
731
+ id?: boolean
732
+ name?: boolean
733
+ color?: boolean
734
+ sortOrder?: boolean
735
+ isHidden?: boolean
736
+ userId?: boolean
737
+ createdAt?: boolean
738
+ updatedAt?: boolean
739
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
740
+ }, ExtArgs["result"]["tag"]>
741
+
742
+ export type TagSelectScalar = {
743
+ id?: boolean
744
+ name?: boolean
745
+ color?: boolean
746
+ sortOrder?: boolean
747
+ isHidden?: boolean
748
+ userId?: boolean
749
+ createdAt?: boolean
750
+ updatedAt?: boolean
751
+ }
752
+
753
+ 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"]>
754
+ export type TagInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
755
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
756
+ prdTags?: boolean | Prisma.Tag$prdTagsArgs<ExtArgs>
757
+ _count?: boolean | Prisma.TagCountOutputTypeDefaultArgs<ExtArgs>
758
+ }
759
+ export type TagIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
760
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
761
+ }
762
+ export type TagIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
763
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
764
+ }
765
+
766
+ export type $TagPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
767
+ name: "Tag"
768
+ objects: {
769
+ user: Prisma.$UserPayload<ExtArgs>
770
+ prdTags: Prisma.$PRDTagPayload<ExtArgs>[]
771
+ }
772
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
773
+ id: string
774
+ name: string
775
+ color: number
776
+ sortOrder: number
777
+ isHidden: boolean
778
+ userId: string
779
+ createdAt: Date
780
+ updatedAt: Date
781
+ }, ExtArgs["result"]["tag"]>
782
+ composites: {}
783
+ }
784
+
785
+ export type TagGetPayload<S extends boolean | null | undefined | TagDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TagPayload, S>
786
+
787
+ export type TagCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
788
+ Omit<TagFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
789
+ select?: TagCountAggregateInputType | true
790
+ }
791
+
792
+ export interface TagDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
793
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Tag'], meta: { name: 'Tag' } }
794
+ /**
795
+ * Find zero or one Tag that matches the filter.
796
+ * @param {TagFindUniqueArgs} args - Arguments to find a Tag
797
+ * @example
798
+ * // Get one Tag
799
+ * const tag = await prisma.tag.findUnique({
800
+ * where: {
801
+ * // ... provide filter here
802
+ * }
803
+ * })
804
+ */
805
+ 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>
806
+
807
+ /**
808
+ * Find one Tag that matches the filter or throw an error with `error.code='P2025'`
809
+ * if no matches were found.
810
+ * @param {TagFindUniqueOrThrowArgs} args - Arguments to find a Tag
811
+ * @example
812
+ * // Get one Tag
813
+ * const tag = await prisma.tag.findUniqueOrThrow({
814
+ * where: {
815
+ * // ... provide filter here
816
+ * }
817
+ * })
818
+ */
819
+ 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>
820
+
821
+ /**
822
+ * Find the first Tag that matches the filter.
823
+ * Note, that providing `undefined` is treated as the value not being there.
824
+ * Read more here: https://pris.ly/d/null-undefined
825
+ * @param {TagFindFirstArgs} args - Arguments to find a Tag
826
+ * @example
827
+ * // Get one Tag
828
+ * const tag = await prisma.tag.findFirst({
829
+ * where: {
830
+ * // ... provide filter here
831
+ * }
832
+ * })
833
+ */
834
+ 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>
835
+
836
+ /**
837
+ * Find the first Tag that matches the filter or
838
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
839
+ * Note, that providing `undefined` is treated as the value not being there.
840
+ * Read more here: https://pris.ly/d/null-undefined
841
+ * @param {TagFindFirstOrThrowArgs} args - Arguments to find a Tag
842
+ * @example
843
+ * // Get one Tag
844
+ * const tag = await prisma.tag.findFirstOrThrow({
845
+ * where: {
846
+ * // ... provide filter here
847
+ * }
848
+ * })
849
+ */
850
+ 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>
851
+
852
+ /**
853
+ * Find zero or more Tags that matches the filter.
854
+ * Note, that providing `undefined` is treated as the value not being there.
855
+ * Read more here: https://pris.ly/d/null-undefined
856
+ * @param {TagFindManyArgs} args - Arguments to filter and select certain fields only.
857
+ * @example
858
+ * // Get all Tags
859
+ * const tags = await prisma.tag.findMany()
860
+ *
861
+ * // Get first 10 Tags
862
+ * const tags = await prisma.tag.findMany({ take: 10 })
863
+ *
864
+ * // Only select the `id`
865
+ * const tagWithIdOnly = await prisma.tag.findMany({ select: { id: true } })
866
+ *
867
+ */
868
+ findMany<T extends TagFindManyArgs>(args?: Prisma.SelectSubset<T, TagFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
869
+
870
+ /**
871
+ * Create a Tag.
872
+ * @param {TagCreateArgs} args - Arguments to create a Tag.
873
+ * @example
874
+ * // Create one Tag
875
+ * const Tag = await prisma.tag.create({
876
+ * data: {
877
+ * // ... data to create a Tag
878
+ * }
879
+ * })
880
+ *
881
+ */
882
+ 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>
883
+
884
+ /**
885
+ * Create many Tags.
886
+ * @param {TagCreateManyArgs} args - Arguments to create many Tags.
887
+ * @example
888
+ * // Create many Tags
889
+ * const tag = await prisma.tag.createMany({
890
+ * data: [
891
+ * // ... provide data here
892
+ * ]
893
+ * })
894
+ *
895
+ */
896
+ createMany<T extends TagCreateManyArgs>(args?: Prisma.SelectSubset<T, TagCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
897
+
898
+ /**
899
+ * Create many Tags and returns the data saved in the database.
900
+ * @param {TagCreateManyAndReturnArgs} args - Arguments to create many Tags.
901
+ * @example
902
+ * // Create many Tags
903
+ * const tag = await prisma.tag.createManyAndReturn({
904
+ * data: [
905
+ * // ... provide data here
906
+ * ]
907
+ * })
908
+ *
909
+ * // Create many Tags and only return the `id`
910
+ * const tagWithIdOnly = await prisma.tag.createManyAndReturn({
911
+ * select: { id: true },
912
+ * data: [
913
+ * // ... provide data here
914
+ * ]
915
+ * })
916
+ * Note, that providing `undefined` is treated as the value not being there.
917
+ * Read more here: https://pris.ly/d/null-undefined
918
+ *
919
+ */
920
+ createManyAndReturn<T extends TagCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TagCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
921
+
922
+ /**
923
+ * Delete a Tag.
924
+ * @param {TagDeleteArgs} args - Arguments to delete one Tag.
925
+ * @example
926
+ * // Delete one Tag
927
+ * const Tag = await prisma.tag.delete({
928
+ * where: {
929
+ * // ... filter to delete one Tag
930
+ * }
931
+ * })
932
+ *
933
+ */
934
+ 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>
935
+
936
+ /**
937
+ * Update one Tag.
938
+ * @param {TagUpdateArgs} args - Arguments to update one Tag.
939
+ * @example
940
+ * // Update one Tag
941
+ * const tag = await prisma.tag.update({
942
+ * where: {
943
+ * // ... provide filter here
944
+ * },
945
+ * data: {
946
+ * // ... provide data here
947
+ * }
948
+ * })
949
+ *
950
+ */
951
+ 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>
952
+
953
+ /**
954
+ * Delete zero or more Tags.
955
+ * @param {TagDeleteManyArgs} args - Arguments to filter Tags to delete.
956
+ * @example
957
+ * // Delete a few Tags
958
+ * const { count } = await prisma.tag.deleteMany({
959
+ * where: {
960
+ * // ... provide filter here
961
+ * }
962
+ * })
963
+ *
964
+ */
965
+ deleteMany<T extends TagDeleteManyArgs>(args?: Prisma.SelectSubset<T, TagDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
966
+
967
+ /**
968
+ * Update zero or more Tags.
969
+ * Note, that providing `undefined` is treated as the value not being there.
970
+ * Read more here: https://pris.ly/d/null-undefined
971
+ * @param {TagUpdateManyArgs} args - Arguments to update one or more rows.
972
+ * @example
973
+ * // Update many Tags
974
+ * const tag = await prisma.tag.updateMany({
975
+ * where: {
976
+ * // ... provide filter here
977
+ * },
978
+ * data: {
979
+ * // ... provide data here
980
+ * }
981
+ * })
982
+ *
983
+ */
984
+ updateMany<T extends TagUpdateManyArgs>(args: Prisma.SelectSubset<T, TagUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
985
+
986
+ /**
987
+ * Update zero or more Tags and returns the data updated in the database.
988
+ * @param {TagUpdateManyAndReturnArgs} args - Arguments to update many Tags.
989
+ * @example
990
+ * // Update many Tags
991
+ * const tag = await prisma.tag.updateManyAndReturn({
992
+ * where: {
993
+ * // ... provide filter here
994
+ * },
995
+ * data: [
996
+ * // ... provide data here
997
+ * ]
998
+ * })
999
+ *
1000
+ * // Update zero or more Tags and only return the `id`
1001
+ * const tagWithIdOnly = await prisma.tag.updateManyAndReturn({
1002
+ * select: { id: true },
1003
+ * where: {
1004
+ * // ... provide filter here
1005
+ * },
1006
+ * data: [
1007
+ * // ... provide data here
1008
+ * ]
1009
+ * })
1010
+ * Note, that providing `undefined` is treated as the value not being there.
1011
+ * Read more here: https://pris.ly/d/null-undefined
1012
+ *
1013
+ */
1014
+ updateManyAndReturn<T extends TagUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TagUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1015
+
1016
+ /**
1017
+ * Create or update one Tag.
1018
+ * @param {TagUpsertArgs} args - Arguments to update or create a Tag.
1019
+ * @example
1020
+ * // Update or create a Tag
1021
+ * const tag = await prisma.tag.upsert({
1022
+ * create: {
1023
+ * // ... data to create a Tag
1024
+ * },
1025
+ * update: {
1026
+ * // ... in case it already exists, update
1027
+ * },
1028
+ * where: {
1029
+ * // ... the filter for the Tag we want to update
1030
+ * }
1031
+ * })
1032
+ */
1033
+ 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>
1034
+
1035
+
1036
+ /**
1037
+ * Count the number of Tags.
1038
+ * Note, that providing `undefined` is treated as the value not being there.
1039
+ * Read more here: https://pris.ly/d/null-undefined
1040
+ * @param {TagCountArgs} args - Arguments to filter Tags to count.
1041
+ * @example
1042
+ * // Count the number of Tags
1043
+ * const count = await prisma.tag.count({
1044
+ * where: {
1045
+ * // ... the filter for the Tags we want to count
1046
+ * }
1047
+ * })
1048
+ **/
1049
+ count<T extends TagCountArgs>(
1050
+ args?: Prisma.Subset<T, TagCountArgs>,
1051
+ ): Prisma.PrismaPromise<
1052
+ T extends runtime.Types.Utils.Record<'select', any>
1053
+ ? T['select'] extends true
1054
+ ? number
1055
+ : Prisma.GetScalarType<T['select'], TagCountAggregateOutputType>
1056
+ : number
1057
+ >
1058
+
1059
+ /**
1060
+ * Allows you to perform aggregations operations on a Tag.
1061
+ * Note, that providing `undefined` is treated as the value not being there.
1062
+ * Read more here: https://pris.ly/d/null-undefined
1063
+ * @param {TagAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1064
+ * @example
1065
+ * // Ordered by age ascending
1066
+ * // Where email contains prisma.io
1067
+ * // Limited to the 10 users
1068
+ * const aggregations = await prisma.user.aggregate({
1069
+ * _avg: {
1070
+ * age: true,
1071
+ * },
1072
+ * where: {
1073
+ * email: {
1074
+ * contains: "prisma.io",
1075
+ * },
1076
+ * },
1077
+ * orderBy: {
1078
+ * age: "asc",
1079
+ * },
1080
+ * take: 10,
1081
+ * })
1082
+ **/
1083
+ aggregate<T extends TagAggregateArgs>(args: Prisma.Subset<T, TagAggregateArgs>): Prisma.PrismaPromise<GetTagAggregateType<T>>
1084
+
1085
+ /**
1086
+ * Group by Tag.
1087
+ * Note, that providing `undefined` is treated as the value not being there.
1088
+ * Read more here: https://pris.ly/d/null-undefined
1089
+ * @param {TagGroupByArgs} args - Group by arguments.
1090
+ * @example
1091
+ * // Group by city, order by createdAt, get count
1092
+ * const result = await prisma.user.groupBy({
1093
+ * by: ['city', 'createdAt'],
1094
+ * orderBy: {
1095
+ * createdAt: true
1096
+ * },
1097
+ * _count: {
1098
+ * _all: true
1099
+ * },
1100
+ * })
1101
+ *
1102
+ **/
1103
+ groupBy<
1104
+ T extends TagGroupByArgs,
1105
+ HasSelectOrTake extends Prisma.Or<
1106
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1107
+ Prisma.Extends<'take', Prisma.Keys<T>>
1108
+ >,
1109
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1110
+ ? { orderBy: TagGroupByArgs['orderBy'] }
1111
+ : { orderBy?: TagGroupByArgs['orderBy'] },
1112
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1113
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1114
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1115
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1116
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1117
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1118
+ InputErrors extends ByEmpty extends Prisma.True
1119
+ ? `Error: "by" must not be empty.`
1120
+ : HavingValid extends Prisma.False
1121
+ ? {
1122
+ [P in HavingFields]: P extends ByFields
1123
+ ? never
1124
+ : P extends string
1125
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1126
+ : [
1127
+ Error,
1128
+ 'Field ',
1129
+ P,
1130
+ ` in "having" needs to be provided in "by"`,
1131
+ ]
1132
+ }[HavingFields]
1133
+ : 'take' extends Prisma.Keys<T>
1134
+ ? 'orderBy' extends Prisma.Keys<T>
1135
+ ? ByValid extends Prisma.True
1136
+ ? {}
1137
+ : {
1138
+ [P in OrderFields]: P extends ByFields
1139
+ ? never
1140
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1141
+ }[OrderFields]
1142
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1143
+ : 'skip' extends Prisma.Keys<T>
1144
+ ? 'orderBy' extends Prisma.Keys<T>
1145
+ ? ByValid extends Prisma.True
1146
+ ? {}
1147
+ : {
1148
+ [P in OrderFields]: P extends ByFields
1149
+ ? never
1150
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1151
+ }[OrderFields]
1152
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1153
+ : ByValid extends Prisma.True
1154
+ ? {}
1155
+ : {
1156
+ [P in OrderFields]: P extends ByFields
1157
+ ? never
1158
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1159
+ }[OrderFields]
1160
+ >(args: Prisma.SubsetIntersection<T, TagGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTagGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1161
+ /**
1162
+ * Fields of the Tag model
1163
+ */
1164
+ readonly fields: TagFieldRefs;
1165
+ }
1166
+
1167
+ /**
1168
+ * The delegate class that acts as a "Promise-like" for Tag.
1169
+ * Why is this prefixed with `Prisma__`?
1170
+ * Because we want to prevent naming conflicts as mentioned in
1171
+ * https://github.com/prisma/prisma-client-js/issues/707
1172
+ */
1173
+ export interface Prisma__TagClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1174
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1175
+ 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>
1176
+ 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>
1177
+ /**
1178
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1179
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1180
+ * @param onrejected The callback to execute when the Promise is rejected.
1181
+ * @returns A Promise for the completion of which ever callback is executed.
1182
+ */
1183
+ 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>
1184
+ /**
1185
+ * Attaches a callback for only the rejection of the Promise.
1186
+ * @param onrejected The callback to execute when the Promise is rejected.
1187
+ * @returns A Promise for the completion of the callback.
1188
+ */
1189
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1190
+ /**
1191
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1192
+ * resolved value cannot be modified from the callback.
1193
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1194
+ * @returns A Promise for the completion of the callback.
1195
+ */
1196
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1197
+ }
1198
+
1199
+
1200
+
1201
+
1202
+ /**
1203
+ * Fields of the Tag model
1204
+ */
1205
+ export interface TagFieldRefs {
1206
+ readonly id: Prisma.FieldRef<"Tag", 'String'>
1207
+ readonly name: Prisma.FieldRef<"Tag", 'String'>
1208
+ readonly color: Prisma.FieldRef<"Tag", 'Int'>
1209
+ readonly sortOrder: Prisma.FieldRef<"Tag", 'Int'>
1210
+ readonly isHidden: Prisma.FieldRef<"Tag", 'Boolean'>
1211
+ readonly userId: Prisma.FieldRef<"Tag", 'String'>
1212
+ readonly createdAt: Prisma.FieldRef<"Tag", 'DateTime'>
1213
+ readonly updatedAt: Prisma.FieldRef<"Tag", 'DateTime'>
1214
+ }
1215
+
1216
+
1217
+ // Custom InputTypes
1218
+ /**
1219
+ * Tag findUnique
1220
+ */
1221
+ export type TagFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the Tag
1224
+ */
1225
+ select?: Prisma.TagSelect<ExtArgs> | null
1226
+ /**
1227
+ * Omit specific fields from the Tag
1228
+ */
1229
+ omit?: Prisma.TagOmit<ExtArgs> | null
1230
+ /**
1231
+ * Choose, which related nodes to fetch as well
1232
+ */
1233
+ include?: Prisma.TagInclude<ExtArgs> | null
1234
+ /**
1235
+ * Filter, which Tag to fetch.
1236
+ */
1237
+ where: Prisma.TagWhereUniqueInput
1238
+ }
1239
+
1240
+ /**
1241
+ * Tag findUniqueOrThrow
1242
+ */
1243
+ export type TagFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * Select specific fields to fetch from the Tag
1246
+ */
1247
+ select?: Prisma.TagSelect<ExtArgs> | null
1248
+ /**
1249
+ * Omit specific fields from the Tag
1250
+ */
1251
+ omit?: Prisma.TagOmit<ExtArgs> | null
1252
+ /**
1253
+ * Choose, which related nodes to fetch as well
1254
+ */
1255
+ include?: Prisma.TagInclude<ExtArgs> | null
1256
+ /**
1257
+ * Filter, which Tag to fetch.
1258
+ */
1259
+ where: Prisma.TagWhereUniqueInput
1260
+ }
1261
+
1262
+ /**
1263
+ * Tag findFirst
1264
+ */
1265
+ export type TagFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1266
+ /**
1267
+ * Select specific fields to fetch from the Tag
1268
+ */
1269
+ select?: Prisma.TagSelect<ExtArgs> | null
1270
+ /**
1271
+ * Omit specific fields from the Tag
1272
+ */
1273
+ omit?: Prisma.TagOmit<ExtArgs> | null
1274
+ /**
1275
+ * Choose, which related nodes to fetch as well
1276
+ */
1277
+ include?: Prisma.TagInclude<ExtArgs> | null
1278
+ /**
1279
+ * Filter, which Tag to fetch.
1280
+ */
1281
+ where?: Prisma.TagWhereInput
1282
+ /**
1283
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1284
+ *
1285
+ * Determine the order of Tags to fetch.
1286
+ */
1287
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
1288
+ /**
1289
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1290
+ *
1291
+ * Sets the position for searching for Tags.
1292
+ */
1293
+ cursor?: Prisma.TagWhereUniqueInput
1294
+ /**
1295
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1296
+ *
1297
+ * Take `±n` Tags from the position of the cursor.
1298
+ */
1299
+ take?: number
1300
+ /**
1301
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1302
+ *
1303
+ * Skip the first `n` Tags.
1304
+ */
1305
+ skip?: number
1306
+ /**
1307
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1308
+ *
1309
+ * Filter by unique combinations of Tags.
1310
+ */
1311
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
1312
+ }
1313
+
1314
+ /**
1315
+ * Tag findFirstOrThrow
1316
+ */
1317
+ export type TagFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
+ /**
1319
+ * Select specific fields to fetch from the Tag
1320
+ */
1321
+ select?: Prisma.TagSelect<ExtArgs> | null
1322
+ /**
1323
+ * Omit specific fields from the Tag
1324
+ */
1325
+ omit?: Prisma.TagOmit<ExtArgs> | null
1326
+ /**
1327
+ * Choose, which related nodes to fetch as well
1328
+ */
1329
+ include?: Prisma.TagInclude<ExtArgs> | null
1330
+ /**
1331
+ * Filter, which Tag to fetch.
1332
+ */
1333
+ where?: Prisma.TagWhereInput
1334
+ /**
1335
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1336
+ *
1337
+ * Determine the order of Tags to fetch.
1338
+ */
1339
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
1340
+ /**
1341
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1342
+ *
1343
+ * Sets the position for searching for Tags.
1344
+ */
1345
+ cursor?: Prisma.TagWhereUniqueInput
1346
+ /**
1347
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1348
+ *
1349
+ * Take `±n` Tags from the position of the cursor.
1350
+ */
1351
+ take?: number
1352
+ /**
1353
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1354
+ *
1355
+ * Skip the first `n` Tags.
1356
+ */
1357
+ skip?: number
1358
+ /**
1359
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1360
+ *
1361
+ * Filter by unique combinations of Tags.
1362
+ */
1363
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
1364
+ }
1365
+
1366
+ /**
1367
+ * Tag findMany
1368
+ */
1369
+ export type TagFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1370
+ /**
1371
+ * Select specific fields to fetch from the Tag
1372
+ */
1373
+ select?: Prisma.TagSelect<ExtArgs> | null
1374
+ /**
1375
+ * Omit specific fields from the Tag
1376
+ */
1377
+ omit?: Prisma.TagOmit<ExtArgs> | null
1378
+ /**
1379
+ * Choose, which related nodes to fetch as well
1380
+ */
1381
+ include?: Prisma.TagInclude<ExtArgs> | null
1382
+ /**
1383
+ * Filter, which Tags to fetch.
1384
+ */
1385
+ where?: Prisma.TagWhereInput
1386
+ /**
1387
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1388
+ *
1389
+ * Determine the order of Tags to fetch.
1390
+ */
1391
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
1392
+ /**
1393
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1394
+ *
1395
+ * Sets the position for listing Tags.
1396
+ */
1397
+ cursor?: Prisma.TagWhereUniqueInput
1398
+ /**
1399
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1400
+ *
1401
+ * Take `±n` Tags from the position of the cursor.
1402
+ */
1403
+ take?: number
1404
+ /**
1405
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1406
+ *
1407
+ * Skip the first `n` Tags.
1408
+ */
1409
+ skip?: number
1410
+ /**
1411
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1412
+ *
1413
+ * Filter by unique combinations of Tags.
1414
+ */
1415
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
1416
+ }
1417
+
1418
+ /**
1419
+ * Tag create
1420
+ */
1421
+ export type TagCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1422
+ /**
1423
+ * Select specific fields to fetch from the Tag
1424
+ */
1425
+ select?: Prisma.TagSelect<ExtArgs> | null
1426
+ /**
1427
+ * Omit specific fields from the Tag
1428
+ */
1429
+ omit?: Prisma.TagOmit<ExtArgs> | null
1430
+ /**
1431
+ * Choose, which related nodes to fetch as well
1432
+ */
1433
+ include?: Prisma.TagInclude<ExtArgs> | null
1434
+ /**
1435
+ * The data needed to create a Tag.
1436
+ */
1437
+ data: Prisma.XOR<Prisma.TagCreateInput, Prisma.TagUncheckedCreateInput>
1438
+ }
1439
+
1440
+ /**
1441
+ * Tag createMany
1442
+ */
1443
+ export type TagCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1444
+ /**
1445
+ * The data used to create many Tags.
1446
+ */
1447
+ data: Prisma.TagCreateManyInput | Prisma.TagCreateManyInput[]
1448
+ }
1449
+
1450
+ /**
1451
+ * Tag createManyAndReturn
1452
+ */
1453
+ export type TagCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1454
+ /**
1455
+ * Select specific fields to fetch from the Tag
1456
+ */
1457
+ select?: Prisma.TagSelectCreateManyAndReturn<ExtArgs> | null
1458
+ /**
1459
+ * Omit specific fields from the Tag
1460
+ */
1461
+ omit?: Prisma.TagOmit<ExtArgs> | null
1462
+ /**
1463
+ * The data used to create many Tags.
1464
+ */
1465
+ data: Prisma.TagCreateManyInput | Prisma.TagCreateManyInput[]
1466
+ /**
1467
+ * Choose, which related nodes to fetch as well
1468
+ */
1469
+ include?: Prisma.TagIncludeCreateManyAndReturn<ExtArgs> | null
1470
+ }
1471
+
1472
+ /**
1473
+ * Tag update
1474
+ */
1475
+ export type TagUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1476
+ /**
1477
+ * Select specific fields to fetch from the Tag
1478
+ */
1479
+ select?: Prisma.TagSelect<ExtArgs> | null
1480
+ /**
1481
+ * Omit specific fields from the Tag
1482
+ */
1483
+ omit?: Prisma.TagOmit<ExtArgs> | null
1484
+ /**
1485
+ * Choose, which related nodes to fetch as well
1486
+ */
1487
+ include?: Prisma.TagInclude<ExtArgs> | null
1488
+ /**
1489
+ * The data needed to update a Tag.
1490
+ */
1491
+ data: Prisma.XOR<Prisma.TagUpdateInput, Prisma.TagUncheckedUpdateInput>
1492
+ /**
1493
+ * Choose, which Tag to update.
1494
+ */
1495
+ where: Prisma.TagWhereUniqueInput
1496
+ }
1497
+
1498
+ /**
1499
+ * Tag updateMany
1500
+ */
1501
+ export type TagUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ /**
1503
+ * The data used to update Tags.
1504
+ */
1505
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyInput>
1506
+ /**
1507
+ * Filter which Tags to update
1508
+ */
1509
+ where?: Prisma.TagWhereInput
1510
+ /**
1511
+ * Limit how many Tags to update.
1512
+ */
1513
+ limit?: number
1514
+ }
1515
+
1516
+ /**
1517
+ * Tag updateManyAndReturn
1518
+ */
1519
+ export type TagUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
+ /**
1521
+ * Select specific fields to fetch from the Tag
1522
+ */
1523
+ select?: Prisma.TagSelectUpdateManyAndReturn<ExtArgs> | null
1524
+ /**
1525
+ * Omit specific fields from the Tag
1526
+ */
1527
+ omit?: Prisma.TagOmit<ExtArgs> | null
1528
+ /**
1529
+ * The data used to update Tags.
1530
+ */
1531
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyInput>
1532
+ /**
1533
+ * Filter which Tags to update
1534
+ */
1535
+ where?: Prisma.TagWhereInput
1536
+ /**
1537
+ * Limit how many Tags to update.
1538
+ */
1539
+ limit?: number
1540
+ /**
1541
+ * Choose, which related nodes to fetch as well
1542
+ */
1543
+ include?: Prisma.TagIncludeUpdateManyAndReturn<ExtArgs> | null
1544
+ }
1545
+
1546
+ /**
1547
+ * Tag upsert
1548
+ */
1549
+ export type TagUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1550
+ /**
1551
+ * Select specific fields to fetch from the Tag
1552
+ */
1553
+ select?: Prisma.TagSelect<ExtArgs> | null
1554
+ /**
1555
+ * Omit specific fields from the Tag
1556
+ */
1557
+ omit?: Prisma.TagOmit<ExtArgs> | null
1558
+ /**
1559
+ * Choose, which related nodes to fetch as well
1560
+ */
1561
+ include?: Prisma.TagInclude<ExtArgs> | null
1562
+ /**
1563
+ * The filter to search for the Tag to update in case it exists.
1564
+ */
1565
+ where: Prisma.TagWhereUniqueInput
1566
+ /**
1567
+ * In case the Tag found by the `where` argument doesn't exist, create a new Tag with this data.
1568
+ */
1569
+ create: Prisma.XOR<Prisma.TagCreateInput, Prisma.TagUncheckedCreateInput>
1570
+ /**
1571
+ * In case the Tag was found with the provided `where` argument, update it with this data.
1572
+ */
1573
+ update: Prisma.XOR<Prisma.TagUpdateInput, Prisma.TagUncheckedUpdateInput>
1574
+ }
1575
+
1576
+ /**
1577
+ * Tag delete
1578
+ */
1579
+ export type TagDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1580
+ /**
1581
+ * Select specific fields to fetch from the Tag
1582
+ */
1583
+ select?: Prisma.TagSelect<ExtArgs> | null
1584
+ /**
1585
+ * Omit specific fields from the Tag
1586
+ */
1587
+ omit?: Prisma.TagOmit<ExtArgs> | null
1588
+ /**
1589
+ * Choose, which related nodes to fetch as well
1590
+ */
1591
+ include?: Prisma.TagInclude<ExtArgs> | null
1592
+ /**
1593
+ * Filter which Tag to delete.
1594
+ */
1595
+ where: Prisma.TagWhereUniqueInput
1596
+ }
1597
+
1598
+ /**
1599
+ * Tag deleteMany
1600
+ */
1601
+ export type TagDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * Filter which Tags to delete
1604
+ */
1605
+ where?: Prisma.TagWhereInput
1606
+ /**
1607
+ * Limit how many Tags to delete.
1608
+ */
1609
+ limit?: number
1610
+ }
1611
+
1612
+ /**
1613
+ * Tag.prdTags
1614
+ */
1615
+ export type Tag$prdTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1616
+ /**
1617
+ * Select specific fields to fetch from the PRDTag
1618
+ */
1619
+ select?: Prisma.PRDTagSelect<ExtArgs> | null
1620
+ /**
1621
+ * Omit specific fields from the PRDTag
1622
+ */
1623
+ omit?: Prisma.PRDTagOmit<ExtArgs> | null
1624
+ /**
1625
+ * Choose, which related nodes to fetch as well
1626
+ */
1627
+ include?: Prisma.PRDTagInclude<ExtArgs> | null
1628
+ where?: Prisma.PRDTagWhereInput
1629
+ orderBy?: Prisma.PRDTagOrderByWithRelationInput | Prisma.PRDTagOrderByWithRelationInput[]
1630
+ cursor?: Prisma.PRDTagWhereUniqueInput
1631
+ take?: number
1632
+ skip?: number
1633
+ distinct?: Prisma.PRDTagScalarFieldEnum | Prisma.PRDTagScalarFieldEnum[]
1634
+ }
1635
+
1636
+ /**
1637
+ * Tag without action
1638
+ */
1639
+ export type TagDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1640
+ /**
1641
+ * Select specific fields to fetch from the Tag
1642
+ */
1643
+ select?: Prisma.TagSelect<ExtArgs> | null
1644
+ /**
1645
+ * Omit specific fields from the Tag
1646
+ */
1647
+ omit?: Prisma.TagOmit<ExtArgs> | null
1648
+ /**
1649
+ * Choose, which related nodes to fetch as well
1650
+ */
1651
+ include?: Prisma.TagInclude<ExtArgs> | null
1652
+ }