@triskcraft/db 0.1.0

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