
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `TempPhoto` 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"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model TempPhoto
 * 
 */
export type TempPhotoModel = runtime.Types.Result.DefaultSelection<Prisma.$TempPhotoPayload>

export type AggregateTempPhoto = {
  _count: TempPhotoCountAggregateOutputType | null
  _avg: TempPhotoAvgAggregateOutputType | null
  _sum: TempPhotoSumAggregateOutputType | null
  _min: TempPhotoMinAggregateOutputType | null
  _max: TempPhotoMaxAggregateOutputType | null
}

export type TempPhotoAvgAggregateOutputType = {
  size: number | null
}

export type TempPhotoSumAggregateOutputType = {
  size: number | null
}

export type TempPhotoMinAggregateOutputType = {
  id: string | null
  filename: string | null
  url: string | null
  mimetype: string | null
  size: number | null
  createdAt: Date | null
}

export type TempPhotoMaxAggregateOutputType = {
  id: string | null
  filename: string | null
  url: string | null
  mimetype: string | null
  size: number | null
  createdAt: Date | null
}

export type TempPhotoCountAggregateOutputType = {
  id: number
  filename: number
  url: number
  mimetype: number
  size: number
  createdAt: number
  _all: number
}


export type TempPhotoAvgAggregateInputType = {
  size?: true
}

export type TempPhotoSumAggregateInputType = {
  size?: true
}

export type TempPhotoMinAggregateInputType = {
  id?: true
  filename?: true
  url?: true
  mimetype?: true
  size?: true
  createdAt?: true
}

export type TempPhotoMaxAggregateInputType = {
  id?: true
  filename?: true
  url?: true
  mimetype?: true
  size?: true
  createdAt?: true
}

export type TempPhotoCountAggregateInputType = {
  id?: true
  filename?: true
  url?: true
  mimetype?: true
  size?: true
  createdAt?: true
  _all?: true
}

