@yimingliao/cms 0.0.181 → 0.0.183

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 (32) hide show
  1. package/dist/src/client/interfaces/components/resources/topic/topic-card.js +1 -1
  2. package/package.json +2 -2
  3. package/dist/types/prisma/generated/client.d.ts +0 -69
  4. package/dist/types/prisma/generated/client.d.ts.map +0 -1
  5. package/dist/types/prisma/generated/commonInputTypes.d.ts +0 -546
  6. package/dist/types/prisma/generated/commonInputTypes.d.ts.map +0 -1
  7. package/dist/types/prisma/generated/enums.d.ts +0 -24
  8. package/dist/types/prisma/generated/enums.d.ts.map +0 -1
  9. package/dist/types/prisma/generated/internal/class.d.ts +0 -219
  10. package/dist/types/prisma/generated/internal/class.d.ts.map +0 -1
  11. package/dist/types/prisma/generated/internal/prismaNamespace.d.ts +0 -1382
  12. package/dist/types/prisma/generated/internal/prismaNamespace.d.ts.map +0 -1
  13. package/dist/types/prisma/generated/models/Admin.d.ts +0 -1756
  14. package/dist/types/prisma/generated/models/Admin.d.ts.map +0 -1
  15. package/dist/types/prisma/generated/models/AdminRefreshToken.d.ts +0 -1276
  16. package/dist/types/prisma/generated/models/AdminRefreshToken.d.ts.map +0 -1
  17. package/dist/types/prisma/generated/models/AdminTranslation.d.ts +0 -1498
  18. package/dist/types/prisma/generated/models/AdminTranslation.d.ts.map +0 -1
  19. package/dist/types/prisma/generated/models/File.d.ts +0 -3624
  20. package/dist/types/prisma/generated/models/File.d.ts.map +0 -1
  21. package/dist/types/prisma/generated/models/FileTranslation.d.ts +0 -1252
  22. package/dist/types/prisma/generated/models/FileTranslation.d.ts.map +0 -1
  23. package/dist/types/prisma/generated/models/Folder.d.ts +0 -1513
  24. package/dist/types/prisma/generated/models/Folder.d.ts.map +0 -1
  25. package/dist/types/prisma/generated/models/Post.d.ts +0 -9300
  26. package/dist/types/prisma/generated/models/Post.d.ts.map +0 -1
  27. package/dist/types/prisma/generated/models/PostTranslation.d.ts +0 -2073
  28. package/dist/types/prisma/generated/models/PostTranslation.d.ts.map +0 -1
  29. package/dist/types/prisma/generated/models/SeoMetadata.d.ts +0 -2183
  30. package/dist/types/prisma/generated/models/SeoMetadata.d.ts.map +0 -1
  31. package/dist/types/prisma/generated/models.d.ts +0 -11
  32. package/dist/types/prisma/generated/models.d.ts.map +0 -1
