
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `GalleryImage` 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 GalleryImage
 * 
 */
export type GalleryImageModel = runtime.Types.Result.DefaultSelection<Prisma.$GalleryImagePayload>

export type AggregateGalleryImage = {
  _count: GalleryImageCountAggregateOutputType | null
  _avg: GalleryImageAvgAggregateOutputType | null
  _sum: GalleryImageSumAggregateOutputType | null
  _min: GalleryImageMinAggregateOutputType | null
  _max: GalleryImageMaxAggregateOutputType | null
}

export type GalleryImageAvgAggregateOutputType = {
  width: number | null
  height: number | null
  order: number | null
}

export type GalleryImageSumAggregateOutputType = {
  width: number | null
  height: number | null
  order: number | null
}

export type GalleryImageMinAggregateOutputType = {
  id: string | null
  url: string | null
  width: number | null
  height: number | null
  order: number | null
  createdAt: Date | null
}

export type GalleryImageMaxAggregateOutputType = {
  id: string | null
  url: string | null
  width: number | null
  height: number | null
  order: number | null
  createdAt: Date | null
}

export type GalleryImageCountAggregateOutputType = {
  id: number
  url: number
  width: number
  height: number
  order: number
  createdAt: number
  _all: number
}


export type GalleryImageAvgAggregateInputType = {
  width?: true
  height?: true
  order?: true
}

export type GalleryImageSumAggregateInputType = {
  width?: true
  height?: true
  order?: true
}

export type GalleryImageMinAggregateInputType = {
  id?: true
  url?: true
  width?: true
  height?: true
  order?: true
  createdAt?: true
}

export type GalleryImageMaxAggregateInputType = {
  id?: true
  url?: true
  width?: true
  height?: true
  order?: true
  createdAt?: true
}

export type GalleryImageCountAggregateInputType = {
  id?: true
  url?: true
  width?: true
  height?: true
  order?: true
  createdAt?: true
  _all?: true
}

export type GalleryImageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which GalleryImage to aggregate.
   */
  where?: Prisma.GalleryImageWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of GalleryImages to fetch.
   */
  orderBy?: Prisma.GalleryImageOrderByWithRelationInput | Prisma.GalleryImageOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.GalleryImageWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` GalleryImages 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` GalleryImages.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned GalleryImages
  **/
  _count?: true | GalleryImageCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: GalleryImageAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: GalleryImageSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: GalleryImageMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: GalleryImageMaxAggregateInputType
}

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




export type GalleryImageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.GalleryImageWhereInput
  orderBy?: Prisma.GalleryImageOrderByWithAggregationInput | Prisma.GalleryImageOrderByWithAggregationInput[]
  by: Prisma.GalleryImageScalarFieldEnum[] | Prisma.GalleryImageScalarFieldEnum
  having?: Prisma.GalleryImageScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: GalleryImageCountAggregateInputType | true
  _avg?: GalleryImageAvgAggregateInputType
  _sum?: GalleryImageSumAggregateInputType
  _min?: GalleryImageMinAggregateInputType
  _max?: GalleryImageMaxAggregateInputType
}

export type GalleryImageGroupByOutputType = {
  id: string
  url: string
  width: number
  height: number
  order: number
  createdAt: Date
  _count: GalleryImageCountAggregateOutputType | null
  _avg: GalleryImageAvgAggregateOutputType | null
  _sum: GalleryImageSumAggregateOutputType | null
  _min: GalleryImageMinAggregateOutputType | null
  _max: GalleryImageMaxAggregateOutputType | null
}

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



export type GalleryImageWhereInput = {
  AND?: Prisma.GalleryImageWhereInput | Prisma.GalleryImageWhereInput[]
  OR?: Prisma.GalleryImageWhereInput[]
  NOT?: Prisma.GalleryImageWhereInput | Prisma.GalleryImageWhereInput[]
  id?: Prisma.StringFilter<"GalleryImage"> | string
  url?: Prisma.StringFilter<"GalleryImage"> | string
  width?: Prisma.IntFilter<"GalleryImage"> | number
  height?: Prisma.IntFilter<"GalleryImage"> | number
  order?: Prisma.IntFilter<"GalleryImage"> | number
  createdAt?: Prisma.DateTimeFilter<"GalleryImage"> | Date | string
}

export type GalleryImageOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  url?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _relevance?: Prisma.GalleryImageOrderByRelevanceInput
}

