@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,1467 @@
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 `StoryAttachment` 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 StoryAttachment
17
+ *
18
+ */
19
+ export type StoryAttachmentModel = runtime.Types.Result.DefaultSelection<Prisma.$StoryAttachmentPayload>
20
+
21
+ export type AggregateStoryAttachment = {
22
+ _count: StoryAttachmentCountAggregateOutputType | null
23
+ _avg: StoryAttachmentAvgAggregateOutputType | null
24
+ _sum: StoryAttachmentSumAggregateOutputType | null
25
+ _min: StoryAttachmentMinAggregateOutputType | null
26
+ _max: StoryAttachmentMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type StoryAttachmentAvgAggregateOutputType = {
30
+ fileSize: number | null
31
+ }
32
+
33
+ export type StoryAttachmentSumAggregateOutputType = {
34
+ fileSize: bigint | null
35
+ }
36
+
37
+ export type StoryAttachmentMinAggregateOutputType = {
38
+ id: string | null
39
+ storyId: string | null
40
+ fileName: string | null
41
+ fileSize: bigint | null
42
+ mimeType: string | null
43
+ storageUrl: string | null
44
+ createdAt: Date | null
45
+ }
46
+
47
+ export type StoryAttachmentMaxAggregateOutputType = {
48
+ id: string | null
49
+ storyId: string | null
50
+ fileName: string | null
51
+ fileSize: bigint | null
52
+ mimeType: string | null
53
+ storageUrl: string | null
54
+ createdAt: Date | null
55
+ }
56
+
57
+ export type StoryAttachmentCountAggregateOutputType = {
58
+ id: number
59
+ storyId: number
60
+ fileName: number
61
+ fileSize: number
62
+ mimeType: number
63
+ storageUrl: number
64
+ createdAt: number
65
+ _all: number
66
+ }
67
+
68
+
69
+ export type StoryAttachmentAvgAggregateInputType = {
70
+ fileSize?: true
71
+ }
72
+
73
+ export type StoryAttachmentSumAggregateInputType = {
74
+ fileSize?: true
75
+ }
76
+
77
+ export type StoryAttachmentMinAggregateInputType = {
78
+ id?: true
79
+ storyId?: true
80
+ fileName?: true
81
+ fileSize?: true
82
+ mimeType?: true
83
+ storageUrl?: true
84
+ createdAt?: true
85
+ }
86
+
87
+ export type StoryAttachmentMaxAggregateInputType = {
88
+ id?: true
89
+ storyId?: true
90
+ fileName?: true
91
+ fileSize?: true
92
+ mimeType?: true
93
+ storageUrl?: true
94
+ createdAt?: true
95
+ }
96
+
97
+ export type StoryAttachmentCountAggregateInputType = {
98
+ id?: true
99
+ storyId?: true
100
+ fileName?: true
101
+ fileSize?: true
102
+ mimeType?: true
103
+ storageUrl?: true
104
+ createdAt?: true
105
+ _all?: true
106
+ }
107
+
108
+ export type StoryAttachmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
109
+ /**
110
+ * Filter which StoryAttachment to aggregate.
111
+ */
112
+ where?: Prisma.StoryAttachmentWhereInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
115
+ *
116
+ * Determine the order of StoryAttachments to fetch.
117
+ */
118
+ orderBy?: Prisma.StoryAttachmentOrderByWithRelationInput | Prisma.StoryAttachmentOrderByWithRelationInput[]
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
121
+ *
122
+ * Sets the start position
123
+ */
124
+ cursor?: Prisma.StoryAttachmentWhereUniqueInput
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
+ *
128
+ * Take `±n` StoryAttachments from the position of the cursor.
129
+ */
130
+ take?: number
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
133
+ *
134
+ * Skip the first `n` StoryAttachments.
135
+ */
136
+ skip?: number
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Count returned StoryAttachments
141
+ **/
142
+ _count?: true | StoryAttachmentCountAggregateInputType
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Select which fields to average
147
+ **/
148
+ _avg?: StoryAttachmentAvgAggregateInputType
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Select which fields to sum
153
+ **/
154
+ _sum?: StoryAttachmentSumAggregateInputType
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to find the minimum value
159
+ **/
160
+ _min?: StoryAttachmentMinAggregateInputType
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to find the maximum value
165
+ **/
166
+ _max?: StoryAttachmentMaxAggregateInputType
167
+ }
168
+
169
+ export type GetStoryAttachmentAggregateType<T extends StoryAttachmentAggregateArgs> = {
170
+ [P in keyof T & keyof AggregateStoryAttachment]: P extends '_count' | 'count'
171
+ ? T[P] extends true
172
+ ? number
173
+ : Prisma.GetScalarType<T[P], AggregateStoryAttachment[P]>
174
+ : Prisma.GetScalarType<T[P], AggregateStoryAttachment[P]>
175
+ }
176
+
177
+
178
+
179
+
180
+ export type StoryAttachmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
181
+ where?: Prisma.StoryAttachmentWhereInput
182
+ orderBy?: Prisma.StoryAttachmentOrderByWithAggregationInput | Prisma.StoryAttachmentOrderByWithAggregationInput[]
183
+ by: Prisma.StoryAttachmentScalarFieldEnum[] | Prisma.StoryAttachmentScalarFieldEnum
184
+ having?: Prisma.StoryAttachmentScalarWhereWithAggregatesInput
185
+ take?: number
186
+ skip?: number
187
+ _count?: StoryAttachmentCountAggregateInputType | true
188
+ _avg?: StoryAttachmentAvgAggregateInputType
189
+ _sum?: StoryAttachmentSumAggregateInputType
190
+ _min?: StoryAttachmentMinAggregateInputType
191
+ _max?: StoryAttachmentMaxAggregateInputType
192
+ }
193
+
194
+ export type StoryAttachmentGroupByOutputType = {
195
+ id: string
196
+ storyId: string
197
+ fileName: string
198
+ fileSize: bigint
199
+ mimeType: string
200
+ storageUrl: string
201
+ createdAt: Date
202
+ _count: StoryAttachmentCountAggregateOutputType | null
203
+ _avg: StoryAttachmentAvgAggregateOutputType | null
204
+ _sum: StoryAttachmentSumAggregateOutputType | null
205
+ _min: StoryAttachmentMinAggregateOutputType | null
206
+ _max: StoryAttachmentMaxAggregateOutputType | null
207
+ }
208
+
209
+ export type GetStoryAttachmentGroupByPayload<T extends StoryAttachmentGroupByArgs> = Prisma.PrismaPromise<
210
+ Array<
211
+ Prisma.PickEnumerable<StoryAttachmentGroupByOutputType, T['by']> &
212
+ {
213
+ [P in ((keyof T) & (keyof StoryAttachmentGroupByOutputType))]: P extends '_count'
214
+ ? T[P] extends boolean
215
+ ? number
216
+ : Prisma.GetScalarType<T[P], StoryAttachmentGroupByOutputType[P]>
217
+ : Prisma.GetScalarType<T[P], StoryAttachmentGroupByOutputType[P]>
218
+ }
219
+ >
220
+ >
221
+
222
+
223
+
224
+ export type StoryAttachmentWhereInput = {
225
+ AND?: Prisma.StoryAttachmentWhereInput | Prisma.StoryAttachmentWhereInput[]
226
+ OR?: Prisma.StoryAttachmentWhereInput[]
227
+ NOT?: Prisma.StoryAttachmentWhereInput | Prisma.StoryAttachmentWhereInput[]
228
+ id?: Prisma.StringFilter<"StoryAttachment"> | string
229
+ storyId?: Prisma.StringFilter<"StoryAttachment"> | string
230
+ fileName?: Prisma.StringFilter<"StoryAttachment"> | string
231
+ fileSize?: Prisma.BigIntFilter<"StoryAttachment"> | bigint | number
232
+ mimeType?: Prisma.StringFilter<"StoryAttachment"> | string
233
+ storageUrl?: Prisma.StringFilter<"StoryAttachment"> | string
234
+ createdAt?: Prisma.DateTimeFilter<"StoryAttachment"> | Date | string
235
+ story?: Prisma.XOR<Prisma.StoryScalarRelationFilter, Prisma.StoryWhereInput>
236
+ }
237
+
238
+ export type StoryAttachmentOrderByWithRelationInput = {
239
+ id?: Prisma.SortOrder
240
+ storyId?: Prisma.SortOrder
241
+ fileName?: Prisma.SortOrder
242
+ fileSize?: Prisma.SortOrder
243
+ mimeType?: Prisma.SortOrder
244
+ storageUrl?: Prisma.SortOrder
245
+ createdAt?: Prisma.SortOrder
246
+ story?: Prisma.StoryOrderByWithRelationInput
247
+ }
248
+
249
+ export type StoryAttachmentWhereUniqueInput = Prisma.AtLeast<{
250
+ id?: string
251
+ AND?: Prisma.StoryAttachmentWhereInput | Prisma.StoryAttachmentWhereInput[]
252
+ OR?: Prisma.StoryAttachmentWhereInput[]
253
+ NOT?: Prisma.StoryAttachmentWhereInput | Prisma.StoryAttachmentWhereInput[]
254
+ storyId?: Prisma.StringFilter<"StoryAttachment"> | string
255
+ fileName?: Prisma.StringFilter<"StoryAttachment"> | string
256
+ fileSize?: Prisma.BigIntFilter<"StoryAttachment"> | bigint | number
257
+ mimeType?: Prisma.StringFilter<"StoryAttachment"> | string
258
+ storageUrl?: Prisma.StringFilter<"StoryAttachment"> | string
259
+ createdAt?: Prisma.DateTimeFilter<"StoryAttachment"> | Date | string
260
+ story?: Prisma.XOR<Prisma.StoryScalarRelationFilter, Prisma.StoryWhereInput>
261
+ }, "id">
262
+
263
+ export type StoryAttachmentOrderByWithAggregationInput = {
264
+ id?: Prisma.SortOrder
265
+ storyId?: Prisma.SortOrder
266
+ fileName?: Prisma.SortOrder
267
+ fileSize?: Prisma.SortOrder
268
+ mimeType?: Prisma.SortOrder
269
+ storageUrl?: Prisma.SortOrder
270
+ createdAt?: Prisma.SortOrder
271
+ _count?: Prisma.StoryAttachmentCountOrderByAggregateInput
272
+ _avg?: Prisma.StoryAttachmentAvgOrderByAggregateInput
273
+ _max?: Prisma.StoryAttachmentMaxOrderByAggregateInput
274
+ _min?: Prisma.StoryAttachmentMinOrderByAggregateInput
275
+ _sum?: Prisma.StoryAttachmentSumOrderByAggregateInput
276
+ }
277
+
278
+ export type StoryAttachmentScalarWhereWithAggregatesInput = {
279
+ AND?: Prisma.StoryAttachmentScalarWhereWithAggregatesInput | Prisma.StoryAttachmentScalarWhereWithAggregatesInput[]
280
+ OR?: Prisma.StoryAttachmentScalarWhereWithAggregatesInput[]
281
+ NOT?: Prisma.StoryAttachmentScalarWhereWithAggregatesInput | Prisma.StoryAttachmentScalarWhereWithAggregatesInput[]
282
+ id?: Prisma.StringWithAggregatesFilter<"StoryAttachment"> | string
283
+ storyId?: Prisma.StringWithAggregatesFilter<"StoryAttachment"> | string
284
+ fileName?: Prisma.StringWithAggregatesFilter<"StoryAttachment"> | string
285
+ fileSize?: Prisma.BigIntWithAggregatesFilter<"StoryAttachment"> | bigint | number
286
+ mimeType?: Prisma.StringWithAggregatesFilter<"StoryAttachment"> | string
287
+ storageUrl?: Prisma.StringWithAggregatesFilter<"StoryAttachment"> | string
288
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"StoryAttachment"> | Date | string
289
+ }
290
+
291
+ export type StoryAttachmentCreateInput = {
292
+ id?: string
293
+ fileName: string
294
+ fileSize: bigint | number
295
+ mimeType: string
296
+ storageUrl: string
297
+ createdAt?: Date | string
298
+ story: Prisma.StoryCreateNestedOneWithoutAttachmentsInput
299
+ }
300
+
301
+ export type StoryAttachmentUncheckedCreateInput = {
302
+ id?: string
303
+ storyId: string
304
+ fileName: string
305
+ fileSize: bigint | number
306
+ mimeType: string
307
+ storageUrl: string
308
+ createdAt?: Date | string
309
+ }
310
+
311
+ export type StoryAttachmentUpdateInput = {
312
+ id?: Prisma.StringFieldUpdateOperationsInput | string
313
+ fileName?: Prisma.StringFieldUpdateOperationsInput | string
314
+ fileSize?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
315
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
316
+ storageUrl?: Prisma.StringFieldUpdateOperationsInput | string
317
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
318
+ story?: Prisma.StoryUpdateOneRequiredWithoutAttachmentsNestedInput
319
+ }
320
+
321
+ export type StoryAttachmentUncheckedUpdateInput = {
322
+ id?: Prisma.StringFieldUpdateOperationsInput | string
323
+ storyId?: Prisma.StringFieldUpdateOperationsInput | string
324
+ fileName?: Prisma.StringFieldUpdateOperationsInput | string
325
+ fileSize?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
326
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
327
+ storageUrl?: Prisma.StringFieldUpdateOperationsInput | string
328
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
329
+ }
330
+
331
+ export type StoryAttachmentCreateManyInput = {
332
+ id?: string
333
+ storyId: string
334
+ fileName: string
335
+ fileSize: bigint | number
336
+ mimeType: string
337
+ storageUrl: string
338
+ createdAt?: Date | string
339
+ }
340
+
341
+ export type StoryAttachmentUpdateManyMutationInput = {
342
+ id?: Prisma.StringFieldUpdateOperationsInput | string
343
+ fileName?: Prisma.StringFieldUpdateOperationsInput | string
344
+ fileSize?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
345
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
346
+ storageUrl?: Prisma.StringFieldUpdateOperationsInput | string
347
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
348
+ }
349
+
350
+ export type StoryAttachmentUncheckedUpdateManyInput = {
351
+ id?: Prisma.StringFieldUpdateOperationsInput | string
352
+ storyId?: Prisma.StringFieldUpdateOperationsInput | string
353
+ fileName?: Prisma.StringFieldUpdateOperationsInput | string
354
+ fileSize?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
355
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
356
+ storageUrl?: Prisma.StringFieldUpdateOperationsInput | string
357
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
358
+ }
359
+
360
+ export type StoryAttachmentListRelationFilter = {
361
+ every?: Prisma.StoryAttachmentWhereInput
362
+ some?: Prisma.StoryAttachmentWhereInput
363
+ none?: Prisma.StoryAttachmentWhereInput
364
+ }
365
+
366
+ export type StoryAttachmentOrderByRelationAggregateInput = {
367
+ _count?: Prisma.SortOrder
368
+ }
369
+
370
+ export type StoryAttachmentCountOrderByAggregateInput = {
371
+ id?: Prisma.SortOrder
372
+ storyId?: Prisma.SortOrder
373
+ fileName?: Prisma.SortOrder
374
+ fileSize?: Prisma.SortOrder
375
+ mimeType?: Prisma.SortOrder
376
+ storageUrl?: Prisma.SortOrder
377
+ createdAt?: Prisma.SortOrder
378
+ }
379
+
380
+ export type StoryAttachmentAvgOrderByAggregateInput = {
381
+ fileSize?: Prisma.SortOrder
382
+ }
383
+
384
+ export type StoryAttachmentMaxOrderByAggregateInput = {
385
+ id?: Prisma.SortOrder
386
+ storyId?: Prisma.SortOrder
387
+ fileName?: Prisma.SortOrder
388
+ fileSize?: Prisma.SortOrder
389
+ mimeType?: Prisma.SortOrder
390
+ storageUrl?: Prisma.SortOrder
391
+ createdAt?: Prisma.SortOrder
392
+ }
393
+
394
+ export type StoryAttachmentMinOrderByAggregateInput = {
395
+ id?: Prisma.SortOrder
396
+ storyId?: Prisma.SortOrder
397
+ fileName?: Prisma.SortOrder
398
+ fileSize?: Prisma.SortOrder
399
+ mimeType?: Prisma.SortOrder
400
+ storageUrl?: Prisma.SortOrder
401
+ createdAt?: Prisma.SortOrder
402
+ }
403
+
404
+ export type StoryAttachmentSumOrderByAggregateInput = {
405
+ fileSize?: Prisma.SortOrder
406
+ }
407
+
408
+ export type StoryAttachmentCreateNestedManyWithoutStoryInput = {
409
+ create?: Prisma.XOR<Prisma.StoryAttachmentCreateWithoutStoryInput, Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput> | Prisma.StoryAttachmentCreateWithoutStoryInput[] | Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput[]
410
+ connectOrCreate?: Prisma.StoryAttachmentCreateOrConnectWithoutStoryInput | Prisma.StoryAttachmentCreateOrConnectWithoutStoryInput[]
411
+ createMany?: Prisma.StoryAttachmentCreateManyStoryInputEnvelope
412
+ connect?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
413
+ }
414
+
415
+ export type StoryAttachmentUncheckedCreateNestedManyWithoutStoryInput = {
416
+ create?: Prisma.XOR<Prisma.StoryAttachmentCreateWithoutStoryInput, Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput> | Prisma.StoryAttachmentCreateWithoutStoryInput[] | Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput[]
417
+ connectOrCreate?: Prisma.StoryAttachmentCreateOrConnectWithoutStoryInput | Prisma.StoryAttachmentCreateOrConnectWithoutStoryInput[]
418
+ createMany?: Prisma.StoryAttachmentCreateManyStoryInputEnvelope
419
+ connect?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
420
+ }
421
+
422
+ export type StoryAttachmentUpdateManyWithoutStoryNestedInput = {
423
+ create?: Prisma.XOR<Prisma.StoryAttachmentCreateWithoutStoryInput, Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput> | Prisma.StoryAttachmentCreateWithoutStoryInput[] | Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput[]
424
+ connectOrCreate?: Prisma.StoryAttachmentCreateOrConnectWithoutStoryInput | Prisma.StoryAttachmentCreateOrConnectWithoutStoryInput[]
425
+ upsert?: Prisma.StoryAttachmentUpsertWithWhereUniqueWithoutStoryInput | Prisma.StoryAttachmentUpsertWithWhereUniqueWithoutStoryInput[]
426
+ createMany?: Prisma.StoryAttachmentCreateManyStoryInputEnvelope
427
+ set?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
428
+ disconnect?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
429
+ delete?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
430
+ connect?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
431
+ update?: Prisma.StoryAttachmentUpdateWithWhereUniqueWithoutStoryInput | Prisma.StoryAttachmentUpdateWithWhereUniqueWithoutStoryInput[]
432
+ updateMany?: Prisma.StoryAttachmentUpdateManyWithWhereWithoutStoryInput | Prisma.StoryAttachmentUpdateManyWithWhereWithoutStoryInput[]
433
+ deleteMany?: Prisma.StoryAttachmentScalarWhereInput | Prisma.StoryAttachmentScalarWhereInput[]
434
+ }
435
+
436
+ export type StoryAttachmentUncheckedUpdateManyWithoutStoryNestedInput = {
437
+ create?: Prisma.XOR<Prisma.StoryAttachmentCreateWithoutStoryInput, Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput> | Prisma.StoryAttachmentCreateWithoutStoryInput[] | Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput[]
438
+ connectOrCreate?: Prisma.StoryAttachmentCreateOrConnectWithoutStoryInput | Prisma.StoryAttachmentCreateOrConnectWithoutStoryInput[]
439
+ upsert?: Prisma.StoryAttachmentUpsertWithWhereUniqueWithoutStoryInput | Prisma.StoryAttachmentUpsertWithWhereUniqueWithoutStoryInput[]
440
+ createMany?: Prisma.StoryAttachmentCreateManyStoryInputEnvelope
441
+ set?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
442
+ disconnect?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
443
+ delete?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
444
+ connect?: Prisma.StoryAttachmentWhereUniqueInput | Prisma.StoryAttachmentWhereUniqueInput[]
445
+ update?: Prisma.StoryAttachmentUpdateWithWhereUniqueWithoutStoryInput | Prisma.StoryAttachmentUpdateWithWhereUniqueWithoutStoryInput[]
446
+ updateMany?: Prisma.StoryAttachmentUpdateManyWithWhereWithoutStoryInput | Prisma.StoryAttachmentUpdateManyWithWhereWithoutStoryInput[]
447
+ deleteMany?: Prisma.StoryAttachmentScalarWhereInput | Prisma.StoryAttachmentScalarWhereInput[]
448
+ }
449
+
450
+ export type BigIntFieldUpdateOperationsInput = {
451
+ set?: bigint | number
452
+ increment?: bigint | number
453
+ decrement?: bigint | number
454
+ multiply?: bigint | number
455
+ divide?: bigint | number
456
+ }
457
+
458
+ export type StoryAttachmentCreateWithoutStoryInput = {
459
+ id?: string
460
+ fileName: string
461
+ fileSize: bigint | number
462
+ mimeType: string
463
+ storageUrl: string
464
+ createdAt?: Date | string
465
+ }
466
+
467
+ export type StoryAttachmentUncheckedCreateWithoutStoryInput = {
468
+ id?: string
469
+ fileName: string
470
+ fileSize: bigint | number
471
+ mimeType: string
472
+ storageUrl: string
473
+ createdAt?: Date | string
474
+ }
475
+
476
+ export type StoryAttachmentCreateOrConnectWithoutStoryInput = {
477
+ where: Prisma.StoryAttachmentWhereUniqueInput
478
+ create: Prisma.XOR<Prisma.StoryAttachmentCreateWithoutStoryInput, Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput>
479
+ }
480
+
481
+ export type StoryAttachmentCreateManyStoryInputEnvelope = {
482
+ data: Prisma.StoryAttachmentCreateManyStoryInput | Prisma.StoryAttachmentCreateManyStoryInput[]
483
+ skipDuplicates?: boolean
484
+ }
485
+
486
+ export type StoryAttachmentUpsertWithWhereUniqueWithoutStoryInput = {
487
+ where: Prisma.StoryAttachmentWhereUniqueInput
488
+ update: Prisma.XOR<Prisma.StoryAttachmentUpdateWithoutStoryInput, Prisma.StoryAttachmentUncheckedUpdateWithoutStoryInput>
489
+ create: Prisma.XOR<Prisma.StoryAttachmentCreateWithoutStoryInput, Prisma.StoryAttachmentUncheckedCreateWithoutStoryInput>
490
+ }
491
+
492
+ export type StoryAttachmentUpdateWithWhereUniqueWithoutStoryInput = {
493
+ where: Prisma.StoryAttachmentWhereUniqueInput
494
+ data: Prisma.XOR<Prisma.StoryAttachmentUpdateWithoutStoryInput, Prisma.StoryAttachmentUncheckedUpdateWithoutStoryInput>
495
+ }
496
+
497
+ export type StoryAttachmentUpdateManyWithWhereWithoutStoryInput = {
498
+ where: Prisma.StoryAttachmentScalarWhereInput
499
+ data: Prisma.XOR<Prisma.StoryAttachmentUpdateManyMutationInput, Prisma.StoryAttachmentUncheckedUpdateManyWithoutStoryInput>
500
+ }
501
+
502
+ export type StoryAttachmentScalarWhereInput = {
503
+ AND?: Prisma.StoryAttachmentScalarWhereInput | Prisma.StoryAttachmentScalarWhereInput[]
504
+ OR?: Prisma.StoryAttachmentScalarWhereInput[]
505
+ NOT?: Prisma.StoryAttachmentScalarWhereInput | Prisma.StoryAttachmentScalarWhereInput[]
506
+ id?: Prisma.StringFilter<"StoryAttachment"> | string
507
+ storyId?: Prisma.StringFilter<"StoryAttachment"> | string
508
+ fileName?: Prisma.StringFilter<"StoryAttachment"> | string
509
+ fileSize?: Prisma.BigIntFilter<"StoryAttachment"> | bigint | number
510
+ mimeType?: Prisma.StringFilter<"StoryAttachment"> | string
511
+ storageUrl?: Prisma.StringFilter<"StoryAttachment"> | string
512
+ createdAt?: Prisma.DateTimeFilter<"StoryAttachment"> | Date | string
513
+ }
514
+
515
+ export type StoryAttachmentCreateManyStoryInput = {
516
+ id?: string
517
+ fileName: string
518
+ fileSize: bigint | number
519
+ mimeType: string
520
+ storageUrl: string
521
+ createdAt?: Date | string
522
+ }
523
+
524
+ export type StoryAttachmentUpdateWithoutStoryInput = {
525
+ id?: Prisma.StringFieldUpdateOperationsInput | string
526
+ fileName?: Prisma.StringFieldUpdateOperationsInput | string
527
+ fileSize?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
528
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
529
+ storageUrl?: Prisma.StringFieldUpdateOperationsInput | string
530
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
531
+ }
532
+
533
+ export type StoryAttachmentUncheckedUpdateWithoutStoryInput = {
534
+ id?: Prisma.StringFieldUpdateOperationsInput | string
535
+ fileName?: Prisma.StringFieldUpdateOperationsInput | string
536
+ fileSize?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
537
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
538
+ storageUrl?: Prisma.StringFieldUpdateOperationsInput | string
539
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
540
+ }
541
+
542
+ export type StoryAttachmentUncheckedUpdateManyWithoutStoryInput = {
543
+ id?: Prisma.StringFieldUpdateOperationsInput | string
544
+ fileName?: Prisma.StringFieldUpdateOperationsInput | string
545
+ fileSize?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
546
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string
547
+ storageUrl?: Prisma.StringFieldUpdateOperationsInput | string
548
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
549
+ }
550
+
551
+
552
+
553
+ export type StoryAttachmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
554
+ id?: boolean
555
+ storyId?: boolean
556
+ fileName?: boolean
557
+ fileSize?: boolean
558
+ mimeType?: boolean
559
+ storageUrl?: boolean
560
+ createdAt?: boolean
561
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
562
+ }, ExtArgs["result"]["storyAttachment"]>
563
+
564
+ export type StoryAttachmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
565
+ id?: boolean
566
+ storyId?: boolean
567
+ fileName?: boolean
568
+ fileSize?: boolean
569
+ mimeType?: boolean
570
+ storageUrl?: boolean
571
+ createdAt?: boolean
572
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
573
+ }, ExtArgs["result"]["storyAttachment"]>
574
+
575
+ export type StoryAttachmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
576
+ id?: boolean
577
+ storyId?: boolean
578
+ fileName?: boolean
579
+ fileSize?: boolean
580
+ mimeType?: boolean
581
+ storageUrl?: boolean
582
+ createdAt?: boolean
583
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
584
+ }, ExtArgs["result"]["storyAttachment"]>
585
+
586
+ export type StoryAttachmentSelectScalar = {
587
+ id?: boolean
588
+ storyId?: boolean
589
+ fileName?: boolean
590
+ fileSize?: boolean
591
+ mimeType?: boolean
592
+ storageUrl?: boolean
593
+ createdAt?: boolean
594
+ }
595
+
596
+ export type StoryAttachmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "storyId" | "fileName" | "fileSize" | "mimeType" | "storageUrl" | "createdAt", ExtArgs["result"]["storyAttachment"]>
597
+ export type StoryAttachmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
598
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
599
+ }
600
+ export type StoryAttachmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
601
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
602
+ }
603
+ export type StoryAttachmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
604
+ story?: boolean | Prisma.StoryDefaultArgs<ExtArgs>
605
+ }
606
+
607
+ export type $StoryAttachmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
608
+ name: "StoryAttachment"
609
+ objects: {
610
+ story: Prisma.$StoryPayload<ExtArgs>
611
+ }
612
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
613
+ id: string
614
+ storyId: string
615
+ fileName: string
616
+ fileSize: bigint
617
+ mimeType: string
618
+ storageUrl: string
619
+ createdAt: Date
620
+ }, ExtArgs["result"]["storyAttachment"]>
621
+ composites: {}
622
+ }
623
+
624
+ export type StoryAttachmentGetPayload<S extends boolean | null | undefined | StoryAttachmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload, S>
625
+
626
+ export type StoryAttachmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
627
+ Omit<StoryAttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
628
+ select?: StoryAttachmentCountAggregateInputType | true
629
+ }
630
+
631
+ export interface StoryAttachmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
632
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['StoryAttachment'], meta: { name: 'StoryAttachment' } }
633
+ /**
634
+ * Find zero or one StoryAttachment that matches the filter.
635
+ * @param {StoryAttachmentFindUniqueArgs} args - Arguments to find a StoryAttachment
636
+ * @example
637
+ * // Get one StoryAttachment
638
+ * const storyAttachment = await prisma.storyAttachment.findUnique({
639
+ * where: {
640
+ * // ... provide filter here
641
+ * }
642
+ * })
643
+ */
644
+ findUnique<T extends StoryAttachmentFindUniqueArgs>(args: Prisma.SelectSubset<T, StoryAttachmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StoryAttachmentClient<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
645
+
646
+ /**
647
+ * Find one StoryAttachment that matches the filter or throw an error with `error.code='P2025'`
648
+ * if no matches were found.
649
+ * @param {StoryAttachmentFindUniqueOrThrowArgs} args - Arguments to find a StoryAttachment
650
+ * @example
651
+ * // Get one StoryAttachment
652
+ * const storyAttachment = await prisma.storyAttachment.findUniqueOrThrow({
653
+ * where: {
654
+ * // ... provide filter here
655
+ * }
656
+ * })
657
+ */
658
+ findUniqueOrThrow<T extends StoryAttachmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StoryAttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StoryAttachmentClient<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
659
+
660
+ /**
661
+ * Find the first StoryAttachment that matches the filter.
662
+ * Note, that providing `undefined` is treated as the value not being there.
663
+ * Read more here: https://pris.ly/d/null-undefined
664
+ * @param {StoryAttachmentFindFirstArgs} args - Arguments to find a StoryAttachment
665
+ * @example
666
+ * // Get one StoryAttachment
667
+ * const storyAttachment = await prisma.storyAttachment.findFirst({
668
+ * where: {
669
+ * // ... provide filter here
670
+ * }
671
+ * })
672
+ */
673
+ findFirst<T extends StoryAttachmentFindFirstArgs>(args?: Prisma.SelectSubset<T, StoryAttachmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__StoryAttachmentClient<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
674
+
675
+ /**
676
+ * Find the first StoryAttachment that matches the filter or
677
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
678
+ * Note, that providing `undefined` is treated as the value not being there.
679
+ * Read more here: https://pris.ly/d/null-undefined
680
+ * @param {StoryAttachmentFindFirstOrThrowArgs} args - Arguments to find a StoryAttachment
681
+ * @example
682
+ * // Get one StoryAttachment
683
+ * const storyAttachment = await prisma.storyAttachment.findFirstOrThrow({
684
+ * where: {
685
+ * // ... provide filter here
686
+ * }
687
+ * })
688
+ */
689
+ findFirstOrThrow<T extends StoryAttachmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StoryAttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StoryAttachmentClient<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
690
+
691
+ /**
692
+ * Find zero or more StoryAttachments that matches the filter.
693
+ * Note, that providing `undefined` is treated as the value not being there.
694
+ * Read more here: https://pris.ly/d/null-undefined
695
+ * @param {StoryAttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
696
+ * @example
697
+ * // Get all StoryAttachments
698
+ * const storyAttachments = await prisma.storyAttachment.findMany()
699
+ *
700
+ * // Get first 10 StoryAttachments
701
+ * const storyAttachments = await prisma.storyAttachment.findMany({ take: 10 })
702
+ *
703
+ * // Only select the `id`
704
+ * const storyAttachmentWithIdOnly = await prisma.storyAttachment.findMany({ select: { id: true } })
705
+ *
706
+ */
707
+ findMany<T extends StoryAttachmentFindManyArgs>(args?: Prisma.SelectSubset<T, StoryAttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
708
+
709
+ /**
710
+ * Create a StoryAttachment.
711
+ * @param {StoryAttachmentCreateArgs} args - Arguments to create a StoryAttachment.
712
+ * @example
713
+ * // Create one StoryAttachment
714
+ * const StoryAttachment = await prisma.storyAttachment.create({
715
+ * data: {
716
+ * // ... data to create a StoryAttachment
717
+ * }
718
+ * })
719
+ *
720
+ */
721
+ create<T extends StoryAttachmentCreateArgs>(args: Prisma.SelectSubset<T, StoryAttachmentCreateArgs<ExtArgs>>): Prisma.Prisma__StoryAttachmentClient<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
722
+
723
+ /**
724
+ * Create many StoryAttachments.
725
+ * @param {StoryAttachmentCreateManyArgs} args - Arguments to create many StoryAttachments.
726
+ * @example
727
+ * // Create many StoryAttachments
728
+ * const storyAttachment = await prisma.storyAttachment.createMany({
729
+ * data: [
730
+ * // ... provide data here
731
+ * ]
732
+ * })
733
+ *
734
+ */
735
+ createMany<T extends StoryAttachmentCreateManyArgs>(args?: Prisma.SelectSubset<T, StoryAttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
736
+
737
+ /**
738
+ * Create many StoryAttachments and returns the data saved in the database.
739
+ * @param {StoryAttachmentCreateManyAndReturnArgs} args - Arguments to create many StoryAttachments.
740
+ * @example
741
+ * // Create many StoryAttachments
742
+ * const storyAttachment = await prisma.storyAttachment.createManyAndReturn({
743
+ * data: [
744
+ * // ... provide data here
745
+ * ]
746
+ * })
747
+ *
748
+ * // Create many StoryAttachments and only return the `id`
749
+ * const storyAttachmentWithIdOnly = await prisma.storyAttachment.createManyAndReturn({
750
+ * select: { id: true },
751
+ * data: [
752
+ * // ... provide data here
753
+ * ]
754
+ * })
755
+ * Note, that providing `undefined` is treated as the value not being there.
756
+ * Read more here: https://pris.ly/d/null-undefined
757
+ *
758
+ */
759
+ createManyAndReturn<T extends StoryAttachmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StoryAttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
760
+
761
+ /**
762
+ * Delete a StoryAttachment.
763
+ * @param {StoryAttachmentDeleteArgs} args - Arguments to delete one StoryAttachment.
764
+ * @example
765
+ * // Delete one StoryAttachment
766
+ * const StoryAttachment = await prisma.storyAttachment.delete({
767
+ * where: {
768
+ * // ... filter to delete one StoryAttachment
769
+ * }
770
+ * })
771
+ *
772
+ */
773
+ delete<T extends StoryAttachmentDeleteArgs>(args: Prisma.SelectSubset<T, StoryAttachmentDeleteArgs<ExtArgs>>): Prisma.Prisma__StoryAttachmentClient<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
774
+
775
+ /**
776
+ * Update one StoryAttachment.
777
+ * @param {StoryAttachmentUpdateArgs} args - Arguments to update one StoryAttachment.
778
+ * @example
779
+ * // Update one StoryAttachment
780
+ * const storyAttachment = await prisma.storyAttachment.update({
781
+ * where: {
782
+ * // ... provide filter here
783
+ * },
784
+ * data: {
785
+ * // ... provide data here
786
+ * }
787
+ * })
788
+ *
789
+ */
790
+ update<T extends StoryAttachmentUpdateArgs>(args: Prisma.SelectSubset<T, StoryAttachmentUpdateArgs<ExtArgs>>): Prisma.Prisma__StoryAttachmentClient<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
791
+
792
+ /**
793
+ * Delete zero or more StoryAttachments.
794
+ * @param {StoryAttachmentDeleteManyArgs} args - Arguments to filter StoryAttachments to delete.
795
+ * @example
796
+ * // Delete a few StoryAttachments
797
+ * const { count } = await prisma.storyAttachment.deleteMany({
798
+ * where: {
799
+ * // ... provide filter here
800
+ * }
801
+ * })
802
+ *
803
+ */
804
+ deleteMany<T extends StoryAttachmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, StoryAttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
805
+
806
+ /**
807
+ * Update zero or more StoryAttachments.
808
+ * Note, that providing `undefined` is treated as the value not being there.
809
+ * Read more here: https://pris.ly/d/null-undefined
810
+ * @param {StoryAttachmentUpdateManyArgs} args - Arguments to update one or more rows.
811
+ * @example
812
+ * // Update many StoryAttachments
813
+ * const storyAttachment = await prisma.storyAttachment.updateMany({
814
+ * where: {
815
+ * // ... provide filter here
816
+ * },
817
+ * data: {
818
+ * // ... provide data here
819
+ * }
820
+ * })
821
+ *
822
+ */
823
+ updateMany<T extends StoryAttachmentUpdateManyArgs>(args: Prisma.SelectSubset<T, StoryAttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
824
+
825
+ /**
826
+ * Update zero or more StoryAttachments and returns the data updated in the database.
827
+ * @param {StoryAttachmentUpdateManyAndReturnArgs} args - Arguments to update many StoryAttachments.
828
+ * @example
829
+ * // Update many StoryAttachments
830
+ * const storyAttachment = await prisma.storyAttachment.updateManyAndReturn({
831
+ * where: {
832
+ * // ... provide filter here
833
+ * },
834
+ * data: [
835
+ * // ... provide data here
836
+ * ]
837
+ * })
838
+ *
839
+ * // Update zero or more StoryAttachments and only return the `id`
840
+ * const storyAttachmentWithIdOnly = await prisma.storyAttachment.updateManyAndReturn({
841
+ * select: { id: true },
842
+ * where: {
843
+ * // ... provide filter here
844
+ * },
845
+ * data: [
846
+ * // ... provide data here
847
+ * ]
848
+ * })
849
+ * Note, that providing `undefined` is treated as the value not being there.
850
+ * Read more here: https://pris.ly/d/null-undefined
851
+ *
852
+ */
853
+ updateManyAndReturn<T extends StoryAttachmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StoryAttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
854
+
855
+ /**
856
+ * Create or update one StoryAttachment.
857
+ * @param {StoryAttachmentUpsertArgs} args - Arguments to update or create a StoryAttachment.
858
+ * @example
859
+ * // Update or create a StoryAttachment
860
+ * const storyAttachment = await prisma.storyAttachment.upsert({
861
+ * create: {
862
+ * // ... data to create a StoryAttachment
863
+ * },
864
+ * update: {
865
+ * // ... in case it already exists, update
866
+ * },
867
+ * where: {
868
+ * // ... the filter for the StoryAttachment we want to update
869
+ * }
870
+ * })
871
+ */
872
+ upsert<T extends StoryAttachmentUpsertArgs>(args: Prisma.SelectSubset<T, StoryAttachmentUpsertArgs<ExtArgs>>): Prisma.Prisma__StoryAttachmentClient<runtime.Types.Result.GetResult<Prisma.$StoryAttachmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
873
+
874
+
875
+ /**
876
+ * Count the number of StoryAttachments.
877
+ * Note, that providing `undefined` is treated as the value not being there.
878
+ * Read more here: https://pris.ly/d/null-undefined
879
+ * @param {StoryAttachmentCountArgs} args - Arguments to filter StoryAttachments to count.
880
+ * @example
881
+ * // Count the number of StoryAttachments
882
+ * const count = await prisma.storyAttachment.count({
883
+ * where: {
884
+ * // ... the filter for the StoryAttachments we want to count
885
+ * }
886
+ * })
887
+ **/
888
+ count<T extends StoryAttachmentCountArgs>(
889
+ args?: Prisma.Subset<T, StoryAttachmentCountArgs>,
890
+ ): Prisma.PrismaPromise<
891
+ T extends runtime.Types.Utils.Record<'select', any>
892
+ ? T['select'] extends true
893
+ ? number
894
+ : Prisma.GetScalarType<T['select'], StoryAttachmentCountAggregateOutputType>
895
+ : number
896
+ >
897
+
898
+ /**
899
+ * Allows you to perform aggregations operations on a StoryAttachment.
900
+ * Note, that providing `undefined` is treated as the value not being there.
901
+ * Read more here: https://pris.ly/d/null-undefined
902
+ * @param {StoryAttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
903
+ * @example
904
+ * // Ordered by age ascending
905
+ * // Where email contains prisma.io
906
+ * // Limited to the 10 users
907
+ * const aggregations = await prisma.user.aggregate({
908
+ * _avg: {
909
+ * age: true,
910
+ * },
911
+ * where: {
912
+ * email: {
913
+ * contains: "prisma.io",
914
+ * },
915
+ * },
916
+ * orderBy: {
917
+ * age: "asc",
918
+ * },
919
+ * take: 10,
920
+ * })
921
+ **/
922
+ aggregate<T extends StoryAttachmentAggregateArgs>(args: Prisma.Subset<T, StoryAttachmentAggregateArgs>): Prisma.PrismaPromise<GetStoryAttachmentAggregateType<T>>
923
+
924
+ /**
925
+ * Group by StoryAttachment.
926
+ * Note, that providing `undefined` is treated as the value not being there.
927
+ * Read more here: https://pris.ly/d/null-undefined
928
+ * @param {StoryAttachmentGroupByArgs} args - Group by arguments.
929
+ * @example
930
+ * // Group by city, order by createdAt, get count
931
+ * const result = await prisma.user.groupBy({
932
+ * by: ['city', 'createdAt'],
933
+ * orderBy: {
934
+ * createdAt: true
935
+ * },
936
+ * _count: {
937
+ * _all: true
938
+ * },
939
+ * })
940
+ *
941
+ **/
942
+ groupBy<
943
+ T extends StoryAttachmentGroupByArgs,
944
+ HasSelectOrTake extends Prisma.Or<
945
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
946
+ Prisma.Extends<'take', Prisma.Keys<T>>
947
+ >,
948
+ OrderByArg extends Prisma.True extends HasSelectOrTake
949
+ ? { orderBy: StoryAttachmentGroupByArgs['orderBy'] }
950
+ : { orderBy?: StoryAttachmentGroupByArgs['orderBy'] },
951
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
952
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
953
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
954
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
955
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
956
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
957
+ InputErrors extends ByEmpty extends Prisma.True
958
+ ? `Error: "by" must not be empty.`
959
+ : HavingValid extends Prisma.False
960
+ ? {
961
+ [P in HavingFields]: P extends ByFields
962
+ ? never
963
+ : P extends string
964
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
965
+ : [
966
+ Error,
967
+ 'Field ',
968
+ P,
969
+ ` in "having" needs to be provided in "by"`,
970
+ ]
971
+ }[HavingFields]
972
+ : 'take' extends Prisma.Keys<T>
973
+ ? 'orderBy' extends Prisma.Keys<T>
974
+ ? ByValid extends Prisma.True
975
+ ? {}
976
+ : {
977
+ [P in OrderFields]: P extends ByFields
978
+ ? never
979
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
980
+ }[OrderFields]
981
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
982
+ : 'skip' extends Prisma.Keys<T>
983
+ ? 'orderBy' extends Prisma.Keys<T>
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
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
992
+ : ByValid extends Prisma.True
993
+ ? {}
994
+ : {
995
+ [P in OrderFields]: P extends ByFields
996
+ ? never
997
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
998
+ }[OrderFields]
999
+ >(args: Prisma.SubsetIntersection<T, StoryAttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStoryAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1000
+ /**
1001
+ * Fields of the StoryAttachment model
1002
+ */
1003
+ readonly fields: StoryAttachmentFieldRefs;
1004
+ }
1005
+
1006
+ /**
1007
+ * The delegate class that acts as a "Promise-like" for StoryAttachment.
1008
+ * Why is this prefixed with `Prisma__`?
1009
+ * Because we want to prevent naming conflicts as mentioned in
1010
+ * https://github.com/prisma/prisma-client-js/issues/707
1011
+ */
1012
+ export interface Prisma__StoryAttachmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1013
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1014
+ story<T extends Prisma.StoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StoryDefaultArgs<ExtArgs>>): Prisma.Prisma__StoryClient<runtime.Types.Result.GetResult<Prisma.$StoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1015
+ /**
1016
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1017
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1018
+ * @param onrejected The callback to execute when the Promise is rejected.
1019
+ * @returns A Promise for the completion of which ever callback is executed.
1020
+ */
1021
+ 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>
1022
+ /**
1023
+ * Attaches a callback for only the rejection of the Promise.
1024
+ * @param onrejected The callback to execute when the Promise is rejected.
1025
+ * @returns A Promise for the completion of the callback.
1026
+ */
1027
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1028
+ /**
1029
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1030
+ * resolved value cannot be modified from the callback.
1031
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1032
+ * @returns A Promise for the completion of the callback.
1033
+ */
1034
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1035
+ }
1036
+
1037
+
1038
+
1039
+
1040
+ /**
1041
+ * Fields of the StoryAttachment model
1042
+ */
1043
+ export interface StoryAttachmentFieldRefs {
1044
+ readonly id: Prisma.FieldRef<"StoryAttachment", 'String'>
1045
+ readonly storyId: Prisma.FieldRef<"StoryAttachment", 'String'>
1046
+ readonly fileName: Prisma.FieldRef<"StoryAttachment", 'String'>
1047
+ readonly fileSize: Prisma.FieldRef<"StoryAttachment", 'BigInt'>
1048
+ readonly mimeType: Prisma.FieldRef<"StoryAttachment", 'String'>
1049
+ readonly storageUrl: Prisma.FieldRef<"StoryAttachment", 'String'>
1050
+ readonly createdAt: Prisma.FieldRef<"StoryAttachment", 'DateTime'>
1051
+ }
1052
+
1053
+
1054
+ // Custom InputTypes
1055
+ /**
1056
+ * StoryAttachment findUnique
1057
+ */
1058
+ export type StoryAttachmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
+ /**
1060
+ * Select specific fields to fetch from the StoryAttachment
1061
+ */
1062
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1063
+ /**
1064
+ * Omit specific fields from the StoryAttachment
1065
+ */
1066
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1067
+ /**
1068
+ * Choose, which related nodes to fetch as well
1069
+ */
1070
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1071
+ /**
1072
+ * Filter, which StoryAttachment to fetch.
1073
+ */
1074
+ where: Prisma.StoryAttachmentWhereUniqueInput
1075
+ }
1076
+
1077
+ /**
1078
+ * StoryAttachment findUniqueOrThrow
1079
+ */
1080
+ export type StoryAttachmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1081
+ /**
1082
+ * Select specific fields to fetch from the StoryAttachment
1083
+ */
1084
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1085
+ /**
1086
+ * Omit specific fields from the StoryAttachment
1087
+ */
1088
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1089
+ /**
1090
+ * Choose, which related nodes to fetch as well
1091
+ */
1092
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1093
+ /**
1094
+ * Filter, which StoryAttachment to fetch.
1095
+ */
1096
+ where: Prisma.StoryAttachmentWhereUniqueInput
1097
+ }
1098
+
1099
+ /**
1100
+ * StoryAttachment findFirst
1101
+ */
1102
+ export type StoryAttachmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
+ /**
1104
+ * Select specific fields to fetch from the StoryAttachment
1105
+ */
1106
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1107
+ /**
1108
+ * Omit specific fields from the StoryAttachment
1109
+ */
1110
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1111
+ /**
1112
+ * Choose, which related nodes to fetch as well
1113
+ */
1114
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1115
+ /**
1116
+ * Filter, which StoryAttachment to fetch.
1117
+ */
1118
+ where?: Prisma.StoryAttachmentWhereInput
1119
+ /**
1120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1121
+ *
1122
+ * Determine the order of StoryAttachments to fetch.
1123
+ */
1124
+ orderBy?: Prisma.StoryAttachmentOrderByWithRelationInput | Prisma.StoryAttachmentOrderByWithRelationInput[]
1125
+ /**
1126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1127
+ *
1128
+ * Sets the position for searching for StoryAttachments.
1129
+ */
1130
+ cursor?: Prisma.StoryAttachmentWhereUniqueInput
1131
+ /**
1132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1133
+ *
1134
+ * Take `±n` StoryAttachments from the position of the cursor.
1135
+ */
1136
+ take?: number
1137
+ /**
1138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1139
+ *
1140
+ * Skip the first `n` StoryAttachments.
1141
+ */
1142
+ skip?: number
1143
+ /**
1144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1145
+ *
1146
+ * Filter by unique combinations of StoryAttachments.
1147
+ */
1148
+ distinct?: Prisma.StoryAttachmentScalarFieldEnum | Prisma.StoryAttachmentScalarFieldEnum[]
1149
+ }
1150
+
1151
+ /**
1152
+ * StoryAttachment findFirstOrThrow
1153
+ */
1154
+ export type StoryAttachmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
+ /**
1156
+ * Select specific fields to fetch from the StoryAttachment
1157
+ */
1158
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1159
+ /**
1160
+ * Omit specific fields from the StoryAttachment
1161
+ */
1162
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1163
+ /**
1164
+ * Choose, which related nodes to fetch as well
1165
+ */
1166
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1167
+ /**
1168
+ * Filter, which StoryAttachment to fetch.
1169
+ */
1170
+ where?: Prisma.StoryAttachmentWhereInput
1171
+ /**
1172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1173
+ *
1174
+ * Determine the order of StoryAttachments to fetch.
1175
+ */
1176
+ orderBy?: Prisma.StoryAttachmentOrderByWithRelationInput | Prisma.StoryAttachmentOrderByWithRelationInput[]
1177
+ /**
1178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1179
+ *
1180
+ * Sets the position for searching for StoryAttachments.
1181
+ */
1182
+ cursor?: Prisma.StoryAttachmentWhereUniqueInput
1183
+ /**
1184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1185
+ *
1186
+ * Take `±n` StoryAttachments from the position of the cursor.
1187
+ */
1188
+ take?: number
1189
+ /**
1190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1191
+ *
1192
+ * Skip the first `n` StoryAttachments.
1193
+ */
1194
+ skip?: number
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1197
+ *
1198
+ * Filter by unique combinations of StoryAttachments.
1199
+ */
1200
+ distinct?: Prisma.StoryAttachmentScalarFieldEnum | Prisma.StoryAttachmentScalarFieldEnum[]
1201
+ }
1202
+
1203
+ /**
1204
+ * StoryAttachment findMany
1205
+ */
1206
+ export type StoryAttachmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1207
+ /**
1208
+ * Select specific fields to fetch from the StoryAttachment
1209
+ */
1210
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1211
+ /**
1212
+ * Omit specific fields from the StoryAttachment
1213
+ */
1214
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1215
+ /**
1216
+ * Choose, which related nodes to fetch as well
1217
+ */
1218
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1219
+ /**
1220
+ * Filter, which StoryAttachments to fetch.
1221
+ */
1222
+ where?: Prisma.StoryAttachmentWhereInput
1223
+ /**
1224
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1225
+ *
1226
+ * Determine the order of StoryAttachments to fetch.
1227
+ */
1228
+ orderBy?: Prisma.StoryAttachmentOrderByWithRelationInput | Prisma.StoryAttachmentOrderByWithRelationInput[]
1229
+ /**
1230
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1231
+ *
1232
+ * Sets the position for listing StoryAttachments.
1233
+ */
1234
+ cursor?: Prisma.StoryAttachmentWhereUniqueInput
1235
+ /**
1236
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1237
+ *
1238
+ * Take `±n` StoryAttachments from the position of the cursor.
1239
+ */
1240
+ take?: number
1241
+ /**
1242
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1243
+ *
1244
+ * Skip the first `n` StoryAttachments.
1245
+ */
1246
+ skip?: number
1247
+ /**
1248
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1249
+ *
1250
+ * Filter by unique combinations of StoryAttachments.
1251
+ */
1252
+ distinct?: Prisma.StoryAttachmentScalarFieldEnum | Prisma.StoryAttachmentScalarFieldEnum[]
1253
+ }
1254
+
1255
+ /**
1256
+ * StoryAttachment create
1257
+ */
1258
+ export type StoryAttachmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1259
+ /**
1260
+ * Select specific fields to fetch from the StoryAttachment
1261
+ */
1262
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1263
+ /**
1264
+ * Omit specific fields from the StoryAttachment
1265
+ */
1266
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1267
+ /**
1268
+ * Choose, which related nodes to fetch as well
1269
+ */
1270
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1271
+ /**
1272
+ * The data needed to create a StoryAttachment.
1273
+ */
1274
+ data: Prisma.XOR<Prisma.StoryAttachmentCreateInput, Prisma.StoryAttachmentUncheckedCreateInput>
1275
+ }
1276
+
1277
+ /**
1278
+ * StoryAttachment createMany
1279
+ */
1280
+ export type StoryAttachmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1281
+ /**
1282
+ * The data used to create many StoryAttachments.
1283
+ */
1284
+ data: Prisma.StoryAttachmentCreateManyInput | Prisma.StoryAttachmentCreateManyInput[]
1285
+ skipDuplicates?: boolean
1286
+ }
1287
+
1288
+ /**
1289
+ * StoryAttachment createManyAndReturn
1290
+ */
1291
+ export type StoryAttachmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1292
+ /**
1293
+ * Select specific fields to fetch from the StoryAttachment
1294
+ */
1295
+ select?: Prisma.StoryAttachmentSelectCreateManyAndReturn<ExtArgs> | null
1296
+ /**
1297
+ * Omit specific fields from the StoryAttachment
1298
+ */
1299
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1300
+ /**
1301
+ * The data used to create many StoryAttachments.
1302
+ */
1303
+ data: Prisma.StoryAttachmentCreateManyInput | Prisma.StoryAttachmentCreateManyInput[]
1304
+ skipDuplicates?: boolean
1305
+ /**
1306
+ * Choose, which related nodes to fetch as well
1307
+ */
1308
+ include?: Prisma.StoryAttachmentIncludeCreateManyAndReturn<ExtArgs> | null
1309
+ }
1310
+
1311
+ /**
1312
+ * StoryAttachment update
1313
+ */
1314
+ export type StoryAttachmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1315
+ /**
1316
+ * Select specific fields to fetch from the StoryAttachment
1317
+ */
1318
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1319
+ /**
1320
+ * Omit specific fields from the StoryAttachment
1321
+ */
1322
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1323
+ /**
1324
+ * Choose, which related nodes to fetch as well
1325
+ */
1326
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1327
+ /**
1328
+ * The data needed to update a StoryAttachment.
1329
+ */
1330
+ data: Prisma.XOR<Prisma.StoryAttachmentUpdateInput, Prisma.StoryAttachmentUncheckedUpdateInput>
1331
+ /**
1332
+ * Choose, which StoryAttachment to update.
1333
+ */
1334
+ where: Prisma.StoryAttachmentWhereUniqueInput
1335
+ }
1336
+
1337
+ /**
1338
+ * StoryAttachment updateMany
1339
+ */
1340
+ export type StoryAttachmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1341
+ /**
1342
+ * The data used to update StoryAttachments.
1343
+ */
1344
+ data: Prisma.XOR<Prisma.StoryAttachmentUpdateManyMutationInput, Prisma.StoryAttachmentUncheckedUpdateManyInput>
1345
+ /**
1346
+ * Filter which StoryAttachments to update
1347
+ */
1348
+ where?: Prisma.StoryAttachmentWhereInput
1349
+ /**
1350
+ * Limit how many StoryAttachments to update.
1351
+ */
1352
+ limit?: number
1353
+ }
1354
+
1355
+ /**
1356
+ * StoryAttachment updateManyAndReturn
1357
+ */
1358
+ export type StoryAttachmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1359
+ /**
1360
+ * Select specific fields to fetch from the StoryAttachment
1361
+ */
1362
+ select?: Prisma.StoryAttachmentSelectUpdateManyAndReturn<ExtArgs> | null
1363
+ /**
1364
+ * Omit specific fields from the StoryAttachment
1365
+ */
1366
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1367
+ /**
1368
+ * The data used to update StoryAttachments.
1369
+ */
1370
+ data: Prisma.XOR<Prisma.StoryAttachmentUpdateManyMutationInput, Prisma.StoryAttachmentUncheckedUpdateManyInput>
1371
+ /**
1372
+ * Filter which StoryAttachments to update
1373
+ */
1374
+ where?: Prisma.StoryAttachmentWhereInput
1375
+ /**
1376
+ * Limit how many StoryAttachments to update.
1377
+ */
1378
+ limit?: number
1379
+ /**
1380
+ * Choose, which related nodes to fetch as well
1381
+ */
1382
+ include?: Prisma.StoryAttachmentIncludeUpdateManyAndReturn<ExtArgs> | null
1383
+ }
1384
+
1385
+ /**
1386
+ * StoryAttachment upsert
1387
+ */
1388
+ export type StoryAttachmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1389
+ /**
1390
+ * Select specific fields to fetch from the StoryAttachment
1391
+ */
1392
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1393
+ /**
1394
+ * Omit specific fields from the StoryAttachment
1395
+ */
1396
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1397
+ /**
1398
+ * Choose, which related nodes to fetch as well
1399
+ */
1400
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1401
+ /**
1402
+ * The filter to search for the StoryAttachment to update in case it exists.
1403
+ */
1404
+ where: Prisma.StoryAttachmentWhereUniqueInput
1405
+ /**
1406
+ * In case the StoryAttachment found by the `where` argument doesn't exist, create a new StoryAttachment with this data.
1407
+ */
1408
+ create: Prisma.XOR<Prisma.StoryAttachmentCreateInput, Prisma.StoryAttachmentUncheckedCreateInput>
1409
+ /**
1410
+ * In case the StoryAttachment was found with the provided `where` argument, update it with this data.
1411
+ */
1412
+ update: Prisma.XOR<Prisma.StoryAttachmentUpdateInput, Prisma.StoryAttachmentUncheckedUpdateInput>
1413
+ }
1414
+
1415
+ /**
1416
+ * StoryAttachment delete
1417
+ */
1418
+ export type StoryAttachmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1419
+ /**
1420
+ * Select specific fields to fetch from the StoryAttachment
1421
+ */
1422
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1423
+ /**
1424
+ * Omit specific fields from the StoryAttachment
1425
+ */
1426
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1427
+ /**
1428
+ * Choose, which related nodes to fetch as well
1429
+ */
1430
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1431
+ /**
1432
+ * Filter which StoryAttachment to delete.
1433
+ */
1434
+ where: Prisma.StoryAttachmentWhereUniqueInput
1435
+ }
1436
+
1437
+ /**
1438
+ * StoryAttachment deleteMany
1439
+ */
1440
+ export type StoryAttachmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1441
+ /**
1442
+ * Filter which StoryAttachments to delete
1443
+ */
1444
+ where?: Prisma.StoryAttachmentWhereInput
1445
+ /**
1446
+ * Limit how many StoryAttachments to delete.
1447
+ */
1448
+ limit?: number
1449
+ }
1450
+
1451
+ /**
1452
+ * StoryAttachment without action
1453
+ */
1454
+ export type StoryAttachmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1455
+ /**
1456
+ * Select specific fields to fetch from the StoryAttachment
1457
+ */
1458
+ select?: Prisma.StoryAttachmentSelect<ExtArgs> | null
1459
+ /**
1460
+ * Omit specific fields from the StoryAttachment
1461
+ */
1462
+ omit?: Prisma.StoryAttachmentOmit<ExtArgs> | null
1463
+ /**
1464
+ * Choose, which related nodes to fetch as well
1465
+ */
1466
+ include?: Prisma.StoryAttachmentInclude<ExtArgs> | null
1467
+ }