@@ -1,1756 +0,0 @@
1
- import type * as runtime from "@prisma/client/runtime/client";
2
- import type * as $Enums from "../enums";
3
- import type * as Prisma from "../internal/prismaNamespace";
4
- /**
5
- * Model Admin
6
- *
7
- */
8
- export type AdminModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminPayload>;
9
- export type AggregateAdmin = {
10
- _count: AdminCountAggregateOutputType | null;
11
- _min: AdminMinAggregateOutputType | null;
12
- _max: AdminMaxAggregateOutputType | null;
13
- };
14
- export type AdminMinAggregateOutputType = {
15
- id: string | null;
16
- role: $Enums.AdminRole | null;
17
- email: string | null;
18
- passwordHash: string | null;
19
- avatarImageId: string | null;
20
- createdAt: Date | null;
21
- updatedAt: Date | null;
22
- emailVerifiedAt: Date | null;
23
- };
24
- export type AdminMaxAggregateOutputType = {
25
- id: string | null;
26
- role: $Enums.AdminRole | null;
27
- email: string | null;
28
- passwordHash: string | null;
29
- avatarImageId: string | null;
30
- createdAt: Date | null;
31
- updatedAt: Date | null;
32
- emailVerifiedAt: Date | null;
33
- };
34
- export type AdminCountAggregateOutputType = {
35
- id: number;
36
- role: number;
37
- email: number;
38
- passwordHash: number;
39
- socialLinks: number;
40
- avatarImageId: number;
41
- createdAt: number;
42
- updatedAt: number;
43
- emailVerifiedAt: number;
44
- _all: number;
45
- };
46
- export type AdminMinAggregateInputType = {
47
- id?: true;
48
- role?: true;
49
- email?: true;
50
- passwordHash?: true;
51
- avatarImageId?: true;
52
- createdAt?: true;
53
- updatedAt?: true;
54
- emailVerifiedAt?: true;
55
- };
56
- export type AdminMaxAggregateInputType = {
57
- id?: true;
58
- role?: true;
59
- email?: true;
60
- passwordHash?: true;
61
- avatarImageId?: true;
62
- createdAt?: true;
63
- updatedAt?: true;
64
- emailVerifiedAt?: true;
65
- };
66
- export type AdminCountAggregateInputType = {
67
- id?: true;
68
- role?: true;
69
- email?: true;
70
- passwordHash?: true;
71
- socialLinks?: true;
72
- avatarImageId?: true;
73
- createdAt?: true;
74
- updatedAt?: true;
75
- emailVerifiedAt?: true;
76
- _all?: true;
77
- };
78
- export type AdminAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
79
- /**
80
- * Filter which Admin to aggregate.
81
- */
82
- where?: Prisma.AdminWhereInput;
83
- /**
84
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
85
- *
86
- * Determine the order of Admins to fetch.
87
- */
88
- orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[];
89
- /**
90
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
91
- *
92
- * Sets the start position
93
- */
94
- cursor?: Prisma.AdminWhereUniqueInput;
95
- /**
96
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
97
- *
98
- * Take `±n` Admins from the position of the cursor.
99
- */
100
- take?: number;
101
- /**
102
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
103
- *
104
- * Skip the first `n` Admins.
105
- */
106
- skip?: number;
107
- /**
108
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
- *
110
- * Count returned Admins
111
- **/
112
- _count?: true | AdminCountAggregateInputType;
113
- /**
114
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
- *
116
- * Select which fields to find the minimum value
117
- **/
118
- _min?: AdminMinAggregateInputType;
119
- /**
120
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
- *
122
- * Select which fields to find the maximum value
123
- **/
124
- _max?: AdminMaxAggregateInputType;
125
- };
126
- export type GetAdminAggregateType<T extends AdminAggregateArgs> = {
127
- [P in keyof T & keyof AggregateAdmin]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAdmin[P]> : Prisma.GetScalarType<T[P], AggregateAdmin[P]>;
128
- };
129
- export type AdminGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
130
- where?: Prisma.AdminWhereInput;
131
- orderBy?: Prisma.AdminOrderByWithAggregationInput | Prisma.AdminOrderByWithAggregationInput[];
132
- by: Prisma.AdminScalarFieldEnum[] | Prisma.AdminScalarFieldEnum;
133
- having?: Prisma.AdminScalarWhereWithAggregatesInput;
134
- take?: number;
135
- skip?: number;
136
- _count?: AdminCountAggregateInputType | true;
137
- _min?: AdminMinAggregateInputType;
138
- _max?: AdminMaxAggregateInputType;
139
- };
140
- export type AdminGroupByOutputType = {
141
- id: string;
142
- role: $Enums.AdminRole;
143
- email: string;
144
- passwordHash: string;
145
- socialLinks: string[];
146
- avatarImageId: string | null;
147
- createdAt: Date;
148
- updatedAt: Date;
149
- emailVerifiedAt: Date | null;
150
- _count: AdminCountAggregateOutputType | null;
151
- _min: AdminMinAggregateOutputType | null;
152
- _max: AdminMaxAggregateOutputType | null;
153
- };
154
- type GetAdminGroupByPayload<T extends AdminGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AdminGroupByOutputType, T['by']> & {
155
- [P in ((keyof T) & (keyof AdminGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AdminGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AdminGroupByOutputType[P]>;
156
- }>>;
157
- export type AdminWhereInput = {
158
- AND?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[];
159
- OR?: Prisma.AdminWhereInput[];
160
- NOT?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[];
161
- id?: Prisma.StringFilter<"Admin"> | string;
162
- role?: Prisma.EnumAdminRoleFilter<"Admin"> | $Enums.AdminRole;
163
- email?: Prisma.StringFilter<"Admin"> | string;
164
- passwordHash?: Prisma.StringFilter<"Admin"> | string;
165
- socialLinks?: Prisma.StringNullableListFilter<"Admin">;
166
- avatarImageId?: Prisma.StringNullableFilter<"Admin"> | string | null;
167
- createdAt?: Prisma.DateTimeFilter<"Admin"> | Date | string;
168
- updatedAt?: Prisma.DateTimeFilter<"Admin"> | Date | string;
169
- emailVerifiedAt?: Prisma.DateTimeNullableFilter<"Admin"> | Date | string | null;
170
- adminRefreshTokens?: Prisma.AdminRefreshTokenListRelationFilter;
171
- avatarImage?: Prisma.XOR<Prisma.FileNullableScalarRelationFilter, Prisma.FileWhereInput> | null;
172
- posts?: Prisma.PostListRelationFilter;
173
- translations?: Prisma.AdminTranslationListRelationFilter;
174
- };
175
- export type AdminOrderByWithRelationInput = {
176
- id?: Prisma.SortOrder;
177
- role?: Prisma.SortOrder;
178
- email?: Prisma.SortOrder;
179
- passwordHash?: Prisma.SortOrder;
180
- socialLinks?: Prisma.SortOrder;
181
- avatarImageId?: Prisma.SortOrderInput | Prisma.SortOrder;
182
- createdAt?: Prisma.SortOrder;
183
- updatedAt?: Prisma.SortOrder;
184
- emailVerifiedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
185
- adminRefreshTokens?: Prisma.AdminRefreshTokenOrderByRelationAggregateInput;
186
- avatarImage?: Prisma.FileOrderByWithRelationInput;
187
- posts?: Prisma.PostOrderByRelationAggregateInput;
188
- translations?: Prisma.AdminTranslationOrderByRelationAggregateInput;
189
- };
190
- export type AdminWhereUniqueInput = Prisma.AtLeast<{
191
- id?: string;
192
- email?: string;
193
- AND?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[];
194
- OR?: Prisma.AdminWhereInput[];
195
- NOT?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[];
196
- role?: Prisma.EnumAdminRoleFilter<"Admin"> | $Enums.AdminRole;
197
- passwordHash?: Prisma.StringFilter<"Admin"> | string;
198
- socialLinks?: Prisma.StringNullableListFilter<"Admin">;
199
- avatarImageId?: Prisma.StringNullableFilter<"Admin"> | string | null;
200
- createdAt?: Prisma.DateTimeFilter<"Admin"> | Date | string;
201
- updatedAt?: Prisma.DateTimeFilter<"Admin"> | Date | string;
202
- emailVerifiedAt?: Prisma.DateTimeNullableFilter<"Admin"> | Date | string | null;
203
- adminRefreshTokens?: Prisma.AdminRefreshTokenListRelationFilter;
204
- avatarImage?: Prisma.XOR<Prisma.FileNullableScalarRelationFilter, Prisma.FileWhereInput> | null;
205
- posts?: Prisma.PostListRelationFilter;
206
- translations?: Prisma.AdminTranslationListRelationFilter;
207
- }, "id" | "email">;
208
- export type AdminOrderByWithAggregationInput = {
209
- id?: Prisma.SortOrder;
210
- role?: Prisma.SortOrder;
211
- email?: Prisma.SortOrder;
212
- passwordHash?: Prisma.SortOrder;
213
- socialLinks?: Prisma.SortOrder;
214
- avatarImageId?: Prisma.SortOrderInput | Prisma.SortOrder;
215
- createdAt?: Prisma.SortOrder;
216
- updatedAt?: Prisma.SortOrder;
217
- emailVerifiedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
218
- _count?: Prisma.AdminCountOrderByAggregateInput;
219
- _max?: Prisma.AdminMaxOrderByAggregateInput;
220
- _min?: Prisma.AdminMinOrderByAggregateInput;
221
- };
222
- export type AdminScalarWhereWithAggregatesInput = {
223
- AND?: Prisma.AdminScalarWhereWithAggregatesInput | Prisma.AdminScalarWhereWithAggregatesInput[];
224
- OR?: Prisma.AdminScalarWhereWithAggregatesInput[];
225
- NOT?: Prisma.AdminScalarWhereWithAggregatesInput | Prisma.AdminScalarWhereWithAggregatesInput[];
226
- id?: Prisma.StringWithAggregatesFilter<"Admin"> | string;
227
- role?: Prisma.EnumAdminRoleWithAggregatesFilter<"Admin"> | $Enums.AdminRole;
228
- email?: Prisma.StringWithAggregatesFilter<"Admin"> | string;
229
- passwordHash?: Prisma.StringWithAggregatesFilter<"Admin"> | string;
230
- socialLinks?: Prisma.StringNullableListFilter<"Admin">;
231
- avatarImageId?: Prisma.StringNullableWithAggregatesFilter<"Admin"> | string | null;
232
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"Admin"> | Date | string;
233
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Admin"> | Date | string;
234
- emailVerifiedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Admin"> | Date | string | null;
235
- };
236
- export type AdminCreateInput = {
237
- id?: string;
238
- role?: $Enums.AdminRole;
239
- email: string;
240
- passwordHash: string;
241
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
242
- createdAt?: Date | string;
243
- updatedAt?: Date | string;
244
- emailVerifiedAt?: Date | string | null;
245
- adminRefreshTokens?: Prisma.AdminRefreshTokenCreateNestedManyWithoutAdminInput;
246
- avatarImage?: Prisma.FileCreateNestedOneWithoutAdminAsAvatarImageInput;
247
- posts?: Prisma.PostCreateNestedManyWithoutAuthorInput;
248
- translations?: Prisma.AdminTranslationCreateNestedManyWithoutAdminInput;
249
- };
250
- export type AdminUncheckedCreateInput = {
251
- id?: string;
252
- role?: $Enums.AdminRole;
253
- email: string;
254
- passwordHash: string;
255
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
256
- avatarImageId?: string | null;
257
- createdAt?: Date | string;
258
- updatedAt?: Date | string;
259
- emailVerifiedAt?: Date | string | null;
260
- adminRefreshTokens?: Prisma.AdminRefreshTokenUncheckedCreateNestedManyWithoutAdminInput;
261
- posts?: Prisma.PostUncheckedCreateNestedManyWithoutAuthorInput;
262
- translations?: Prisma.AdminTranslationUncheckedCreateNestedManyWithoutAdminInput;
263
- };
264
- export type AdminUpdateInput = {
265
- id?: Prisma.StringFieldUpdateOperationsInput | string;
266
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
267
- email?: Prisma.StringFieldUpdateOperationsInput | string;
268
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
269
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
270
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
271
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
272
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
273
- adminRefreshTokens?: Prisma.AdminRefreshTokenUpdateManyWithoutAdminNestedInput;
274
- avatarImage?: Prisma.FileUpdateOneWithoutAdminAsAvatarImageNestedInput;
275
- posts?: Prisma.PostUpdateManyWithoutAuthorNestedInput;
276
- translations?: Prisma.AdminTranslationUpdateManyWithoutAdminNestedInput;
277
- };
278
- export type AdminUncheckedUpdateInput = {
279
- id?: Prisma.StringFieldUpdateOperationsInput | string;
280
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
281
- email?: Prisma.StringFieldUpdateOperationsInput | string;
282
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
283
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
284
- avatarImageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
285
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
286
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
287
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
288
- adminRefreshTokens?: Prisma.AdminRefreshTokenUncheckedUpdateManyWithoutAdminNestedInput;
289
- posts?: Prisma.PostUncheckedUpdateManyWithoutAuthorNestedInput;
290
- translations?: Prisma.AdminTranslationUncheckedUpdateManyWithoutAdminNestedInput;
291
- };
292
- export type AdminCreateManyInput = {
293
- id?: string;
294
- role?: $Enums.AdminRole;
295
- email: string;
296
- passwordHash: string;
297
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
298
- avatarImageId?: string | null;
299
- createdAt?: Date | string;
300
- updatedAt?: Date | string;
301
- emailVerifiedAt?: Date | string | null;
302
- };
303
- export type AdminUpdateManyMutationInput = {
304
- id?: Prisma.StringFieldUpdateOperationsInput | string;
305
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
306
- email?: Prisma.StringFieldUpdateOperationsInput | string;
307
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
308
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
309
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
310
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
311
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
312
- };
313
- export type AdminUncheckedUpdateManyInput = {
314
- id?: Prisma.StringFieldUpdateOperationsInput | string;
315
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
316
- email?: Prisma.StringFieldUpdateOperationsInput | string;
317
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
318
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
319
- avatarImageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
320
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
321
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
322
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
323
- };
324
- export type StringNullableListFilter<$PrismaModel = never> = {
325
- equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
326
- has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
327
- hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
328
- hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
329
- isEmpty?: boolean;
330
- };
331
- export type AdminCountOrderByAggregateInput = {
332
- id?: Prisma.SortOrder;
333
- role?: Prisma.SortOrder;
334
- email?: Prisma.SortOrder;
335
- passwordHash?: Prisma.SortOrder;
336
- socialLinks?: Prisma.SortOrder;
337
- avatarImageId?: Prisma.SortOrder;
338
- createdAt?: Prisma.SortOrder;
339
- updatedAt?: Prisma.SortOrder;
340
- emailVerifiedAt?: Prisma.SortOrder;
341
- };
342
- export type AdminMaxOrderByAggregateInput = {
343
- id?: Prisma.SortOrder;
344
- role?: Prisma.SortOrder;
345
- email?: Prisma.SortOrder;
346
- passwordHash?: Prisma.SortOrder;
347
- avatarImageId?: Prisma.SortOrder;
348
- createdAt?: Prisma.SortOrder;
349
- updatedAt?: Prisma.SortOrder;
350
- emailVerifiedAt?: Prisma.SortOrder;
351
- };
352
- export type AdminMinOrderByAggregateInput = {
353
- id?: Prisma.SortOrder;
354
- role?: Prisma.SortOrder;
355
- email?: Prisma.SortOrder;
356
- passwordHash?: Prisma.SortOrder;
357
- avatarImageId?: Prisma.SortOrder;
358
- createdAt?: Prisma.SortOrder;
359
- updatedAt?: Prisma.SortOrder;
360
- emailVerifiedAt?: Prisma.SortOrder;
361
- };
362
- export type AdminScalarRelationFilter = {
363
- is?: Prisma.AdminWhereInput;
364
- isNot?: Prisma.AdminWhereInput;
365
- };
366
- export type AdminListRelationFilter = {
367
- every?: Prisma.AdminWhereInput;
368
- some?: Prisma.AdminWhereInput;
369
- none?: Prisma.AdminWhereInput;
370
- };
371
- export type AdminOrderByRelationAggregateInput = {
372
- _count?: Prisma.SortOrder;
373
- };
374
- export type AdminNullableScalarRelationFilter = {
375
- is?: Prisma.AdminWhereInput | null;
376
- isNot?: Prisma.AdminWhereInput | null;
377
- };
378
- export type AdminCreatesocialLinksInput = {
379
- set: string[];
380
- };
381
- export type StringFieldUpdateOperationsInput = {
382
- set?: string;
383
- };
384
- export type EnumAdminRoleFieldUpdateOperationsInput = {
385
- set?: $Enums.AdminRole;
386
- };
387
- export type AdminUpdatesocialLinksInput = {
388
- set?: string[];
389
- push?: string | string[];
390
- };
391
- export type DateTimeFieldUpdateOperationsInput = {
392
- set?: Date | string;
393
- };
394
- export type NullableDateTimeFieldUpdateOperationsInput = {
395
- set?: Date | string | null;
396
- };
397
- export type NullableStringFieldUpdateOperationsInput = {
398
- set?: string | null;
399
- };
400
- export type AdminCreateNestedOneWithoutTranslationsInput = {
401
- create?: Prisma.XOR<Prisma.AdminCreateWithoutTranslationsInput, Prisma.AdminUncheckedCreateWithoutTranslationsInput>;
402
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutTranslationsInput;
403
- connect?: Prisma.AdminWhereUniqueInput;
404
- };
405
- export type AdminUpdateOneRequiredWithoutTranslationsNestedInput = {
406
- create?: Prisma.XOR<Prisma.AdminCreateWithoutTranslationsInput, Prisma.AdminUncheckedCreateWithoutTranslationsInput>;
407
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutTranslationsInput;
408
- upsert?: Prisma.AdminUpsertWithoutTranslationsInput;
409
- connect?: Prisma.AdminWhereUniqueInput;
410
- update?: Prisma.XOR<Prisma.XOR<Prisma.AdminUpdateToOneWithWhereWithoutTranslationsInput, Prisma.AdminUpdateWithoutTranslationsInput>, Prisma.AdminUncheckedUpdateWithoutTranslationsInput>;
411
- };
412
- export type AdminCreateNestedOneWithoutAdminRefreshTokensInput = {
413
- create?: Prisma.XOR<Prisma.AdminCreateWithoutAdminRefreshTokensInput, Prisma.AdminUncheckedCreateWithoutAdminRefreshTokensInput>;
414
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAdminRefreshTokensInput;
415
- connect?: Prisma.AdminWhereUniqueInput;
416
- };
417
- export type AdminUpdateOneRequiredWithoutAdminRefreshTokensNestedInput = {
418
- create?: Prisma.XOR<Prisma.AdminCreateWithoutAdminRefreshTokensInput, Prisma.AdminUncheckedCreateWithoutAdminRefreshTokensInput>;
419
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAdminRefreshTokensInput;
420
- upsert?: Prisma.AdminUpsertWithoutAdminRefreshTokensInput;
421
- connect?: Prisma.AdminWhereUniqueInput;
422
- update?: Prisma.XOR<Prisma.XOR<Prisma.AdminUpdateToOneWithWhereWithoutAdminRefreshTokensInput, Prisma.AdminUpdateWithoutAdminRefreshTokensInput>, Prisma.AdminUncheckedUpdateWithoutAdminRefreshTokensInput>;
423
- };
424
- export type AdminCreateNestedManyWithoutAvatarImageInput = {
425
- create?: Prisma.XOR<Prisma.AdminCreateWithoutAvatarImageInput, Prisma.AdminUncheckedCreateWithoutAvatarImageInput> | Prisma.AdminCreateWithoutAvatarImageInput[] | Prisma.AdminUncheckedCreateWithoutAvatarImageInput[];
426
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAvatarImageInput | Prisma.AdminCreateOrConnectWithoutAvatarImageInput[];
427
- createMany?: Prisma.AdminCreateManyAvatarImageInputEnvelope;
428
- connect?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
429
- };
430
- export type AdminUncheckedCreateNestedManyWithoutAvatarImageInput = {
431
- create?: Prisma.XOR<Prisma.AdminCreateWithoutAvatarImageInput, Prisma.AdminUncheckedCreateWithoutAvatarImageInput> | Prisma.AdminCreateWithoutAvatarImageInput[] | Prisma.AdminUncheckedCreateWithoutAvatarImageInput[];
432
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAvatarImageInput | Prisma.AdminCreateOrConnectWithoutAvatarImageInput[];
433
- createMany?: Prisma.AdminCreateManyAvatarImageInputEnvelope;
434
- connect?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
435
- };
436
- export type AdminUpdateManyWithoutAvatarImageNestedInput = {
437
- create?: Prisma.XOR<Prisma.AdminCreateWithoutAvatarImageInput, Prisma.AdminUncheckedCreateWithoutAvatarImageInput> | Prisma.AdminCreateWithoutAvatarImageInput[] | Prisma.AdminUncheckedCreateWithoutAvatarImageInput[];
438
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAvatarImageInput | Prisma.AdminCreateOrConnectWithoutAvatarImageInput[];
439
- upsert?: Prisma.AdminUpsertWithWhereUniqueWithoutAvatarImageInput | Prisma.AdminUpsertWithWhereUniqueWithoutAvatarImageInput[];
440
- createMany?: Prisma.AdminCreateManyAvatarImageInputEnvelope;
441
- set?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
442
- disconnect?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
443
- delete?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
444
- connect?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
445
- update?: Prisma.AdminUpdateWithWhereUniqueWithoutAvatarImageInput | Prisma.AdminUpdateWithWhereUniqueWithoutAvatarImageInput[];
446
- updateMany?: Prisma.AdminUpdateManyWithWhereWithoutAvatarImageInput | Prisma.AdminUpdateManyWithWhereWithoutAvatarImageInput[];
447
- deleteMany?: Prisma.AdminScalarWhereInput | Prisma.AdminScalarWhereInput[];
448
- };
449
- export type AdminUncheckedUpdateManyWithoutAvatarImageNestedInput = {
450
- create?: Prisma.XOR<Prisma.AdminCreateWithoutAvatarImageInput, Prisma.AdminUncheckedCreateWithoutAvatarImageInput> | Prisma.AdminCreateWithoutAvatarImageInput[] | Prisma.AdminUncheckedCreateWithoutAvatarImageInput[];
451
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAvatarImageInput | Prisma.AdminCreateOrConnectWithoutAvatarImageInput[];
452
- upsert?: Prisma.AdminUpsertWithWhereUniqueWithoutAvatarImageInput | Prisma.AdminUpsertWithWhereUniqueWithoutAvatarImageInput[];
453
- createMany?: Prisma.AdminCreateManyAvatarImageInputEnvelope;
454
- set?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
455
- disconnect?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
456
- delete?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
457
- connect?: Prisma.AdminWhereUniqueInput | Prisma.AdminWhereUniqueInput[];
458
- update?: Prisma.AdminUpdateWithWhereUniqueWithoutAvatarImageInput | Prisma.AdminUpdateWithWhereUniqueWithoutAvatarImageInput[];
459
- updateMany?: Prisma.AdminUpdateManyWithWhereWithoutAvatarImageInput | Prisma.AdminUpdateManyWithWhereWithoutAvatarImageInput[];
460
- deleteMany?: Prisma.AdminScalarWhereInput | Prisma.AdminScalarWhereInput[];
461
- };
462
- export type AdminCreateNestedOneWithoutPostsInput = {
463
- create?: Prisma.XOR<Prisma.AdminCreateWithoutPostsInput, Prisma.AdminUncheckedCreateWithoutPostsInput>;
464
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutPostsInput;
465
- connect?: Prisma.AdminWhereUniqueInput;
466
- };
467
- export type AdminUpdateOneWithoutPostsNestedInput = {
468
- create?: Prisma.XOR<Prisma.AdminCreateWithoutPostsInput, Prisma.AdminUncheckedCreateWithoutPostsInput>;
469
- connectOrCreate?: Prisma.AdminCreateOrConnectWithoutPostsInput;
470
- upsert?: Prisma.AdminUpsertWithoutPostsInput;
471
- disconnect?: Prisma.AdminWhereInput | boolean;
472
- delete?: Prisma.AdminWhereInput | boolean;
473
- connect?: Prisma.AdminWhereUniqueInput;
474
- update?: Prisma.XOR<Prisma.XOR<Prisma.AdminUpdateToOneWithWhereWithoutPostsInput, Prisma.AdminUpdateWithoutPostsInput>, Prisma.AdminUncheckedUpdateWithoutPostsInput>;
475
- };
476
- export type AdminCreateWithoutTranslationsInput = {
477
- id?: string;
478
- role?: $Enums.AdminRole;
479
- email: string;
480
- passwordHash: string;
481
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
482
- createdAt?: Date | string;
483
- updatedAt?: Date | string;
484
- emailVerifiedAt?: Date | string | null;
485
- adminRefreshTokens?: Prisma.AdminRefreshTokenCreateNestedManyWithoutAdminInput;
486
- avatarImage?: Prisma.FileCreateNestedOneWithoutAdminAsAvatarImageInput;
487
- posts?: Prisma.PostCreateNestedManyWithoutAuthorInput;
488
- };
489
- export type AdminUncheckedCreateWithoutTranslationsInput = {
490
- id?: string;
491
- role?: $Enums.AdminRole;
492
- email: string;
493
- passwordHash: string;
494
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
495
- avatarImageId?: string | null;
496
- createdAt?: Date | string;
497
- updatedAt?: Date | string;
498
- emailVerifiedAt?: Date | string | null;
499
- adminRefreshTokens?: Prisma.AdminRefreshTokenUncheckedCreateNestedManyWithoutAdminInput;
500
- posts?: Prisma.PostUncheckedCreateNestedManyWithoutAuthorInput;
501
- };
502
- export type AdminCreateOrConnectWithoutTranslationsInput = {
503
- where: Prisma.AdminWhereUniqueInput;
504
- create: Prisma.XOR<Prisma.AdminCreateWithoutTranslationsInput, Prisma.AdminUncheckedCreateWithoutTranslationsInput>;
505
- };
506
- export type AdminUpsertWithoutTranslationsInput = {
507
- update: Prisma.XOR<Prisma.AdminUpdateWithoutTranslationsInput, Prisma.AdminUncheckedUpdateWithoutTranslationsInput>;
508
- create: Prisma.XOR<Prisma.AdminCreateWithoutTranslationsInput, Prisma.AdminUncheckedCreateWithoutTranslationsInput>;
509
- where?: Prisma.AdminWhereInput;
510
- };
511
- export type AdminUpdateToOneWithWhereWithoutTranslationsInput = {
512
- where?: Prisma.AdminWhereInput;
513
- data: Prisma.XOR<Prisma.AdminUpdateWithoutTranslationsInput, Prisma.AdminUncheckedUpdateWithoutTranslationsInput>;
514
- };
515
- export type AdminUpdateWithoutTranslationsInput = {
516
- id?: Prisma.StringFieldUpdateOperationsInput | string;
517
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
518
- email?: Prisma.StringFieldUpdateOperationsInput | string;
519
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
520
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
521
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
522
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
523
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
524
- adminRefreshTokens?: Prisma.AdminRefreshTokenUpdateManyWithoutAdminNestedInput;
525
- avatarImage?: Prisma.FileUpdateOneWithoutAdminAsAvatarImageNestedInput;
526
- posts?: Prisma.PostUpdateManyWithoutAuthorNestedInput;
527
- };
528
- export type AdminUncheckedUpdateWithoutTranslationsInput = {
529
- id?: Prisma.StringFieldUpdateOperationsInput | string;
530
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
531
- email?: Prisma.StringFieldUpdateOperationsInput | string;
532
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
533
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
534
- avatarImageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
535
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
536
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
537
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
538
- adminRefreshTokens?: Prisma.AdminRefreshTokenUncheckedUpdateManyWithoutAdminNestedInput;
539
- posts?: Prisma.PostUncheckedUpdateManyWithoutAuthorNestedInput;
540
- };
541
- export type AdminCreateWithoutAdminRefreshTokensInput = {
542
- id?: string;
543
- role?: $Enums.AdminRole;
544
- email: string;
545
- passwordHash: string;
546
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
547
- createdAt?: Date | string;
548
- updatedAt?: Date | string;
549
- emailVerifiedAt?: Date | string | null;
550
- avatarImage?: Prisma.FileCreateNestedOneWithoutAdminAsAvatarImageInput;
551
- posts?: Prisma.PostCreateNestedManyWithoutAuthorInput;
552
- translations?: Prisma.AdminTranslationCreateNestedManyWithoutAdminInput;
553
- };
554
- export type AdminUncheckedCreateWithoutAdminRefreshTokensInput = {
555
- id?: string;
556
- role?: $Enums.AdminRole;
557
- email: string;
558
- passwordHash: string;
559
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
560
- avatarImageId?: string | null;
561
- createdAt?: Date | string;
562
- updatedAt?: Date | string;
563
- emailVerifiedAt?: Date | string | null;
564
- posts?: Prisma.PostUncheckedCreateNestedManyWithoutAuthorInput;
565
- translations?: Prisma.AdminTranslationUncheckedCreateNestedManyWithoutAdminInput;
566
- };
567
- export type AdminCreateOrConnectWithoutAdminRefreshTokensInput = {
568
- where: Prisma.AdminWhereUniqueInput;
569
- create: Prisma.XOR<Prisma.AdminCreateWithoutAdminRefreshTokensInput, Prisma.AdminUncheckedCreateWithoutAdminRefreshTokensInput>;
570
- };
571
- export type AdminUpsertWithoutAdminRefreshTokensInput = {
572
- update: Prisma.XOR<Prisma.AdminUpdateWithoutAdminRefreshTokensInput, Prisma.AdminUncheckedUpdateWithoutAdminRefreshTokensInput>;
573
- create: Prisma.XOR<Prisma.AdminCreateWithoutAdminRefreshTokensInput, Prisma.AdminUncheckedCreateWithoutAdminRefreshTokensInput>;
574
- where?: Prisma.AdminWhereInput;
575
- };
576
- export type AdminUpdateToOneWithWhereWithoutAdminRefreshTokensInput = {
577
- where?: Prisma.AdminWhereInput;
578
- data: Prisma.XOR<Prisma.AdminUpdateWithoutAdminRefreshTokensInput, Prisma.AdminUncheckedUpdateWithoutAdminRefreshTokensInput>;
579
- };
580
- export type AdminUpdateWithoutAdminRefreshTokensInput = {
581
- id?: Prisma.StringFieldUpdateOperationsInput | string;
582
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
583
- email?: Prisma.StringFieldUpdateOperationsInput | string;
584
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
585
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
586
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
587
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
588
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
589
- avatarImage?: Prisma.FileUpdateOneWithoutAdminAsAvatarImageNestedInput;
590
- posts?: Prisma.PostUpdateManyWithoutAuthorNestedInput;
591
- translations?: Prisma.AdminTranslationUpdateManyWithoutAdminNestedInput;
592
- };
593
- export type AdminUncheckedUpdateWithoutAdminRefreshTokensInput = {
594
- id?: Prisma.StringFieldUpdateOperationsInput | string;
595
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
596
- email?: Prisma.StringFieldUpdateOperationsInput | string;
597
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
598
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
599
- avatarImageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
600
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
601
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
602
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
603
- posts?: Prisma.PostUncheckedUpdateManyWithoutAuthorNestedInput;
604
- translations?: Prisma.AdminTranslationUncheckedUpdateManyWithoutAdminNestedInput;
605
- };
606
- export type AdminCreateWithoutAvatarImageInput = {
607
- id?: string;
608
- role?: $Enums.AdminRole;
609
- email: string;
610
- passwordHash: string;
611
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
612
- createdAt?: Date | string;
613
- updatedAt?: Date | string;
614
- emailVerifiedAt?: Date | string | null;
615
- adminRefreshTokens?: Prisma.AdminRefreshTokenCreateNestedManyWithoutAdminInput;
616
- posts?: Prisma.PostCreateNestedManyWithoutAuthorInput;
617
- translations?: Prisma.AdminTranslationCreateNestedManyWithoutAdminInput;
618
- };
619
- export type AdminUncheckedCreateWithoutAvatarImageInput = {
620
- id?: string;
621
- role?: $Enums.AdminRole;
622
- email: string;
623
- passwordHash: string;
624
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
625
- createdAt?: Date | string;
626
- updatedAt?: Date | string;
627
- emailVerifiedAt?: Date | string | null;
628
- adminRefreshTokens?: Prisma.AdminRefreshTokenUncheckedCreateNestedManyWithoutAdminInput;
629
- posts?: Prisma.PostUncheckedCreateNestedManyWithoutAuthorInput;
630
- translations?: Prisma.AdminTranslationUncheckedCreateNestedManyWithoutAdminInput;
631
- };
632
- export type AdminCreateOrConnectWithoutAvatarImageInput = {
633
- where: Prisma.AdminWhereUniqueInput;
634
- create: Prisma.XOR<Prisma.AdminCreateWithoutAvatarImageInput, Prisma.AdminUncheckedCreateWithoutAvatarImageInput>;
635
- };
636
- export type AdminCreateManyAvatarImageInputEnvelope = {
637
- data: Prisma.AdminCreateManyAvatarImageInput | Prisma.AdminCreateManyAvatarImageInput[];
638
- skipDuplicates?: boolean;
639
- };
640
- export type AdminUpsertWithWhereUniqueWithoutAvatarImageInput = {
641
- where: Prisma.AdminWhereUniqueInput;
642
- update: Prisma.XOR<Prisma.AdminUpdateWithoutAvatarImageInput, Prisma.AdminUncheckedUpdateWithoutAvatarImageInput>;
643
- create: Prisma.XOR<Prisma.AdminCreateWithoutAvatarImageInput, Prisma.AdminUncheckedCreateWithoutAvatarImageInput>;
644
- };
645
- export type AdminUpdateWithWhereUniqueWithoutAvatarImageInput = {
646
- where: Prisma.AdminWhereUniqueInput;
647
- data: Prisma.XOR<Prisma.AdminUpdateWithoutAvatarImageInput, Prisma.AdminUncheckedUpdateWithoutAvatarImageInput>;
648
- };
649
- export type AdminUpdateManyWithWhereWithoutAvatarImageInput = {
650
- where: Prisma.AdminScalarWhereInput;
651
- data: Prisma.XOR<Prisma.AdminUpdateManyMutationInput, Prisma.AdminUncheckedUpdateManyWithoutAvatarImageInput>;
652
- };
653
- export type AdminScalarWhereInput = {
654
- AND?: Prisma.AdminScalarWhereInput | Prisma.AdminScalarWhereInput[];
655
- OR?: Prisma.AdminScalarWhereInput[];
656
- NOT?: Prisma.AdminScalarWhereInput | Prisma.AdminScalarWhereInput[];
657
- id?: Prisma.StringFilter<"Admin"> | string;
658
- role?: Prisma.EnumAdminRoleFilter<"Admin"> | $Enums.AdminRole;
659
- email?: Prisma.StringFilter<"Admin"> | string;
660
- passwordHash?: Prisma.StringFilter<"Admin"> | string;
661
- socialLinks?: Prisma.StringNullableListFilter<"Admin">;
662
- avatarImageId?: Prisma.StringNullableFilter<"Admin"> | string | null;
663
- createdAt?: Prisma.DateTimeFilter<"Admin"> | Date | string;
664
- updatedAt?: Prisma.DateTimeFilter<"Admin"> | Date | string;
665
- emailVerifiedAt?: Prisma.DateTimeNullableFilter<"Admin"> | Date | string | null;
666
- };
667
- export type AdminCreateWithoutPostsInput = {
668
- id?: string;
669
- role?: $Enums.AdminRole;
670
- email: string;
671
- passwordHash: string;
672
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
673
- createdAt?: Date | string;
674
- updatedAt?: Date | string;
675
- emailVerifiedAt?: Date | string | null;
676
- adminRefreshTokens?: Prisma.AdminRefreshTokenCreateNestedManyWithoutAdminInput;
677
- avatarImage?: Prisma.FileCreateNestedOneWithoutAdminAsAvatarImageInput;
678
- translations?: Prisma.AdminTranslationCreateNestedManyWithoutAdminInput;
679
- };
680
- export type AdminUncheckedCreateWithoutPostsInput = {
681
- id?: string;
682
- role?: $Enums.AdminRole;
683
- email: string;
684
- passwordHash: string;
685
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
686
- avatarImageId?: string | null;
687
- createdAt?: Date | string;
688
- updatedAt?: Date | string;
689
- emailVerifiedAt?: Date | string | null;
690
- adminRefreshTokens?: Prisma.AdminRefreshTokenUncheckedCreateNestedManyWithoutAdminInput;
691
- translations?: Prisma.AdminTranslationUncheckedCreateNestedManyWithoutAdminInput;
692
- };
693
- export type AdminCreateOrConnectWithoutPostsInput = {
694
- where: Prisma.AdminWhereUniqueInput;
695
- create: Prisma.XOR<Prisma.AdminCreateWithoutPostsInput, Prisma.AdminUncheckedCreateWithoutPostsInput>;
696
- };
697
- export type AdminUpsertWithoutPostsInput = {
698
- update: Prisma.XOR<Prisma.AdminUpdateWithoutPostsInput, Prisma.AdminUncheckedUpdateWithoutPostsInput>;
699
- create: Prisma.XOR<Prisma.AdminCreateWithoutPostsInput, Prisma.AdminUncheckedCreateWithoutPostsInput>;
700
- where?: Prisma.AdminWhereInput;
701
- };
702
- export type AdminUpdateToOneWithWhereWithoutPostsInput = {
703
- where?: Prisma.AdminWhereInput;
704
- data: Prisma.XOR<Prisma.AdminUpdateWithoutPostsInput, Prisma.AdminUncheckedUpdateWithoutPostsInput>;
705
- };
706
- export type AdminUpdateWithoutPostsInput = {
707
- id?: Prisma.StringFieldUpdateOperationsInput | string;
708
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
709
- email?: Prisma.StringFieldUpdateOperationsInput | string;
710
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
711
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
712
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
713
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
714
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
715
- adminRefreshTokens?: Prisma.AdminRefreshTokenUpdateManyWithoutAdminNestedInput;
716
- avatarImage?: Prisma.FileUpdateOneWithoutAdminAsAvatarImageNestedInput;
717
- translations?: Prisma.AdminTranslationUpdateManyWithoutAdminNestedInput;
718
- };
719
- export type AdminUncheckedUpdateWithoutPostsInput = {
720
- id?: Prisma.StringFieldUpdateOperationsInput | string;
721
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
722
- email?: Prisma.StringFieldUpdateOperationsInput | string;
723
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
724
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
725
- avatarImageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
726
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
727
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
728
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
729
- adminRefreshTokens?: Prisma.AdminRefreshTokenUncheckedUpdateManyWithoutAdminNestedInput;
730
- translations?: Prisma.AdminTranslationUncheckedUpdateManyWithoutAdminNestedInput;
731
- };
732
- export type AdminCreateManyAvatarImageInput = {
733
- id?: string;
734
- role?: $Enums.AdminRole;
735
- email: string;
736
- passwordHash: string;
737
- socialLinks?: Prisma.AdminCreatesocialLinksInput | string[];
738
- createdAt?: Date | string;
739
- updatedAt?: Date | string;
740
- emailVerifiedAt?: Date | string | null;
741
- };
742
- export type AdminUpdateWithoutAvatarImageInput = {
743
- id?: Prisma.StringFieldUpdateOperationsInput | string;
744
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
745
- email?: Prisma.StringFieldUpdateOperationsInput | string;
746
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
747
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
748
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
749
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
750
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
751
- adminRefreshTokens?: Prisma.AdminRefreshTokenUpdateManyWithoutAdminNestedInput;
752
- posts?: Prisma.PostUpdateManyWithoutAuthorNestedInput;
753
- translations?: Prisma.AdminTranslationUpdateManyWithoutAdminNestedInput;
754
- };
755
- export type AdminUncheckedUpdateWithoutAvatarImageInput = {
756
- id?: Prisma.StringFieldUpdateOperationsInput | string;
757
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
758
- email?: Prisma.StringFieldUpdateOperationsInput | string;
759
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
760
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
761
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
762
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
763
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
764
- adminRefreshTokens?: Prisma.AdminRefreshTokenUncheckedUpdateManyWithoutAdminNestedInput;
765
- posts?: Prisma.PostUncheckedUpdateManyWithoutAuthorNestedInput;
766
- translations?: Prisma.AdminTranslationUncheckedUpdateManyWithoutAdminNestedInput;
767
- };
768
- export type AdminUncheckedUpdateManyWithoutAvatarImageInput = {
769
- id?: Prisma.StringFieldUpdateOperationsInput | string;
770
- role?: Prisma.EnumAdminRoleFieldUpdateOperationsInput | $Enums.AdminRole;
771
- email?: Prisma.StringFieldUpdateOperationsInput | string;
772
- passwordHash?: Prisma.StringFieldUpdateOperationsInput | string;
773
- socialLinks?: Prisma.AdminUpdatesocialLinksInput | string[];
774
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
775
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
776
- emailVerifiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
777
- };
778
- /**
779
- * Count Type AdminCountOutputType
780
- */
781
- export type AdminCountOutputType = {
782
- adminRefreshTokens: number;
783
- posts: number;
784
- translations: number;
785
- };
786
- export type AdminCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
787
- adminRefreshTokens?: boolean | AdminCountOutputTypeCountAdminRefreshTokensArgs;
788
- posts?: boolean | AdminCountOutputTypeCountPostsArgs;
789
- translations?: boolean | AdminCountOutputTypeCountTranslationsArgs;
790
- };
791
- /**
792
- * AdminCountOutputType without action
793
- */
794
- export type AdminCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
795
- /**
796
- * Select specific fields to fetch from the AdminCountOutputType
797
- */
798
- select?: Prisma.AdminCountOutputTypeSelect<ExtArgs> | null;
799
- };
800
- /**
801
- * AdminCountOutputType without action
802
- */
803
- export type AdminCountOutputTypeCountAdminRefreshTokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
804
- where?: Prisma.AdminRefreshTokenWhereInput;
805
- };
806
- /**
807
- * AdminCountOutputType without action
808
- */
809
- export type AdminCountOutputTypeCountPostsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
810
- where?: Prisma.PostWhereInput;
811
- };
812
- /**
813
- * AdminCountOutputType without action
814
- */
815
- export type AdminCountOutputTypeCountTranslationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
816
- where?: Prisma.AdminTranslationWhereInput;
817
- };
818
- export type AdminSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
819
- id?: boolean;
820
- role?: boolean;
821
- email?: boolean;
822
- passwordHash?: boolean;
823
- socialLinks?: boolean;
824
- avatarImageId?: boolean;
825
- createdAt?: boolean;
826
- updatedAt?: boolean;
827
- emailVerifiedAt?: boolean;
828
- adminRefreshTokens?: boolean | Prisma.Admin$adminRefreshTokensArgs<ExtArgs>;
829
- avatarImage?: boolean | Prisma.Admin$avatarImageArgs<ExtArgs>;
830
- posts?: boolean | Prisma.Admin$postsArgs<ExtArgs>;
831
- translations?: boolean | Prisma.Admin$translationsArgs<ExtArgs>;
832
- _count?: boolean | Prisma.AdminCountOutputTypeDefaultArgs<ExtArgs>;
833
- }, ExtArgs["result"]["admin"]>;
834
- export type AdminSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
835
- id?: boolean;
836
- role?: boolean;
837
- email?: boolean;
838
- passwordHash?: boolean;
839
- socialLinks?: boolean;
840
- avatarImageId?: boolean;
841
- createdAt?: boolean;
842
- updatedAt?: boolean;
843
- emailVerifiedAt?: boolean;
844
- avatarImage?: boolean | Prisma.Admin$avatarImageArgs<ExtArgs>;
845
- }, ExtArgs["result"]["admin"]>;
846
- export type AdminSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
847
- id?: boolean;
848
- role?: boolean;
849
- email?: boolean;
850
- passwordHash?: boolean;
851
- socialLinks?: boolean;
852
- avatarImageId?: boolean;
853
- createdAt?: boolean;
854
- updatedAt?: boolean;
855
- emailVerifiedAt?: boolean;
856
- avatarImage?: boolean | Prisma.Admin$avatarImageArgs<ExtArgs>;
857
- }, ExtArgs["result"]["admin"]>;
858
- export type AdminSelectScalar = {
859
- id?: boolean;
860
- role?: boolean;
861
- email?: boolean;
862
- passwordHash?: boolean;
863
- socialLinks?: boolean;
864
- avatarImageId?: boolean;
865
- createdAt?: boolean;
866
- updatedAt?: boolean;
867
- emailVerifiedAt?: boolean;
868
- };
869
- export type AdminOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "role" | "email" | "passwordHash" | "socialLinks" | "avatarImageId" | "createdAt" | "updatedAt" | "emailVerifiedAt", ExtArgs["result"]["admin"]>;
870
- export type AdminInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
871
- adminRefreshTokens?: boolean | Prisma.Admin$adminRefreshTokensArgs<ExtArgs>;
872
- avatarImage?: boolean | Prisma.Admin$avatarImageArgs<ExtArgs>;
873
- posts?: boolean | Prisma.Admin$postsArgs<ExtArgs>;
874
- translations?: boolean | Prisma.Admin$translationsArgs<ExtArgs>;
875
- _count?: boolean | Prisma.AdminCountOutputTypeDefaultArgs<ExtArgs>;
876
- };
877
- export type AdminIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
878
- avatarImage?: boolean | Prisma.Admin$avatarImageArgs<ExtArgs>;
879
- };
880
- export type AdminIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
881
- avatarImage?: boolean | Prisma.Admin$avatarImageArgs<ExtArgs>;
882
- };
883
- export type $AdminPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
884
- name: "Admin";
885
- objects: {
886
- adminRefreshTokens: Prisma.$AdminRefreshTokenPayload<ExtArgs>[];
887
- avatarImage: Prisma.$FilePayload<ExtArgs> | null;
888
- posts: Prisma.$PostPayload<ExtArgs>[];
889
- translations: Prisma.$AdminTranslationPayload<ExtArgs>[];
890
- };
891
- scalars: runtime.Types.Extensions.GetPayloadResult<{
892
- id: string;
893
- role: $Enums.AdminRole;
894
- email: string;
895
- passwordHash: string;
896
- socialLinks: string[];
897
- avatarImageId: string | null;
898
- createdAt: Date;
899
- updatedAt: Date;
900
- emailVerifiedAt: Date | null;
901
- }, ExtArgs["result"]["admin"]>;
902
- composites: {};
903
- };
904
- export type AdminGetPayload<S extends boolean | null | undefined | AdminDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminPayload, S>;
905
- export type AdminCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AdminFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
906
- select?: AdminCountAggregateInputType | true;
907
- };
908
- export interface AdminDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
909
- [K: symbol]: {
910
- types: Prisma.TypeMap<ExtArgs>['model']['Admin'];
911
- meta: {
912
- name: 'Admin';
913
- };
914
- };
915
- /**
916
- * Find zero or one Admin that matches the filter.
917
- * @param {AdminFindUniqueArgs} args - Arguments to find a Admin
918
- * @example
919
- * // Get one Admin
920
- * const admin = await prisma.admin.findUnique({
921
- * where: {
922
- * // ... provide filter here
923
- * }
924
- * })
925
- */
926
- findUnique<T extends AdminFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
927
- /**
928
- * Find one Admin that matches the filter or throw an error with `error.code='P2025'`
929
- * if no matches were found.
930
- * @param {AdminFindUniqueOrThrowArgs} args - Arguments to find a Admin
931
- * @example
932
- * // Get one Admin
933
- * const admin = await prisma.admin.findUniqueOrThrow({
934
- * where: {
935
- * // ... provide filter here
936
- * }
937
- * })
938
- */
939
- findUniqueOrThrow<T extends AdminFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
940
- /**
941
- * Find the first Admin that matches the filter.
942
- * Note, that providing `undefined` is treated as the value not being there.
943
- * Read more here: https://pris.ly/d/null-undefined
944
- * @param {AdminFindFirstArgs} args - Arguments to find a Admin
945
- * @example
946
- * // Get one Admin
947
- * const admin = await prisma.admin.findFirst({
948
- * where: {
949
- * // ... provide filter here
950
- * }
951
- * })
952
- */
953
- findFirst<T extends AdminFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
954
- /**
955
- * Find the first Admin that matches the filter or
956
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
957
- * Note, that providing `undefined` is treated as the value not being there.
958
- * Read more here: https://pris.ly/d/null-undefined
959
- * @param {AdminFindFirstOrThrowArgs} args - Arguments to find a Admin
960
- * @example
961
- * // Get one Admin
962
- * const admin = await prisma.admin.findFirstOrThrow({
963
- * where: {
964
- * // ... provide filter here
965
- * }
966
- * })
967
- */
968
- findFirstOrThrow<T extends AdminFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
969
- /**
970
- * Find zero or more Admins that matches the filter.
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 {AdminFindManyArgs} args - Arguments to filter and select certain fields only.
974
- * @example
975
- * // Get all Admins
976
- * const admins = await prisma.admin.findMany()
977
- *
978
- * // Get first 10 Admins
979
- * const admins = await prisma.admin.findMany({ take: 10 })
980
- *
981
- * // Only select the `id`
982
- * const adminWithIdOnly = await prisma.admin.findMany({ select: { id: true } })
983
- *
984
- */
985
- findMany<T extends AdminFindManyArgs>(args?: Prisma.SelectSubset<T, AdminFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
986
- /**
987
- * Create a Admin.
988
- * @param {AdminCreateArgs} args - Arguments to create a Admin.
989
- * @example
990
- * // Create one Admin
991
- * const Admin = await prisma.admin.create({
992
- * data: {
993
- * // ... data to create a Admin
994
- * }
995
- * })
996
- *
997
- */
998
- create<T extends AdminCreateArgs>(args: Prisma.SelectSubset<T, AdminCreateArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
999
- /**
1000
- * Create many Admins.
1001
- * @param {AdminCreateManyArgs} args - Arguments to create many Admins.
1002
- * @example
1003
- * // Create many Admins
1004
- * const admin = await prisma.admin.createMany({
1005
- * data: [
1006
- * // ... provide data here
1007
- * ]
1008
- * })
1009
- *
1010
- */
1011
- createMany<T extends AdminCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1012
- /**
1013
- * Create many Admins and returns the data saved in the database.
1014
- * @param {AdminCreateManyAndReturnArgs} args - Arguments to create many Admins.
1015
- * @example
1016
- * // Create many Admins
1017
- * const admin = await prisma.admin.createManyAndReturn({
1018
- * data: [
1019
- * // ... provide data here
1020
- * ]
1021
- * })
1022
- *
1023
- * // Create many Admins and only return the `id`
1024
- * const adminWithIdOnly = await prisma.admin.createManyAndReturn({
1025
- * select: { id: true },
1026
- * data: [
1027
- * // ... provide data here
1028
- * ]
1029
- * })
1030
- * Note, that providing `undefined` is treated as the value not being there.
1031
- * Read more here: https://pris.ly/d/null-undefined
1032
- *
1033
- */
1034
- createManyAndReturn<T extends AdminCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1035
- /**
1036
- * Delete a Admin.
1037
- * @param {AdminDeleteArgs} args - Arguments to delete one Admin.
1038
- * @example
1039
- * // Delete one Admin
1040
- * const Admin = await prisma.admin.delete({
1041
- * where: {
1042
- * // ... filter to delete one Admin
1043
- * }
1044
- * })
1045
- *
1046
- */
1047
- delete<T extends AdminDeleteArgs>(args: Prisma.SelectSubset<T, AdminDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1048
- /**
1049
- * Update one Admin.
1050
- * @param {AdminUpdateArgs} args - Arguments to update one Admin.
1051
- * @example
1052
- * // Update one Admin
1053
- * const admin = await prisma.admin.update({
1054
- * where: {
1055
- * // ... provide filter here
1056
- * },
1057
- * data: {
1058
- * // ... provide data here
1059
- * }
1060
- * })
1061
- *
1062
- */
1063
- update<T extends AdminUpdateArgs>(args: Prisma.SelectSubset<T, AdminUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1064
- /**
1065
- * Delete zero or more Admins.
1066
- * @param {AdminDeleteManyArgs} args - Arguments to filter Admins to delete.
1067
- * @example
1068
- * // Delete a few Admins
1069
- * const { count } = await prisma.admin.deleteMany({
1070
- * where: {
1071
- * // ... provide filter here
1072
- * }
1073
- * })
1074
- *
1075
- */
1076
- deleteMany<T extends AdminDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1077
- /**
1078
- * Update zero or more Admins.
1079
- * Note, that providing `undefined` is treated as the value not being there.
1080
- * Read more here: https://pris.ly/d/null-undefined
1081
- * @param {AdminUpdateManyArgs} args - Arguments to update one or more rows.
1082
- * @example
1083
- * // Update many Admins
1084
- * const admin = await prisma.admin.updateMany({
1085
- * where: {
1086
- * // ... provide filter here
1087
- * },
1088
- * data: {
1089
- * // ... provide data here
1090
- * }
1091
- * })
1092
- *
1093
- */
1094
- updateMany<T extends AdminUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1095
- /**
1096
- * Update zero or more Admins and returns the data updated in the database.
1097
- * @param {AdminUpdateManyAndReturnArgs} args - Arguments to update many Admins.
1098
- * @example
1099
- * // Update many Admins
1100
- * const admin = await prisma.admin.updateManyAndReturn({
1101
- * where: {
1102
- * // ... provide filter here
1103
- * },
1104
- * data: [
1105
- * // ... provide data here
1106
- * ]
1107
- * })
1108
- *
1109
- * // Update zero or more Admins and only return the `id`
1110
- * const adminWithIdOnly = await prisma.admin.updateManyAndReturn({
1111
- * select: { id: true },
1112
- * where: {
1113
- * // ... provide filter here
1114
- * },
1115
- * data: [
1116
- * // ... provide data here
1117
- * ]
1118
- * })
1119
- * Note, that providing `undefined` is treated as the value not being there.
1120
- * Read more here: https://pris.ly/d/null-undefined
1121
- *
1122
- */
1123
- updateManyAndReturn<T extends AdminUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1124
- /**
1125
- * Create or update one Admin.
1126
- * @param {AdminUpsertArgs} args - Arguments to update or create a Admin.
1127
- * @example
1128
- * // Update or create a Admin
1129
- * const admin = await prisma.admin.upsert({
1130
- * create: {
1131
- * // ... data to create a Admin
1132
- * },
1133
- * update: {
1134
- * // ... in case it already exists, update
1135
- * },
1136
- * where: {
1137
- * // ... the filter for the Admin we want to update
1138
- * }
1139
- * })
1140
- */
1141
- upsert<T extends AdminUpsertArgs>(args: Prisma.SelectSubset<T, AdminUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1142
- /**
1143
- * Count the number of Admins.
1144
- * Note, that providing `undefined` is treated as the value not being there.
1145
- * Read more here: https://pris.ly/d/null-undefined
1146
- * @param {AdminCountArgs} args - Arguments to filter Admins to count.
1147
- * @example
1148
- * // Count the number of Admins
1149
- * const count = await prisma.admin.count({
1150
- * where: {
1151
- * // ... the filter for the Admins we want to count
1152
- * }
1153
- * })
1154
- **/
1155
- count<T extends AdminCountArgs>(args?: Prisma.Subset<T, AdminCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AdminCountAggregateOutputType> : number>;
1156
- /**
1157
- * Allows you to perform aggregations operations on a Admin.
1158
- * Note, that providing `undefined` is treated as the value not being there.
1159
- * Read more here: https://pris.ly/d/null-undefined
1160
- * @param {AdminAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1161
- * @example
1162
- * // Ordered by age ascending
1163
- * // Where email contains prisma.io
1164
- * // Limited to the 10 users
1165
- * const aggregations = await prisma.user.aggregate({
1166
- * _avg: {
1167
- * age: true,
1168
- * },
1169
- * where: {
1170
- * email: {
1171
- * contains: "prisma.io",
1172
- * },
1173
- * },
1174
- * orderBy: {
1175
- * age: "asc",
1176
- * },
1177
- * take: 10,
1178
- * })
1179
- **/
1180
- aggregate<T extends AdminAggregateArgs>(args: Prisma.Subset<T, AdminAggregateArgs>): Prisma.PrismaPromise<GetAdminAggregateType<T>>;
1181
- /**
1182
- * Group by Admin.
1183
- * Note, that providing `undefined` is treated as the value not being there.
1184
- * Read more here: https://pris.ly/d/null-undefined
1185
- * @param {AdminGroupByArgs} args - Group by arguments.
1186
- * @example
1187
- * // Group by city, order by createdAt, get count
1188
- * const result = await prisma.user.groupBy({
1189
- * by: ['city', 'createdAt'],
1190
- * orderBy: {
1191
- * createdAt: true
1192
- * },
1193
- * _count: {
1194
- * _all: true
1195
- * },
1196
- * })
1197
- *
1198
- **/
1199
- groupBy<T extends AdminGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1200
- orderBy: AdminGroupByArgs['orderBy'];
1201
- } : {
1202
- orderBy?: AdminGroupByArgs['orderBy'];
1203
- }, 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 ? {
1204
- [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1205
- Error,
1206
- 'Field ',
1207
- P,
1208
- ` in "having" needs to be provided in "by"`
1209
- ];
1210
- }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1211
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1212
- }[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 ? {} : {
1213
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1214
- }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1215
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1216
- }[OrderFields]>(args: Prisma.SubsetIntersection<T, AdminGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1217
- /**
1218
- * Fields of the Admin model
1219
- */
1220
- readonly fields: AdminFieldRefs;
1221
- }
1222
- /**
1223
- * The delegate class that acts as a "Promise-like" for Admin.
1224
- * Why is this prefixed with `Prisma__`?
1225
- * Because we want to prevent naming conflicts as mentioned in
1226
- * https://github.com/prisma/prisma-client-js/issues/707
1227
- */
1228
- export interface Prisma__AdminClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1229
- readonly [Symbol.toStringTag]: "PrismaPromise";
1230
- adminRefreshTokens<T extends Prisma.Admin$adminRefreshTokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Admin$adminRefreshTokensArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminRefreshTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1231
- avatarImage<T extends Prisma.Admin$avatarImageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Admin$avatarImageArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1232
- posts<T extends Prisma.Admin$postsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Admin$postsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1233
- translations<T extends Prisma.Admin$translationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Admin$translationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminTranslationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1234
- /**
1235
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1236
- * @param onfulfilled The callback to execute when the Promise is resolved.
1237
- * @param onrejected The callback to execute when the Promise is rejected.
1238
- * @returns A Promise for the completion of which ever callback is executed.
1239
- */
1240
- 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>;
1241
- /**
1242
- * Attaches a callback for only the rejection of the Promise.
1243
- * @param onrejected The callback to execute when the Promise is rejected.
1244
- * @returns A Promise for the completion of the callback.
1245
- */
1246
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1247
- /**
1248
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1249
- * resolved value cannot be modified from the callback.
1250
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1251
- * @returns A Promise for the completion of the callback.
1252
- */
1253
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1254
- }
1255
- /**
1256
- * Fields of the Admin model
1257
- */
1258
- export interface AdminFieldRefs {
1259
- readonly id: Prisma.FieldRef<"Admin", 'String'>;
1260
- readonly role: Prisma.FieldRef<"Admin", 'AdminRole'>;
1261
- readonly email: Prisma.FieldRef<"Admin", 'String'>;
1262
- readonly passwordHash: Prisma.FieldRef<"Admin", 'String'>;
1263
- readonly socialLinks: Prisma.FieldRef<"Admin", 'String[]'>;
1264
- readonly avatarImageId: Prisma.FieldRef<"Admin", 'String'>;
1265
- readonly createdAt: Prisma.FieldRef<"Admin", 'DateTime'>;
1266
- readonly updatedAt: Prisma.FieldRef<"Admin", 'DateTime'>;
1267
- readonly emailVerifiedAt: Prisma.FieldRef<"Admin", 'DateTime'>;
1268
- }
1269
- /**
1270
- * Admin findUnique
1271
- */
1272
- export type AdminFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1273
- /**
1274
- * Select specific fields to fetch from the Admin
1275
- */
1276
- select?: Prisma.AdminSelect<ExtArgs> | null;
1277
- /**
1278
- * Omit specific fields from the Admin
1279
- */
1280
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1281
- /**
1282
- * Choose, which related nodes to fetch as well
1283
- */
1284
- include?: Prisma.AdminInclude<ExtArgs> | null;
1285
- /**
1286
- * Filter, which Admin to fetch.
1287
- */
1288
- where: Prisma.AdminWhereUniqueInput;
1289
- };
1290
- /**
1291
- * Admin findUniqueOrThrow
1292
- */
1293
- export type AdminFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1294
- /**
1295
- * Select specific fields to fetch from the Admin
1296
- */
1297
- select?: Prisma.AdminSelect<ExtArgs> | null;
1298
- /**
1299
- * Omit specific fields from the Admin
1300
- */
1301
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1302
- /**
1303
- * Choose, which related nodes to fetch as well
1304
- */
1305
- include?: Prisma.AdminInclude<ExtArgs> | null;
1306
- /**
1307
- * Filter, which Admin to fetch.
1308
- */
1309
- where: Prisma.AdminWhereUniqueInput;
1310
- };
1311
- /**
1312
- * Admin findFirst
1313
- */
1314
- export type AdminFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1315
- /**
1316
- * Select specific fields to fetch from the Admin
1317
- */
1318
- select?: Prisma.AdminSelect<ExtArgs> | null;
1319
- /**
1320
- * Omit specific fields from the Admin
1321
- */
1322
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1323
- /**
1324
- * Choose, which related nodes to fetch as well
1325
- */
1326
- include?: Prisma.AdminInclude<ExtArgs> | null;
1327
- /**
1328
- * Filter, which Admin to fetch.
1329
- */
1330
- where?: Prisma.AdminWhereInput;
1331
- /**
1332
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1333
- *
1334
- * Determine the order of Admins to fetch.
1335
- */
1336
- orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[];
1337
- /**
1338
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1339
- *
1340
- * Sets the position for searching for Admins.
1341
- */
1342
- cursor?: Prisma.AdminWhereUniqueInput;
1343
- /**
1344
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1345
- *
1346
- * Take `±n` Admins from the position of the cursor.
1347
- */
1348
- take?: number;
1349
- /**
1350
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1351
- *
1352
- * Skip the first `n` Admins.
1353
- */
1354
- skip?: number;
1355
- /**
1356
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1357
- *
1358
- * Filter by unique combinations of Admins.
1359
- */
1360
- distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[];
1361
- };
1362
- /**
1363
- * Admin findFirstOrThrow
1364
- */
1365
- export type AdminFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1366
- /**
1367
- * Select specific fields to fetch from the Admin
1368
- */
1369
- select?: Prisma.AdminSelect<ExtArgs> | null;
1370
- /**
1371
- * Omit specific fields from the Admin
1372
- */
1373
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1374
- /**
1375
- * Choose, which related nodes to fetch as well
1376
- */
1377
- include?: Prisma.AdminInclude<ExtArgs> | null;
1378
- /**
1379
- * Filter, which Admin to fetch.
1380
- */
1381
- where?: Prisma.AdminWhereInput;
1382
- /**
1383
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1384
- *
1385
- * Determine the order of Admins to fetch.
1386
- */
1387
- orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[];
1388
- /**
1389
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1390
- *
1391
- * Sets the position for searching for Admins.
1392
- */
1393
- cursor?: Prisma.AdminWhereUniqueInput;
1394
- /**
1395
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1396
- *
1397
- * Take `±n` Admins from the position of the cursor.
1398
- */
1399
- take?: number;
1400
- /**
1401
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1402
- *
1403
- * Skip the first `n` Admins.
1404
- */
1405
- skip?: number;
1406
- /**
1407
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1408
- *
1409
- * Filter by unique combinations of Admins.
1410
- */
1411
- distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[];
1412
- };
1413
- /**
1414
- * Admin findMany
1415
- */
1416
- export type AdminFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1417
- /**
1418
- * Select specific fields to fetch from the Admin
1419
- */
1420
- select?: Prisma.AdminSelect<ExtArgs> | null;
1421
- /**
1422
- * Omit specific fields from the Admin
1423
- */
1424
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1425
- /**
1426
- * Choose, which related nodes to fetch as well
1427
- */
1428
- include?: Prisma.AdminInclude<ExtArgs> | null;
1429
- /**
1430
- * Filter, which Admins to fetch.
1431
- */
1432
- where?: Prisma.AdminWhereInput;
1433
- /**
1434
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1435
- *
1436
- * Determine the order of Admins to fetch.
1437
- */
1438
- orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[];
1439
- /**
1440
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1441
- *
1442
- * Sets the position for listing Admins.
1443
- */
1444
- cursor?: Prisma.AdminWhereUniqueInput;
1445
- /**
1446
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1447
- *
1448
- * Take `±n` Admins from the position of the cursor.
1449
- */
1450
- take?: number;
1451
- /**
1452
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1453
- *
1454
- * Skip the first `n` Admins.
1455
- */
1456
- skip?: number;
1457
- /**
1458
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1459
- *
1460
- * Filter by unique combinations of Admins.
1461
- */
1462
- distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[];
1463
- };
1464
- /**
1465
- * Admin create
1466
- */
1467
- export type AdminCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1468
- /**
1469
- * Select specific fields to fetch from the Admin
1470
- */
1471
- select?: Prisma.AdminSelect<ExtArgs> | null;
1472
- /**
1473
- * Omit specific fields from the Admin
1474
- */
1475
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1476
- /**
1477
- * Choose, which related nodes to fetch as well
1478
- */
1479
- include?: Prisma.AdminInclude<ExtArgs> | null;
1480
- /**
1481
- * The data needed to create a Admin.
1482
- */
1483
- data: Prisma.XOR<Prisma.AdminCreateInput, Prisma.AdminUncheckedCreateInput>;
1484
- };
1485
- /**
1486
- * Admin createMany
1487
- */
1488
- export type AdminCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1489
- /**
1490
- * The data used to create many Admins.
1491
- */
1492
- data: Prisma.AdminCreateManyInput | Prisma.AdminCreateManyInput[];
1493
- skipDuplicates?: boolean;
1494
- };
1495
- /**
1496
- * Admin createManyAndReturn
1497
- */
1498
- export type AdminCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1499
- /**
1500
- * Select specific fields to fetch from the Admin
1501
- */
1502
- select?: Prisma.AdminSelectCreateManyAndReturn<ExtArgs> | null;
1503
- /**
1504
- * Omit specific fields from the Admin
1505
- */
1506
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1507
- /**
1508
- * The data used to create many Admins.
1509
- */
1510
- data: Prisma.AdminCreateManyInput | Prisma.AdminCreateManyInput[];
1511
- skipDuplicates?: boolean;
1512
- /**
1513
- * Choose, which related nodes to fetch as well
1514
- */
1515
- include?: Prisma.AdminIncludeCreateManyAndReturn<ExtArgs> | null;
1516
- };
1517
- /**
1518
- * Admin update
1519
- */
1520
- export type AdminUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1521
- /**
1522
- * Select specific fields to fetch from the Admin
1523
- */
1524
- select?: Prisma.AdminSelect<ExtArgs> | null;
1525
- /**
1526
- * Omit specific fields from the Admin
1527
- */
1528
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1529
- /**
1530
- * Choose, which related nodes to fetch as well
1531
- */
1532
- include?: Prisma.AdminInclude<ExtArgs> | null;
1533
- /**
1534
- * The data needed to update a Admin.
1535
- */
1536
- data: Prisma.XOR<Prisma.AdminUpdateInput, Prisma.AdminUncheckedUpdateInput>;
1537
- /**
1538
- * Choose, which Admin to update.
1539
- */
1540
- where: Prisma.AdminWhereUniqueInput;
1541
- };
1542
- /**
1543
- * Admin updateMany
1544
- */
1545
- export type AdminUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1546
- /**
1547
- * The data used to update Admins.
1548
- */
1549
- data: Prisma.XOR<Prisma.AdminUpdateManyMutationInput, Prisma.AdminUncheckedUpdateManyInput>;
1550
- /**
1551
- * Filter which Admins to update
1552
- */
1553
- where?: Prisma.AdminWhereInput;
1554
- /**
1555
- * Limit how many Admins to update.
1556
- */
1557
- limit?: number;
1558
- };
1559
- /**
1560
- * Admin updateManyAndReturn
1561
- */
1562
- export type AdminUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1563
- /**
1564
- * Select specific fields to fetch from the Admin
1565
- */
1566
- select?: Prisma.AdminSelectUpdateManyAndReturn<ExtArgs> | null;
1567
- /**
1568
- * Omit specific fields from the Admin
1569
- */
1570
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1571
- /**
1572
- * The data used to update Admins.
1573
- */
1574
- data: Prisma.XOR<Prisma.AdminUpdateManyMutationInput, Prisma.AdminUncheckedUpdateManyInput>;
1575
- /**
1576
- * Filter which Admins to update
1577
- */
1578
- where?: Prisma.AdminWhereInput;
1579
- /**
1580
- * Limit how many Admins to update.
1581
- */
1582
- limit?: number;
1583
- /**
1584
- * Choose, which related nodes to fetch as well
1585
- */
1586
- include?: Prisma.AdminIncludeUpdateManyAndReturn<ExtArgs> | null;
1587
- };
1588
- /**
1589
- * Admin upsert
1590
- */
1591
- export type AdminUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1592
- /**
1593
- * Select specific fields to fetch from the Admin
1594
- */
1595
- select?: Prisma.AdminSelect<ExtArgs> | null;
1596
- /**
1597
- * Omit specific fields from the Admin
1598
- */
1599
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1600
- /**
1601
- * Choose, which related nodes to fetch as well
1602
- */
1603
- include?: Prisma.AdminInclude<ExtArgs> | null;
1604
- /**
1605
- * The filter to search for the Admin to update in case it exists.
1606
- */
1607
- where: Prisma.AdminWhereUniqueInput;
1608
- /**
1609
- * In case the Admin found by the `where` argument doesn't exist, create a new Admin with this data.
1610
- */
1611
- create: Prisma.XOR<Prisma.AdminCreateInput, Prisma.AdminUncheckedCreateInput>;
1612
- /**
1613
- * In case the Admin was found with the provided `where` argument, update it with this data.
1614
- */
1615
- update: Prisma.XOR<Prisma.AdminUpdateInput, Prisma.AdminUncheckedUpdateInput>;
1616
- };
1617
- /**
1618
- * Admin delete
1619
- */
1620
- export type AdminDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1621
- /**
1622
- * Select specific fields to fetch from the Admin
1623
- */
1624
- select?: Prisma.AdminSelect<ExtArgs> | null;
1625
- /**
1626
- * Omit specific fields from the Admin
1627
- */
1628
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1629
- /**
1630
- * Choose, which related nodes to fetch as well
1631
- */
1632
- include?: Prisma.AdminInclude<ExtArgs> | null;
1633
- /**
1634
- * Filter which Admin to delete.
1635
- */
1636
- where: Prisma.AdminWhereUniqueInput;
1637
- };
1638
- /**
1639
- * Admin deleteMany
1640
- */
1641
- export type AdminDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1642
- /**
1643
- * Filter which Admins to delete
1644
- */
1645
- where?: Prisma.AdminWhereInput;
1646
- /**
1647
- * Limit how many Admins to delete.
1648
- */
1649
- limit?: number;
1650
- };
1651
- /**
1652
- * Admin.adminRefreshTokens
1653
- */
1654
- export type Admin$adminRefreshTokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1655
- /**
1656
- * Select specific fields to fetch from the AdminRefreshToken
1657
- */
1658
- select?: Prisma.AdminRefreshTokenSelect<ExtArgs> | null;
1659
- /**
1660
- * Omit specific fields from the AdminRefreshToken
1661
- */
1662
- omit?: Prisma.AdminRefreshTokenOmit<ExtArgs> | null;
1663
- /**
1664
- * Choose, which related nodes to fetch as well
1665
- */
1666
- include?: Prisma.AdminRefreshTokenInclude<ExtArgs> | null;
1667
- where?: Prisma.AdminRefreshTokenWhereInput;
1668
- orderBy?: Prisma.AdminRefreshTokenOrderByWithRelationInput | Prisma.AdminRefreshTokenOrderByWithRelationInput[];
1669
- cursor?: Prisma.AdminRefreshTokenWhereUniqueInput;
1670
- take?: number;
1671
- skip?: number;
1672
- distinct?: Prisma.AdminRefreshTokenScalarFieldEnum | Prisma.AdminRefreshTokenScalarFieldEnum[];
1673
- };
1674
- /**
1675
- * Admin.avatarImage
1676
- */
1677
- export type Admin$avatarImageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1678
- /**
1679
- * Select specific fields to fetch from the File
1680
- */
1681
- select?: Prisma.FileSelect<ExtArgs> | null;
1682
- /**
1683
- * Omit specific fields from the File
1684
- */
1685
- omit?: Prisma.FileOmit<ExtArgs> | null;
1686
- /**
1687
- * Choose, which related nodes to fetch as well
1688
- */
1689
- include?: Prisma.FileInclude<ExtArgs> | null;
1690
- where?: Prisma.FileWhereInput;
1691
- };
1692
- /**
1693
- * Admin.posts
1694
- */
1695
- export type Admin$postsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1696
- /**
1697
- * Select specific fields to fetch from the Post
1698
- */
1699
- select?: Prisma.PostSelect<ExtArgs> | null;
1700
- /**
1701
- * Omit specific fields from the Post
1702
- */
1703
- omit?: Prisma.PostOmit<ExtArgs> | null;
1704
- /**
1705
- * Choose, which related nodes to fetch as well
1706
- */
1707
- include?: Prisma.PostInclude<ExtArgs> | null;
1708
- where?: Prisma.PostWhereInput;
1709
- orderBy?: Prisma.PostOrderByWithRelationInput | Prisma.PostOrderByWithRelationInput[];
1710
- cursor?: Prisma.PostWhereUniqueInput;
1711
- take?: number;
1712
- skip?: number;
1713
- distinct?: Prisma.PostScalarFieldEnum | Prisma.PostScalarFieldEnum[];
1714
- };
1715
- /**
1716
- * Admin.translations
1717
- */
1718
- export type Admin$translationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1719
- /**
1720
- * Select specific fields to fetch from the AdminTranslation
1721
- */
1722
- select?: Prisma.AdminTranslationSelect<ExtArgs> | null;
1723
- /**
1724
- * Omit specific fields from the AdminTranslation
1725
- */
1726
- omit?: Prisma.AdminTranslationOmit<ExtArgs> | null;
1727
- /**
1728
- * Choose, which related nodes to fetch as well
1729
- */
1730
- include?: Prisma.AdminTranslationInclude<ExtArgs> | null;
1731
- where?: Prisma.AdminTranslationWhereInput;
1732
- orderBy?: Prisma.AdminTranslationOrderByWithRelationInput | Prisma.AdminTranslationOrderByWithRelationInput[];
1733
- cursor?: Prisma.AdminTranslationWhereUniqueInput;
1734
- take?: number;
1735
- skip?: number;
1736
- distinct?: Prisma.AdminTranslationScalarFieldEnum | Prisma.AdminTranslationScalarFieldEnum[];
1737
- };
1738
- /**
1739
- * Admin without action
1740
- */
1741
- export type AdminDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1742
- /**
1743
- * Select specific fields to fetch from the Admin
1744
- */
1745
- select?: Prisma.AdminSelect<ExtArgs> | null;
1746
- /**
1747
- * Omit specific fields from the Admin
1748
- */
1749
- omit?: Prisma.AdminOmit<ExtArgs> | null;
1750
- /**
1751
- * Choose, which related nodes to fetch as well
1752
- */
1753
- include?: Prisma.AdminInclude<ExtArgs> | null;
1754
- };
1755
- export {};
1756
- //# sourceMappingURL=Admin.d.ts.map