export type GalleryImageWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.GalleryImageWhereInput | Prisma.GalleryImageWhereInput[]
  OR?: Prisma.GalleryImageWhereInput[]
  NOT?: Prisma.GalleryImageWhereInput | Prisma.GalleryImageWhereInput[]
  url?: Prisma.StringFilter<"GalleryImage"> | string
  width?: Prisma.IntFilter<"GalleryImage"> | number
  height?: Prisma.IntFilter<"GalleryImage"> | number
  order?: Prisma.IntFilter<"GalleryImage"> | number
  createdAt?: Prisma.DateTimeFilter<"GalleryImage"> | Date | string
}, "id">

export type GalleryImageOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  url?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.GalleryImageCountOrderByAggregateInput
  _avg?: Prisma.GalleryImageAvgOrderByAggregateInput
  _max?: Prisma.GalleryImageMaxOrderByAggregateInput
  _min?: Prisma.GalleryImageMinOrderByAggregateInput
  _sum?: Prisma.GalleryImageSumOrderByAggregateInput
}

export type GalleryImageScalarWhereWithAggregatesInput = {
  AND?: Prisma.GalleryImageScalarWhereWithAggregatesInput | Prisma.GalleryImageScalarWhereWithAggregatesInput[]
  OR?: Prisma.GalleryImageScalarWhereWithAggregatesInput[]
  NOT?: Prisma.GalleryImageScalarWhereWithAggregatesInput | Prisma.GalleryImageScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"GalleryImage"> | string
  url?: Prisma.StringWithAggregatesFilter<"GalleryImage"> | string
  width?: Prisma.IntWithAggregatesFilter<"GalleryImage"> | number
  height?: Prisma.IntWithAggregatesFilter<"GalleryImage"> | number
  order?: Prisma.IntWithAggregatesFilter<"GalleryImage"> | number
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"GalleryImage"> | Date | string
}

export type GalleryImageCreateInput = {
  id?: string
  url: string
  width: number
  height: number
  order?: number
  createdAt?: Date | string
}

export type GalleryImageUncheckedCreateInput = {
  id?: string
  url: string
  width: number
  height: number
  order?: number
  createdAt?: Date | string
}

export type GalleryImageUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  width?: Prisma.IntFieldUpdateOperationsInput | number
  height?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type GalleryImageUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  width?: Prisma.IntFieldUpdateOperationsInput | number
  height?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type GalleryImageCreateManyInput = {
  id?: string
  url: string
  width: number
  height: number
  order?: number
  createdAt?: Date | string
}

export type GalleryImageUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  width?: Prisma.IntFieldUpdateOperationsInput | number
  height?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type GalleryImageUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  url?: Prisma.StringFieldUpdateOperationsInput | string
  width?: Prisma.IntFieldUpdateOperationsInput | number
  height?: Prisma.IntFieldUpdateOperationsInput | number
  order?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type GalleryImageOrderByRelevanceInput = {
  fields: Prisma.GalleryImageOrderByRelevanceFieldEnum | Prisma.GalleryImageOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type GalleryImageCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  url?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type GalleryImageAvgOrderByAggregateInput = {
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  order?: Prisma.SortOrder
}

export type GalleryImageMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  url?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type GalleryImageMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  url?: Prisma.SortOrder
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  order?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type GalleryImageSumOrderByAggregateInput = {
  width?: Prisma.SortOrder
  height?: Prisma.SortOrder
  order?: Prisma.SortOrder
}

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



export type GalleryImageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  url?: boolean
  width?: boolean
  height?: boolean
  order?: boolean
  createdAt?: boolean
}, ExtArgs["result"]["galleryImage"]>



export type GalleryImageSelectScalar = {
  id?: boolean
  url?: boolean
  width?: boolean
  height?: boolean
  order?: boolean
  createdAt?: boolean
}

export type GalleryImageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "url" | "width" | "height" | "order" | "createdAt", ExtArgs["result"]["galleryImage"]>

export type $GalleryImagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "GalleryImage"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    url: string
    width: number
    height: number
    order: number
    createdAt: Date
  }, ExtArgs["result"]["galleryImage"]>
  composites: {}
}

export type GalleryImageGetPayload<S extends boolean | null | undefined | GalleryImageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$GalleryImagePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for GalleryImage.
 * 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__GalleryImageClient<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 GalleryImage model
 */
export interface GalleryImageFieldRefs {
  readonly id: Prisma.FieldRef<"GalleryImage", 'String'>
  readonly url: Prisma.FieldRef<"GalleryImage", 'String'>
  readonly width: Prisma.FieldRef<"GalleryImage", 'Int'>
  readonly height: Prisma.FieldRef<"GalleryImage", 'Int'>
  readonly order: Prisma.FieldRef<"GalleryImage", 'Int'>
  readonly createdAt: Prisma.FieldRef<"GalleryImage", 'DateTime'>
}
    

