/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `TripImage` 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 TripImage * */ export type TripImageModel = runtime.Types.Result.DefaultSelection export type AggregateTripImage = { _count: TripImageCountAggregateOutputType | null _avg: TripImageAvgAggregateOutputType | null _sum: TripImageSumAggregateOutputType | null _min: TripImageMinAggregateOutputType | null _max: TripImageMaxAggregateOutputType | null } export type TripImageAvgAggregateOutputType = { order: number | null } export type TripImageSumAggregateOutputType = { order: number | null } export type TripImageMinAggregateOutputType = { id: string | null url: string | null caption: string | null order: number | null tripId: string | null } export type TripImageMaxAggregateOutputType = { id: string | null url: string | null caption: string | null order: number | null tripId: string | null } export type TripImageCountAggregateOutputType = { id: number url: number caption: number order: number tripId: number _all: number } export type TripImageAvgAggregateInputType = { order?: true } export type TripImageSumAggregateInputType = { order?: true } export type TripImageMinAggregateInputType = { id?: true url?: true caption?: true order?: true tripId?: true } export type TripImageMaxAggregateInputType = { id?: true url?: true caption?: true order?: true tripId?: true } export type TripImageCountAggregateInputType = { id?: true url?: true caption?: true order?: true tripId?: true _all?: true } export type TripImageAggregateArgs = { /** * Filter which TripImage to aggregate. */ where?: Prisma.TripImageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TripImages to fetch. */ orderBy?: Prisma.TripImageOrderByWithRelationInput | Prisma.TripImageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TripImageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TripImages 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` TripImages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TripImages **/ _count?: true | TripImageCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TripImageAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TripImageSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TripImageMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TripImageMaxAggregateInputType } export type GetTripImageAggregateType = { [P in keyof T & keyof AggregateTripImage]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TripImageGroupByArgs = { where?: Prisma.TripImageWhereInput orderBy?: Prisma.TripImageOrderByWithAggregationInput | Prisma.TripImageOrderByWithAggregationInput[] by: Prisma.TripImageScalarFieldEnum[] | Prisma.TripImageScalarFieldEnum having?: Prisma.TripImageScalarWhereWithAggregatesInput take?: number skip?: number _count?: TripImageCountAggregateInputType | true _avg?: TripImageAvgAggregateInputType _sum?: TripImageSumAggregateInputType _min?: TripImageMinAggregateInputType _max?: TripImageMaxAggregateInputType } export type TripImageGroupByOutputType = { id: string url: string caption: string | null order: number tripId: string _count: TripImageCountAggregateOutputType | null _avg: TripImageAvgAggregateOutputType | null _sum: TripImageSumAggregateOutputType | null _min: TripImageMinAggregateOutputType | null _max: TripImageMaxAggregateOutputType | null } export type GetTripImageGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TripImageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TripImageWhereInput = { AND?: Prisma.TripImageWhereInput | Prisma.TripImageWhereInput[] OR?: Prisma.TripImageWhereInput[] NOT?: Prisma.TripImageWhereInput | Prisma.TripImageWhereInput[] id?: Prisma.StringFilter<"TripImage"> | string url?: Prisma.StringFilter<"TripImage"> | string caption?: Prisma.StringNullableFilter<"TripImage"> | string | null order?: Prisma.IntFilter<"TripImage"> | number tripId?: Prisma.StringFilter<"TripImage"> | string trip?: Prisma.XOR } export type TripImageOrderByWithRelationInput = { id?: Prisma.SortOrder url?: Prisma.SortOrder caption?: Prisma.SortOrderInput | Prisma.SortOrder order?: Prisma.SortOrder tripId?: Prisma.SortOrder trip?: Prisma.TripOrderByWithRelationInput } export type TripImageWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.TripImageWhereInput | Prisma.TripImageWhereInput[] OR?: Prisma.TripImageWhereInput[] NOT?: Prisma.TripImageWhereInput | Prisma.TripImageWhereInput[] url?: Prisma.StringFilter<"TripImage"> | string caption?: Prisma.StringNullableFilter<"TripImage"> | string | null order?: Prisma.IntFilter<"TripImage"> | number tripId?: Prisma.StringFilter<"TripImage"> | string trip?: Prisma.XOR }, "id"> export type TripImageOrderByWithAggregationInput = { id?: Prisma.SortOrder url?: Prisma.SortOrder caption?: Prisma.SortOrderInput | Prisma.SortOrder order?: Prisma.SortOrder tripId?: Prisma.SortOrder _count?: Prisma.TripImageCountOrderByAggregateInput _avg?: Prisma.TripImageAvgOrderByAggregateInput _max?: Prisma.TripImageMaxOrderByAggregateInput _min?: Prisma.TripImageMinOrderByAggregateInput _sum?: Prisma.TripImageSumOrderByAggregateInput } export type TripImageScalarWhereWithAggregatesInput = { AND?: Prisma.TripImageScalarWhereWithAggregatesInput | Prisma.TripImageScalarWhereWithAggregatesInput[] OR?: Prisma.TripImageScalarWhereWithAggregatesInput[] NOT?: Prisma.TripImageScalarWhereWithAggregatesInput | Prisma.TripImageScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"TripImage"> | string url?: Prisma.StringWithAggregatesFilter<"TripImage"> | string caption?: Prisma.StringNullableWithAggregatesFilter<"TripImage"> | string | null order?: Prisma.IntWithAggregatesFilter<"TripImage"> | number tripId?: Prisma.StringWithAggregatesFilter<"TripImage"> | string } export type TripImageCreateInput = { id?: string url: string caption?: string | null order?: number trip: Prisma.TripCreateNestedOneWithoutImagesInput } export type TripImageUncheckedCreateInput = { id?: string url: string caption?: string | null order?: number tripId: string } export type TripImageUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string url?: Prisma.StringFieldUpdateOperationsInput | string caption?: Prisma.NullableStringFieldUpdateOperationsInput | string | null order?: Prisma.IntFieldUpdateOperationsInput | number trip?: Prisma.TripUpdateOneRequiredWithoutImagesNestedInput } export type TripImageUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string url?: Prisma.StringFieldUpdateOperationsInput | string caption?: Prisma.NullableStringFieldUpdateOperationsInput | string | null order?: Prisma.IntFieldUpdateOperationsInput | number tripId?: Prisma.StringFieldUpdateOperationsInput | string } export type TripImageCreateManyInput = { id?: string url: string caption?: string | null order?: number tripId: string } export type TripImageUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string url?: Prisma.StringFieldUpdateOperationsInput | string caption?: Prisma.NullableStringFieldUpdateOperationsInput | string | null order?: Prisma.IntFieldUpdateOperationsInput | number } export type TripImageUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string url?: Prisma.StringFieldUpdateOperationsInput | string caption?: Prisma.NullableStringFieldUpdateOperationsInput | string | null order?: Prisma.IntFieldUpdateOperationsInput | number tripId?: Prisma.StringFieldUpdateOperationsInput | string } export type TripImageListRelationFilter = { every?: Prisma.TripImageWhereInput some?: Prisma.TripImageWhereInput none?: Prisma.TripImageWhereInput } export type TripImageOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type TripImageCountOrderByAggregateInput = { id?: Prisma.SortOrder url?: Prisma.SortOrder caption?: Prisma.SortOrder order?: Prisma.SortOrder tripId?: Prisma.SortOrder } export type TripImageAvgOrderByAggregateInput = { order?: Prisma.SortOrder } export type TripImageMaxOrderByAggregateInput = { id?: Prisma.SortOrder url?: Prisma.SortOrder caption?: Prisma.SortOrder order?: Prisma.SortOrder tripId?: Prisma.SortOrder } export type TripImageMinOrderByAggregateInput = { id?: Prisma.SortOrder url?: Prisma.SortOrder caption?: Prisma.SortOrder order?: Prisma.SortOrder tripId?: Prisma.SortOrder } export type TripImageSumOrderByAggregateInput = { order?: Prisma.SortOrder } export type TripImageCreateNestedManyWithoutTripInput = { create?: Prisma.XOR | Prisma.TripImageCreateWithoutTripInput[] | Prisma.TripImageUncheckedCreateWithoutTripInput[] connectOrCreate?: Prisma.TripImageCreateOrConnectWithoutTripInput | Prisma.TripImageCreateOrConnectWithoutTripInput[] createMany?: Prisma.TripImageCreateManyTripInputEnvelope connect?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] } export type TripImageUncheckedCreateNestedManyWithoutTripInput = { create?: Prisma.XOR | Prisma.TripImageCreateWithoutTripInput[] | Prisma.TripImageUncheckedCreateWithoutTripInput[] connectOrCreate?: Prisma.TripImageCreateOrConnectWithoutTripInput | Prisma.TripImageCreateOrConnectWithoutTripInput[] createMany?: Prisma.TripImageCreateManyTripInputEnvelope connect?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] } export type TripImageUpdateManyWithoutTripNestedInput = { create?: Prisma.XOR | Prisma.TripImageCreateWithoutTripInput[] | Prisma.TripImageUncheckedCreateWithoutTripInput[] connectOrCreate?: Prisma.TripImageCreateOrConnectWithoutTripInput | Prisma.TripImageCreateOrConnectWithoutTripInput[] upsert?: Prisma.TripImageUpsertWithWhereUniqueWithoutTripInput | Prisma.TripImageUpsertWithWhereUniqueWithoutTripInput[] createMany?: Prisma.TripImageCreateManyTripInputEnvelope set?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] disconnect?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] delete?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] connect?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] update?: Prisma.TripImageUpdateWithWhereUniqueWithoutTripInput | Prisma.TripImageUpdateWithWhereUniqueWithoutTripInput[] updateMany?: Prisma.TripImageUpdateManyWithWhereWithoutTripInput | Prisma.TripImageUpdateManyWithWhereWithoutTripInput[] deleteMany?: Prisma.TripImageScalarWhereInput | Prisma.TripImageScalarWhereInput[] } export type TripImageUncheckedUpdateManyWithoutTripNestedInput = { create?: Prisma.XOR | Prisma.TripImageCreateWithoutTripInput[] | Prisma.TripImageUncheckedCreateWithoutTripInput[] connectOrCreate?: Prisma.TripImageCreateOrConnectWithoutTripInput | Prisma.TripImageCreateOrConnectWithoutTripInput[] upsert?: Prisma.TripImageUpsertWithWhereUniqueWithoutTripInput | Prisma.TripImageUpsertWithWhereUniqueWithoutTripInput[] createMany?: Prisma.TripImageCreateManyTripInputEnvelope set?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] disconnect?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] delete?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] connect?: Prisma.TripImageWhereUniqueInput | Prisma.TripImageWhereUniqueInput[] update?: Prisma.TripImageUpdateWithWhereUniqueWithoutTripInput | Prisma.TripImageUpdateWithWhereUniqueWithoutTripInput[] updateMany?: Prisma.TripImageUpdateManyWithWhereWithoutTripInput | Prisma.TripImageUpdateManyWithWhereWithoutTripInput[] deleteMany?: Prisma.TripImageScalarWhereInput | Prisma.TripImageScalarWhereInput[] } export type TripImageCreateWithoutTripInput = { id?: string url: string caption?: string | null order?: number } export type TripImageUncheckedCreateWithoutTripInput = { id?: string url: string caption?: string | null order?: number } export type TripImageCreateOrConnectWithoutTripInput = { where: Prisma.TripImageWhereUniqueInput create: Prisma.XOR } export type TripImageCreateManyTripInputEnvelope = { data: Prisma.TripImageCreateManyTripInput | Prisma.TripImageCreateManyTripInput[] skipDuplicates?: boolean } export type TripImageUpsertWithWhereUniqueWithoutTripInput = { where: Prisma.TripImageWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TripImageUpdateWithWhereUniqueWithoutTripInput = { where: Prisma.TripImageWhereUniqueInput data: Prisma.XOR } export type TripImageUpdateManyWithWhereWithoutTripInput = { where: Prisma.TripImageScalarWhereInput data: Prisma.XOR } export type TripImageScalarWhereInput = { AND?: Prisma.TripImageScalarWhereInput | Prisma.TripImageScalarWhereInput[] OR?: Prisma.TripImageScalarWhereInput[] NOT?: Prisma.TripImageScalarWhereInput | Prisma.TripImageScalarWhereInput[] id?: Prisma.StringFilter<"TripImage"> | string url?: Prisma.StringFilter<"TripImage"> | string caption?: Prisma.StringNullableFilter<"TripImage"> | string | null order?: Prisma.IntFilter<"TripImage"> | number tripId?: Prisma.StringFilter<"TripImage"> | string } export type TripImageCreateManyTripInput = { id?: string url: string caption?: string | null order?: number } export type TripImageUpdateWithoutTripInput = { id?: Prisma.StringFieldUpdateOperationsInput | string url?: Prisma.StringFieldUpdateOperationsInput | string caption?: Prisma.NullableStringFieldUpdateOperationsInput | string | null order?: Prisma.IntFieldUpdateOperationsInput | number } export type TripImageUncheckedUpdateWithoutTripInput = { id?: Prisma.StringFieldUpdateOperationsInput | string url?: Prisma.StringFieldUpdateOperationsInput | string caption?: Prisma.NullableStringFieldUpdateOperationsInput | string | null order?: Prisma.IntFieldUpdateOperationsInput | number } export type TripImageUncheckedUpdateManyWithoutTripInput = { id?: Prisma.StringFieldUpdateOperationsInput | string url?: Prisma.StringFieldUpdateOperationsInput | string caption?: Prisma.NullableStringFieldUpdateOperationsInput | string | null order?: Prisma.IntFieldUpdateOperationsInput | number } export type TripImageSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean url?: boolean caption?: boolean order?: boolean tripId?: boolean trip?: boolean | Prisma.TripDefaultArgs }, ExtArgs["result"]["tripImage"]> export type TripImageSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean url?: boolean caption?: boolean order?: boolean tripId?: boolean trip?: boolean | Prisma.TripDefaultArgs }, ExtArgs["result"]["tripImage"]> export type TripImageSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean url?: boolean caption?: boolean order?: boolean tripId?: boolean trip?: boolean | Prisma.TripDefaultArgs }, ExtArgs["result"]["tripImage"]> export type TripImageSelectScalar = { id?: boolean url?: boolean caption?: boolean order?: boolean tripId?: boolean } export type TripImageOmit = runtime.Types.Extensions.GetOmit<"id" | "url" | "caption" | "order" | "tripId", ExtArgs["result"]["tripImage"]> export type TripImageInclude = { trip?: boolean | Prisma.TripDefaultArgs } export type TripImageIncludeCreateManyAndReturn = { trip?: boolean | Prisma.TripDefaultArgs } export type TripImageIncludeUpdateManyAndReturn = { trip?: boolean | Prisma.TripDefaultArgs } export type $TripImagePayload = { name: "TripImage" objects: { trip: Prisma.$TripPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string url: string caption: string | null order: number tripId: string }, ExtArgs["result"]["tripImage"]> composites: {} } export type TripImageGetPayload = runtime.Types.Result.GetResult export type TripImageCountArgs = Omit & { select?: TripImageCountAggregateInputType | true } export interface TripImageDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TripImage'], meta: { name: 'TripImage' } } /** * Find zero or one TripImage that matches the filter. * @param {TripImageFindUniqueArgs} args - Arguments to find a TripImage * @example * // Get one TripImage * const tripImage = await prisma.tripImage.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TripImageClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TripImage that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TripImageFindUniqueOrThrowArgs} args - Arguments to find a TripImage * @example * // Get one TripImage * const tripImage = await prisma.tripImage.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TripImageClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TripImage 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 {TripImageFindFirstArgs} args - Arguments to find a TripImage * @example * // Get one TripImage * const tripImage = await prisma.tripImage.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TripImageClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TripImage 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 {TripImageFindFirstOrThrowArgs} args - Arguments to find a TripImage * @example * // Get one TripImage * const tripImage = await prisma.tripImage.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TripImageClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TripImages 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 {TripImageFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TripImages * const tripImages = await prisma.tripImage.findMany() * * // Get first 10 TripImages * const tripImages = await prisma.tripImage.findMany({ take: 10 }) * * // Only select the `id` * const tripImageWithIdOnly = await prisma.tripImage.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a TripImage. * @param {TripImageCreateArgs} args - Arguments to create a TripImage. * @example * // Create one TripImage * const TripImage = await prisma.tripImage.create({ * data: { * // ... data to create a TripImage * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TripImageClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TripImages. * @param {TripImageCreateManyArgs} args - Arguments to create many TripImages. * @example * // Create many TripImages * const tripImage = await prisma.tripImage.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many TripImages and returns the data saved in the database. * @param {TripImageCreateManyAndReturnArgs} args - Arguments to create many TripImages. * @example * // Create many TripImages * const tripImage = await prisma.tripImage.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TripImages and only return the `id` * const tripImageWithIdOnly = await prisma.tripImage.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a TripImage. * @param {TripImageDeleteArgs} args - Arguments to delete one TripImage. * @example * // Delete one TripImage * const TripImage = await prisma.tripImage.delete({ * where: { * // ... filter to delete one TripImage * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TripImageClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TripImage. * @param {TripImageUpdateArgs} args - Arguments to update one TripImage. * @example * // Update one TripImage * const tripImage = await prisma.tripImage.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TripImageClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TripImages. * @param {TripImageDeleteManyArgs} args - Arguments to filter TripImages to delete. * @example * // Delete a few TripImages * const { count } = await prisma.tripImage.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TripImages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TripImageUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TripImages * const tripImage = await prisma.tripImage.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TripImages and returns the data updated in the database. * @param {TripImageUpdateManyAndReturnArgs} args - Arguments to update many TripImages. * @example * // Update many TripImages * const tripImage = await prisma.tripImage.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TripImages and only return the `id` * const tripImageWithIdOnly = await prisma.tripImage.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one TripImage. * @param {TripImageUpsertArgs} args - Arguments to update or create a TripImage. * @example * // Update or create a TripImage * const tripImage = await prisma.tripImage.upsert({ * create: { * // ... data to create a TripImage * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TripImage we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TripImageClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TripImages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TripImageCountArgs} args - Arguments to filter TripImages to count. * @example * // Count the number of TripImages * const count = await prisma.tripImage.count({ * where: { * // ... the filter for the TripImages we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a TripImage. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TripImageAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by TripImage. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TripImageGroupByArgs} 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 TripImageGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TripImageGroupByArgs['orderBy'] } : { orderBy?: TripImageGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTripImageGroupByPayload : Prisma.PrismaPromise /** * Fields of the TripImage model */ readonly fields: TripImageFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TripImage. * 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__TripImageClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" trip = {}>(args?: Prisma.Subset>): Prisma.Prisma__TripClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the TripImage model */ export interface TripImageFieldRefs { readonly id: Prisma.FieldRef<"TripImage", 'String'> readonly url: Prisma.FieldRef<"TripImage", 'String'> readonly caption: Prisma.FieldRef<"TripImage", 'String'> readonly order: Prisma.FieldRef<"TripImage", 'Int'> readonly tripId: Prisma.FieldRef<"TripImage", 'String'> } // Custom InputTypes /** * TripImage findUnique */ export type TripImageFindUniqueArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * Filter, which TripImage to fetch. */ where: Prisma.TripImageWhereUniqueInput } /** * TripImage findUniqueOrThrow */ export type TripImageFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * Filter, which TripImage to fetch. */ where: Prisma.TripImageWhereUniqueInput } /** * TripImage findFirst */ export type TripImageFindFirstArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * Filter, which TripImage to fetch. */ where?: Prisma.TripImageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TripImages to fetch. */ orderBy?: Prisma.TripImageOrderByWithRelationInput | Prisma.TripImageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TripImages. */ cursor?: Prisma.TripImageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TripImages 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` TripImages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TripImages. */ distinct?: Prisma.TripImageScalarFieldEnum | Prisma.TripImageScalarFieldEnum[] } /** * TripImage findFirstOrThrow */ export type TripImageFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * Filter, which TripImage to fetch. */ where?: Prisma.TripImageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TripImages to fetch. */ orderBy?: Prisma.TripImageOrderByWithRelationInput | Prisma.TripImageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TripImages. */ cursor?: Prisma.TripImageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TripImages 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` TripImages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TripImages. */ distinct?: Prisma.TripImageScalarFieldEnum | Prisma.TripImageScalarFieldEnum[] } /** * TripImage findMany */ export type TripImageFindManyArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * Filter, which TripImages to fetch. */ where?: Prisma.TripImageWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TripImages to fetch. */ orderBy?: Prisma.TripImageOrderByWithRelationInput | Prisma.TripImageOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TripImages. */ cursor?: Prisma.TripImageWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TripImages 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` TripImages. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TripImages. */ distinct?: Prisma.TripImageScalarFieldEnum | Prisma.TripImageScalarFieldEnum[] } /** * TripImage create */ export type TripImageCreateArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * The data needed to create a TripImage. */ data: Prisma.XOR } /** * TripImage createMany */ export type TripImageCreateManyArgs = { /** * The data used to create many TripImages. */ data: Prisma.TripImageCreateManyInput | Prisma.TripImageCreateManyInput[] skipDuplicates?: boolean } /** * TripImage createManyAndReturn */ export type TripImageCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelectCreateManyAndReturn | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * The data used to create many TripImages. */ data: Prisma.TripImageCreateManyInput | Prisma.TripImageCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageIncludeCreateManyAndReturn | null } /** * TripImage update */ export type TripImageUpdateArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * The data needed to update a TripImage. */ data: Prisma.XOR /** * Choose, which TripImage to update. */ where: Prisma.TripImageWhereUniqueInput } /** * TripImage updateMany */ export type TripImageUpdateManyArgs = { /** * The data used to update TripImages. */ data: Prisma.XOR /** * Filter which TripImages to update */ where?: Prisma.TripImageWhereInput /** * Limit how many TripImages to update. */ limit?: number } /** * TripImage updateManyAndReturn */ export type TripImageUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelectUpdateManyAndReturn | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * The data used to update TripImages. */ data: Prisma.XOR /** * Filter which TripImages to update */ where?: Prisma.TripImageWhereInput /** * Limit how many TripImages to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageIncludeUpdateManyAndReturn | null } /** * TripImage upsert */ export type TripImageUpsertArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * The filter to search for the TripImage to update in case it exists. */ where: Prisma.TripImageWhereUniqueInput /** * In case the TripImage found by the `where` argument doesn't exist, create a new TripImage with this data. */ create: Prisma.XOR /** * In case the TripImage was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TripImage delete */ export type TripImageDeleteArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null /** * Filter which TripImage to delete. */ where: Prisma.TripImageWhereUniqueInput } /** * TripImage deleteMany */ export type TripImageDeleteManyArgs = { /** * Filter which TripImages to delete */ where?: Prisma.TripImageWhereInput /** * Limit how many TripImages to delete. */ limit?: number } /** * TripImage without action */ export type TripImageDefaultArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null }