@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.
- package/README.md +45 -0
- package/dist/generated/browser.d.ts +110 -0
- package/dist/generated/browser.d.ts.map +1 -0
- package/dist/generated/browser.js +18 -0
- package/dist/generated/browser.js.map +1 -0
- package/dist/generated/client.d.ts +129 -0
- package/dist/generated/client.d.ts.map +1 -0
- package/dist/generated/client.js +35 -0
- package/dist/generated/client.js.map +1 -0
- package/dist/generated/commonInputTypes.d.ts +501 -0
- package/dist/generated/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/commonInputTypes.js +11 -0
- package/dist/generated/commonInputTypes.js.map +1 -0
- package/dist/generated/enums.d.ts +19 -0
- package/dist/generated/enums.d.ts.map +1 -0
- package/dist/generated/enums.js +25 -0
- package/dist/generated/enums.js.map +1 -0
- package/dist/generated/internal/class.d.ts +363 -0
- package/dist/generated/internal/class.d.ts.map +1 -0
- package/dist/generated/internal/class.js +52 -0
- package/dist/generated/internal/class.js.map +1 -0
- package/dist/generated/internal/prismaNamespace.d.ts +2282 -0
- package/dist/generated/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/internal/prismaNamespace.js +262 -0
- package/dist/generated/internal/prismaNamespace.js.map +1 -0
- package/dist/generated/internal/prismaNamespaceBrowser.d.ts +243 -0
- package/dist/generated/internal/prismaNamespaceBrowser.d.ts.map +1 -0
- package/dist/generated/internal/prismaNamespaceBrowser.js +233 -0
- package/dist/generated/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/generated/models/AuthorizationCode.d.ts +1445 -0
- package/dist/generated/models/AuthorizationCode.d.ts.map +1 -0
- package/dist/generated/models/AuthorizationCode.js +2 -0
- package/dist/generated/models/AuthorizationCode.js.map +1 -0
- package/dist/generated/models/Client.d.ts +1301 -0
- package/dist/generated/models/Client.d.ts.map +1 -0
- package/dist/generated/models/Client.js +2 -0
- package/dist/generated/models/Client.js.map +1 -0
- package/dist/generated/models/DiscordUser.d.ts +1335 -0
- package/dist/generated/models/DiscordUser.d.ts.map +1 -0
- package/dist/generated/models/DiscordUser.js +2 -0
- package/dist/generated/models/DiscordUser.js.map +1 -0
- package/dist/generated/models/InactivityPeriod.d.ts +1255 -0
- package/dist/generated/models/InactivityPeriod.d.ts.map +1 -0
- package/dist/generated/models/InactivityPeriod.js +2 -0
- package/dist/generated/models/InactivityPeriod.js.map +1 -0
- package/dist/generated/models/LinkCode.d.ts +1100 -0
- package/dist/generated/models/LinkCode.d.ts.map +1 -0
- package/dist/generated/models/LinkCode.js +2 -0
- package/dist/generated/models/LinkCode.js.map +1 -0
- package/dist/generated/models/LinkedMinecraftRole.d.ts +1162 -0
- package/dist/generated/models/LinkedMinecraftRole.d.ts.map +1 -0
- package/dist/generated/models/LinkedMinecraftRole.js +2 -0
- package/dist/generated/models/LinkedMinecraftRole.js.map +1 -0
- package/dist/generated/models/LinkedRole.d.ts +1162 -0
- package/dist/generated/models/LinkedRole.d.ts.map +1 -0
- package/dist/generated/models/LinkedRole.js +2 -0
- package/dist/generated/models/LinkedRole.js.map +1 -0
- package/dist/generated/models/Media.d.ts +1146 -0
- package/dist/generated/models/Media.d.ts.map +1 -0
- package/dist/generated/models/Media.js +2 -0
- package/dist/generated/models/Media.js.map +1 -0
- package/dist/generated/models/MinecraftRole.d.ts +1064 -0
- package/dist/generated/models/MinecraftRole.d.ts.map +1 -0
- package/dist/generated/models/MinecraftRole.js +2 -0
- package/dist/generated/models/MinecraftRole.js.map +1 -0
- package/dist/generated/models/Player.d.ts +1458 -0
- package/dist/generated/models/Player.d.ts.map +1 -0
- package/dist/generated/models/Player.js +2 -0
- package/dist/generated/models/Player.js.map +1 -0
- package/dist/generated/models/Post.d.ts +1534 -0
- package/dist/generated/models/Post.d.ts.map +1 -0
- package/dist/generated/models/Post.js +2 -0
- package/dist/generated/models/Post.js.map +1 -0
- package/dist/generated/models/PostBlockMedia.d.ts +1243 -0
- package/dist/generated/models/PostBlockMedia.d.ts.map +1 -0
- package/dist/generated/models/PostBlockMedia.js +2 -0
- package/dist/generated/models/PostBlockMedia.js.map +1 -0
- package/dist/generated/models/PostBlocks.d.ts +1506 -0
- package/dist/generated/models/PostBlocks.d.ts.map +1 -0
- package/dist/generated/models/PostBlocks.js +2 -0
- package/dist/generated/models/PostBlocks.js.map +1 -0
- package/dist/generated/models/PostMedia.d.ts +1497 -0
- package/dist/generated/models/PostMedia.d.ts.map +1 -0
- package/dist/generated/models/PostMedia.js +2 -0
- package/dist/generated/models/PostMedia.js.map +1 -0
- package/dist/generated/models/Role.d.ts +1144 -0
- package/dist/generated/models/Role.d.ts.map +1 -0
- package/dist/generated/models/Role.js +2 -0
- package/dist/generated/models/Role.js.map +1 -0
- package/dist/generated/models/RoleStatistic.d.ts +1077 -0
- package/dist/generated/models/RoleStatistic.d.ts.map +1 -0
- package/dist/generated/models/RoleStatistic.js +2 -0
- package/dist/generated/models/RoleStatistic.js.map +1 -0
- package/dist/generated/models/Session.d.ts +1366 -0
- package/dist/generated/models/Session.d.ts.map +1 -0
- package/dist/generated/models/Session.js +2 -0
- package/dist/generated/models/Session.js.map +1 -0
- package/dist/generated/models/State.d.ts +970 -0
- package/dist/generated/models/State.d.ts.map +1 -0
- package/dist/generated/models/State.js +2 -0
- package/dist/generated/models/State.js.map +1 -0
- package/dist/generated/models/TrackedRole.d.ts +947 -0
- package/dist/generated/models/TrackedRole.d.ts.map +1 -0
- package/dist/generated/models/TrackedRole.js +2 -0
- package/dist/generated/models/TrackedRole.js.map +1 -0
- package/dist/generated/models/User.d.ts +1842 -0
- package/dist/generated/models/User.d.ts.map +1 -0
- package/dist/generated/models/User.js +2 -0
- package/dist/generated/models/User.js.map +1 -0
- package/dist/generated/models/WebhookToken.d.ts +1219 -0
- package/dist/generated/models/WebhookToken.d.ts.map +1 -0
- package/dist/generated/models/WebhookToken.js +2 -0
- package/dist/generated/models/WebhookToken.js.map +1 -0
- package/dist/generated/models.d.ts +23 -0
- package/dist/generated/models.d.ts.map +1 -0
- package/dist/generated/models.js +2 -0
- package/dist/generated/models.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/package.json +50 -0
- package/prisma/migrations/20251231000230_init/migration.sql +156 -0
- package/prisma/migrations/20251231011118_add_rank/migration.sql +2 -0
- package/prisma/migrations/20251231014040_discord_code/migration.sql +2 -0
- package/prisma/migrations/20260107232913_webhook_tokens/migration.sql +13 -0
- package/prisma/migrations/20260108014222_token_name/migration.sql +8 -0
- package/prisma/migrations/20260120042444_states/migration.sql +13 -0
- package/prisma/migrations/20260120052250_at/migration.sql +10 -0
- package/prisma/migrations/20260120061112_uq_token/migration.sql +8 -0
- package/prisma/migrations/20260121013517_uq_nick/migration.sql +8 -0
- package/prisma/migrations/20260125034645_mc_rank/migration.sql +2 -0
- package/prisma/migrations/20260202222436_remove_rank_from_discord/migration.sql +8 -0
- package/prisma/migrations/20260202234919_discord_user_username/migration.sql +2 -0
- package/prisma/migrations/20260202235832_uq_discord_username/migration.sql +12 -0
- package/prisma/migrations/20260301230127_blog/migration.sql +45 -0
- package/prisma/migrations/20260308062159_player_status/migration.sql +5 -0
- package/prisma/migrations/20260314152500_last_seen/migration.sql +2 -0
- package/prisma/migrations/20260430073735_oauth_prepare/migration.sql +102 -0
- package/prisma/migrations/20260603052836_scopes/migration.sql +11 -0
- package/prisma/migrations/20260603055719_scopes_sesion/migration.sql +2 -0
- package/prisma/migrations/20260603201228_user_roles/migration.sql +38 -0
- package/prisma/migrations/20260608060633_blog_media/migration.sql +61 -0
- package/prisma/migrations/20260612000040_prepare_post_users/migration.sql +5 -0
- package/prisma/migrations/20260612165923_prepare_webhook_user/migration.sql +53 -0
- package/prisma/migrations/20260612210328_remove_webhook_discord_user/migration.sql +19 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +325 -0
|
@@ -0,0 +1,1243 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Model PostBlockMedia
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type PostBlockMediaModel = runtime.Types.Result.DefaultSelection<Prisma.$PostBlockMediaPayload>;
|
|
8
|
+
export type AggregatePostBlockMedia = {
|
|
9
|
+
_count: PostBlockMediaCountAggregateOutputType | null;
|
|
10
|
+
_avg: PostBlockMediaAvgAggregateOutputType | null;
|
|
11
|
+
_sum: PostBlockMediaSumAggregateOutputType | null;
|
|
12
|
+
_min: PostBlockMediaMinAggregateOutputType | null;
|
|
13
|
+
_max: PostBlockMediaMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type PostBlockMediaAvgAggregateOutputType = {
|
|
16
|
+
position: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type PostBlockMediaSumAggregateOutputType = {
|
|
19
|
+
position: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type PostBlockMediaMinAggregateOutputType = {
|
|
22
|
+
post_block_message_id: string | null;
|
|
23
|
+
media_id: string | null;
|
|
24
|
+
position: number | null;
|
|
25
|
+
};
|
|
26
|
+
export type PostBlockMediaMaxAggregateOutputType = {
|
|
27
|
+
post_block_message_id: string | null;
|
|
28
|
+
media_id: string | null;
|
|
29
|
+
position: number | null;
|
|
30
|
+
};
|
|
31
|
+
export type PostBlockMediaCountAggregateOutputType = {
|
|
32
|
+
post_block_message_id: number;
|
|
33
|
+
media_id: number;
|
|
34
|
+
position: number;
|
|
35
|
+
_all: number;
|
|
36
|
+
};
|
|
37
|
+
export type PostBlockMediaAvgAggregateInputType = {
|
|
38
|
+
position?: true;
|
|
39
|
+
};
|
|
40
|
+
export type PostBlockMediaSumAggregateInputType = {
|
|
41
|
+
position?: true;
|
|
42
|
+
};
|
|
43
|
+
export type PostBlockMediaMinAggregateInputType = {
|
|
44
|
+
post_block_message_id?: true;
|
|
45
|
+
media_id?: true;
|
|
46
|
+
position?: true;
|
|
47
|
+
};
|
|
48
|
+
export type PostBlockMediaMaxAggregateInputType = {
|
|
49
|
+
post_block_message_id?: true;
|
|
50
|
+
media_id?: true;
|
|
51
|
+
position?: true;
|
|
52
|
+
};
|
|
53
|
+
export type PostBlockMediaCountAggregateInputType = {
|
|
54
|
+
post_block_message_id?: true;
|
|
55
|
+
media_id?: true;
|
|
56
|
+
position?: true;
|
|
57
|
+
_all?: true;
|
|
58
|
+
};
|
|
59
|
+
export type PostBlockMediaAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
60
|
+
/**
|
|
61
|
+
* Filter which PostBlockMedia to aggregate.
|
|
62
|
+
*/
|
|
63
|
+
where?: Prisma.PostBlockMediaWhereInput;
|
|
64
|
+
/**
|
|
65
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
66
|
+
*
|
|
67
|
+
* Determine the order of PostBlockMedias to fetch.
|
|
68
|
+
*/
|
|
69
|
+
orderBy?: Prisma.PostBlockMediaOrderByWithRelationInput | Prisma.PostBlockMediaOrderByWithRelationInput[];
|
|
70
|
+
/**
|
|
71
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
72
|
+
*
|
|
73
|
+
* Sets the start position
|
|
74
|
+
*/
|
|
75
|
+
cursor?: Prisma.PostBlockMediaWhereUniqueInput;
|
|
76
|
+
/**
|
|
77
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
78
|
+
*
|
|
79
|
+
* Take `±n` PostBlockMedias from the position of the cursor.
|
|
80
|
+
*/
|
|
81
|
+
take?: number;
|
|
82
|
+
/**
|
|
83
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
84
|
+
*
|
|
85
|
+
* Skip the first `n` PostBlockMedias.
|
|
86
|
+
*/
|
|
87
|
+
skip?: number;
|
|
88
|
+
/**
|
|
89
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
90
|
+
*
|
|
91
|
+
* Count returned PostBlockMedias
|
|
92
|
+
**/
|
|
93
|
+
_count?: true | PostBlockMediaCountAggregateInputType;
|
|
94
|
+
/**
|
|
95
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
96
|
+
*
|
|
97
|
+
* Select which fields to average
|
|
98
|
+
**/
|
|
99
|
+
_avg?: PostBlockMediaAvgAggregateInputType;
|
|
100
|
+
/**
|
|
101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
102
|
+
*
|
|
103
|
+
* Select which fields to sum
|
|
104
|
+
**/
|
|
105
|
+
_sum?: PostBlockMediaSumAggregateInputType;
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
108
|
+
*
|
|
109
|
+
* Select which fields to find the minimum value
|
|
110
|
+
**/
|
|
111
|
+
_min?: PostBlockMediaMinAggregateInputType;
|
|
112
|
+
/**
|
|
113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
114
|
+
*
|
|
115
|
+
* Select which fields to find the maximum value
|
|
116
|
+
**/
|
|
117
|
+
_max?: PostBlockMediaMaxAggregateInputType;
|
|
118
|
+
};
|
|
119
|
+
export type GetPostBlockMediaAggregateType<T extends PostBlockMediaAggregateArgs> = {
|
|
120
|
+
[P in keyof T & keyof AggregatePostBlockMedia]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePostBlockMedia[P]> : Prisma.GetScalarType<T[P], AggregatePostBlockMedia[P]>;
|
|
121
|
+
};
|
|
122
|
+
export type PostBlockMediaGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
123
|
+
where?: Prisma.PostBlockMediaWhereInput;
|
|
124
|
+
orderBy?: Prisma.PostBlockMediaOrderByWithAggregationInput | Prisma.PostBlockMediaOrderByWithAggregationInput[];
|
|
125
|
+
by: Prisma.PostBlockMediaScalarFieldEnum[] | Prisma.PostBlockMediaScalarFieldEnum;
|
|
126
|
+
having?: Prisma.PostBlockMediaScalarWhereWithAggregatesInput;
|
|
127
|
+
take?: number;
|
|
128
|
+
skip?: number;
|
|
129
|
+
_count?: PostBlockMediaCountAggregateInputType | true;
|
|
130
|
+
_avg?: PostBlockMediaAvgAggregateInputType;
|
|
131
|
+
_sum?: PostBlockMediaSumAggregateInputType;
|
|
132
|
+
_min?: PostBlockMediaMinAggregateInputType;
|
|
133
|
+
_max?: PostBlockMediaMaxAggregateInputType;
|
|
134
|
+
};
|
|
135
|
+
export type PostBlockMediaGroupByOutputType = {
|
|
136
|
+
post_block_message_id: string;
|
|
137
|
+
media_id: string;
|
|
138
|
+
position: number;
|
|
139
|
+
_count: PostBlockMediaCountAggregateOutputType | null;
|
|
140
|
+
_avg: PostBlockMediaAvgAggregateOutputType | null;
|
|
141
|
+
_sum: PostBlockMediaSumAggregateOutputType | null;
|
|
142
|
+
_min: PostBlockMediaMinAggregateOutputType | null;
|
|
143
|
+
_max: PostBlockMediaMaxAggregateOutputType | null;
|
|
144
|
+
};
|
|
145
|
+
export type GetPostBlockMediaGroupByPayload<T extends PostBlockMediaGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PostBlockMediaGroupByOutputType, T['by']> & {
|
|
146
|
+
[P in ((keyof T) & (keyof PostBlockMediaGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PostBlockMediaGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PostBlockMediaGroupByOutputType[P]>;
|
|
147
|
+
}>>;
|
|
148
|
+
export type PostBlockMediaWhereInput = {
|
|
149
|
+
AND?: Prisma.PostBlockMediaWhereInput | Prisma.PostBlockMediaWhereInput[];
|
|
150
|
+
OR?: Prisma.PostBlockMediaWhereInput[];
|
|
151
|
+
NOT?: Prisma.PostBlockMediaWhereInput | Prisma.PostBlockMediaWhereInput[];
|
|
152
|
+
post_block_message_id?: Prisma.StringFilter<"PostBlockMedia"> | string;
|
|
153
|
+
media_id?: Prisma.StringFilter<"PostBlockMedia"> | string;
|
|
154
|
+
position?: Prisma.IntFilter<"PostBlockMedia"> | number;
|
|
155
|
+
post_block?: Prisma.XOR<Prisma.PostBlocksScalarRelationFilter, Prisma.PostBlocksWhereInput>;
|
|
156
|
+
media?: Prisma.XOR<Prisma.PostMediaScalarRelationFilter, Prisma.PostMediaWhereInput>;
|
|
157
|
+
};
|
|
158
|
+
export type PostBlockMediaOrderByWithRelationInput = {
|
|
159
|
+
post_block_message_id?: Prisma.SortOrder;
|
|
160
|
+
media_id?: Prisma.SortOrder;
|
|
161
|
+
position?: Prisma.SortOrder;
|
|
162
|
+
post_block?: Prisma.PostBlocksOrderByWithRelationInput;
|
|
163
|
+
media?: Prisma.PostMediaOrderByWithRelationInput;
|
|
164
|
+
};
|
|
165
|
+
export type PostBlockMediaWhereUniqueInput = Prisma.AtLeast<{
|
|
166
|
+
post_block_message_id_media_id_position?: Prisma.PostBlockMediaPost_block_message_idMedia_idPositionCompoundUniqueInput;
|
|
167
|
+
AND?: Prisma.PostBlockMediaWhereInput | Prisma.PostBlockMediaWhereInput[];
|
|
168
|
+
OR?: Prisma.PostBlockMediaWhereInput[];
|
|
169
|
+
NOT?: Prisma.PostBlockMediaWhereInput | Prisma.PostBlockMediaWhereInput[];
|
|
170
|
+
post_block_message_id?: Prisma.StringFilter<"PostBlockMedia"> | string;
|
|
171
|
+
media_id?: Prisma.StringFilter<"PostBlockMedia"> | string;
|
|
172
|
+
position?: Prisma.IntFilter<"PostBlockMedia"> | number;
|
|
173
|
+
post_block?: Prisma.XOR<Prisma.PostBlocksScalarRelationFilter, Prisma.PostBlocksWhereInput>;
|
|
174
|
+
media?: Prisma.XOR<Prisma.PostMediaScalarRelationFilter, Prisma.PostMediaWhereInput>;
|
|
175
|
+
}, "post_block_message_id_media_id_position">;
|
|
176
|
+
export type PostBlockMediaOrderByWithAggregationInput = {
|
|
177
|
+
post_block_message_id?: Prisma.SortOrder;
|
|
178
|
+
media_id?: Prisma.SortOrder;
|
|
179
|
+
position?: Prisma.SortOrder;
|
|
180
|
+
_count?: Prisma.PostBlockMediaCountOrderByAggregateInput;
|
|
181
|
+
_avg?: Prisma.PostBlockMediaAvgOrderByAggregateInput;
|
|
182
|
+
_max?: Prisma.PostBlockMediaMaxOrderByAggregateInput;
|
|
183
|
+
_min?: Prisma.PostBlockMediaMinOrderByAggregateInput;
|
|
184
|
+
_sum?: Prisma.PostBlockMediaSumOrderByAggregateInput;
|
|
185
|
+
};
|
|
186
|
+
export type PostBlockMediaScalarWhereWithAggregatesInput = {
|
|
187
|
+
AND?: Prisma.PostBlockMediaScalarWhereWithAggregatesInput | Prisma.PostBlockMediaScalarWhereWithAggregatesInput[];
|
|
188
|
+
OR?: Prisma.PostBlockMediaScalarWhereWithAggregatesInput[];
|
|
189
|
+
NOT?: Prisma.PostBlockMediaScalarWhereWithAggregatesInput | Prisma.PostBlockMediaScalarWhereWithAggregatesInput[];
|
|
190
|
+
post_block_message_id?: Prisma.StringWithAggregatesFilter<"PostBlockMedia"> | string;
|
|
191
|
+
media_id?: Prisma.StringWithAggregatesFilter<"PostBlockMedia"> | string;
|
|
192
|
+
position?: Prisma.IntWithAggregatesFilter<"PostBlockMedia"> | number;
|
|
193
|
+
};
|
|
194
|
+
export type PostBlockMediaCreateInput = {
|
|
195
|
+
position?: number;
|
|
196
|
+
post_block: Prisma.PostBlocksCreateNestedOneWithoutMediaInput;
|
|
197
|
+
media: Prisma.PostMediaCreateNestedOneWithoutPost_blocksInput;
|
|
198
|
+
};
|
|
199
|
+
export type PostBlockMediaUncheckedCreateInput = {
|
|
200
|
+
post_block_message_id: string;
|
|
201
|
+
media_id: string;
|
|
202
|
+
position?: number;
|
|
203
|
+
};
|
|
204
|
+
export type PostBlockMediaUpdateInput = {
|
|
205
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
206
|
+
post_block?: Prisma.PostBlocksUpdateOneRequiredWithoutMediaNestedInput;
|
|
207
|
+
media?: Prisma.PostMediaUpdateOneRequiredWithoutPost_blocksNestedInput;
|
|
208
|
+
};
|
|
209
|
+
export type PostBlockMediaUncheckedUpdateInput = {
|
|
210
|
+
post_block_message_id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
211
|
+
media_id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
212
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
213
|
+
};
|
|
214
|
+
export type PostBlockMediaCreateManyInput = {
|
|
215
|
+
post_block_message_id: string;
|
|
216
|
+
media_id: string;
|
|
217
|
+
position?: number;
|
|
218
|
+
};
|
|
219
|
+
export type PostBlockMediaUpdateManyMutationInput = {
|
|
220
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
221
|
+
};
|
|
222
|
+
export type PostBlockMediaUncheckedUpdateManyInput = {
|
|
223
|
+
post_block_message_id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
224
|
+
media_id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
225
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
226
|
+
};
|
|
227
|
+
export type PostBlockMediaListRelationFilter = {
|
|
228
|
+
every?: Prisma.PostBlockMediaWhereInput;
|
|
229
|
+
some?: Prisma.PostBlockMediaWhereInput;
|
|
230
|
+
none?: Prisma.PostBlockMediaWhereInput;
|
|
231
|
+
};
|
|
232
|
+
export type PostBlockMediaOrderByRelationAggregateInput = {
|
|
233
|
+
_count?: Prisma.SortOrder;
|
|
234
|
+
};
|
|
235
|
+
export type PostBlockMediaPost_block_message_idMedia_idPositionCompoundUniqueInput = {
|
|
236
|
+
post_block_message_id: string;
|
|
237
|
+
media_id: string;
|
|
238
|
+
position: number;
|
|
239
|
+
};
|
|
240
|
+
export type PostBlockMediaCountOrderByAggregateInput = {
|
|
241
|
+
post_block_message_id?: Prisma.SortOrder;
|
|
242
|
+
media_id?: Prisma.SortOrder;
|
|
243
|
+
position?: Prisma.SortOrder;
|
|
244
|
+
};
|
|
245
|
+
export type PostBlockMediaAvgOrderByAggregateInput = {
|
|
246
|
+
position?: Prisma.SortOrder;
|
|
247
|
+
};
|
|
248
|
+
export type PostBlockMediaMaxOrderByAggregateInput = {
|
|
249
|
+
post_block_message_id?: Prisma.SortOrder;
|
|
250
|
+
media_id?: Prisma.SortOrder;
|
|
251
|
+
position?: Prisma.SortOrder;
|
|
252
|
+
};
|
|
253
|
+
export type PostBlockMediaMinOrderByAggregateInput = {
|
|
254
|
+
post_block_message_id?: Prisma.SortOrder;
|
|
255
|
+
media_id?: Prisma.SortOrder;
|
|
256
|
+
position?: Prisma.SortOrder;
|
|
257
|
+
};
|
|
258
|
+
export type PostBlockMediaSumOrderByAggregateInput = {
|
|
259
|
+
position?: Prisma.SortOrder;
|
|
260
|
+
};
|
|
261
|
+
export type PostBlockMediaCreateNestedManyWithoutPost_blockInput = {
|
|
262
|
+
create?: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutPost_blockInput, Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput> | Prisma.PostBlockMediaCreateWithoutPost_blockInput[] | Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput[];
|
|
263
|
+
connectOrCreate?: Prisma.PostBlockMediaCreateOrConnectWithoutPost_blockInput | Prisma.PostBlockMediaCreateOrConnectWithoutPost_blockInput[];
|
|
264
|
+
createMany?: Prisma.PostBlockMediaCreateManyPost_blockInputEnvelope;
|
|
265
|
+
connect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
266
|
+
};
|
|
267
|
+
export type PostBlockMediaUncheckedCreateNestedManyWithoutPost_blockInput = {
|
|
268
|
+
create?: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutPost_blockInput, Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput> | Prisma.PostBlockMediaCreateWithoutPost_blockInput[] | Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput[];
|
|
269
|
+
connectOrCreate?: Prisma.PostBlockMediaCreateOrConnectWithoutPost_blockInput | Prisma.PostBlockMediaCreateOrConnectWithoutPost_blockInput[];
|
|
270
|
+
createMany?: Prisma.PostBlockMediaCreateManyPost_blockInputEnvelope;
|
|
271
|
+
connect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
272
|
+
};
|
|
273
|
+
export type PostBlockMediaUpdateManyWithoutPost_blockNestedInput = {
|
|
274
|
+
create?: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutPost_blockInput, Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput> | Prisma.PostBlockMediaCreateWithoutPost_blockInput[] | Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput[];
|
|
275
|
+
connectOrCreate?: Prisma.PostBlockMediaCreateOrConnectWithoutPost_blockInput | Prisma.PostBlockMediaCreateOrConnectWithoutPost_blockInput[];
|
|
276
|
+
upsert?: Prisma.PostBlockMediaUpsertWithWhereUniqueWithoutPost_blockInput | Prisma.PostBlockMediaUpsertWithWhereUniqueWithoutPost_blockInput[];
|
|
277
|
+
createMany?: Prisma.PostBlockMediaCreateManyPost_blockInputEnvelope;
|
|
278
|
+
set?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
279
|
+
disconnect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
280
|
+
delete?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
281
|
+
connect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
282
|
+
update?: Prisma.PostBlockMediaUpdateWithWhereUniqueWithoutPost_blockInput | Prisma.PostBlockMediaUpdateWithWhereUniqueWithoutPost_blockInput[];
|
|
283
|
+
updateMany?: Prisma.PostBlockMediaUpdateManyWithWhereWithoutPost_blockInput | Prisma.PostBlockMediaUpdateManyWithWhereWithoutPost_blockInput[];
|
|
284
|
+
deleteMany?: Prisma.PostBlockMediaScalarWhereInput | Prisma.PostBlockMediaScalarWhereInput[];
|
|
285
|
+
};
|
|
286
|
+
export type PostBlockMediaUncheckedUpdateManyWithoutPost_blockNestedInput = {
|
|
287
|
+
create?: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutPost_blockInput, Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput> | Prisma.PostBlockMediaCreateWithoutPost_blockInput[] | Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput[];
|
|
288
|
+
connectOrCreate?: Prisma.PostBlockMediaCreateOrConnectWithoutPost_blockInput | Prisma.PostBlockMediaCreateOrConnectWithoutPost_blockInput[];
|
|
289
|
+
upsert?: Prisma.PostBlockMediaUpsertWithWhereUniqueWithoutPost_blockInput | Prisma.PostBlockMediaUpsertWithWhereUniqueWithoutPost_blockInput[];
|
|
290
|
+
createMany?: Prisma.PostBlockMediaCreateManyPost_blockInputEnvelope;
|
|
291
|
+
set?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
292
|
+
disconnect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
293
|
+
delete?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
294
|
+
connect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
295
|
+
update?: Prisma.PostBlockMediaUpdateWithWhereUniqueWithoutPost_blockInput | Prisma.PostBlockMediaUpdateWithWhereUniqueWithoutPost_blockInput[];
|
|
296
|
+
updateMany?: Prisma.PostBlockMediaUpdateManyWithWhereWithoutPost_blockInput | Prisma.PostBlockMediaUpdateManyWithWhereWithoutPost_blockInput[];
|
|
297
|
+
deleteMany?: Prisma.PostBlockMediaScalarWhereInput | Prisma.PostBlockMediaScalarWhereInput[];
|
|
298
|
+
};
|
|
299
|
+
export type PostBlockMediaCreateNestedManyWithoutMediaInput = {
|
|
300
|
+
create?: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutMediaInput, Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput> | Prisma.PostBlockMediaCreateWithoutMediaInput[] | Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput[];
|
|
301
|
+
connectOrCreate?: Prisma.PostBlockMediaCreateOrConnectWithoutMediaInput | Prisma.PostBlockMediaCreateOrConnectWithoutMediaInput[];
|
|
302
|
+
createMany?: Prisma.PostBlockMediaCreateManyMediaInputEnvelope;
|
|
303
|
+
connect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
304
|
+
};
|
|
305
|
+
export type PostBlockMediaUncheckedCreateNestedManyWithoutMediaInput = {
|
|
306
|
+
create?: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutMediaInput, Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput> | Prisma.PostBlockMediaCreateWithoutMediaInput[] | Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput[];
|
|
307
|
+
connectOrCreate?: Prisma.PostBlockMediaCreateOrConnectWithoutMediaInput | Prisma.PostBlockMediaCreateOrConnectWithoutMediaInput[];
|
|
308
|
+
createMany?: Prisma.PostBlockMediaCreateManyMediaInputEnvelope;
|
|
309
|
+
connect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
310
|
+
};
|
|
311
|
+
export type PostBlockMediaUpdateManyWithoutMediaNestedInput = {
|
|
312
|
+
create?: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutMediaInput, Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput> | Prisma.PostBlockMediaCreateWithoutMediaInput[] | Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput[];
|
|
313
|
+
connectOrCreate?: Prisma.PostBlockMediaCreateOrConnectWithoutMediaInput | Prisma.PostBlockMediaCreateOrConnectWithoutMediaInput[];
|
|
314
|
+
upsert?: Prisma.PostBlockMediaUpsertWithWhereUniqueWithoutMediaInput | Prisma.PostBlockMediaUpsertWithWhereUniqueWithoutMediaInput[];
|
|
315
|
+
createMany?: Prisma.PostBlockMediaCreateManyMediaInputEnvelope;
|
|
316
|
+
set?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
317
|
+
disconnect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
318
|
+
delete?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
319
|
+
connect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
320
|
+
update?: Prisma.PostBlockMediaUpdateWithWhereUniqueWithoutMediaInput | Prisma.PostBlockMediaUpdateWithWhereUniqueWithoutMediaInput[];
|
|
321
|
+
updateMany?: Prisma.PostBlockMediaUpdateManyWithWhereWithoutMediaInput | Prisma.PostBlockMediaUpdateManyWithWhereWithoutMediaInput[];
|
|
322
|
+
deleteMany?: Prisma.PostBlockMediaScalarWhereInput | Prisma.PostBlockMediaScalarWhereInput[];
|
|
323
|
+
};
|
|
324
|
+
export type PostBlockMediaUncheckedUpdateManyWithoutMediaNestedInput = {
|
|
325
|
+
create?: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutMediaInput, Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput> | Prisma.PostBlockMediaCreateWithoutMediaInput[] | Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput[];
|
|
326
|
+
connectOrCreate?: Prisma.PostBlockMediaCreateOrConnectWithoutMediaInput | Prisma.PostBlockMediaCreateOrConnectWithoutMediaInput[];
|
|
327
|
+
upsert?: Prisma.PostBlockMediaUpsertWithWhereUniqueWithoutMediaInput | Prisma.PostBlockMediaUpsertWithWhereUniqueWithoutMediaInput[];
|
|
328
|
+
createMany?: Prisma.PostBlockMediaCreateManyMediaInputEnvelope;
|
|
329
|
+
set?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
330
|
+
disconnect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
331
|
+
delete?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
332
|
+
connect?: Prisma.PostBlockMediaWhereUniqueInput | Prisma.PostBlockMediaWhereUniqueInput[];
|
|
333
|
+
update?: Prisma.PostBlockMediaUpdateWithWhereUniqueWithoutMediaInput | Prisma.PostBlockMediaUpdateWithWhereUniqueWithoutMediaInput[];
|
|
334
|
+
updateMany?: Prisma.PostBlockMediaUpdateManyWithWhereWithoutMediaInput | Prisma.PostBlockMediaUpdateManyWithWhereWithoutMediaInput[];
|
|
335
|
+
deleteMany?: Prisma.PostBlockMediaScalarWhereInput | Prisma.PostBlockMediaScalarWhereInput[];
|
|
336
|
+
};
|
|
337
|
+
export type PostBlockMediaCreateWithoutPost_blockInput = {
|
|
338
|
+
position?: number;
|
|
339
|
+
media: Prisma.PostMediaCreateNestedOneWithoutPost_blocksInput;
|
|
340
|
+
};
|
|
341
|
+
export type PostBlockMediaUncheckedCreateWithoutPost_blockInput = {
|
|
342
|
+
media_id: string;
|
|
343
|
+
position?: number;
|
|
344
|
+
};
|
|
345
|
+
export type PostBlockMediaCreateOrConnectWithoutPost_blockInput = {
|
|
346
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
347
|
+
create: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutPost_blockInput, Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput>;
|
|
348
|
+
};
|
|
349
|
+
export type PostBlockMediaCreateManyPost_blockInputEnvelope = {
|
|
350
|
+
data: Prisma.PostBlockMediaCreateManyPost_blockInput | Prisma.PostBlockMediaCreateManyPost_blockInput[];
|
|
351
|
+
skipDuplicates?: boolean;
|
|
352
|
+
};
|
|
353
|
+
export type PostBlockMediaUpsertWithWhereUniqueWithoutPost_blockInput = {
|
|
354
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
355
|
+
update: Prisma.XOR<Prisma.PostBlockMediaUpdateWithoutPost_blockInput, Prisma.PostBlockMediaUncheckedUpdateWithoutPost_blockInput>;
|
|
356
|
+
create: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutPost_blockInput, Prisma.PostBlockMediaUncheckedCreateWithoutPost_blockInput>;
|
|
357
|
+
};
|
|
358
|
+
export type PostBlockMediaUpdateWithWhereUniqueWithoutPost_blockInput = {
|
|
359
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
360
|
+
data: Prisma.XOR<Prisma.PostBlockMediaUpdateWithoutPost_blockInput, Prisma.PostBlockMediaUncheckedUpdateWithoutPost_blockInput>;
|
|
361
|
+
};
|
|
362
|
+
export type PostBlockMediaUpdateManyWithWhereWithoutPost_blockInput = {
|
|
363
|
+
where: Prisma.PostBlockMediaScalarWhereInput;
|
|
364
|
+
data: Prisma.XOR<Prisma.PostBlockMediaUpdateManyMutationInput, Prisma.PostBlockMediaUncheckedUpdateManyWithoutPost_blockInput>;
|
|
365
|
+
};
|
|
366
|
+
export type PostBlockMediaScalarWhereInput = {
|
|
367
|
+
AND?: Prisma.PostBlockMediaScalarWhereInput | Prisma.PostBlockMediaScalarWhereInput[];
|
|
368
|
+
OR?: Prisma.PostBlockMediaScalarWhereInput[];
|
|
369
|
+
NOT?: Prisma.PostBlockMediaScalarWhereInput | Prisma.PostBlockMediaScalarWhereInput[];
|
|
370
|
+
post_block_message_id?: Prisma.StringFilter<"PostBlockMedia"> | string;
|
|
371
|
+
media_id?: Prisma.StringFilter<"PostBlockMedia"> | string;
|
|
372
|
+
position?: Prisma.IntFilter<"PostBlockMedia"> | number;
|
|
373
|
+
};
|
|
374
|
+
export type PostBlockMediaCreateWithoutMediaInput = {
|
|
375
|
+
position?: number;
|
|
376
|
+
post_block: Prisma.PostBlocksCreateNestedOneWithoutMediaInput;
|
|
377
|
+
};
|
|
378
|
+
export type PostBlockMediaUncheckedCreateWithoutMediaInput = {
|
|
379
|
+
post_block_message_id: string;
|
|
380
|
+
position?: number;
|
|
381
|
+
};
|
|
382
|
+
export type PostBlockMediaCreateOrConnectWithoutMediaInput = {
|
|
383
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
384
|
+
create: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutMediaInput, Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput>;
|
|
385
|
+
};
|
|
386
|
+
export type PostBlockMediaCreateManyMediaInputEnvelope = {
|
|
387
|
+
data: Prisma.PostBlockMediaCreateManyMediaInput | Prisma.PostBlockMediaCreateManyMediaInput[];
|
|
388
|
+
skipDuplicates?: boolean;
|
|
389
|
+
};
|
|
390
|
+
export type PostBlockMediaUpsertWithWhereUniqueWithoutMediaInput = {
|
|
391
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
392
|
+
update: Prisma.XOR<Prisma.PostBlockMediaUpdateWithoutMediaInput, Prisma.PostBlockMediaUncheckedUpdateWithoutMediaInput>;
|
|
393
|
+
create: Prisma.XOR<Prisma.PostBlockMediaCreateWithoutMediaInput, Prisma.PostBlockMediaUncheckedCreateWithoutMediaInput>;
|
|
394
|
+
};
|
|
395
|
+
export type PostBlockMediaUpdateWithWhereUniqueWithoutMediaInput = {
|
|
396
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
397
|
+
data: Prisma.XOR<Prisma.PostBlockMediaUpdateWithoutMediaInput, Prisma.PostBlockMediaUncheckedUpdateWithoutMediaInput>;
|
|
398
|
+
};
|
|
399
|
+
export type PostBlockMediaUpdateManyWithWhereWithoutMediaInput = {
|
|
400
|
+
where: Prisma.PostBlockMediaScalarWhereInput;
|
|
401
|
+
data: Prisma.XOR<Prisma.PostBlockMediaUpdateManyMutationInput, Prisma.PostBlockMediaUncheckedUpdateManyWithoutMediaInput>;
|
|
402
|
+
};
|
|
403
|
+
export type PostBlockMediaCreateManyPost_blockInput = {
|
|
404
|
+
media_id: string;
|
|
405
|
+
position?: number;
|
|
406
|
+
};
|
|
407
|
+
export type PostBlockMediaUpdateWithoutPost_blockInput = {
|
|
408
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
409
|
+
media?: Prisma.PostMediaUpdateOneRequiredWithoutPost_blocksNestedInput;
|
|
410
|
+
};
|
|
411
|
+
export type PostBlockMediaUncheckedUpdateWithoutPost_blockInput = {
|
|
412
|
+
media_id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
413
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
414
|
+
};
|
|
415
|
+
export type PostBlockMediaUncheckedUpdateManyWithoutPost_blockInput = {
|
|
416
|
+
media_id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
417
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
418
|
+
};
|
|
419
|
+
export type PostBlockMediaCreateManyMediaInput = {
|
|
420
|
+
post_block_message_id: string;
|
|
421
|
+
position?: number;
|
|
422
|
+
};
|
|
423
|
+
export type PostBlockMediaUpdateWithoutMediaInput = {
|
|
424
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
425
|
+
post_block?: Prisma.PostBlocksUpdateOneRequiredWithoutMediaNestedInput;
|
|
426
|
+
};
|
|
427
|
+
export type PostBlockMediaUncheckedUpdateWithoutMediaInput = {
|
|
428
|
+
post_block_message_id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
429
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
430
|
+
};
|
|
431
|
+
export type PostBlockMediaUncheckedUpdateManyWithoutMediaInput = {
|
|
432
|
+
post_block_message_id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
433
|
+
position?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
434
|
+
};
|
|
435
|
+
export type PostBlockMediaSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
436
|
+
post_block_message_id?: boolean;
|
|
437
|
+
media_id?: boolean;
|
|
438
|
+
position?: boolean;
|
|
439
|
+
post_block?: boolean | Prisma.PostBlocksDefaultArgs<ExtArgs>;
|
|
440
|
+
media?: boolean | Prisma.PostMediaDefaultArgs<ExtArgs>;
|
|
441
|
+
}, ExtArgs["result"]["postBlockMedia"]>;
|
|
442
|
+
export type PostBlockMediaSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
443
|
+
post_block_message_id?: boolean;
|
|
444
|
+
media_id?: boolean;
|
|
445
|
+
position?: boolean;
|
|
446
|
+
post_block?: boolean | Prisma.PostBlocksDefaultArgs<ExtArgs>;
|
|
447
|
+
media?: boolean | Prisma.PostMediaDefaultArgs<ExtArgs>;
|
|
448
|
+
}, ExtArgs["result"]["postBlockMedia"]>;
|
|
449
|
+
export type PostBlockMediaSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
450
|
+
post_block_message_id?: boolean;
|
|
451
|
+
media_id?: boolean;
|
|
452
|
+
position?: boolean;
|
|
453
|
+
post_block?: boolean | Prisma.PostBlocksDefaultArgs<ExtArgs>;
|
|
454
|
+
media?: boolean | Prisma.PostMediaDefaultArgs<ExtArgs>;
|
|
455
|
+
}, ExtArgs["result"]["postBlockMedia"]>;
|
|
456
|
+
export type PostBlockMediaSelectScalar = {
|
|
457
|
+
post_block_message_id?: boolean;
|
|
458
|
+
media_id?: boolean;
|
|
459
|
+
position?: boolean;
|
|
460
|
+
};
|
|
461
|
+
export type PostBlockMediaOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"post_block_message_id" | "media_id" | "position", ExtArgs["result"]["postBlockMedia"]>;
|
|
462
|
+
export type PostBlockMediaInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
463
|
+
post_block?: boolean | Prisma.PostBlocksDefaultArgs<ExtArgs>;
|
|
464
|
+
media?: boolean | Prisma.PostMediaDefaultArgs<ExtArgs>;
|
|
465
|
+
};
|
|
466
|
+
export type PostBlockMediaIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
467
|
+
post_block?: boolean | Prisma.PostBlocksDefaultArgs<ExtArgs>;
|
|
468
|
+
media?: boolean | Prisma.PostMediaDefaultArgs<ExtArgs>;
|
|
469
|
+
};
|
|
470
|
+
export type PostBlockMediaIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
471
|
+
post_block?: boolean | Prisma.PostBlocksDefaultArgs<ExtArgs>;
|
|
472
|
+
media?: boolean | Prisma.PostMediaDefaultArgs<ExtArgs>;
|
|
473
|
+
};
|
|
474
|
+
export type $PostBlockMediaPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
475
|
+
name: "PostBlockMedia";
|
|
476
|
+
objects: {
|
|
477
|
+
post_block: Prisma.$PostBlocksPayload<ExtArgs>;
|
|
478
|
+
media: Prisma.$PostMediaPayload<ExtArgs>;
|
|
479
|
+
};
|
|
480
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
481
|
+
post_block_message_id: string;
|
|
482
|
+
media_id: string;
|
|
483
|
+
position: number;
|
|
484
|
+
}, ExtArgs["result"]["postBlockMedia"]>;
|
|
485
|
+
composites: {};
|
|
486
|
+
};
|
|
487
|
+
export type PostBlockMediaGetPayload<S extends boolean | null | undefined | PostBlockMediaDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload, S>;
|
|
488
|
+
export type PostBlockMediaCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PostBlockMediaFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
489
|
+
select?: PostBlockMediaCountAggregateInputType | true;
|
|
490
|
+
};
|
|
491
|
+
export interface PostBlockMediaDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
492
|
+
[K: symbol]: {
|
|
493
|
+
types: Prisma.TypeMap<ExtArgs>['model']['PostBlockMedia'];
|
|
494
|
+
meta: {
|
|
495
|
+
name: 'PostBlockMedia';
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
/**
|
|
499
|
+
* Find zero or one PostBlockMedia that matches the filter.
|
|
500
|
+
* @param {PostBlockMediaFindUniqueArgs} args - Arguments to find a PostBlockMedia
|
|
501
|
+
* @example
|
|
502
|
+
* // Get one PostBlockMedia
|
|
503
|
+
* const postBlockMedia = await prisma.postBlockMedia.findUnique({
|
|
504
|
+
* where: {
|
|
505
|
+
* // ... provide filter here
|
|
506
|
+
* }
|
|
507
|
+
* })
|
|
508
|
+
*/
|
|
509
|
+
findUnique<T extends PostBlockMediaFindUniqueArgs>(args: Prisma.SelectSubset<T, PostBlockMediaFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PostBlockMediaClient<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
510
|
+
/**
|
|
511
|
+
* Find one PostBlockMedia that matches the filter or throw an error with `error.code='P2025'`
|
|
512
|
+
* if no matches were found.
|
|
513
|
+
* @param {PostBlockMediaFindUniqueOrThrowArgs} args - Arguments to find a PostBlockMedia
|
|
514
|
+
* @example
|
|
515
|
+
* // Get one PostBlockMedia
|
|
516
|
+
* const postBlockMedia = await prisma.postBlockMedia.findUniqueOrThrow({
|
|
517
|
+
* where: {
|
|
518
|
+
* // ... provide filter here
|
|
519
|
+
* }
|
|
520
|
+
* })
|
|
521
|
+
*/
|
|
522
|
+
findUniqueOrThrow<T extends PostBlockMediaFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PostBlockMediaFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PostBlockMediaClient<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
523
|
+
/**
|
|
524
|
+
* Find the first PostBlockMedia that matches the filter.
|
|
525
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
526
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
527
|
+
* @param {PostBlockMediaFindFirstArgs} args - Arguments to find a PostBlockMedia
|
|
528
|
+
* @example
|
|
529
|
+
* // Get one PostBlockMedia
|
|
530
|
+
* const postBlockMedia = await prisma.postBlockMedia.findFirst({
|
|
531
|
+
* where: {
|
|
532
|
+
* // ... provide filter here
|
|
533
|
+
* }
|
|
534
|
+
* })
|
|
535
|
+
*/
|
|
536
|
+
findFirst<T extends PostBlockMediaFindFirstArgs>(args?: Prisma.SelectSubset<T, PostBlockMediaFindFirstArgs<ExtArgs>>): Prisma.Prisma__PostBlockMediaClient<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
537
|
+
/**
|
|
538
|
+
* Find the first PostBlockMedia that matches the filter or
|
|
539
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
540
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
541
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
542
|
+
* @param {PostBlockMediaFindFirstOrThrowArgs} args - Arguments to find a PostBlockMedia
|
|
543
|
+
* @example
|
|
544
|
+
* // Get one PostBlockMedia
|
|
545
|
+
* const postBlockMedia = await prisma.postBlockMedia.findFirstOrThrow({
|
|
546
|
+
* where: {
|
|
547
|
+
* // ... provide filter here
|
|
548
|
+
* }
|
|
549
|
+
* })
|
|
550
|
+
*/
|
|
551
|
+
findFirstOrThrow<T extends PostBlockMediaFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PostBlockMediaFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PostBlockMediaClient<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
552
|
+
/**
|
|
553
|
+
* Find zero or more PostBlockMedias that matches the filter.
|
|
554
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
555
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
556
|
+
* @param {PostBlockMediaFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
557
|
+
* @example
|
|
558
|
+
* // Get all PostBlockMedias
|
|
559
|
+
* const postBlockMedias = await prisma.postBlockMedia.findMany()
|
|
560
|
+
*
|
|
561
|
+
* // Get first 10 PostBlockMedias
|
|
562
|
+
* const postBlockMedias = await prisma.postBlockMedia.findMany({ take: 10 })
|
|
563
|
+
*
|
|
564
|
+
* // Only select the `post_block_message_id`
|
|
565
|
+
* const postBlockMediaWithPost_block_message_idOnly = await prisma.postBlockMedia.findMany({ select: { post_block_message_id: true } })
|
|
566
|
+
*
|
|
567
|
+
*/
|
|
568
|
+
findMany<T extends PostBlockMediaFindManyArgs>(args?: Prisma.SelectSubset<T, PostBlockMediaFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
569
|
+
/**
|
|
570
|
+
* Create a PostBlockMedia.
|
|
571
|
+
* @param {PostBlockMediaCreateArgs} args - Arguments to create a PostBlockMedia.
|
|
572
|
+
* @example
|
|
573
|
+
* // Create one PostBlockMedia
|
|
574
|
+
* const PostBlockMedia = await prisma.postBlockMedia.create({
|
|
575
|
+
* data: {
|
|
576
|
+
* // ... data to create a PostBlockMedia
|
|
577
|
+
* }
|
|
578
|
+
* })
|
|
579
|
+
*
|
|
580
|
+
*/
|
|
581
|
+
create<T extends PostBlockMediaCreateArgs>(args: Prisma.SelectSubset<T, PostBlockMediaCreateArgs<ExtArgs>>): Prisma.Prisma__PostBlockMediaClient<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
582
|
+
/**
|
|
583
|
+
* Create many PostBlockMedias.
|
|
584
|
+
* @param {PostBlockMediaCreateManyArgs} args - Arguments to create many PostBlockMedias.
|
|
585
|
+
* @example
|
|
586
|
+
* // Create many PostBlockMedias
|
|
587
|
+
* const postBlockMedia = await prisma.postBlockMedia.createMany({
|
|
588
|
+
* data: [
|
|
589
|
+
* // ... provide data here
|
|
590
|
+
* ]
|
|
591
|
+
* })
|
|
592
|
+
*
|
|
593
|
+
*/
|
|
594
|
+
createMany<T extends PostBlockMediaCreateManyArgs>(args?: Prisma.SelectSubset<T, PostBlockMediaCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
595
|
+
/**
|
|
596
|
+
* Create many PostBlockMedias and returns the data saved in the database.
|
|
597
|
+
* @param {PostBlockMediaCreateManyAndReturnArgs} args - Arguments to create many PostBlockMedias.
|
|
598
|
+
* @example
|
|
599
|
+
* // Create many PostBlockMedias
|
|
600
|
+
* const postBlockMedia = await prisma.postBlockMedia.createManyAndReturn({
|
|
601
|
+
* data: [
|
|
602
|
+
* // ... provide data here
|
|
603
|
+
* ]
|
|
604
|
+
* })
|
|
605
|
+
*
|
|
606
|
+
* // Create many PostBlockMedias and only return the `post_block_message_id`
|
|
607
|
+
* const postBlockMediaWithPost_block_message_idOnly = await prisma.postBlockMedia.createManyAndReturn({
|
|
608
|
+
* select: { post_block_message_id: true },
|
|
609
|
+
* data: [
|
|
610
|
+
* // ... provide data here
|
|
611
|
+
* ]
|
|
612
|
+
* })
|
|
613
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
614
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
615
|
+
*
|
|
616
|
+
*/
|
|
617
|
+
createManyAndReturn<T extends PostBlockMediaCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PostBlockMediaCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
618
|
+
/**
|
|
619
|
+
* Delete a PostBlockMedia.
|
|
620
|
+
* @param {PostBlockMediaDeleteArgs} args - Arguments to delete one PostBlockMedia.
|
|
621
|
+
* @example
|
|
622
|
+
* // Delete one PostBlockMedia
|
|
623
|
+
* const PostBlockMedia = await prisma.postBlockMedia.delete({
|
|
624
|
+
* where: {
|
|
625
|
+
* // ... filter to delete one PostBlockMedia
|
|
626
|
+
* }
|
|
627
|
+
* })
|
|
628
|
+
*
|
|
629
|
+
*/
|
|
630
|
+
delete<T extends PostBlockMediaDeleteArgs>(args: Prisma.SelectSubset<T, PostBlockMediaDeleteArgs<ExtArgs>>): Prisma.Prisma__PostBlockMediaClient<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
631
|
+
/**
|
|
632
|
+
* Update one PostBlockMedia.
|
|
633
|
+
* @param {PostBlockMediaUpdateArgs} args - Arguments to update one PostBlockMedia.
|
|
634
|
+
* @example
|
|
635
|
+
* // Update one PostBlockMedia
|
|
636
|
+
* const postBlockMedia = await prisma.postBlockMedia.update({
|
|
637
|
+
* where: {
|
|
638
|
+
* // ... provide filter here
|
|
639
|
+
* },
|
|
640
|
+
* data: {
|
|
641
|
+
* // ... provide data here
|
|
642
|
+
* }
|
|
643
|
+
* })
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
update<T extends PostBlockMediaUpdateArgs>(args: Prisma.SelectSubset<T, PostBlockMediaUpdateArgs<ExtArgs>>): Prisma.Prisma__PostBlockMediaClient<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
647
|
+
/**
|
|
648
|
+
* Delete zero or more PostBlockMedias.
|
|
649
|
+
* @param {PostBlockMediaDeleteManyArgs} args - Arguments to filter PostBlockMedias to delete.
|
|
650
|
+
* @example
|
|
651
|
+
* // Delete a few PostBlockMedias
|
|
652
|
+
* const { count } = await prisma.postBlockMedia.deleteMany({
|
|
653
|
+
* where: {
|
|
654
|
+
* // ... provide filter here
|
|
655
|
+
* }
|
|
656
|
+
* })
|
|
657
|
+
*
|
|
658
|
+
*/
|
|
659
|
+
deleteMany<T extends PostBlockMediaDeleteManyArgs>(args?: Prisma.SelectSubset<T, PostBlockMediaDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
660
|
+
/**
|
|
661
|
+
* Update zero or more PostBlockMedias.
|
|
662
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
663
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
664
|
+
* @param {PostBlockMediaUpdateManyArgs} args - Arguments to update one or more rows.
|
|
665
|
+
* @example
|
|
666
|
+
* // Update many PostBlockMedias
|
|
667
|
+
* const postBlockMedia = await prisma.postBlockMedia.updateMany({
|
|
668
|
+
* where: {
|
|
669
|
+
* // ... provide filter here
|
|
670
|
+
* },
|
|
671
|
+
* data: {
|
|
672
|
+
* // ... provide data here
|
|
673
|
+
* }
|
|
674
|
+
* })
|
|
675
|
+
*
|
|
676
|
+
*/
|
|
677
|
+
updateMany<T extends PostBlockMediaUpdateManyArgs>(args: Prisma.SelectSubset<T, PostBlockMediaUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
678
|
+
/**
|
|
679
|
+
* Update zero or more PostBlockMedias and returns the data updated in the database.
|
|
680
|
+
* @param {PostBlockMediaUpdateManyAndReturnArgs} args - Arguments to update many PostBlockMedias.
|
|
681
|
+
* @example
|
|
682
|
+
* // Update many PostBlockMedias
|
|
683
|
+
* const postBlockMedia = await prisma.postBlockMedia.updateManyAndReturn({
|
|
684
|
+
* where: {
|
|
685
|
+
* // ... provide filter here
|
|
686
|
+
* },
|
|
687
|
+
* data: [
|
|
688
|
+
* // ... provide data here
|
|
689
|
+
* ]
|
|
690
|
+
* })
|
|
691
|
+
*
|
|
692
|
+
* // Update zero or more PostBlockMedias and only return the `post_block_message_id`
|
|
693
|
+
* const postBlockMediaWithPost_block_message_idOnly = await prisma.postBlockMedia.updateManyAndReturn({
|
|
694
|
+
* select: { post_block_message_id: true },
|
|
695
|
+
* where: {
|
|
696
|
+
* // ... provide filter here
|
|
697
|
+
* },
|
|
698
|
+
* data: [
|
|
699
|
+
* // ... provide data here
|
|
700
|
+
* ]
|
|
701
|
+
* })
|
|
702
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
703
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
704
|
+
*
|
|
705
|
+
*/
|
|
706
|
+
updateManyAndReturn<T extends PostBlockMediaUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PostBlockMediaUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
707
|
+
/**
|
|
708
|
+
* Create or update one PostBlockMedia.
|
|
709
|
+
* @param {PostBlockMediaUpsertArgs} args - Arguments to update or create a PostBlockMedia.
|
|
710
|
+
* @example
|
|
711
|
+
* // Update or create a PostBlockMedia
|
|
712
|
+
* const postBlockMedia = await prisma.postBlockMedia.upsert({
|
|
713
|
+
* create: {
|
|
714
|
+
* // ... data to create a PostBlockMedia
|
|
715
|
+
* },
|
|
716
|
+
* update: {
|
|
717
|
+
* // ... in case it already exists, update
|
|
718
|
+
* },
|
|
719
|
+
* where: {
|
|
720
|
+
* // ... the filter for the PostBlockMedia we want to update
|
|
721
|
+
* }
|
|
722
|
+
* })
|
|
723
|
+
*/
|
|
724
|
+
upsert<T extends PostBlockMediaUpsertArgs>(args: Prisma.SelectSubset<T, PostBlockMediaUpsertArgs<ExtArgs>>): Prisma.Prisma__PostBlockMediaClient<runtime.Types.Result.GetResult<Prisma.$PostBlockMediaPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
725
|
+
/**
|
|
726
|
+
* Count the number of PostBlockMedias.
|
|
727
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
728
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
729
|
+
* @param {PostBlockMediaCountArgs} args - Arguments to filter PostBlockMedias to count.
|
|
730
|
+
* @example
|
|
731
|
+
* // Count the number of PostBlockMedias
|
|
732
|
+
* const count = await prisma.postBlockMedia.count({
|
|
733
|
+
* where: {
|
|
734
|
+
* // ... the filter for the PostBlockMedias we want to count
|
|
735
|
+
* }
|
|
736
|
+
* })
|
|
737
|
+
**/
|
|
738
|
+
count<T extends PostBlockMediaCountArgs>(args?: Prisma.Subset<T, PostBlockMediaCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PostBlockMediaCountAggregateOutputType> : number>;
|
|
739
|
+
/**
|
|
740
|
+
* Allows you to perform aggregations operations on a PostBlockMedia.
|
|
741
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
742
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
743
|
+
* @param {PostBlockMediaAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
744
|
+
* @example
|
|
745
|
+
* // Ordered by age ascending
|
|
746
|
+
* // Where email contains prisma.io
|
|
747
|
+
* // Limited to the 10 users
|
|
748
|
+
* const aggregations = await prisma.user.aggregate({
|
|
749
|
+
* _avg: {
|
|
750
|
+
* age: true,
|
|
751
|
+
* },
|
|
752
|
+
* where: {
|
|
753
|
+
* email: {
|
|
754
|
+
* contains: "prisma.io",
|
|
755
|
+
* },
|
|
756
|
+
* },
|
|
757
|
+
* orderBy: {
|
|
758
|
+
* age: "asc",
|
|
759
|
+
* },
|
|
760
|
+
* take: 10,
|
|
761
|
+
* })
|
|
762
|
+
**/
|
|
763
|
+
aggregate<T extends PostBlockMediaAggregateArgs>(args: Prisma.Subset<T, PostBlockMediaAggregateArgs>): Prisma.PrismaPromise<GetPostBlockMediaAggregateType<T>>;
|
|
764
|
+
/**
|
|
765
|
+
* Group by PostBlockMedia.
|
|
766
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
767
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
768
|
+
* @param {PostBlockMediaGroupByArgs} args - Group by arguments.
|
|
769
|
+
* @example
|
|
770
|
+
* // Group by city, order by createdAt, get count
|
|
771
|
+
* const result = await prisma.user.groupBy({
|
|
772
|
+
* by: ['city', 'createdAt'],
|
|
773
|
+
* orderBy: {
|
|
774
|
+
* createdAt: true
|
|
775
|
+
* },
|
|
776
|
+
* _count: {
|
|
777
|
+
* _all: true
|
|
778
|
+
* },
|
|
779
|
+
* })
|
|
780
|
+
*
|
|
781
|
+
**/
|
|
782
|
+
groupBy<T extends PostBlockMediaGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
783
|
+
orderBy: PostBlockMediaGroupByArgs['orderBy'];
|
|
784
|
+
} : {
|
|
785
|
+
orderBy?: PostBlockMediaGroupByArgs['orderBy'];
|
|
786
|
+
}, 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 ? {
|
|
787
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
788
|
+
Error,
|
|
789
|
+
'Field ',
|
|
790
|
+
P,
|
|
791
|
+
` in "having" needs to be provided in "by"`
|
|
792
|
+
];
|
|
793
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
794
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
795
|
+
}[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 ? {} : {
|
|
796
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
797
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
798
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
799
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, PostBlockMediaGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPostBlockMediaGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
800
|
+
/**
|
|
801
|
+
* Fields of the PostBlockMedia model
|
|
802
|
+
*/
|
|
803
|
+
readonly fields: PostBlockMediaFieldRefs;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* The delegate class that acts as a "Promise-like" for PostBlockMedia.
|
|
807
|
+
* Why is this prefixed with `Prisma__`?
|
|
808
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
809
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
810
|
+
*/
|
|
811
|
+
export interface Prisma__PostBlockMediaClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
812
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
813
|
+
post_block<T extends Prisma.PostBlocksDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PostBlocksDefaultArgs<ExtArgs>>): Prisma.Prisma__PostBlocksClient<runtime.Types.Result.GetResult<Prisma.$PostBlocksPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
814
|
+
media<T extends Prisma.PostMediaDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PostMediaDefaultArgs<ExtArgs>>): Prisma.Prisma__PostMediaClient<runtime.Types.Result.GetResult<Prisma.$PostMediaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
815
|
+
/**
|
|
816
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
817
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
818
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
819
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
820
|
+
*/
|
|
821
|
+
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>;
|
|
822
|
+
/**
|
|
823
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
824
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
825
|
+
* @returns A Promise for the completion of the callback.
|
|
826
|
+
*/
|
|
827
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
828
|
+
/**
|
|
829
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
830
|
+
* resolved value cannot be modified from the callback.
|
|
831
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
832
|
+
* @returns A Promise for the completion of the callback.
|
|
833
|
+
*/
|
|
834
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Fields of the PostBlockMedia model
|
|
838
|
+
*/
|
|
839
|
+
export interface PostBlockMediaFieldRefs {
|
|
840
|
+
readonly post_block_message_id: Prisma.FieldRef<"PostBlockMedia", 'String'>;
|
|
841
|
+
readonly media_id: Prisma.FieldRef<"PostBlockMedia", 'String'>;
|
|
842
|
+
readonly position: Prisma.FieldRef<"PostBlockMedia", 'Int'>;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* PostBlockMedia findUnique
|
|
846
|
+
*/
|
|
847
|
+
export type PostBlockMediaFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
848
|
+
/**
|
|
849
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
850
|
+
*/
|
|
851
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
852
|
+
/**
|
|
853
|
+
* Omit specific fields from the PostBlockMedia
|
|
854
|
+
*/
|
|
855
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
856
|
+
/**
|
|
857
|
+
* Choose, which related nodes to fetch as well
|
|
858
|
+
*/
|
|
859
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
860
|
+
/**
|
|
861
|
+
* Filter, which PostBlockMedia to fetch.
|
|
862
|
+
*/
|
|
863
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
864
|
+
};
|
|
865
|
+
/**
|
|
866
|
+
* PostBlockMedia findUniqueOrThrow
|
|
867
|
+
*/
|
|
868
|
+
export type PostBlockMediaFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
869
|
+
/**
|
|
870
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
871
|
+
*/
|
|
872
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
873
|
+
/**
|
|
874
|
+
* Omit specific fields from the PostBlockMedia
|
|
875
|
+
*/
|
|
876
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
877
|
+
/**
|
|
878
|
+
* Choose, which related nodes to fetch as well
|
|
879
|
+
*/
|
|
880
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
881
|
+
/**
|
|
882
|
+
* Filter, which PostBlockMedia to fetch.
|
|
883
|
+
*/
|
|
884
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
885
|
+
};
|
|
886
|
+
/**
|
|
887
|
+
* PostBlockMedia findFirst
|
|
888
|
+
*/
|
|
889
|
+
export type PostBlockMediaFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
890
|
+
/**
|
|
891
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
892
|
+
*/
|
|
893
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
894
|
+
/**
|
|
895
|
+
* Omit specific fields from the PostBlockMedia
|
|
896
|
+
*/
|
|
897
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
898
|
+
/**
|
|
899
|
+
* Choose, which related nodes to fetch as well
|
|
900
|
+
*/
|
|
901
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
902
|
+
/**
|
|
903
|
+
* Filter, which PostBlockMedia to fetch.
|
|
904
|
+
*/
|
|
905
|
+
where?: Prisma.PostBlockMediaWhereInput;
|
|
906
|
+
/**
|
|
907
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
908
|
+
*
|
|
909
|
+
* Determine the order of PostBlockMedias to fetch.
|
|
910
|
+
*/
|
|
911
|
+
orderBy?: Prisma.PostBlockMediaOrderByWithRelationInput | Prisma.PostBlockMediaOrderByWithRelationInput[];
|
|
912
|
+
/**
|
|
913
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
914
|
+
*
|
|
915
|
+
* Sets the position for searching for PostBlockMedias.
|
|
916
|
+
*/
|
|
917
|
+
cursor?: Prisma.PostBlockMediaWhereUniqueInput;
|
|
918
|
+
/**
|
|
919
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
920
|
+
*
|
|
921
|
+
* Take `±n` PostBlockMedias from the position of the cursor.
|
|
922
|
+
*/
|
|
923
|
+
take?: number;
|
|
924
|
+
/**
|
|
925
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
926
|
+
*
|
|
927
|
+
* Skip the first `n` PostBlockMedias.
|
|
928
|
+
*/
|
|
929
|
+
skip?: number;
|
|
930
|
+
/**
|
|
931
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
932
|
+
*
|
|
933
|
+
* Filter by unique combinations of PostBlockMedias.
|
|
934
|
+
*/
|
|
935
|
+
distinct?: Prisma.PostBlockMediaScalarFieldEnum | Prisma.PostBlockMediaScalarFieldEnum[];
|
|
936
|
+
};
|
|
937
|
+
/**
|
|
938
|
+
* PostBlockMedia findFirstOrThrow
|
|
939
|
+
*/
|
|
940
|
+
export type PostBlockMediaFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
941
|
+
/**
|
|
942
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
943
|
+
*/
|
|
944
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
945
|
+
/**
|
|
946
|
+
* Omit specific fields from the PostBlockMedia
|
|
947
|
+
*/
|
|
948
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
949
|
+
/**
|
|
950
|
+
* Choose, which related nodes to fetch as well
|
|
951
|
+
*/
|
|
952
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
953
|
+
/**
|
|
954
|
+
* Filter, which PostBlockMedia to fetch.
|
|
955
|
+
*/
|
|
956
|
+
where?: Prisma.PostBlockMediaWhereInput;
|
|
957
|
+
/**
|
|
958
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
959
|
+
*
|
|
960
|
+
* Determine the order of PostBlockMedias to fetch.
|
|
961
|
+
*/
|
|
962
|
+
orderBy?: Prisma.PostBlockMediaOrderByWithRelationInput | Prisma.PostBlockMediaOrderByWithRelationInput[];
|
|
963
|
+
/**
|
|
964
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
965
|
+
*
|
|
966
|
+
* Sets the position for searching for PostBlockMedias.
|
|
967
|
+
*/
|
|
968
|
+
cursor?: Prisma.PostBlockMediaWhereUniqueInput;
|
|
969
|
+
/**
|
|
970
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
971
|
+
*
|
|
972
|
+
* Take `±n` PostBlockMedias from the position of the cursor.
|
|
973
|
+
*/
|
|
974
|
+
take?: number;
|
|
975
|
+
/**
|
|
976
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
977
|
+
*
|
|
978
|
+
* Skip the first `n` PostBlockMedias.
|
|
979
|
+
*/
|
|
980
|
+
skip?: number;
|
|
981
|
+
/**
|
|
982
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
983
|
+
*
|
|
984
|
+
* Filter by unique combinations of PostBlockMedias.
|
|
985
|
+
*/
|
|
986
|
+
distinct?: Prisma.PostBlockMediaScalarFieldEnum | Prisma.PostBlockMediaScalarFieldEnum[];
|
|
987
|
+
};
|
|
988
|
+
/**
|
|
989
|
+
* PostBlockMedia findMany
|
|
990
|
+
*/
|
|
991
|
+
export type PostBlockMediaFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
992
|
+
/**
|
|
993
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
994
|
+
*/
|
|
995
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
996
|
+
/**
|
|
997
|
+
* Omit specific fields from the PostBlockMedia
|
|
998
|
+
*/
|
|
999
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
1000
|
+
/**
|
|
1001
|
+
* Choose, which related nodes to fetch as well
|
|
1002
|
+
*/
|
|
1003
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
1004
|
+
/**
|
|
1005
|
+
* Filter, which PostBlockMedias to fetch.
|
|
1006
|
+
*/
|
|
1007
|
+
where?: Prisma.PostBlockMediaWhereInput;
|
|
1008
|
+
/**
|
|
1009
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1010
|
+
*
|
|
1011
|
+
* Determine the order of PostBlockMedias to fetch.
|
|
1012
|
+
*/
|
|
1013
|
+
orderBy?: Prisma.PostBlockMediaOrderByWithRelationInput | Prisma.PostBlockMediaOrderByWithRelationInput[];
|
|
1014
|
+
/**
|
|
1015
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1016
|
+
*
|
|
1017
|
+
* Sets the position for listing PostBlockMedias.
|
|
1018
|
+
*/
|
|
1019
|
+
cursor?: Prisma.PostBlockMediaWhereUniqueInput;
|
|
1020
|
+
/**
|
|
1021
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1022
|
+
*
|
|
1023
|
+
* Take `±n` PostBlockMedias from the position of the cursor.
|
|
1024
|
+
*/
|
|
1025
|
+
take?: number;
|
|
1026
|
+
/**
|
|
1027
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1028
|
+
*
|
|
1029
|
+
* Skip the first `n` PostBlockMedias.
|
|
1030
|
+
*/
|
|
1031
|
+
skip?: number;
|
|
1032
|
+
/**
|
|
1033
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1034
|
+
*
|
|
1035
|
+
* Filter by unique combinations of PostBlockMedias.
|
|
1036
|
+
*/
|
|
1037
|
+
distinct?: Prisma.PostBlockMediaScalarFieldEnum | Prisma.PostBlockMediaScalarFieldEnum[];
|
|
1038
|
+
};
|
|
1039
|
+
/**
|
|
1040
|
+
* PostBlockMedia create
|
|
1041
|
+
*/
|
|
1042
|
+
export type PostBlockMediaCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1043
|
+
/**
|
|
1044
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
1045
|
+
*/
|
|
1046
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* Omit specific fields from the PostBlockMedia
|
|
1049
|
+
*/
|
|
1050
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
1051
|
+
/**
|
|
1052
|
+
* Choose, which related nodes to fetch as well
|
|
1053
|
+
*/
|
|
1054
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
1055
|
+
/**
|
|
1056
|
+
* The data needed to create a PostBlockMedia.
|
|
1057
|
+
*/
|
|
1058
|
+
data: Prisma.XOR<Prisma.PostBlockMediaCreateInput, Prisma.PostBlockMediaUncheckedCreateInput>;
|
|
1059
|
+
};
|
|
1060
|
+
/**
|
|
1061
|
+
* PostBlockMedia createMany
|
|
1062
|
+
*/
|
|
1063
|
+
export type PostBlockMediaCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1064
|
+
/**
|
|
1065
|
+
* The data used to create many PostBlockMedias.
|
|
1066
|
+
*/
|
|
1067
|
+
data: Prisma.PostBlockMediaCreateManyInput | Prisma.PostBlockMediaCreateManyInput[];
|
|
1068
|
+
skipDuplicates?: boolean;
|
|
1069
|
+
};
|
|
1070
|
+
/**
|
|
1071
|
+
* PostBlockMedia createManyAndReturn
|
|
1072
|
+
*/
|
|
1073
|
+
export type PostBlockMediaCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1074
|
+
/**
|
|
1075
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
1076
|
+
*/
|
|
1077
|
+
select?: Prisma.PostBlockMediaSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1078
|
+
/**
|
|
1079
|
+
* Omit specific fields from the PostBlockMedia
|
|
1080
|
+
*/
|
|
1081
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
1082
|
+
/**
|
|
1083
|
+
* The data used to create many PostBlockMedias.
|
|
1084
|
+
*/
|
|
1085
|
+
data: Prisma.PostBlockMediaCreateManyInput | Prisma.PostBlockMediaCreateManyInput[];
|
|
1086
|
+
skipDuplicates?: boolean;
|
|
1087
|
+
/**
|
|
1088
|
+
* Choose, which related nodes to fetch as well
|
|
1089
|
+
*/
|
|
1090
|
+
include?: Prisma.PostBlockMediaIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1091
|
+
};
|
|
1092
|
+
/**
|
|
1093
|
+
* PostBlockMedia update
|
|
1094
|
+
*/
|
|
1095
|
+
export type PostBlockMediaUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1096
|
+
/**
|
|
1097
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
1098
|
+
*/
|
|
1099
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
1100
|
+
/**
|
|
1101
|
+
* Omit specific fields from the PostBlockMedia
|
|
1102
|
+
*/
|
|
1103
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
1104
|
+
/**
|
|
1105
|
+
* Choose, which related nodes to fetch as well
|
|
1106
|
+
*/
|
|
1107
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
1108
|
+
/**
|
|
1109
|
+
* The data needed to update a PostBlockMedia.
|
|
1110
|
+
*/
|
|
1111
|
+
data: Prisma.XOR<Prisma.PostBlockMediaUpdateInput, Prisma.PostBlockMediaUncheckedUpdateInput>;
|
|
1112
|
+
/**
|
|
1113
|
+
* Choose, which PostBlockMedia to update.
|
|
1114
|
+
*/
|
|
1115
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
1116
|
+
};
|
|
1117
|
+
/**
|
|
1118
|
+
* PostBlockMedia updateMany
|
|
1119
|
+
*/
|
|
1120
|
+
export type PostBlockMediaUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1121
|
+
/**
|
|
1122
|
+
* The data used to update PostBlockMedias.
|
|
1123
|
+
*/
|
|
1124
|
+
data: Prisma.XOR<Prisma.PostBlockMediaUpdateManyMutationInput, Prisma.PostBlockMediaUncheckedUpdateManyInput>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Filter which PostBlockMedias to update
|
|
1127
|
+
*/
|
|
1128
|
+
where?: Prisma.PostBlockMediaWhereInput;
|
|
1129
|
+
/**
|
|
1130
|
+
* Limit how many PostBlockMedias to update.
|
|
1131
|
+
*/
|
|
1132
|
+
limit?: number;
|
|
1133
|
+
};
|
|
1134
|
+
/**
|
|
1135
|
+
* PostBlockMedia updateManyAndReturn
|
|
1136
|
+
*/
|
|
1137
|
+
export type PostBlockMediaUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1138
|
+
/**
|
|
1139
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
1140
|
+
*/
|
|
1141
|
+
select?: Prisma.PostBlockMediaSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1142
|
+
/**
|
|
1143
|
+
* Omit specific fields from the PostBlockMedia
|
|
1144
|
+
*/
|
|
1145
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
1146
|
+
/**
|
|
1147
|
+
* The data used to update PostBlockMedias.
|
|
1148
|
+
*/
|
|
1149
|
+
data: Prisma.XOR<Prisma.PostBlockMediaUpdateManyMutationInput, Prisma.PostBlockMediaUncheckedUpdateManyInput>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Filter which PostBlockMedias to update
|
|
1152
|
+
*/
|
|
1153
|
+
where?: Prisma.PostBlockMediaWhereInput;
|
|
1154
|
+
/**
|
|
1155
|
+
* Limit how many PostBlockMedias to update.
|
|
1156
|
+
*/
|
|
1157
|
+
limit?: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* Choose, which related nodes to fetch as well
|
|
1160
|
+
*/
|
|
1161
|
+
include?: Prisma.PostBlockMediaIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1162
|
+
};
|
|
1163
|
+
/**
|
|
1164
|
+
* PostBlockMedia upsert
|
|
1165
|
+
*/
|
|
1166
|
+
export type PostBlockMediaUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1167
|
+
/**
|
|
1168
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
1169
|
+
*/
|
|
1170
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* Omit specific fields from the PostBlockMedia
|
|
1173
|
+
*/
|
|
1174
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
1175
|
+
/**
|
|
1176
|
+
* Choose, which related nodes to fetch as well
|
|
1177
|
+
*/
|
|
1178
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
1179
|
+
/**
|
|
1180
|
+
* The filter to search for the PostBlockMedia to update in case it exists.
|
|
1181
|
+
*/
|
|
1182
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
1183
|
+
/**
|
|
1184
|
+
* In case the PostBlockMedia found by the `where` argument doesn't exist, create a new PostBlockMedia with this data.
|
|
1185
|
+
*/
|
|
1186
|
+
create: Prisma.XOR<Prisma.PostBlockMediaCreateInput, Prisma.PostBlockMediaUncheckedCreateInput>;
|
|
1187
|
+
/**
|
|
1188
|
+
* In case the PostBlockMedia was found with the provided `where` argument, update it with this data.
|
|
1189
|
+
*/
|
|
1190
|
+
update: Prisma.XOR<Prisma.PostBlockMediaUpdateInput, Prisma.PostBlockMediaUncheckedUpdateInput>;
|
|
1191
|
+
};
|
|
1192
|
+
/**
|
|
1193
|
+
* PostBlockMedia delete
|
|
1194
|
+
*/
|
|
1195
|
+
export type PostBlockMediaDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1196
|
+
/**
|
|
1197
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
1198
|
+
*/
|
|
1199
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
1200
|
+
/**
|
|
1201
|
+
* Omit specific fields from the PostBlockMedia
|
|
1202
|
+
*/
|
|
1203
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
1204
|
+
/**
|
|
1205
|
+
* Choose, which related nodes to fetch as well
|
|
1206
|
+
*/
|
|
1207
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
1208
|
+
/**
|
|
1209
|
+
* Filter which PostBlockMedia to delete.
|
|
1210
|
+
*/
|
|
1211
|
+
where: Prisma.PostBlockMediaWhereUniqueInput;
|
|
1212
|
+
};
|
|
1213
|
+
/**
|
|
1214
|
+
* PostBlockMedia deleteMany
|
|
1215
|
+
*/
|
|
1216
|
+
export type PostBlockMediaDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1217
|
+
/**
|
|
1218
|
+
* Filter which PostBlockMedias to delete
|
|
1219
|
+
*/
|
|
1220
|
+
where?: Prisma.PostBlockMediaWhereInput;
|
|
1221
|
+
/**
|
|
1222
|
+
* Limit how many PostBlockMedias to delete.
|
|
1223
|
+
*/
|
|
1224
|
+
limit?: number;
|
|
1225
|
+
};
|
|
1226
|
+
/**
|
|
1227
|
+
* PostBlockMedia without action
|
|
1228
|
+
*/
|
|
1229
|
+
export type PostBlockMediaDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1230
|
+
/**
|
|
1231
|
+
* Select specific fields to fetch from the PostBlockMedia
|
|
1232
|
+
*/
|
|
1233
|
+
select?: Prisma.PostBlockMediaSelect<ExtArgs> | null;
|
|
1234
|
+
/**
|
|
1235
|
+
* Omit specific fields from the PostBlockMedia
|
|
1236
|
+
*/
|
|
1237
|
+
omit?: Prisma.PostBlockMediaOmit<ExtArgs> | null;
|
|
1238
|
+
/**
|
|
1239
|
+
* Choose, which related nodes to fetch as well
|
|
1240
|
+
*/
|
|
1241
|
+
include?: Prisma.PostBlockMediaInclude<ExtArgs> | null;
|
|
1242
|
+
};
|
|
1243
|
+
//# sourceMappingURL=PostBlockMedia.d.ts.map
|