/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `PhotoPost` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.js" import type * as Prisma from "../internal/prismaNamespace.js" /** * Model PhotoPost * */ export type PhotoPostModel = runtime.Types.Result.DefaultSelection export type AggregatePhotoPost = { _count: PhotoPostCountAggregateOutputType | null _avg: PhotoPostAvgAggregateOutputType | null _sum: PhotoPostSumAggregateOutputType | null _min: PhotoPostMinAggregateOutputType | null _max: PhotoPostMaxAggregateOutputType | null } export type PhotoPostAvgAggregateOutputType = { id: number | null } export type PhotoPostSumAggregateOutputType = { id: number | null } export type PhotoPostMinAggregateOutputType = { id: number | null createdAt: Date | null deletedAt: Date | null publishedAt: Date | null filePath: string | null fileName: string | null title: string | null description: string | null } export type PhotoPostMaxAggregateOutputType = { id: number | null createdAt: Date | null deletedAt: Date | null publishedAt: Date | null filePath: string | null fileName: string | null title: string | null description: string | null } export type PhotoPostCountAggregateOutputType = { id: number createdAt: number deletedAt: number publishedAt: number filePath: number fileName: number title: number description: number _all: number } export type PhotoPostAvgAggregateInputType = { id?: true } export type PhotoPostSumAggregateInputType = { id?: true } export type PhotoPostMinAggregateInputType = { id?: true createdAt?: true deletedAt?: true publishedAt?: true filePath?: true fileName?: true title?: true description?: true } export type PhotoPostMaxAggregateInputType = { id?: true createdAt?: true deletedAt?: true publishedAt?: true filePath?: true fileName?: true title?: true description?: true } export type PhotoPostCountAggregateInputType = { id?: true createdAt?: true deletedAt?: true publishedAt?: true filePath?: true fileName?: true title?: true description?: true _all?: true } export type PhotoPostAggregateArgs = { /** * Filter which PhotoPost to aggregate. */ where?: Prisma.PhotoPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PhotoPosts to fetch. */ orderBy?: Prisma.PhotoPostOrderByWithRelationInput | Prisma.PhotoPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.PhotoPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PhotoPosts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PhotoPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PhotoPosts **/ _count?: true | PhotoPostCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PhotoPostAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PhotoPostSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PhotoPostMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PhotoPostMaxAggregateInputType } export type GetPhotoPostAggregateType = { [P in keyof T & keyof AggregatePhotoPost]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PhotoPostGroupByArgs = { where?: Prisma.PhotoPostWhereInput orderBy?: Prisma.PhotoPostOrderByWithAggregationInput | Prisma.PhotoPostOrderByWithAggregationInput[] by: Prisma.PhotoPostScalarFieldEnum[] | Prisma.PhotoPostScalarFieldEnum having?: Prisma.PhotoPostScalarWhereWithAggregatesInput take?: number skip?: number _count?: PhotoPostCountAggregateInputType | true _avg?: PhotoPostAvgAggregateInputType _sum?: PhotoPostSumAggregateInputType _min?: PhotoPostMinAggregateInputType _max?: PhotoPostMaxAggregateInputType } export type PhotoPostGroupByOutputType = { id: number createdAt: Date deletedAt: Date | null publishedAt: Date | null filePath: string fileName: string title: string description: string | null _count: PhotoPostCountAggregateOutputType | null _avg: PhotoPostAvgAggregateOutputType | null _sum: PhotoPostSumAggregateOutputType | null _min: PhotoPostMinAggregateOutputType | null _max: PhotoPostMaxAggregateOutputType | null } type GetPhotoPostGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PhotoPostGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type PhotoPostWhereInput = { AND?: Prisma.PhotoPostWhereInput | Prisma.PhotoPostWhereInput[] OR?: Prisma.PhotoPostWhereInput[] NOT?: Prisma.PhotoPostWhereInput | Prisma.PhotoPostWhereInput[] id?: Prisma.IntFilter<"PhotoPost"> | number createdAt?: Prisma.DateTimeFilter<"PhotoPost"> | Date | string deletedAt?: Prisma.DateTimeNullableFilter<"PhotoPost"> | Date | string | null publishedAt?: Prisma.DateTimeNullableFilter<"PhotoPost"> | Date | string | null filePath?: Prisma.StringFilter<"PhotoPost"> | string fileName?: Prisma.StringFilter<"PhotoPost"> | string title?: Prisma.StringFilter<"PhotoPost"> | string description?: Prisma.StringNullableFilter<"PhotoPost"> | string | null } export type PhotoPostOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder filePath?: Prisma.SortOrder fileName?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder } export type PhotoPostWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.PhotoPostWhereInput | Prisma.PhotoPostWhereInput[] OR?: Prisma.PhotoPostWhereInput[] NOT?: Prisma.PhotoPostWhereInput | Prisma.PhotoPostWhereInput[] createdAt?: Prisma.DateTimeFilter<"PhotoPost"> | Date | string deletedAt?: Prisma.DateTimeNullableFilter<"PhotoPost"> | Date | string | null publishedAt?: Prisma.DateTimeNullableFilter<"PhotoPost"> | Date | string | null filePath?: Prisma.StringFilter<"PhotoPost"> | string fileName?: Prisma.StringFilter<"PhotoPost"> | string title?: Prisma.StringFilter<"PhotoPost"> | string description?: Prisma.StringNullableFilter<"PhotoPost"> | string | null }, "id"> export type PhotoPostOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder filePath?: Prisma.SortOrder fileName?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.PhotoPostCountOrderByAggregateInput _avg?: Prisma.PhotoPostAvgOrderByAggregateInput _max?: Prisma.PhotoPostMaxOrderByAggregateInput _min?: Prisma.PhotoPostMinOrderByAggregateInput _sum?: Prisma.PhotoPostSumOrderByAggregateInput } export type PhotoPostScalarWhereWithAggregatesInput = { AND?: Prisma.PhotoPostScalarWhereWithAggregatesInput | Prisma.PhotoPostScalarWhereWithAggregatesInput[] OR?: Prisma.PhotoPostScalarWhereWithAggregatesInput[] NOT?: Prisma.PhotoPostScalarWhereWithAggregatesInput | Prisma.PhotoPostScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"PhotoPost"> | number createdAt?: Prisma.DateTimeWithAggregatesFilter<"PhotoPost"> | Date | string deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"PhotoPost"> | Date | string | null publishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"PhotoPost"> | Date | string | null filePath?: Prisma.StringWithAggregatesFilter<"PhotoPost"> | string fileName?: Prisma.StringWithAggregatesFilter<"PhotoPost"> | string title?: Prisma.StringWithAggregatesFilter<"PhotoPost"> | string description?: Prisma.StringNullableWithAggregatesFilter<"PhotoPost"> | string | null } export type PhotoPostCreateInput = { createdAt?: Date | string deletedAt?: Date | string | null publishedAt?: Date | string | null filePath: string fileName: string title: string description?: string | null } export type PhotoPostUncheckedCreateInput = { id?: number createdAt?: Date | string deletedAt?: Date | string | null publishedAt?: Date | string | null filePath: string fileName: string title: string description?: string | null } export type PhotoPostUpdateInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null filePath?: Prisma.StringFieldUpdateOperationsInput | string fileName?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type PhotoPostUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null filePath?: Prisma.StringFieldUpdateOperationsInput | string fileName?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type PhotoPostCreateManyInput = { id?: number createdAt?: Date | string deletedAt?: Date | string | null publishedAt?: Date | string | null filePath: string fileName: string title: string description?: string | null } export type PhotoPostUpdateManyMutationInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null filePath?: Prisma.StringFieldUpdateOperationsInput | string fileName?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type PhotoPostUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null filePath?: Prisma.StringFieldUpdateOperationsInput | string fileName?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type PhotoPostCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder publishedAt?: Prisma.SortOrder filePath?: Prisma.SortOrder fileName?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder } export type PhotoPostAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type PhotoPostMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder publishedAt?: Prisma.SortOrder filePath?: Prisma.SortOrder fileName?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder } export type PhotoPostMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder deletedAt?: Prisma.SortOrder publishedAt?: Prisma.SortOrder filePath?: Prisma.SortOrder fileName?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder } export type PhotoPostSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type PhotoPostSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean deletedAt?: boolean publishedAt?: boolean filePath?: boolean fileName?: boolean title?: boolean description?: boolean }, ExtArgs["result"]["photoPost"]> export type PhotoPostSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean deletedAt?: boolean publishedAt?: boolean filePath?: boolean fileName?: boolean title?: boolean description?: boolean }, ExtArgs["result"]["photoPost"]> export type PhotoPostSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean deletedAt?: boolean publishedAt?: boolean filePath?: boolean fileName?: boolean title?: boolean description?: boolean }, ExtArgs["result"]["photoPost"]> export type PhotoPostSelectScalar = { id?: boolean createdAt?: boolean deletedAt?: boolean publishedAt?: boolean filePath?: boolean fileName?: boolean title?: boolean description?: boolean } export type PhotoPostOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "deletedAt" | "publishedAt" | "filePath" | "fileName" | "title" | "description", ExtArgs["result"]["photoPost"]> export type $PhotoPostPayload = { name: "PhotoPost" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number createdAt: Date deletedAt: Date | null publishedAt: Date | null filePath: string fileName: string title: string description: string | null }, ExtArgs["result"]["photoPost"]> composites: {} } export type PhotoPostGetPayload = runtime.Types.Result.GetResult export type PhotoPostCountArgs = Omit & { select?: PhotoPostCountAggregateInputType | true } export interface PhotoPostDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PhotoPost'], meta: { name: 'PhotoPost' } } /** * Find zero or one PhotoPost that matches the filter. * @param {PhotoPostFindUniqueArgs} args - Arguments to find a PhotoPost * @example * // Get one PhotoPost * const photoPost = await prisma.photoPost.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PhotoPostClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PhotoPost that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PhotoPostFindUniqueOrThrowArgs} args - Arguments to find a PhotoPost * @example * // Get one PhotoPost * const photoPost = await prisma.photoPost.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PhotoPostClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PhotoPost that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhotoPostFindFirstArgs} args - Arguments to find a PhotoPost * @example * // Get one PhotoPost * const photoPost = await prisma.photoPost.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PhotoPostClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PhotoPost that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhotoPostFindFirstOrThrowArgs} args - Arguments to find a PhotoPost * @example * // Get one PhotoPost * const photoPost = await prisma.photoPost.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PhotoPostClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PhotoPosts that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhotoPostFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PhotoPosts * const photoPosts = await prisma.photoPost.findMany() * * // Get first 10 PhotoPosts * const photoPosts = await prisma.photoPost.findMany({ take: 10 }) * * // Only select the `id` * const photoPostWithIdOnly = await prisma.photoPost.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a PhotoPost. * @param {PhotoPostCreateArgs} args - Arguments to create a PhotoPost. * @example * // Create one PhotoPost * const PhotoPost = await prisma.photoPost.create({ * data: { * // ... data to create a PhotoPost * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__PhotoPostClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PhotoPosts. * @param {PhotoPostCreateManyArgs} args - Arguments to create many PhotoPosts. * @example * // Create many PhotoPosts * const photoPost = await prisma.photoPost.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many PhotoPosts and returns the data saved in the database. * @param {PhotoPostCreateManyAndReturnArgs} args - Arguments to create many PhotoPosts. * @example * // Create many PhotoPosts * const photoPost = await prisma.photoPost.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PhotoPosts and only return the `id` * const photoPostWithIdOnly = await prisma.photoPost.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a PhotoPost. * @param {PhotoPostDeleteArgs} args - Arguments to delete one PhotoPost. * @example * // Delete one PhotoPost * const PhotoPost = await prisma.photoPost.delete({ * where: { * // ... filter to delete one PhotoPost * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__PhotoPostClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PhotoPost. * @param {PhotoPostUpdateArgs} args - Arguments to update one PhotoPost. * @example * // Update one PhotoPost * const photoPost = await prisma.photoPost.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__PhotoPostClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PhotoPosts. * @param {PhotoPostDeleteManyArgs} args - Arguments to filter PhotoPosts to delete. * @example * // Delete a few PhotoPosts * const { count } = await prisma.photoPost.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PhotoPosts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhotoPostUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PhotoPosts * const photoPost = await prisma.photoPost.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PhotoPosts and returns the data updated in the database. * @param {PhotoPostUpdateManyAndReturnArgs} args - Arguments to update many PhotoPosts. * @example * // Update many PhotoPosts * const photoPost = await prisma.photoPost.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PhotoPosts and only return the `id` * const photoPostWithIdOnly = await prisma.photoPost.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one PhotoPost. * @param {PhotoPostUpsertArgs} args - Arguments to update or create a PhotoPost. * @example * // Update or create a PhotoPost * const photoPost = await prisma.photoPost.upsert({ * create: { * // ... data to create a PhotoPost * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PhotoPost we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PhotoPostClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PhotoPosts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhotoPostCountArgs} args - Arguments to filter PhotoPosts to count. * @example * // Count the number of PhotoPosts * const count = await prisma.photoPost.count({ * where: { * // ... the filter for the PhotoPosts we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a PhotoPost. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhotoPostAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by PhotoPost. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PhotoPostGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends PhotoPostGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PhotoPostGroupByArgs['orderBy'] } : { orderBy?: PhotoPostGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetPhotoPostGroupByPayload : Prisma.PrismaPromise /** * Fields of the PhotoPost model */ readonly fields: PhotoPostFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PhotoPost. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__PhotoPostClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the PhotoPost model */ export interface PhotoPostFieldRefs { readonly id: Prisma.FieldRef<"PhotoPost", 'Int'> readonly createdAt: Prisma.FieldRef<"PhotoPost", 'DateTime'> readonly deletedAt: Prisma.FieldRef<"PhotoPost", 'DateTime'> readonly publishedAt: Prisma.FieldRef<"PhotoPost", 'DateTime'> readonly filePath: Prisma.FieldRef<"PhotoPost", 'String'> readonly fileName: Prisma.FieldRef<"PhotoPost", 'String'> readonly title: Prisma.FieldRef<"PhotoPost", 'String'> readonly description: Prisma.FieldRef<"PhotoPost", 'String'> } // Custom InputTypes /** * PhotoPost findUnique */ export type PhotoPostFindUniqueArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * Filter, which PhotoPost to fetch. */ where: Prisma.PhotoPostWhereUniqueInput } /** * PhotoPost findUniqueOrThrow */ export type PhotoPostFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * Filter, which PhotoPost to fetch. */ where: Prisma.PhotoPostWhereUniqueInput } /** * PhotoPost findFirst */ export type PhotoPostFindFirstArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * Filter, which PhotoPost to fetch. */ where?: Prisma.PhotoPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PhotoPosts to fetch. */ orderBy?: Prisma.PhotoPostOrderByWithRelationInput | Prisma.PhotoPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PhotoPosts. */ cursor?: Prisma.PhotoPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PhotoPosts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PhotoPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PhotoPosts. */ distinct?: Prisma.PhotoPostScalarFieldEnum | Prisma.PhotoPostScalarFieldEnum[] } /** * PhotoPost findFirstOrThrow */ export type PhotoPostFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * Filter, which PhotoPost to fetch. */ where?: Prisma.PhotoPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PhotoPosts to fetch. */ orderBy?: Prisma.PhotoPostOrderByWithRelationInput | Prisma.PhotoPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PhotoPosts. */ cursor?: Prisma.PhotoPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PhotoPosts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PhotoPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PhotoPosts. */ distinct?: Prisma.PhotoPostScalarFieldEnum | Prisma.PhotoPostScalarFieldEnum[] } /** * PhotoPost findMany */ export type PhotoPostFindManyArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * Filter, which PhotoPosts to fetch. */ where?: Prisma.PhotoPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PhotoPosts to fetch. */ orderBy?: Prisma.PhotoPostOrderByWithRelationInput | Prisma.PhotoPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PhotoPosts. */ cursor?: Prisma.PhotoPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PhotoPosts from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` PhotoPosts. */ skip?: number distinct?: Prisma.PhotoPostScalarFieldEnum | Prisma.PhotoPostScalarFieldEnum[] } /** * PhotoPost create */ export type PhotoPostCreateArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * The data needed to create a PhotoPost. */ data: Prisma.XOR } /** * PhotoPost createMany */ export type PhotoPostCreateManyArgs = { /** * The data used to create many PhotoPosts. */ data: Prisma.PhotoPostCreateManyInput | Prisma.PhotoPostCreateManyInput[] } /** * PhotoPost createManyAndReturn */ export type PhotoPostCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelectCreateManyAndReturn | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * The data used to create many PhotoPosts. */ data: Prisma.PhotoPostCreateManyInput | Prisma.PhotoPostCreateManyInput[] } /** * PhotoPost update */ export type PhotoPostUpdateArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * The data needed to update a PhotoPost. */ data: Prisma.XOR /** * Choose, which PhotoPost to update. */ where: Prisma.PhotoPostWhereUniqueInput } /** * PhotoPost updateMany */ export type PhotoPostUpdateManyArgs = { /** * The data used to update PhotoPosts. */ data: Prisma.XOR /** * Filter which PhotoPosts to update */ where?: Prisma.PhotoPostWhereInput /** * Limit how many PhotoPosts to update. */ limit?: number } /** * PhotoPost updateManyAndReturn */ export type PhotoPostUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelectUpdateManyAndReturn | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * The data used to update PhotoPosts. */ data: Prisma.XOR /** * Filter which PhotoPosts to update */ where?: Prisma.PhotoPostWhereInput /** * Limit how many PhotoPosts to update. */ limit?: number } /** * PhotoPost upsert */ export type PhotoPostUpsertArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * The filter to search for the PhotoPost to update in case it exists. */ where: Prisma.PhotoPostWhereUniqueInput /** * In case the PhotoPost found by the `where` argument doesn't exist, create a new PhotoPost with this data. */ create: Prisma.XOR /** * In case the PhotoPost was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * PhotoPost delete */ export type PhotoPostDeleteArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null /** * Filter which PhotoPost to delete. */ where: Prisma.PhotoPostWhereUniqueInput } /** * PhotoPost deleteMany */ export type PhotoPostDeleteManyArgs = { /** * Filter which PhotoPosts to delete */ where?: Prisma.PhotoPostWhereInput /** * Limit how many PhotoPosts to delete. */ limit?: number } /** * PhotoPost without action */ export type PhotoPostDefaultArgs = { /** * Select specific fields to fetch from the PhotoPost */ select?: Prisma.PhotoPostSelect | null /** * Omit specific fields from the PhotoPost */ omit?: Prisma.PhotoPostOmit | null }