1111 lines
37 KiB
TypeScript
1111 lines
37 KiB
TypeScript
|
|
/* !!! 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<Prisma.$PhotoPostPayload>
|
|
|
|
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
|
|
}
|
|
|
|
export type PhotoPostMaxAggregateOutputType = {
|
|
id: number | null
|
|
createdAt: Date | null
|
|
}
|
|
|
|
export type PhotoPostCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PhotoPostAvgAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type PhotoPostSumAggregateInputType = {
|
|
id?: true
|
|
}
|
|
|
|
export type PhotoPostMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type PhotoPostMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
}
|
|
|
|
export type PhotoPostCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PhotoPostAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends PhotoPostAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePhotoPost]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregatePhotoPost[P]>
|
|
: Prisma.GetScalarType<T[P], AggregatePhotoPost[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PhotoPostGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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
|
|
_count: PhotoPostCountAggregateOutputType | null
|
|
_avg: PhotoPostAvgAggregateOutputType | null
|
|
_sum: PhotoPostSumAggregateOutputType | null
|
|
_min: PhotoPostMinAggregateOutputType | null
|
|
_max: PhotoPostMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetPhotoPostGroupByPayload<T extends PhotoPostGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<PhotoPostGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PhotoPostGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], PhotoPostGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], PhotoPostGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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
|
|
}
|
|
|
|
export type PhotoPostOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: 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
|
|
}, "id">
|
|
|
|
export type PhotoPostOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: 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
|
|
}
|
|
|
|
export type PhotoPostCreateInput = {
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type PhotoPostUncheckedCreateInput = {
|
|
id?: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type PhotoPostUpdateInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PhotoPostUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PhotoPostCreateManyInput = {
|
|
id?: number
|
|
createdAt?: Date | string
|
|
}
|
|
|
|
export type PhotoPostUpdateManyMutationInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PhotoPostUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type PhotoPostCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PhotoPostAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PhotoPostMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PhotoPostMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PhotoPostSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string
|
|
}
|
|
|
|
export type IntFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
|
|
|
|
export type PhotoPostSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
}, ExtArgs["result"]["photoPost"]>
|
|
|
|
export type PhotoPostSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
}, ExtArgs["result"]["photoPost"]>
|
|
|
|
export type PhotoPostSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
}, ExtArgs["result"]["photoPost"]>
|
|
|
|
export type PhotoPostSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
}
|
|
|
|
export type PhotoPostOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt", ExtArgs["result"]["photoPost"]>
|
|
|
|
export type $PhotoPostPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "PhotoPost"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
createdAt: Date
|
|
}, ExtArgs["result"]["photoPost"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type PhotoPostGetPayload<S extends boolean | null | undefined | PhotoPostDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload, S>
|
|
|
|
export type PhotoPostCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<PhotoPostFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: PhotoPostCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PhotoPostDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends PhotoPostFindUniqueArgs>(args: Prisma.SelectSubset<T, PhotoPostFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PhotoPostClient<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PhotoPostFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PhotoPostClient<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostFindFirstArgs>(args?: Prisma.SelectSubset<T, PhotoPostFindFirstArgs<ExtArgs>>): Prisma.Prisma__PhotoPostClient<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PhotoPostFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PhotoPostClient<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostFindManyArgs>(args?: Prisma.SelectSubset<T, PhotoPostFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostCreateArgs>(args: Prisma.SelectSubset<T, PhotoPostCreateArgs<ExtArgs>>): Prisma.Prisma__PhotoPostClient<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostCreateManyArgs>(args?: Prisma.SelectSubset<T, PhotoPostCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PhotoPostCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PhotoPostCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostDeleteArgs>(args: Prisma.SelectSubset<T, PhotoPostDeleteArgs<ExtArgs>>): Prisma.Prisma__PhotoPostClient<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostUpdateArgs>(args: Prisma.SelectSubset<T, PhotoPostUpdateArgs<ExtArgs>>): Prisma.Prisma__PhotoPostClient<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostDeleteManyArgs>(args?: Prisma.SelectSubset<T, PhotoPostDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PhotoPostUpdateManyArgs>(args: Prisma.SelectSubset<T, PhotoPostUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends PhotoPostUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PhotoPostUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostUpsertArgs>(args: Prisma.SelectSubset<T, PhotoPostUpsertArgs<ExtArgs>>): Prisma.Prisma__PhotoPostClient<runtime.Types.Result.GetResult<Prisma.$PhotoPostPayload<ExtArgs>, 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<T extends PhotoPostCountArgs>(
|
|
args?: Prisma.Subset<T, PhotoPostCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], PhotoPostCountAggregateOutputType>
|
|
: 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<T extends PhotoPostAggregateArgs>(args: Prisma.Subset<T, PhotoPostAggregateArgs>): Prisma.PrismaPromise<GetPhotoPostAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: PhotoPostGroupByArgs['orderBy'] }
|
|
: { orderBy?: PhotoPostGroupByArgs['orderBy'] },
|
|
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
|
|
? {
|
|
[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<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? 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<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? 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<T, PhotoPostGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPhotoPostGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
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<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>
|
|
/**
|
|
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* 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<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the PhotoPost model
|
|
*/
|
|
export interface PhotoPostFieldRefs {
|
|
readonly id: Prisma.FieldRef<"PhotoPost", 'Int'>
|
|
readonly createdAt: Prisma.FieldRef<"PhotoPost", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PhotoPost findUnique
|
|
*/
|
|
export type PhotoPostFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which PhotoPost to fetch.
|
|
*/
|
|
where: Prisma.PhotoPostWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PhotoPost findUniqueOrThrow
|
|
*/
|
|
export type PhotoPostFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which PhotoPost to fetch.
|
|
*/
|
|
where: Prisma.PhotoPostWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PhotoPost findFirst
|
|
*/
|
|
export type PhotoPostFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PhotoPost.
|
|
*/
|
|
data?: Prisma.XOR<Prisma.PhotoPostCreateInput, Prisma.PhotoPostUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PhotoPost createMany
|
|
*/
|
|
export type PhotoPostCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PhotoPosts.
|
|
*/
|
|
data: Prisma.PhotoPostCreateManyInput | Prisma.PhotoPostCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* PhotoPost createManyAndReturn
|
|
*/
|
|
export type PhotoPostCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many PhotoPosts.
|
|
*/
|
|
data: Prisma.PhotoPostCreateManyInput | Prisma.PhotoPostCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* PhotoPost update
|
|
*/
|
|
export type PhotoPostUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PhotoPost.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PhotoPostUpdateInput, Prisma.PhotoPostUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PhotoPost to update.
|
|
*/
|
|
where: Prisma.PhotoPostWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PhotoPost updateMany
|
|
*/
|
|
export type PhotoPostUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PhotoPosts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PhotoPostUpdateManyMutationInput, Prisma.PhotoPostUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PhotoPosts to update
|
|
*/
|
|
where?: Prisma.PhotoPostWhereInput
|
|
/**
|
|
* Limit how many PhotoPosts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PhotoPost updateManyAndReturn
|
|
*/
|
|
export type PhotoPostUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update PhotoPosts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PhotoPostUpdateManyMutationInput, Prisma.PhotoPostUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PhotoPosts to update
|
|
*/
|
|
where?: Prisma.PhotoPostWhereInput
|
|
/**
|
|
* Limit how many PhotoPosts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PhotoPost upsert
|
|
*/
|
|
export type PhotoPostUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | 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<Prisma.PhotoPostCreateInput, Prisma.PhotoPostUncheckedCreateInput>
|
|
/**
|
|
* In case the PhotoPost was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.PhotoPostUpdateInput, Prisma.PhotoPostUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PhotoPost delete
|
|
*/
|
|
export type PhotoPostDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which PhotoPost to delete.
|
|
*/
|
|
where: Prisma.PhotoPostWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PhotoPost deleteMany
|
|
*/
|
|
export type PhotoPostDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PhotoPosts to delete
|
|
*/
|
|
where?: Prisma.PhotoPostWhereInput
|
|
/**
|
|
* Limit how many PhotoPosts to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PhotoPost without action
|
|
*/
|
|
export type PhotoPostDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PhotoPost
|
|
*/
|
|
select?: Prisma.PhotoPostSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PhotoPost
|
|
*/
|
|
omit?: Prisma.PhotoPostOmit<ExtArgs> | null
|
|
}
|