Files
setrip/app/generated/prisma/models/TripImage.ts
T
2026-04-16 16:26:29 +07:00

1390 lines
49 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `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<Prisma.$TripImagePayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends TripImageAggregateArgs> = {
[P in keyof T & keyof AggregateTripImage]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateTripImage[P]>
: Prisma.GetScalarType<T[P], AggregateTripImage[P]>
}
export type TripImageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends TripImageGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<TripImageGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TripImageGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], TripImageGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], TripImageGroupByOutputType[P]>
}
>
>
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<Prisma.TripScalarRelationFilter, Prisma.TripWhereInput>
}
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<Prisma.TripScalarRelationFilter, Prisma.TripWhereInput>
}, "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> | 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> | 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> | 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> | 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<Prisma.TripImageCreateWithoutTripInput, Prisma.TripImageUncheckedCreateWithoutTripInput>
}
export type TripImageCreateManyTripInputEnvelope = {
data: Prisma.TripImageCreateManyTripInput | Prisma.TripImageCreateManyTripInput[]
skipDuplicates?: boolean
}
export type TripImageUpsertWithWhereUniqueWithoutTripInput = {
where: Prisma.TripImageWhereUniqueInput
update: Prisma.XOR<Prisma.TripImageUpdateWithoutTripInput, Prisma.TripImageUncheckedUpdateWithoutTripInput>
create: Prisma.XOR<Prisma.TripImageCreateWithoutTripInput, Prisma.TripImageUncheckedCreateWithoutTripInput>
}
export type TripImageUpdateWithWhereUniqueWithoutTripInput = {
where: Prisma.TripImageWhereUniqueInput
data: Prisma.XOR<Prisma.TripImageUpdateWithoutTripInput, Prisma.TripImageUncheckedUpdateWithoutTripInput>
}
export type TripImageUpdateManyWithWhereWithoutTripInput = {
where: Prisma.TripImageScalarWhereInput
data: Prisma.XOR<Prisma.TripImageUpdateManyMutationInput, Prisma.TripImageUncheckedUpdateManyWithoutTripInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
url?: boolean
caption?: boolean
order?: boolean
tripId?: boolean
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tripImage"]>
export type TripImageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
url?: boolean
caption?: boolean
order?: boolean
tripId?: boolean
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tripImage"]>
export type TripImageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
url?: boolean
caption?: boolean
order?: boolean
tripId?: boolean
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tripImage"]>
export type TripImageSelectScalar = {
id?: boolean
url?: boolean
caption?: boolean
order?: boolean
tripId?: boolean
}
export type TripImageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "url" | "caption" | "order" | "tripId", ExtArgs["result"]["tripImage"]>
export type TripImageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
}
export type TripImageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
}
export type TripImageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
}
export type $TripImagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "TripImage"
objects: {
trip: Prisma.$TripPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
url: string
caption: string | null
order: number
tripId: string
}, ExtArgs["result"]["tripImage"]>
composites: {}
}
export type TripImageGetPayload<S extends boolean | null | undefined | TripImageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TripImagePayload, S>
export type TripImageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<TripImageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: TripImageCountAggregateInputType | true
}
export interface TripImageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends TripImageFindUniqueArgs>(args: Prisma.SelectSubset<T, TripImageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TripImageClient<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TripImageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TripImageClient<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageFindFirstArgs>(args?: Prisma.SelectSubset<T, TripImageFindFirstArgs<ExtArgs>>): Prisma.Prisma__TripImageClient<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TripImageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TripImageClient<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageFindManyArgs>(args?: Prisma.SelectSubset<T, TripImageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageCreateArgs>(args: Prisma.SelectSubset<T, TripImageCreateArgs<ExtArgs>>): Prisma.Prisma__TripImageClient<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageCreateManyArgs>(args?: Prisma.SelectSubset<T, TripImageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends TripImageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TripImageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageDeleteArgs>(args: Prisma.SelectSubset<T, TripImageDeleteArgs<ExtArgs>>): Prisma.Prisma__TripImageClient<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageUpdateArgs>(args: Prisma.SelectSubset<T, TripImageUpdateArgs<ExtArgs>>): Prisma.Prisma__TripImageClient<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageDeleteManyArgs>(args?: Prisma.SelectSubset<T, TripImageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends TripImageUpdateManyArgs>(args: Prisma.SelectSubset<T, TripImageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends TripImageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TripImageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageUpsertArgs>(args: Prisma.SelectSubset<T, TripImageUpsertArgs<ExtArgs>>): Prisma.Prisma__TripImageClient<runtime.Types.Result.GetResult<Prisma.$TripImagePayload<ExtArgs>, 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<T extends TripImageCountArgs>(
args?: Prisma.Subset<T, TripImageCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], TripImageCountAggregateOutputType>
: 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<T extends TripImageAggregateArgs>(args: Prisma.Subset<T, TripImageAggregateArgs>): Prisma.PrismaPromise<GetTripImageAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: TripImageGroupByArgs['orderBy'] }
: { orderBy?: TripImageGroupByArgs['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, TripImageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTripImageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
trip<T extends Prisma.TripDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TripDefaultArgs<ExtArgs>>): Prisma.Prisma__TripClient<runtime.Types.Result.GetResult<Prisma.$TripPayload<ExtArgs>, 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<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 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | null
/**
* Filter, which TripImage to fetch.
*/
where: Prisma.TripImageWhereUniqueInput
}
/**
* TripImage findUniqueOrThrow
*/
export type TripImageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | null
/**
* Filter, which TripImage to fetch.
*/
where: Prisma.TripImageWhereUniqueInput
}
/**
* TripImage findFirst
*/
export type TripImageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | null
/**
* The data needed to create a TripImage.
*/
data: Prisma.XOR<Prisma.TripImageCreateInput, Prisma.TripImageUncheckedCreateInput>
}
/**
* TripImage createMany
*/
export type TripImageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many TripImages.
*/
data: Prisma.TripImageCreateManyInput | Prisma.TripImageCreateManyInput[]
skipDuplicates?: boolean
}
/**
* TripImage createManyAndReturn
*/
export type TripImageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* TripImage update
*/
export type TripImageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | null
/**
* The data needed to update a TripImage.
*/
data: Prisma.XOR<Prisma.TripImageUpdateInput, Prisma.TripImageUncheckedUpdateInput>
/**
* Choose, which TripImage to update.
*/
where: Prisma.TripImageWhereUniqueInput
}
/**
* TripImage updateMany
*/
export type TripImageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update TripImages.
*/
data: Prisma.XOR<Prisma.TripImageUpdateManyMutationInput, Prisma.TripImageUncheckedUpdateManyInput>
/**
* Filter which TripImages to update
*/
where?: Prisma.TripImageWhereInput
/**
* Limit how many TripImages to update.
*/
limit?: number
}
/**
* TripImage updateManyAndReturn
*/
export type TripImageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* The data used to update TripImages.
*/
data: Prisma.XOR<Prisma.TripImageUpdateManyMutationInput, Prisma.TripImageUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* TripImage upsert
*/
export type TripImageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | 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<Prisma.TripImageCreateInput, Prisma.TripImageUncheckedCreateInput>
/**
* In case the TripImage was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.TripImageUpdateInput, Prisma.TripImageUncheckedUpdateInput>
}
/**
* TripImage delete
*/
export type TripImageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | null
/**
* Filter which TripImage to delete.
*/
where: Prisma.TripImageWhereUniqueInput
}
/**
* TripImage deleteMany
*/
export type TripImageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which TripImages to delete
*/
where?: Prisma.TripImageWhereInput
/**
* Limit how many TripImages to delete.
*/
limit?: number
}
/**
* TripImage without action
*/
export type TripImageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripImage
*/
select?: Prisma.TripImageSelect<ExtArgs> | null
/**
* Omit specific fields from the TripImage
*/
omit?: Prisma.TripImageOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripImageInclude<ExtArgs> | null
}