export type TempPhotoAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TempPhoto to aggregate.
   */
  where?: Prisma.TempPhotoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TempPhotos to fetch.
   */
  orderBy?: Prisma.TempPhotoOrderByWithRelationInput | Prisma.TempPhotoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.TempPhotoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TempPhotos 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` TempPhotos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned TempPhotos
  **/
  _count?: true | TempPhotoCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: TempPhotoAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: TempPhotoSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: TempPhotoMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: TempPhotoMaxAggregateInputType
}

export type GetTempPhotoAggregateType<T extends TempPhotoAggregateArgs> = {
      [P in keyof T & keyof AggregateTempPhoto]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateTempPhoto[P]>
    : Prisma.GetScalarType<T[P], AggregateTempPhoto[P]>
}




export type TempPhotoGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TempPhotoWhereInput
  orderBy?: Prisma.TempPhotoOrderByWithAggregationInput | Prisma.TempPhotoOrderByWithAggregationInput[]
  by: Prisma.TempPhotoScalarFieldEnum[] | Prisma.TempPhotoScalarFieldEnum
  having?: Prisma.TempPhotoScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: TempPhotoCountAggregateInputType | true
  _avg?: TempPhotoAvgAggregateInputType
  _sum?: TempPhotoSumAggregateInputType
  _min?: TempPhotoMinAggregateInputType
  _max?: TempPhotoMaxAggregateInputType
}

export type TempPhotoGroupByOutputType = {
  id: string
  filename: string
  url: string
  mimetype: string
  size: number
  createdAt: Date
  _count: TempPhotoCountAggregateOutputType | null
  _avg: TempPhotoAvgAggregateOutputType | null
  _sum: TempPhotoSumAggregateOutputType | null
  _min: TempPhotoMinAggregateOutputType | null
  _max: TempPhotoMaxAggregateOutputType | null
}

type GetTempPhotoGroupByPayload<T extends TempPhotoGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<TempPhotoGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof TempPhotoGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], TempPhotoGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], TempPhotoGroupByOutputType[P]>
      }
    >
  >



export type TempPhotoWhereInput = {
  AND?: Prisma.TempPhotoWhereInput | Prisma.TempPhotoWhereInput[]
  OR?: Prisma.TempPhotoWhereInput[]
  NOT?: Prisma.TempPhotoWhereInput | Prisma.TempPhotoWhereInput[]
  id?: Prisma.StringFilter<"TempPhoto"> | string
  filename?: Prisma.StringFilter<"TempPhoto"> | string
  url?: Prisma.StringFilter<"TempPhoto"> | string
  mimetype?: Prisma.StringFilter<"TempPhoto"> | string
  size?: Prisma.IntFilter<"TempPhoto"> | number
  createdAt?: Prisma.DateTimeFilter<"TempPhoto"> | Date | string
}

export type TempPhotoOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  url?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TempPhotoWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.TempPhotoWhereInput | Prisma.TempPhotoWhereInput[]
  OR?: Prisma.TempPhotoWhereInput[]
  NOT?: Prisma.TempPhotoWhereInput | Prisma.TempPhotoWhereInput[]
  filename?: Prisma.StringFilter<"TempPhoto"> | string
  url?: Prisma.StringFilter<"TempPhoto"> | string
  mimetype?: Prisma.StringFilter<"TempPhoto"> | string
  size?: Prisma.IntFilter<"TempPhoto"> | number
  createdAt?: Prisma.DateTimeFilter<"TempPhoto"> | Date | string
}, "id">

export type TempPhotoOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  url?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.TempPhotoCountOrderByAggregateInput
  _avg?: Prisma.TempPhotoAvgOrderByAggregateInput
  _max?: Prisma.TempPhotoMaxOrderByAggregateInput
  _min?: Prisma.TempPhotoMinOrderByAggregateInput
  _sum?: Prisma.TempPhotoSumOrderByAggregateInput
}

export type TempPhotoScalarWhereWithAggregatesInput = {
  AND?: Prisma.TempPhotoScalarWhereWithAggregatesInput | Prisma.TempPhotoScalarWhereWithAggregatesInput[]
  OR?: Prisma.TempPhotoScalarWhereWithAggregatesInput[]
  NOT?: Prisma.TempPhotoScalarWhereWithAggregatesInput | Prisma.TempPhotoScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"TempPhoto"> | string
  filename?: Prisma.StringWithAggregatesFilter<"TempPhoto"> | string
  url?: Prisma.StringWithAggregatesFilter<"TempPhoto"> | string
  mimetype?: Prisma.StringWithAggregatesFilter<"TempPhoto"> | string
  size?: Prisma.IntWithAggregatesFilter<"TempPhoto"> | number
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"TempPhoto"> | Date | string
}

export type TempPhotoCreateInput = {
  id?: string
  filename: string
  url: string
  mimetype: string
  size: number
  createdAt?: Date | string
}

export type TempPhotoUncheckedCreateInput = {
  id?: string
  filename: string
  url: string
  mimetype: string
  size: number
  createdAt?: Date | string
}

export type TempPhotoUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TempPhotoUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TempPhotoCreateManyInput = {
  id?: string
  filename: string
  url: string
  mimetype: string
  size: number
  createdAt?: Date | string
}

export type TempPhotoUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TempPhotoUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  filename?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  mimetype?: Prisma.StringFieldUpdateOperationsInput | string
  size?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type TempPhotoCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  url?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TempPhotoAvgOrderByAggregateInput = {
  size?: Prisma.SortOrder
}

export type TempPhotoMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  url?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TempPhotoMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  filename?: Prisma.SortOrder
  url?: Prisma.SortOrder
  mimetype?: Prisma.SortOrder
  size?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type TempPhotoSumOrderByAggregateInput = {
  size?: Prisma.SortOrder
}

export type IntFieldUpdateOperationsInput = {
  set?: number
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}



export type TempPhotoSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  filename?: boolean
  url?: boolean
  mimetype?: boolean
  size?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["tempPhoto"]>

export type TempPhotoSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  filename?: boolean
  url?: boolean
  mimetype?: boolean
  size?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["tempPhoto"]>

export type TempPhotoSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  filename?: boolean
  url?: boolean
  mimetype?: boolean
  size?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["tempPhoto"]>

export type TempPhotoSelectScalar = {
  id?: boolean
  filename?: boolean
  url?: boolean
  mimetype?: boolean
  size?: boolean
  createdAt?: boolean
}

export type TempPhotoOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "filename" | "url" | "mimetype" | "size" | "createdAt", ExtArgs["result"]["tempPhoto"]>

export type $TempPhotoPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "TempPhoto"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    filename: string
    url: string
    mimetype: string
    size: number
    createdAt: Date
  }, ExtArgs["result"]["tempPhoto"]>
  composites: {}
}

export type TempPhotoGetPayload<S extends boolean | null | undefined | TempPhotoDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload, S>

export type TempPhotoCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<TempPhotoFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: TempPhotoCountAggregateInputType | true
  }

export interface TempPhotoDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TempPhoto'], meta: { name: 'TempPhoto' } }
  /**
   * Find zero or one TempPhoto that matches the filter.
   * @param {TempPhotoFindUniqueArgs} args - Arguments to find a TempPhoto
   * @example
   * // Get one TempPhoto
   * const tempPhoto = await prisma.tempPhoto.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends TempPhotoFindUniqueArgs>(args: Prisma.SelectSubset<T, TempPhotoFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TempPhotoClient<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one TempPhoto that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {TempPhotoFindUniqueOrThrowArgs} args - Arguments to find a TempPhoto
   * @example
   * // Get one TempPhoto
   * const tempPhoto = await prisma.tempPhoto.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends TempPhotoFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TempPhotoFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TempPhotoClient<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first TempPhoto 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 {TempPhotoFindFirstArgs} args - Arguments to find a TempPhoto
   * @example
   * // Get one TempPhoto
   * const tempPhoto = await prisma.tempPhoto.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends TempPhotoFindFirstArgs>(args?: Prisma.SelectSubset<T, TempPhotoFindFirstArgs<ExtArgs>>): Prisma.Prisma__TempPhotoClient<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first TempPhoto 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 {TempPhotoFindFirstOrThrowArgs} args - Arguments to find a TempPhoto
   * @example
   * // Get one TempPhoto
   * const tempPhoto = await prisma.tempPhoto.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends TempPhotoFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TempPhotoFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TempPhotoClient<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more TempPhotos 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 {TempPhotoFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all TempPhotos
   * const tempPhotos = await prisma.tempPhoto.findMany()
   * 
   * // Get first 10 TempPhotos
   * const tempPhotos = await prisma.tempPhoto.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const tempPhotoWithIdOnly = await prisma.tempPhoto.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends TempPhotoFindManyArgs>(args?: Prisma.SelectSubset<T, TempPhotoFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a TempPhoto.
   * @param {TempPhotoCreateArgs} args - Arguments to create a TempPhoto.
   * @example
   * // Create one TempPhoto
   * const TempPhoto = await prisma.tempPhoto.create({
   *   data: {
   *     // ... data to create a TempPhoto
   *   }
   * })
   * 
   */
  create<T extends TempPhotoCreateArgs>(args: Prisma.SelectSubset<T, TempPhotoCreateArgs<ExtArgs>>): Prisma.Prisma__TempPhotoClient<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many TempPhotos.
   * @param {TempPhotoCreateManyArgs} args - Arguments to create many TempPhotos.
   * @example
   * // Create many TempPhotos
   * const tempPhoto = await prisma.tempPhoto.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends TempPhotoCreateManyArgs>(args?: Prisma.SelectSubset<T, TempPhotoCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many TempPhotos and returns the data saved in the database.
   * @param {TempPhotoCreateManyAndReturnArgs} args - Arguments to create many TempPhotos.
   * @example
   * // Create many TempPhotos
   * const tempPhoto = await prisma.tempPhoto.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many TempPhotos and only return the `id`
   * const tempPhotoWithIdOnly = await prisma.tempPhoto.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 TempPhotoCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TempPhotoCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a TempPhoto.
   * @param {TempPhotoDeleteArgs} args - Arguments to delete one TempPhoto.
   * @example
   * // Delete one TempPhoto
   * const TempPhoto = await prisma.tempPhoto.delete({
   *   where: {
   *     // ... filter to delete one TempPhoto
   *   }
   * })
   * 
   */
  delete<T extends TempPhotoDeleteArgs>(args: Prisma.SelectSubset<T, TempPhotoDeleteArgs<ExtArgs>>): Prisma.Prisma__TempPhotoClient<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one TempPhoto.
   * @param {TempPhotoUpdateArgs} args - Arguments to update one TempPhoto.
   * @example
   * // Update one TempPhoto
   * const tempPhoto = await prisma.tempPhoto.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends TempPhotoUpdateArgs>(args: Prisma.SelectSubset<T, TempPhotoUpdateArgs<ExtArgs>>): Prisma.Prisma__TempPhotoClient<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more TempPhotos.
   * @param {TempPhotoDeleteManyArgs} args - Arguments to filter TempPhotos to delete.
   * @example
   * // Delete a few TempPhotos
   * const { count } = await prisma.tempPhoto.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends TempPhotoDeleteManyArgs>(args?: Prisma.SelectSubset<T, TempPhotoDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more TempPhotos.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {TempPhotoUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many TempPhotos
   * const tempPhoto = await prisma.tempPhoto.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends TempPhotoUpdateManyArgs>(args: Prisma.SelectSubset<T, TempPhotoUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more TempPhotos and returns the data updated in the database.
   * @param {TempPhotoUpdateManyAndReturnArgs} args - Arguments to update many TempPhotos.
   * @example
   * // Update many TempPhotos
   * const tempPhoto = await prisma.tempPhoto.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more TempPhotos and only return the `id`
   * const tempPhotoWithIdOnly = await prisma.tempPhoto.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 TempPhotoUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TempPhotoUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one TempPhoto.
   * @param {TempPhotoUpsertArgs} args - Arguments to update or create a TempPhoto.
   * @example
   * // Update or create a TempPhoto
   * const tempPhoto = await prisma.tempPhoto.upsert({
   *   create: {
   *     // ... data to create a TempPhoto
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the TempPhoto we want to update
   *   }
   * })
   */
  upsert<T extends TempPhotoUpsertArgs>(args: Prisma.SelectSubset<T, TempPhotoUpsertArgs<ExtArgs>>): Prisma.Prisma__TempPhotoClient<runtime.Types.Result.GetResult<Prisma.$TempPhotoPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of TempPhotos.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {TempPhotoCountArgs} args - Arguments to filter TempPhotos to count.
   * @example
   * // Count the number of TempPhotos
   * const count = await prisma.tempPhoto.count({
   *   where: {
   *     // ... the filter for the TempPhotos we want to count
   *   }
   * })
  **/
  count<T extends TempPhotoCountArgs>(
    args?: Prisma.Subset<T, TempPhotoCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], TempPhotoCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a TempPhoto.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {TempPhotoAggregateArgs} 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 TempPhotoAggregateArgs>(args: Prisma.Subset<T, TempPhotoAggregateArgs>): Prisma.PrismaPromise<GetTempPhotoAggregateType<T>>

  /**
   * Group by TempPhoto.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {TempPhotoGroupByArgs} 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 TempPhotoGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: TempPhotoGroupByArgs['orderBy'] }
      : { orderBy?: TempPhotoGroupByArgs['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, TempPhotoGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTempPhotoGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the TempPhoto model
 */
readonly fields: TempPhotoFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for TempPhoto.
 * 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__TempPhotoClient<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 TempPhoto model
 */
export interface TempPhotoFieldRefs {
  readonly id: Prisma.FieldRef<"TempPhoto", 'String'>
  readonly filename: Prisma.FieldRef<"TempPhoto", 'String'>
  readonly url: Prisma.FieldRef<"TempPhoto", 'String'>
  readonly mimetype: Prisma.FieldRef<"TempPhoto", 'String'>
  readonly size: Prisma.FieldRef<"TempPhoto", 'Int'>
  readonly createdAt: Prisma.FieldRef<"TempPhoto", 'DateTime'>
}
    

// Custom InputTypes
/**
 * TempPhoto findUnique
 */
export type TempPhotoFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * Filter, which TempPhoto to fetch.
   */
  where: Prisma.TempPhotoWhereUniqueInput
}

/**
 * TempPhoto findUniqueOrThrow
 */
export type TempPhotoFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * Filter, which TempPhoto to fetch.
   */
  where: Prisma.TempPhotoWhereUniqueInput
}

/**
 * TempPhoto findFirst
 */
export type TempPhotoFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * Filter, which TempPhoto to fetch.
   */
  where?: Prisma.TempPhotoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TempPhotos to fetch.
   */
  orderBy?: Prisma.TempPhotoOrderByWithRelationInput | Prisma.TempPhotoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for TempPhotos.
   */
  cursor?: Prisma.TempPhotoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TempPhotos 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` TempPhotos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of TempPhotos.
   */
  distinct?: Prisma.TempPhotoScalarFieldEnum | Prisma.TempPhotoScalarFieldEnum[]
}

