1598 lines
60 KiB
TypeScript
1598 lines
60 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 `TripReview` 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 TripReview
|
|
*
|
|
*/
|
|
export type TripReviewModel = runtime.Types.Result.DefaultSelection<Prisma.$TripReviewPayload>
|
|
|
|
export type AggregateTripReview = {
|
|
_count: TripReviewCountAggregateOutputType | null
|
|
_avg: TripReviewAvgAggregateOutputType | null
|
|
_sum: TripReviewSumAggregateOutputType | null
|
|
_min: TripReviewMinAggregateOutputType | null
|
|
_max: TripReviewMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TripReviewAvgAggregateOutputType = {
|
|
rating: number | null
|
|
}
|
|
|
|
export type TripReviewSumAggregateOutputType = {
|
|
rating: number | null
|
|
}
|
|
|
|
export type TripReviewMinAggregateOutputType = {
|
|
id: string | null
|
|
rating: number | null
|
|
comment: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tripId: string | null
|
|
userId: string | null
|
|
}
|
|
|
|
export type TripReviewMaxAggregateOutputType = {
|
|
id: string | null
|
|
rating: number | null
|
|
comment: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tripId: string | null
|
|
userId: string | null
|
|
}
|
|
|
|
export type TripReviewCountAggregateOutputType = {
|
|
id: number
|
|
rating: number
|
|
comment: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tripId: number
|
|
userId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TripReviewAvgAggregateInputType = {
|
|
rating?: true
|
|
}
|
|
|
|
export type TripReviewSumAggregateInputType = {
|
|
rating?: true
|
|
}
|
|
|
|
export type TripReviewMinAggregateInputType = {
|
|
id?: true
|
|
rating?: true
|
|
comment?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tripId?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type TripReviewMaxAggregateInputType = {
|
|
id?: true
|
|
rating?: true
|
|
comment?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tripId?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type TripReviewCountAggregateInputType = {
|
|
id?: true
|
|
rating?: true
|
|
comment?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tripId?: true
|
|
userId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TripReviewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TripReview to aggregate.
|
|
*/
|
|
where?: Prisma.TripReviewWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TripReviews to fetch.
|
|
*/
|
|
orderBy?: Prisma.TripReviewOrderByWithRelationInput | Prisma.TripReviewOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.TripReviewWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TripReviews 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` TripReviews.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned TripReviews
|
|
**/
|
|
_count?: true | TripReviewCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: TripReviewAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: TripReviewSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TripReviewMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TripReviewMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTripReviewAggregateType<T extends TripReviewAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTripReview]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTripReview[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTripReview[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TripReviewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TripReviewWhereInput
|
|
orderBy?: Prisma.TripReviewOrderByWithAggregationInput | Prisma.TripReviewOrderByWithAggregationInput[]
|
|
by: Prisma.TripReviewScalarFieldEnum[] | Prisma.TripReviewScalarFieldEnum
|
|
having?: Prisma.TripReviewScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TripReviewCountAggregateInputType | true
|
|
_avg?: TripReviewAvgAggregateInputType
|
|
_sum?: TripReviewSumAggregateInputType
|
|
_min?: TripReviewMinAggregateInputType
|
|
_max?: TripReviewMaxAggregateInputType
|
|
}
|
|
|
|
export type TripReviewGroupByOutputType = {
|
|
id: string
|
|
rating: number
|
|
comment: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tripId: string
|
|
userId: string
|
|
_count: TripReviewCountAggregateOutputType | null
|
|
_avg: TripReviewAvgAggregateOutputType | null
|
|
_sum: TripReviewSumAggregateOutputType | null
|
|
_min: TripReviewMinAggregateOutputType | null
|
|
_max: TripReviewMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetTripReviewGroupByPayload<T extends TripReviewGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TripReviewGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TripReviewGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TripReviewGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TripReviewGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type TripReviewWhereInput = {
|
|
AND?: Prisma.TripReviewWhereInput | Prisma.TripReviewWhereInput[]
|
|
OR?: Prisma.TripReviewWhereInput[]
|
|
NOT?: Prisma.TripReviewWhereInput | Prisma.TripReviewWhereInput[]
|
|
id?: Prisma.StringFilter<"TripReview"> | string
|
|
rating?: Prisma.IntFilter<"TripReview"> | number
|
|
comment?: Prisma.StringNullableFilter<"TripReview"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"TripReview"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"TripReview"> | Date | string
|
|
tripId?: Prisma.StringFilter<"TripReview"> | string
|
|
userId?: Prisma.StringFilter<"TripReview"> | string
|
|
trip?: Prisma.XOR<Prisma.TripScalarRelationFilter, Prisma.TripWhereInput>
|
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
}
|
|
|
|
export type TripReviewOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
rating?: Prisma.SortOrder
|
|
comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tripId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
trip?: Prisma.TripOrderByWithRelationInput
|
|
user?: Prisma.UserOrderByWithRelationInput
|
|
}
|
|
|
|
export type TripReviewWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tripId_userId?: Prisma.TripReviewTripIdUserIdCompoundUniqueInput
|
|
AND?: Prisma.TripReviewWhereInput | Prisma.TripReviewWhereInput[]
|
|
OR?: Prisma.TripReviewWhereInput[]
|
|
NOT?: Prisma.TripReviewWhereInput | Prisma.TripReviewWhereInput[]
|
|
rating?: Prisma.IntFilter<"TripReview"> | number
|
|
comment?: Prisma.StringNullableFilter<"TripReview"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"TripReview"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"TripReview"> | Date | string
|
|
tripId?: Prisma.StringFilter<"TripReview"> | string
|
|
userId?: Prisma.StringFilter<"TripReview"> | string
|
|
trip?: Prisma.XOR<Prisma.TripScalarRelationFilter, Prisma.TripWhereInput>
|
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
}, "id" | "tripId_userId">
|
|
|
|
export type TripReviewOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
rating?: Prisma.SortOrder
|
|
comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tripId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
_count?: Prisma.TripReviewCountOrderByAggregateInput
|
|
_avg?: Prisma.TripReviewAvgOrderByAggregateInput
|
|
_max?: Prisma.TripReviewMaxOrderByAggregateInput
|
|
_min?: Prisma.TripReviewMinOrderByAggregateInput
|
|
_sum?: Prisma.TripReviewSumOrderByAggregateInput
|
|
}
|
|
|
|
export type TripReviewScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.TripReviewScalarWhereWithAggregatesInput | Prisma.TripReviewScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.TripReviewScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.TripReviewScalarWhereWithAggregatesInput | Prisma.TripReviewScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"TripReview"> | string
|
|
rating?: Prisma.IntWithAggregatesFilter<"TripReview"> | number
|
|
comment?: Prisma.StringNullableWithAggregatesFilter<"TripReview"> | string | null
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"TripReview"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"TripReview"> | Date | string
|
|
tripId?: Prisma.StringWithAggregatesFilter<"TripReview"> | string
|
|
userId?: Prisma.StringWithAggregatesFilter<"TripReview"> | string
|
|
}
|
|
|
|
export type TripReviewCreateInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
trip: Prisma.TripCreateNestedOneWithoutReviewsInput
|
|
user: Prisma.UserCreateNestedOneWithoutTripReviewsInput
|
|
}
|
|
|
|
export type TripReviewUncheckedCreateInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tripId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TripReviewUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
trip?: Prisma.TripUpdateOneRequiredWithoutReviewsNestedInput
|
|
user?: Prisma.UserUpdateOneRequiredWithoutTripReviewsNestedInput
|
|
}
|
|
|
|
export type TripReviewUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tripId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TripReviewCreateManyInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tripId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TripReviewUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type TripReviewUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tripId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TripReviewListRelationFilter = {
|
|
every?: Prisma.TripReviewWhereInput
|
|
some?: Prisma.TripReviewWhereInput
|
|
none?: Prisma.TripReviewWhereInput
|
|
}
|
|
|
|
export type TripReviewOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TripReviewTripIdUserIdCompoundUniqueInput = {
|
|
tripId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TripReviewCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
rating?: Prisma.SortOrder
|
|
comment?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tripId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TripReviewAvgOrderByAggregateInput = {
|
|
rating?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TripReviewMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
rating?: Prisma.SortOrder
|
|
comment?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tripId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TripReviewMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
rating?: Prisma.SortOrder
|
|
comment?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tripId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TripReviewSumOrderByAggregateInput = {
|
|
rating?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TripReviewCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.TripReviewCreateWithoutUserInput, Prisma.TripReviewUncheckedCreateWithoutUserInput> | Prisma.TripReviewCreateWithoutUserInput[] | Prisma.TripReviewUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.TripReviewCreateOrConnectWithoutUserInput | Prisma.TripReviewCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.TripReviewCreateManyUserInputEnvelope
|
|
connect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
}
|
|
|
|
export type TripReviewUncheckedCreateNestedManyWithoutUserInput = {
|
|
create?: Prisma.XOR<Prisma.TripReviewCreateWithoutUserInput, Prisma.TripReviewUncheckedCreateWithoutUserInput> | Prisma.TripReviewCreateWithoutUserInput[] | Prisma.TripReviewUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.TripReviewCreateOrConnectWithoutUserInput | Prisma.TripReviewCreateOrConnectWithoutUserInput[]
|
|
createMany?: Prisma.TripReviewCreateManyUserInputEnvelope
|
|
connect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
}
|
|
|
|
export type TripReviewUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TripReviewCreateWithoutUserInput, Prisma.TripReviewUncheckedCreateWithoutUserInput> | Prisma.TripReviewCreateWithoutUserInput[] | Prisma.TripReviewUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.TripReviewCreateOrConnectWithoutUserInput | Prisma.TripReviewCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.TripReviewUpsertWithWhereUniqueWithoutUserInput | Prisma.TripReviewUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.TripReviewCreateManyUserInputEnvelope
|
|
set?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
disconnect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
delete?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
connect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
update?: Prisma.TripReviewUpdateWithWhereUniqueWithoutUserInput | Prisma.TripReviewUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.TripReviewUpdateManyWithWhereWithoutUserInput | Prisma.TripReviewUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.TripReviewScalarWhereInput | Prisma.TripReviewScalarWhereInput[]
|
|
}
|
|
|
|
export type TripReviewUncheckedUpdateManyWithoutUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TripReviewCreateWithoutUserInput, Prisma.TripReviewUncheckedCreateWithoutUserInput> | Prisma.TripReviewCreateWithoutUserInput[] | Prisma.TripReviewUncheckedCreateWithoutUserInput[]
|
|
connectOrCreate?: Prisma.TripReviewCreateOrConnectWithoutUserInput | Prisma.TripReviewCreateOrConnectWithoutUserInput[]
|
|
upsert?: Prisma.TripReviewUpsertWithWhereUniqueWithoutUserInput | Prisma.TripReviewUpsertWithWhereUniqueWithoutUserInput[]
|
|
createMany?: Prisma.TripReviewCreateManyUserInputEnvelope
|
|
set?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
disconnect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
delete?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
connect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
update?: Prisma.TripReviewUpdateWithWhereUniqueWithoutUserInput | Prisma.TripReviewUpdateWithWhereUniqueWithoutUserInput[]
|
|
updateMany?: Prisma.TripReviewUpdateManyWithWhereWithoutUserInput | Prisma.TripReviewUpdateManyWithWhereWithoutUserInput[]
|
|
deleteMany?: Prisma.TripReviewScalarWhereInput | Prisma.TripReviewScalarWhereInput[]
|
|
}
|
|
|
|
export type TripReviewCreateNestedManyWithoutTripInput = {
|
|
create?: Prisma.XOR<Prisma.TripReviewCreateWithoutTripInput, Prisma.TripReviewUncheckedCreateWithoutTripInput> | Prisma.TripReviewCreateWithoutTripInput[] | Prisma.TripReviewUncheckedCreateWithoutTripInput[]
|
|
connectOrCreate?: Prisma.TripReviewCreateOrConnectWithoutTripInput | Prisma.TripReviewCreateOrConnectWithoutTripInput[]
|
|
createMany?: Prisma.TripReviewCreateManyTripInputEnvelope
|
|
connect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
}
|
|
|
|
export type TripReviewUncheckedCreateNestedManyWithoutTripInput = {
|
|
create?: Prisma.XOR<Prisma.TripReviewCreateWithoutTripInput, Prisma.TripReviewUncheckedCreateWithoutTripInput> | Prisma.TripReviewCreateWithoutTripInput[] | Prisma.TripReviewUncheckedCreateWithoutTripInput[]
|
|
connectOrCreate?: Prisma.TripReviewCreateOrConnectWithoutTripInput | Prisma.TripReviewCreateOrConnectWithoutTripInput[]
|
|
createMany?: Prisma.TripReviewCreateManyTripInputEnvelope
|
|
connect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
}
|
|
|
|
export type TripReviewUpdateManyWithoutTripNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TripReviewCreateWithoutTripInput, Prisma.TripReviewUncheckedCreateWithoutTripInput> | Prisma.TripReviewCreateWithoutTripInput[] | Prisma.TripReviewUncheckedCreateWithoutTripInput[]
|
|
connectOrCreate?: Prisma.TripReviewCreateOrConnectWithoutTripInput | Prisma.TripReviewCreateOrConnectWithoutTripInput[]
|
|
upsert?: Prisma.TripReviewUpsertWithWhereUniqueWithoutTripInput | Prisma.TripReviewUpsertWithWhereUniqueWithoutTripInput[]
|
|
createMany?: Prisma.TripReviewCreateManyTripInputEnvelope
|
|
set?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
disconnect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
delete?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
connect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
update?: Prisma.TripReviewUpdateWithWhereUniqueWithoutTripInput | Prisma.TripReviewUpdateWithWhereUniqueWithoutTripInput[]
|
|
updateMany?: Prisma.TripReviewUpdateManyWithWhereWithoutTripInput | Prisma.TripReviewUpdateManyWithWhereWithoutTripInput[]
|
|
deleteMany?: Prisma.TripReviewScalarWhereInput | Prisma.TripReviewScalarWhereInput[]
|
|
}
|
|
|
|
export type TripReviewUncheckedUpdateManyWithoutTripNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TripReviewCreateWithoutTripInput, Prisma.TripReviewUncheckedCreateWithoutTripInput> | Prisma.TripReviewCreateWithoutTripInput[] | Prisma.TripReviewUncheckedCreateWithoutTripInput[]
|
|
connectOrCreate?: Prisma.TripReviewCreateOrConnectWithoutTripInput | Prisma.TripReviewCreateOrConnectWithoutTripInput[]
|
|
upsert?: Prisma.TripReviewUpsertWithWhereUniqueWithoutTripInput | Prisma.TripReviewUpsertWithWhereUniqueWithoutTripInput[]
|
|
createMany?: Prisma.TripReviewCreateManyTripInputEnvelope
|
|
set?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
disconnect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
delete?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
connect?: Prisma.TripReviewWhereUniqueInput | Prisma.TripReviewWhereUniqueInput[]
|
|
update?: Prisma.TripReviewUpdateWithWhereUniqueWithoutTripInput | Prisma.TripReviewUpdateWithWhereUniqueWithoutTripInput[]
|
|
updateMany?: Prisma.TripReviewUpdateManyWithWhereWithoutTripInput | Prisma.TripReviewUpdateManyWithWhereWithoutTripInput[]
|
|
deleteMany?: Prisma.TripReviewScalarWhereInput | Prisma.TripReviewScalarWhereInput[]
|
|
}
|
|
|
|
export type TripReviewCreateWithoutUserInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
trip: Prisma.TripCreateNestedOneWithoutReviewsInput
|
|
}
|
|
|
|
export type TripReviewUncheckedCreateWithoutUserInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tripId: string
|
|
}
|
|
|
|
export type TripReviewCreateOrConnectWithoutUserInput = {
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TripReviewCreateWithoutUserInput, Prisma.TripReviewUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type TripReviewCreateManyUserInputEnvelope = {
|
|
data: Prisma.TripReviewCreateManyUserInput | Prisma.TripReviewCreateManyUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TripReviewUpsertWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TripReviewUpdateWithoutUserInput, Prisma.TripReviewUncheckedUpdateWithoutUserInput>
|
|
create: Prisma.XOR<Prisma.TripReviewCreateWithoutUserInput, Prisma.TripReviewUncheckedCreateWithoutUserInput>
|
|
}
|
|
|
|
export type TripReviewUpdateWithWhereUniqueWithoutUserInput = {
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TripReviewUpdateWithoutUserInput, Prisma.TripReviewUncheckedUpdateWithoutUserInput>
|
|
}
|
|
|
|
export type TripReviewUpdateManyWithWhereWithoutUserInput = {
|
|
where: Prisma.TripReviewScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TripReviewUpdateManyMutationInput, Prisma.TripReviewUncheckedUpdateManyWithoutUserInput>
|
|
}
|
|
|
|
export type TripReviewScalarWhereInput = {
|
|
AND?: Prisma.TripReviewScalarWhereInput | Prisma.TripReviewScalarWhereInput[]
|
|
OR?: Prisma.TripReviewScalarWhereInput[]
|
|
NOT?: Prisma.TripReviewScalarWhereInput | Prisma.TripReviewScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"TripReview"> | string
|
|
rating?: Prisma.IntFilter<"TripReview"> | number
|
|
comment?: Prisma.StringNullableFilter<"TripReview"> | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"TripReview"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"TripReview"> | Date | string
|
|
tripId?: Prisma.StringFilter<"TripReview"> | string
|
|
userId?: Prisma.StringFilter<"TripReview"> | string
|
|
}
|
|
|
|
export type TripReviewCreateWithoutTripInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
user: Prisma.UserCreateNestedOneWithoutTripReviewsInput
|
|
}
|
|
|
|
export type TripReviewUncheckedCreateWithoutTripInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
userId: string
|
|
}
|
|
|
|
export type TripReviewCreateOrConnectWithoutTripInput = {
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TripReviewCreateWithoutTripInput, Prisma.TripReviewUncheckedCreateWithoutTripInput>
|
|
}
|
|
|
|
export type TripReviewCreateManyTripInputEnvelope = {
|
|
data: Prisma.TripReviewCreateManyTripInput | Prisma.TripReviewCreateManyTripInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TripReviewUpsertWithWhereUniqueWithoutTripInput = {
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TripReviewUpdateWithoutTripInput, Prisma.TripReviewUncheckedUpdateWithoutTripInput>
|
|
create: Prisma.XOR<Prisma.TripReviewCreateWithoutTripInput, Prisma.TripReviewUncheckedCreateWithoutTripInput>
|
|
}
|
|
|
|
export type TripReviewUpdateWithWhereUniqueWithoutTripInput = {
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TripReviewUpdateWithoutTripInput, Prisma.TripReviewUncheckedUpdateWithoutTripInput>
|
|
}
|
|
|
|
export type TripReviewUpdateManyWithWhereWithoutTripInput = {
|
|
where: Prisma.TripReviewScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TripReviewUpdateManyMutationInput, Prisma.TripReviewUncheckedUpdateManyWithoutTripInput>
|
|
}
|
|
|
|
export type TripReviewCreateManyUserInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tripId: string
|
|
}
|
|
|
|
export type TripReviewUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
trip?: Prisma.TripUpdateOneRequiredWithoutReviewsNestedInput
|
|
}
|
|
|
|
export type TripReviewUncheckedUpdateWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tripId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TripReviewUncheckedUpdateManyWithoutUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tripId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TripReviewCreateManyTripInput = {
|
|
id?: string
|
|
rating: number
|
|
comment?: string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
userId: string
|
|
}
|
|
|
|
export type TripReviewUpdateWithoutTripInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
user?: Prisma.UserUpdateOneRequiredWithoutTripReviewsNestedInput
|
|
}
|
|
|
|
export type TripReviewUncheckedUpdateWithoutTripInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TripReviewUncheckedUpdateManyWithoutTripInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
rating?: Prisma.IntFieldUpdateOperationsInput | number
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type TripReviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
rating?: boolean
|
|
comment?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tripId?: boolean
|
|
userId?: boolean
|
|
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["tripReview"]>
|
|
|
|
export type TripReviewSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
rating?: boolean
|
|
comment?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tripId?: boolean
|
|
userId?: boolean
|
|
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["tripReview"]>
|
|
|
|
export type TripReviewSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
rating?: boolean
|
|
comment?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tripId?: boolean
|
|
userId?: boolean
|
|
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["tripReview"]>
|
|
|
|
export type TripReviewSelectScalar = {
|
|
id?: boolean
|
|
rating?: boolean
|
|
comment?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tripId?: boolean
|
|
userId?: boolean
|
|
}
|
|
|
|
export type TripReviewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "rating" | "comment" | "createdAt" | "updatedAt" | "tripId" | "userId", ExtArgs["result"]["tripReview"]>
|
|
export type TripReviewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type TripReviewIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}
|
|
export type TripReviewIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
|
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TripReviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "TripReview"
|
|
objects: {
|
|
trip: Prisma.$TripPayload<ExtArgs>
|
|
user: Prisma.$UserPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
rating: number
|
|
comment: string | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tripId: string
|
|
userId: string
|
|
}, ExtArgs["result"]["tripReview"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type TripReviewGetPayload<S extends boolean | null | undefined | TripReviewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TripReviewPayload, S>
|
|
|
|
export type TripReviewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<TripReviewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TripReviewCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TripReviewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TripReview'], meta: { name: 'TripReview' } }
|
|
/**
|
|
* Find zero or one TripReview that matches the filter.
|
|
* @param {TripReviewFindUniqueArgs} args - Arguments to find a TripReview
|
|
* @example
|
|
* // Get one TripReview
|
|
* const tripReview = await prisma.tripReview.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TripReviewFindUniqueArgs>(args: Prisma.SelectSubset<T, TripReviewFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TripReviewClient<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one TripReview that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TripReviewFindUniqueOrThrowArgs} args - Arguments to find a TripReview
|
|
* @example
|
|
* // Get one TripReview
|
|
* const tripReview = await prisma.tripReview.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TripReviewFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TripReviewFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TripReviewClient<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TripReview 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 {TripReviewFindFirstArgs} args - Arguments to find a TripReview
|
|
* @example
|
|
* // Get one TripReview
|
|
* const tripReview = await prisma.tripReview.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TripReviewFindFirstArgs>(args?: Prisma.SelectSubset<T, TripReviewFindFirstArgs<ExtArgs>>): Prisma.Prisma__TripReviewClient<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TripReview 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 {TripReviewFindFirstOrThrowArgs} args - Arguments to find a TripReview
|
|
* @example
|
|
* // Get one TripReview
|
|
* const tripReview = await prisma.tripReview.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TripReviewFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TripReviewFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TripReviewClient<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more TripReviews 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 {TripReviewFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all TripReviews
|
|
* const tripReviews = await prisma.tripReview.findMany()
|
|
*
|
|
* // Get first 10 TripReviews
|
|
* const tripReviews = await prisma.tripReview.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const tripReviewWithIdOnly = await prisma.tripReview.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TripReviewFindManyArgs>(args?: Prisma.SelectSubset<T, TripReviewFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a TripReview.
|
|
* @param {TripReviewCreateArgs} args - Arguments to create a TripReview.
|
|
* @example
|
|
* // Create one TripReview
|
|
* const TripReview = await prisma.tripReview.create({
|
|
* data: {
|
|
* // ... data to create a TripReview
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TripReviewCreateArgs>(args: Prisma.SelectSubset<T, TripReviewCreateArgs<ExtArgs>>): Prisma.Prisma__TripReviewClient<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many TripReviews.
|
|
* @param {TripReviewCreateManyArgs} args - Arguments to create many TripReviews.
|
|
* @example
|
|
* // Create many TripReviews
|
|
* const tripReview = await prisma.tripReview.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TripReviewCreateManyArgs>(args?: Prisma.SelectSubset<T, TripReviewCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many TripReviews and returns the data saved in the database.
|
|
* @param {TripReviewCreateManyAndReturnArgs} args - Arguments to create many TripReviews.
|
|
* @example
|
|
* // Create many TripReviews
|
|
* const tripReview = await prisma.tripReview.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many TripReviews and only return the `id`
|
|
* const tripReviewWithIdOnly = await prisma.tripReview.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 TripReviewCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TripReviewCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a TripReview.
|
|
* @param {TripReviewDeleteArgs} args - Arguments to delete one TripReview.
|
|
* @example
|
|
* // Delete one TripReview
|
|
* const TripReview = await prisma.tripReview.delete({
|
|
* where: {
|
|
* // ... filter to delete one TripReview
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TripReviewDeleteArgs>(args: Prisma.SelectSubset<T, TripReviewDeleteArgs<ExtArgs>>): Prisma.Prisma__TripReviewClient<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one TripReview.
|
|
* @param {TripReviewUpdateArgs} args - Arguments to update one TripReview.
|
|
* @example
|
|
* // Update one TripReview
|
|
* const tripReview = await prisma.tripReview.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TripReviewUpdateArgs>(args: Prisma.SelectSubset<T, TripReviewUpdateArgs<ExtArgs>>): Prisma.Prisma__TripReviewClient<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more TripReviews.
|
|
* @param {TripReviewDeleteManyArgs} args - Arguments to filter TripReviews to delete.
|
|
* @example
|
|
* // Delete a few TripReviews
|
|
* const { count } = await prisma.tripReview.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TripReviewDeleteManyArgs>(args?: Prisma.SelectSubset<T, TripReviewDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TripReviews.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TripReviewUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many TripReviews
|
|
* const tripReview = await prisma.tripReview.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TripReviewUpdateManyArgs>(args: Prisma.SelectSubset<T, TripReviewUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TripReviews and returns the data updated in the database.
|
|
* @param {TripReviewUpdateManyAndReturnArgs} args - Arguments to update many TripReviews.
|
|
* @example
|
|
* // Update many TripReviews
|
|
* const tripReview = await prisma.tripReview.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more TripReviews and only return the `id`
|
|
* const tripReviewWithIdOnly = await prisma.tripReview.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 TripReviewUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TripReviewUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one TripReview.
|
|
* @param {TripReviewUpsertArgs} args - Arguments to update or create a TripReview.
|
|
* @example
|
|
* // Update or create a TripReview
|
|
* const tripReview = await prisma.tripReview.upsert({
|
|
* create: {
|
|
* // ... data to create a TripReview
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the TripReview we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TripReviewUpsertArgs>(args: Prisma.SelectSubset<T, TripReviewUpsertArgs<ExtArgs>>): Prisma.Prisma__TripReviewClient<runtime.Types.Result.GetResult<Prisma.$TripReviewPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of TripReviews.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TripReviewCountArgs} args - Arguments to filter TripReviews to count.
|
|
* @example
|
|
* // Count the number of TripReviews
|
|
* const count = await prisma.tripReview.count({
|
|
* where: {
|
|
* // ... the filter for the TripReviews we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TripReviewCountArgs>(
|
|
args?: Prisma.Subset<T, TripReviewCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TripReviewCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a TripReview.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TripReviewAggregateArgs} 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 TripReviewAggregateArgs>(args: Prisma.Subset<T, TripReviewAggregateArgs>): Prisma.PrismaPromise<GetTripReviewAggregateType<T>>
|
|
|
|
/**
|
|
* Group by TripReview.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TripReviewGroupByArgs} 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 TripReviewGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: TripReviewGroupByArgs['orderBy'] }
|
|
: { orderBy?: TripReviewGroupByArgs['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, TripReviewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTripReviewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the TripReview model
|
|
*/
|
|
readonly fields: TripReviewFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for TripReview.
|
|
* 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__TripReviewClient<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>
|
|
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<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 TripReview model
|
|
*/
|
|
export interface TripReviewFieldRefs {
|
|
readonly id: Prisma.FieldRef<"TripReview", 'String'>
|
|
readonly rating: Prisma.FieldRef<"TripReview", 'Int'>
|
|
readonly comment: Prisma.FieldRef<"TripReview", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"TripReview", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"TripReview", 'DateTime'>
|
|
readonly tripId: Prisma.FieldRef<"TripReview", 'String'>
|
|
readonly userId: Prisma.FieldRef<"TripReview", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TripReview findUnique
|
|
*/
|
|
export type TripReviewFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TripReview to fetch.
|
|
*/
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TripReview findUniqueOrThrow
|
|
*/
|
|
export type TripReviewFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TripReview to fetch.
|
|
*/
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TripReview findFirst
|
|
*/
|
|
export type TripReviewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TripReview to fetch.
|
|
*/
|
|
where?: Prisma.TripReviewWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TripReviews to fetch.
|
|
*/
|
|
orderBy?: Prisma.TripReviewOrderByWithRelationInput | Prisma.TripReviewOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TripReviews.
|
|
*/
|
|
cursor?: Prisma.TripReviewWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TripReviews 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` TripReviews.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TripReviews.
|
|
*/
|
|
distinct?: Prisma.TripReviewScalarFieldEnum | Prisma.TripReviewScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TripReview findFirstOrThrow
|
|
*/
|
|
export type TripReviewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TripReview to fetch.
|
|
*/
|
|
where?: Prisma.TripReviewWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TripReviews to fetch.
|
|
*/
|
|
orderBy?: Prisma.TripReviewOrderByWithRelationInput | Prisma.TripReviewOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TripReviews.
|
|
*/
|
|
cursor?: Prisma.TripReviewWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TripReviews 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` TripReviews.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TripReviews.
|
|
*/
|
|
distinct?: Prisma.TripReviewScalarFieldEnum | Prisma.TripReviewScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TripReview findMany
|
|
*/
|
|
export type TripReviewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TripReviews to fetch.
|
|
*/
|
|
where?: Prisma.TripReviewWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TripReviews to fetch.
|
|
*/
|
|
orderBy?: Prisma.TripReviewOrderByWithRelationInput | Prisma.TripReviewOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing TripReviews.
|
|
*/
|
|
cursor?: Prisma.TripReviewWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TripReviews 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` TripReviews.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TripReviews.
|
|
*/
|
|
distinct?: Prisma.TripReviewScalarFieldEnum | Prisma.TripReviewScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TripReview create
|
|
*/
|
|
export type TripReviewCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TripReview.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TripReviewCreateInput, Prisma.TripReviewUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TripReview createMany
|
|
*/
|
|
export type TripReviewCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TripReviews.
|
|
*/
|
|
data: Prisma.TripReviewCreateManyInput | Prisma.TripReviewCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TripReview createManyAndReturn
|
|
*/
|
|
export type TripReviewCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many TripReviews.
|
|
*/
|
|
data: Prisma.TripReviewCreateManyInput | Prisma.TripReviewCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TripReview update
|
|
*/
|
|
export type TripReviewUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TripReview.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TripReviewUpdateInput, Prisma.TripReviewUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TripReview to update.
|
|
*/
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TripReview updateMany
|
|
*/
|
|
export type TripReviewUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TripReviews.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TripReviewUpdateManyMutationInput, Prisma.TripReviewUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TripReviews to update
|
|
*/
|
|
where?: Prisma.TripReviewWhereInput
|
|
/**
|
|
* Limit how many TripReviews to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TripReview updateManyAndReturn
|
|
*/
|
|
export type TripReviewUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update TripReviews.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TripReviewUpdateManyMutationInput, Prisma.TripReviewUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TripReviews to update
|
|
*/
|
|
where?: Prisma.TripReviewWhereInput
|
|
/**
|
|
* Limit how many TripReviews to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TripReview upsert
|
|
*/
|
|
export type TripReviewUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the TripReview to update in case it exists.
|
|
*/
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
/**
|
|
* In case the TripReview found by the `where` argument doesn't exist, create a new TripReview with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.TripReviewCreateInput, Prisma.TripReviewUncheckedCreateInput>
|
|
/**
|
|
* In case the TripReview was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.TripReviewUpdateInput, Prisma.TripReviewUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TripReview delete
|
|
*/
|
|
export type TripReviewDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TripReview to delete.
|
|
*/
|
|
where: Prisma.TripReviewWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TripReview deleteMany
|
|
*/
|
|
export type TripReviewDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TripReviews to delete
|
|
*/
|
|
where?: Prisma.TripReviewWhereInput
|
|
/**
|
|
* Limit how many TripReviews to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TripReview without action
|
|
*/
|
|
export type TripReviewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TripReview
|
|
*/
|
|
select?: Prisma.TripReviewSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TripReview
|
|
*/
|
|
omit?: Prisma.TripReviewOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TripReviewInclude<ExtArgs> | null
|
|
}
|