// Custom InputTypes
/**
 * GalleryImage findUnique
 */
export type GalleryImageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GalleryImage
   */
  select?: Prisma.GalleryImageSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GalleryImage
   */
  omit?: Prisma.GalleryImageOmit<ExtArgs> | null
  /**
   * Filter, which GalleryImage to fetch.
   */
  where: Prisma.GalleryImageWhereUniqueInput
}

/**
 * GalleryImage findUniqueOrThrow
 */
export type GalleryImageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GalleryImage
   */
  select?: Prisma.GalleryImageSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GalleryImage
   */
  omit?: Prisma.GalleryImageOmit<ExtArgs> | null
  /**
   * Filter, which GalleryImage to fetch.
   */
  where: Prisma.GalleryImageWhereUniqueInput
}

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

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

/**
 * GalleryImage findMany
 */
export type GalleryImageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GalleryImage
   */
  select?: Prisma.GalleryImageSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GalleryImage
   */
  omit?: Prisma.GalleryImageOmit<ExtArgs> | null
  /**
   * Filter, which GalleryImages to fetch.
   */
  where?: Prisma.GalleryImageWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of GalleryImages to fetch.
   */
  orderBy?: Prisma.GalleryImageOrderByWithRelationInput | Prisma.GalleryImageOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing GalleryImages.
   */
  cursor?: Prisma.GalleryImageWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` GalleryImages 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` GalleryImages.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of GalleryImages.
   */
  distinct?: Prisma.GalleryImageScalarFieldEnum | Prisma.GalleryImageScalarFieldEnum[]
}

/**
 * GalleryImage create
 */
export type GalleryImageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GalleryImage
   */
  select?: Prisma.GalleryImageSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GalleryImage
   */
  omit?: Prisma.GalleryImageOmit<ExtArgs> | null
  /**
   * The data needed to create a GalleryImage.
   */
  data: Prisma.XOR<Prisma.GalleryImageCreateInput, Prisma.GalleryImageUncheckedCreateInput>
}

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

/**
 * GalleryImage update
 */
export type GalleryImageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GalleryImage
   */
  select?: Prisma.GalleryImageSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GalleryImage
   */
  omit?: Prisma.GalleryImageOmit<ExtArgs> | null
  /**
   * The data needed to update a GalleryImage.
   */
  data: Prisma.XOR<Prisma.GalleryImageUpdateInput, Prisma.GalleryImageUncheckedUpdateInput>
  /**
   * Choose, which GalleryImage to update.
   */
  where: Prisma.GalleryImageWhereUniqueInput
}

/**
 * GalleryImage updateMany
 */
export type GalleryImageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update GalleryImages.
   */
  data: Prisma.XOR<Prisma.GalleryImageUpdateManyMutationInput, Prisma.GalleryImageUncheckedUpdateManyInput>
  /**
   * Filter which GalleryImages to update
   */
  where?: Prisma.GalleryImageWhereInput
  /**
   * Limit how many GalleryImages to update.
   */
  limit?: number
}

/**
 * GalleryImage upsert
 */
export type GalleryImageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GalleryImage
   */
  select?: Prisma.GalleryImageSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GalleryImage
   */
  omit?: Prisma.GalleryImageOmit<ExtArgs> | null
  /**
   * The filter to search for the GalleryImage to update in case it exists.
   */
  where: Prisma.GalleryImageWhereUniqueInput
  /**
   * In case the GalleryImage found by the `where` argument doesn't exist, create a new GalleryImage with this data.
   */
  create: Prisma.XOR<Prisma.GalleryImageCreateInput, Prisma.GalleryImageUncheckedCreateInput>
  /**
   * In case the GalleryImage was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.GalleryImageUpdateInput, Prisma.GalleryImageUncheckedUpdateInput>
}

/**
 * GalleryImage delete
 */
export type GalleryImageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the GalleryImage
   */
  select?: Prisma.GalleryImageSelect<ExtArgs> | null
  /**
   * Omit specific fields from the GalleryImage
   */
  omit?: Prisma.GalleryImageOmit<ExtArgs> | null
  /**
   * Filter which GalleryImage to delete.
   */
  where: Prisma.GalleryImageWhereUniqueInput
}

/**
 * GalleryImage deleteMany
 */
export type GalleryImageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which GalleryImages to delete
   */
  where?: Prisma.GalleryImageWhereInput
  /**
   * Limit how many GalleryImages to delete.
   */
  limit?: number
}

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