/**
 * TempPhoto findFirstOrThrow
 */
export type TempPhotoFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * Filter, which TempPhoto to fetch.
   */
  where?: Prisma.TempPhotoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TempPhotos to fetch.
   */
  orderBy?: Prisma.TempPhotoOrderByWithRelationInput | Prisma.TempPhotoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for TempPhotos.
   */
  cursor?: Prisma.TempPhotoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TempPhotos 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` TempPhotos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of TempPhotos.
   */
  distinct?: Prisma.TempPhotoScalarFieldEnum | Prisma.TempPhotoScalarFieldEnum[]
}

/**
 * TempPhoto findMany
 */
export type TempPhotoFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * Filter, which TempPhotos to fetch.
   */
  where?: Prisma.TempPhotoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of TempPhotos to fetch.
   */
  orderBy?: Prisma.TempPhotoOrderByWithRelationInput | Prisma.TempPhotoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing TempPhotos.
   */
  cursor?: Prisma.TempPhotoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` TempPhotos 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` TempPhotos.
   */
  skip?: number
  distinct?: Prisma.TempPhotoScalarFieldEnum | Prisma.TempPhotoScalarFieldEnum[]
}

/**
 * TempPhoto create
 */
export type TempPhotoCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * The data needed to create a TempPhoto.
   */
  data: Prisma.XOR<Prisma.TempPhotoCreateInput, Prisma.TempPhotoUncheckedCreateInput>
}

/**
 * TempPhoto createMany
 */
export type TempPhotoCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many TempPhotos.
   */
  data: Prisma.TempPhotoCreateManyInput | Prisma.TempPhotoCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * TempPhoto createManyAndReturn
 */
export type TempPhotoCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * The data used to create many TempPhotos.
   */
  data: Prisma.TempPhotoCreateManyInput | Prisma.TempPhotoCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * TempPhoto update
 */
export type TempPhotoUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * The data needed to update a TempPhoto.
   */
  data: Prisma.XOR<Prisma.TempPhotoUpdateInput, Prisma.TempPhotoUncheckedUpdateInput>
  /**
   * Choose, which TempPhoto to update.
   */
  where: Prisma.TempPhotoWhereUniqueInput
}

/**
 * TempPhoto updateMany
 */
export type TempPhotoUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update TempPhotos.
   */
  data: Prisma.XOR<Prisma.TempPhotoUpdateManyMutationInput, Prisma.TempPhotoUncheckedUpdateManyInput>
  /**
   * Filter which TempPhotos to update
   */
  where?: Prisma.TempPhotoWhereInput
  /**
   * Limit how many TempPhotos to update.
   */
  limit?: number
}

/**
 * TempPhoto updateManyAndReturn
 */
export type TempPhotoUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * The data used to update TempPhotos.
   */
  data: Prisma.XOR<Prisma.TempPhotoUpdateManyMutationInput, Prisma.TempPhotoUncheckedUpdateManyInput>
  /**
   * Filter which TempPhotos to update
   */
  where?: Prisma.TempPhotoWhereInput
  /**
   * Limit how many TempPhotos to update.
   */
  limit?: number
}

/**
 * TempPhoto upsert
 */
export type TempPhotoUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * The filter to search for the TempPhoto to update in case it exists.
   */
  where: Prisma.TempPhotoWhereUniqueInput
  /**
   * In case the TempPhoto found by the `where` argument doesn't exist, create a new TempPhoto with this data.
   */
  create: Prisma.XOR<Prisma.TempPhotoCreateInput, Prisma.TempPhotoUncheckedCreateInput>
  /**
   * In case the TempPhoto was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.TempPhotoUpdateInput, Prisma.TempPhotoUncheckedUpdateInput>
}

/**
 * TempPhoto delete
 */
export type TempPhotoDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
  /**
   * Filter which TempPhoto to delete.
   */
  where: Prisma.TempPhotoWhereUniqueInput
}

/**
 * TempPhoto deleteMany
 */
export type TempPhotoDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which TempPhotos to delete
   */
  where?: Prisma.TempPhotoWhereInput
  /**
   * Limit how many TempPhotos to delete.
   */
  limit?: number
}

/**
 * TempPhoto without action
 */
export type TempPhotoDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the TempPhoto
   */
  select?: Prisma.TempPhotoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the TempPhoto
   */
  omit?: Prisma.TempPhotoOmit<ExtArgs> | null
}
