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