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