@allbluecn/database 0.4.0 → 0.4.1

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