/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Trip` 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 Trip * */ export type TripModel = runtime.Types.Result.DefaultSelection export type AggregateTrip = { _count: TripCountAggregateOutputType | null _avg: TripAvgAggregateOutputType | null _sum: TripSumAggregateOutputType | null _min: TripMinAggregateOutputType | null _max: TripMaxAggregateOutputType | null } export type TripAvgAggregateOutputType = { maxParticipants: number | null price: number | null } export type TripSumAggregateOutputType = { maxParticipants: number | null price: number | null } export type TripMinAggregateOutputType = { id: string | null title: string | null description: string | null mountain: string | null location: string | null date: Date | null endDate: Date | null maxParticipants: number | null price: number | null status: $Enums.TripStatus | null createdAt: Date | null updatedAt: Date | null organizerId: string | null } export type TripMaxAggregateOutputType = { id: string | null title: string | null description: string | null mountain: string | null location: string | null date: Date | null endDate: Date | null maxParticipants: number | null price: number | null status: $Enums.TripStatus | null createdAt: Date | null updatedAt: Date | null organizerId: string | null } export type TripCountAggregateOutputType = { id: number title: number description: number mountain: number location: number date: number endDate: number maxParticipants: number price: number status: number createdAt: number updatedAt: number organizerId: number _all: number } export type TripAvgAggregateInputType = { maxParticipants?: true price?: true } export type TripSumAggregateInputType = { maxParticipants?: true price?: true } export type TripMinAggregateInputType = { id?: true title?: true description?: true mountain?: true location?: true date?: true endDate?: true maxParticipants?: true price?: true status?: true createdAt?: true updatedAt?: true organizerId?: true } export type TripMaxAggregateInputType = { id?: true title?: true description?: true mountain?: true location?: true date?: true endDate?: true maxParticipants?: true price?: true status?: true createdAt?: true updatedAt?: true organizerId?: true } export type TripCountAggregateInputType = { id?: true title?: true description?: true mountain?: true location?: true date?: true endDate?: true maxParticipants?: true price?: true status?: true createdAt?: true updatedAt?: true organizerId?: true _all?: true } export type TripAggregateArgs = { /** * Filter which Trip to aggregate. */ where?: Prisma.TripWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Trips to fetch. */ orderBy?: Prisma.TripOrderByWithRelationInput | Prisma.TripOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TripWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Trips 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` Trips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Trips **/ _count?: true | TripCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TripAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TripSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TripMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TripMaxAggregateInputType } export type GetTripAggregateType = { [P in keyof T & keyof AggregateTrip]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TripGroupByArgs = { where?: Prisma.TripWhereInput orderBy?: Prisma.TripOrderByWithAggregationInput | Prisma.TripOrderByWithAggregationInput[] by: Prisma.TripScalarFieldEnum[] | Prisma.TripScalarFieldEnum having?: Prisma.TripScalarWhereWithAggregatesInput take?: number skip?: number _count?: TripCountAggregateInputType | true _avg?: TripAvgAggregateInputType _sum?: TripSumAggregateInputType _min?: TripMinAggregateInputType _max?: TripMaxAggregateInputType } export type TripGroupByOutputType = { id: string title: string description: string | null mountain: string location: string date: Date endDate: Date | null maxParticipants: number price: number status: $Enums.TripStatus createdAt: Date updatedAt: Date organizerId: string _count: TripCountAggregateOutputType | null _avg: TripAvgAggregateOutputType | null _sum: TripSumAggregateOutputType | null _min: TripMinAggregateOutputType | null _max: TripMaxAggregateOutputType | null } export type GetTripGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TripGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TripWhereInput = { AND?: Prisma.TripWhereInput | Prisma.TripWhereInput[] OR?: Prisma.TripWhereInput[] NOT?: Prisma.TripWhereInput | Prisma.TripWhereInput[] id?: Prisma.StringFilter<"Trip"> | string title?: Prisma.StringFilter<"Trip"> | string description?: Prisma.StringNullableFilter<"Trip"> | string | null mountain?: Prisma.StringFilter<"Trip"> | string location?: Prisma.StringFilter<"Trip"> | string date?: Prisma.DateTimeFilter<"Trip"> | Date | string endDate?: Prisma.DateTimeNullableFilter<"Trip"> | Date | string | null maxParticipants?: Prisma.IntFilter<"Trip"> | number price?: Prisma.IntFilter<"Trip"> | number status?: Prisma.EnumTripStatusFilter<"Trip"> | $Enums.TripStatus createdAt?: Prisma.DateTimeFilter<"Trip"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Trip"> | Date | string organizerId?: Prisma.StringFilter<"Trip"> | string organizer?: Prisma.XOR participants?: Prisma.TripParticipantListRelationFilter images?: Prisma.TripImageListRelationFilter reviews?: Prisma.TripReviewListRelationFilter } export type TripOrderByWithRelationInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder mountain?: Prisma.SortOrder location?: Prisma.SortOrder date?: Prisma.SortOrder endDate?: Prisma.SortOrderInput | Prisma.SortOrder maxParticipants?: Prisma.SortOrder price?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder organizerId?: Prisma.SortOrder organizer?: Prisma.UserOrderByWithRelationInput participants?: Prisma.TripParticipantOrderByRelationAggregateInput images?: Prisma.TripImageOrderByRelationAggregateInput reviews?: Prisma.TripReviewOrderByRelationAggregateInput } export type TripWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.TripWhereInput | Prisma.TripWhereInput[] OR?: Prisma.TripWhereInput[] NOT?: Prisma.TripWhereInput | Prisma.TripWhereInput[] title?: Prisma.StringFilter<"Trip"> | string description?: Prisma.StringNullableFilter<"Trip"> | string | null mountain?: Prisma.StringFilter<"Trip"> | string location?: Prisma.StringFilter<"Trip"> | string date?: Prisma.DateTimeFilter<"Trip"> | Date | string endDate?: Prisma.DateTimeNullableFilter<"Trip"> | Date | string | null maxParticipants?: Prisma.IntFilter<"Trip"> | number price?: Prisma.IntFilter<"Trip"> | number status?: Prisma.EnumTripStatusFilter<"Trip"> | $Enums.TripStatus createdAt?: Prisma.DateTimeFilter<"Trip"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Trip"> | Date | string organizerId?: Prisma.StringFilter<"Trip"> | string organizer?: Prisma.XOR participants?: Prisma.TripParticipantListRelationFilter images?: Prisma.TripImageListRelationFilter reviews?: Prisma.TripReviewListRelationFilter }, "id"> export type TripOrderByWithAggregationInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder mountain?: Prisma.SortOrder location?: Prisma.SortOrder date?: Prisma.SortOrder endDate?: Prisma.SortOrderInput | Prisma.SortOrder maxParticipants?: Prisma.SortOrder price?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder organizerId?: Prisma.SortOrder _count?: Prisma.TripCountOrderByAggregateInput _avg?: Prisma.TripAvgOrderByAggregateInput _max?: Prisma.TripMaxOrderByAggregateInput _min?: Prisma.TripMinOrderByAggregateInput _sum?: Prisma.TripSumOrderByAggregateInput } export type TripScalarWhereWithAggregatesInput = { AND?: Prisma.TripScalarWhereWithAggregatesInput | Prisma.TripScalarWhereWithAggregatesInput[] OR?: Prisma.TripScalarWhereWithAggregatesInput[] NOT?: Prisma.TripScalarWhereWithAggregatesInput | Prisma.TripScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Trip"> | string title?: Prisma.StringWithAggregatesFilter<"Trip"> | string description?: Prisma.StringNullableWithAggregatesFilter<"Trip"> | string | null mountain?: Prisma.StringWithAggregatesFilter<"Trip"> | string location?: Prisma.StringWithAggregatesFilter<"Trip"> | string date?: Prisma.DateTimeWithAggregatesFilter<"Trip"> | Date | string endDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Trip"> | Date | string | null maxParticipants?: Prisma.IntWithAggregatesFilter<"Trip"> | number price?: Prisma.IntWithAggregatesFilter<"Trip"> | number status?: Prisma.EnumTripStatusWithAggregatesFilter<"Trip"> | $Enums.TripStatus createdAt?: Prisma.DateTimeWithAggregatesFilter<"Trip"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Trip"> | Date | string organizerId?: Prisma.StringWithAggregatesFilter<"Trip"> | string } export type TripCreateInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizer: Prisma.UserCreateNestedOneWithoutTripsInput participants?: Prisma.TripParticipantCreateNestedManyWithoutTripInput images?: Prisma.TripImageCreateNestedManyWithoutTripInput reviews?: Prisma.TripReviewCreateNestedManyWithoutTripInput } export type TripUncheckedCreateInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizerId: string participants?: Prisma.TripParticipantUncheckedCreateNestedManyWithoutTripInput images?: Prisma.TripImageUncheckedCreateNestedManyWithoutTripInput reviews?: Prisma.TripReviewUncheckedCreateNestedManyWithoutTripInput } export type TripUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizer?: Prisma.UserUpdateOneRequiredWithoutTripsNestedInput participants?: Prisma.TripParticipantUpdateManyWithoutTripNestedInput images?: Prisma.TripImageUpdateManyWithoutTripNestedInput reviews?: Prisma.TripReviewUpdateManyWithoutTripNestedInput } export type TripUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizerId?: Prisma.StringFieldUpdateOperationsInput | string participants?: Prisma.TripParticipantUncheckedUpdateManyWithoutTripNestedInput images?: Prisma.TripImageUncheckedUpdateManyWithoutTripNestedInput reviews?: Prisma.TripReviewUncheckedUpdateManyWithoutTripNestedInput } export type TripCreateManyInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizerId: string } export type TripUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type TripUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizerId?: Prisma.StringFieldUpdateOperationsInput | string } export type TripListRelationFilter = { every?: Prisma.TripWhereInput some?: Prisma.TripWhereInput none?: Prisma.TripWhereInput } export type TripOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type TripCountOrderByAggregateInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder mountain?: Prisma.SortOrder location?: Prisma.SortOrder date?: Prisma.SortOrder endDate?: Prisma.SortOrder maxParticipants?: Prisma.SortOrder price?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder organizerId?: Prisma.SortOrder } export type TripAvgOrderByAggregateInput = { maxParticipants?: Prisma.SortOrder price?: Prisma.SortOrder } export type TripMaxOrderByAggregateInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder mountain?: Prisma.SortOrder location?: Prisma.SortOrder date?: Prisma.SortOrder endDate?: Prisma.SortOrder maxParticipants?: Prisma.SortOrder price?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder organizerId?: Prisma.SortOrder } export type TripMinOrderByAggregateInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder mountain?: Prisma.SortOrder location?: Prisma.SortOrder date?: Prisma.SortOrder endDate?: Prisma.SortOrder maxParticipants?: Prisma.SortOrder price?: Prisma.SortOrder status?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder organizerId?: Prisma.SortOrder } export type TripSumOrderByAggregateInput = { maxParticipants?: Prisma.SortOrder price?: Prisma.SortOrder } export type TripScalarRelationFilter = { is?: Prisma.TripWhereInput isNot?: Prisma.TripWhereInput } export type TripCreateNestedManyWithoutOrganizerInput = { create?: Prisma.XOR | Prisma.TripCreateWithoutOrganizerInput[] | Prisma.TripUncheckedCreateWithoutOrganizerInput[] connectOrCreate?: Prisma.TripCreateOrConnectWithoutOrganizerInput | Prisma.TripCreateOrConnectWithoutOrganizerInput[] createMany?: Prisma.TripCreateManyOrganizerInputEnvelope connect?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] } export type TripUncheckedCreateNestedManyWithoutOrganizerInput = { create?: Prisma.XOR | Prisma.TripCreateWithoutOrganizerInput[] | Prisma.TripUncheckedCreateWithoutOrganizerInput[] connectOrCreate?: Prisma.TripCreateOrConnectWithoutOrganizerInput | Prisma.TripCreateOrConnectWithoutOrganizerInput[] createMany?: Prisma.TripCreateManyOrganizerInputEnvelope connect?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] } export type TripUpdateManyWithoutOrganizerNestedInput = { create?: Prisma.XOR | Prisma.TripCreateWithoutOrganizerInput[] | Prisma.TripUncheckedCreateWithoutOrganizerInput[] connectOrCreate?: Prisma.TripCreateOrConnectWithoutOrganizerInput | Prisma.TripCreateOrConnectWithoutOrganizerInput[] upsert?: Prisma.TripUpsertWithWhereUniqueWithoutOrganizerInput | Prisma.TripUpsertWithWhereUniqueWithoutOrganizerInput[] createMany?: Prisma.TripCreateManyOrganizerInputEnvelope set?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] disconnect?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] delete?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] connect?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] update?: Prisma.TripUpdateWithWhereUniqueWithoutOrganizerInput | Prisma.TripUpdateWithWhereUniqueWithoutOrganizerInput[] updateMany?: Prisma.TripUpdateManyWithWhereWithoutOrganizerInput | Prisma.TripUpdateManyWithWhereWithoutOrganizerInput[] deleteMany?: Prisma.TripScalarWhereInput | Prisma.TripScalarWhereInput[] } export type TripUncheckedUpdateManyWithoutOrganizerNestedInput = { create?: Prisma.XOR | Prisma.TripCreateWithoutOrganizerInput[] | Prisma.TripUncheckedCreateWithoutOrganizerInput[] connectOrCreate?: Prisma.TripCreateOrConnectWithoutOrganizerInput | Prisma.TripCreateOrConnectWithoutOrganizerInput[] upsert?: Prisma.TripUpsertWithWhereUniqueWithoutOrganizerInput | Prisma.TripUpsertWithWhereUniqueWithoutOrganizerInput[] createMany?: Prisma.TripCreateManyOrganizerInputEnvelope set?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] disconnect?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] delete?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] connect?: Prisma.TripWhereUniqueInput | Prisma.TripWhereUniqueInput[] update?: Prisma.TripUpdateWithWhereUniqueWithoutOrganizerInput | Prisma.TripUpdateWithWhereUniqueWithoutOrganizerInput[] updateMany?: Prisma.TripUpdateManyWithWhereWithoutOrganizerInput | Prisma.TripUpdateManyWithWhereWithoutOrganizerInput[] deleteMany?: Prisma.TripScalarWhereInput | Prisma.TripScalarWhereInput[] } export type NullableDateTimeFieldUpdateOperationsInput = { set?: Date | string | null } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type EnumTripStatusFieldUpdateOperationsInput = { set?: $Enums.TripStatus } export type TripCreateNestedOneWithoutReviewsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TripCreateOrConnectWithoutReviewsInput connect?: Prisma.TripWhereUniqueInput } export type TripUpdateOneRequiredWithoutReviewsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TripCreateOrConnectWithoutReviewsInput upsert?: Prisma.TripUpsertWithoutReviewsInput connect?: Prisma.TripWhereUniqueInput update?: Prisma.XOR, Prisma.TripUncheckedUpdateWithoutReviewsInput> } export type TripCreateNestedOneWithoutImagesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TripCreateOrConnectWithoutImagesInput connect?: Prisma.TripWhereUniqueInput } export type TripUpdateOneRequiredWithoutImagesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TripCreateOrConnectWithoutImagesInput upsert?: Prisma.TripUpsertWithoutImagesInput connect?: Prisma.TripWhereUniqueInput update?: Prisma.XOR, Prisma.TripUncheckedUpdateWithoutImagesInput> } export type TripCreateNestedOneWithoutParticipantsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TripCreateOrConnectWithoutParticipantsInput connect?: Prisma.TripWhereUniqueInput } export type TripUpdateOneRequiredWithoutParticipantsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TripCreateOrConnectWithoutParticipantsInput upsert?: Prisma.TripUpsertWithoutParticipantsInput connect?: Prisma.TripWhereUniqueInput update?: Prisma.XOR, Prisma.TripUncheckedUpdateWithoutParticipantsInput> } export type TripCreateWithoutOrganizerInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string participants?: Prisma.TripParticipantCreateNestedManyWithoutTripInput images?: Prisma.TripImageCreateNestedManyWithoutTripInput reviews?: Prisma.TripReviewCreateNestedManyWithoutTripInput } export type TripUncheckedCreateWithoutOrganizerInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string participants?: Prisma.TripParticipantUncheckedCreateNestedManyWithoutTripInput images?: Prisma.TripImageUncheckedCreateNestedManyWithoutTripInput reviews?: Prisma.TripReviewUncheckedCreateNestedManyWithoutTripInput } export type TripCreateOrConnectWithoutOrganizerInput = { where: Prisma.TripWhereUniqueInput create: Prisma.XOR } export type TripCreateManyOrganizerInputEnvelope = { data: Prisma.TripCreateManyOrganizerInput | Prisma.TripCreateManyOrganizerInput[] skipDuplicates?: boolean } export type TripUpsertWithWhereUniqueWithoutOrganizerInput = { where: Prisma.TripWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TripUpdateWithWhereUniqueWithoutOrganizerInput = { where: Prisma.TripWhereUniqueInput data: Prisma.XOR } export type TripUpdateManyWithWhereWithoutOrganizerInput = { where: Prisma.TripScalarWhereInput data: Prisma.XOR } export type TripScalarWhereInput = { AND?: Prisma.TripScalarWhereInput | Prisma.TripScalarWhereInput[] OR?: Prisma.TripScalarWhereInput[] NOT?: Prisma.TripScalarWhereInput | Prisma.TripScalarWhereInput[] id?: Prisma.StringFilter<"Trip"> | string title?: Prisma.StringFilter<"Trip"> | string description?: Prisma.StringNullableFilter<"Trip"> | string | null mountain?: Prisma.StringFilter<"Trip"> | string location?: Prisma.StringFilter<"Trip"> | string date?: Prisma.DateTimeFilter<"Trip"> | Date | string endDate?: Prisma.DateTimeNullableFilter<"Trip"> | Date | string | null maxParticipants?: Prisma.IntFilter<"Trip"> | number price?: Prisma.IntFilter<"Trip"> | number status?: Prisma.EnumTripStatusFilter<"Trip"> | $Enums.TripStatus createdAt?: Prisma.DateTimeFilter<"Trip"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Trip"> | Date | string organizerId?: Prisma.StringFilter<"Trip"> | string } export type TripCreateWithoutReviewsInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizer: Prisma.UserCreateNestedOneWithoutTripsInput participants?: Prisma.TripParticipantCreateNestedManyWithoutTripInput images?: Prisma.TripImageCreateNestedManyWithoutTripInput } export type TripUncheckedCreateWithoutReviewsInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizerId: string participants?: Prisma.TripParticipantUncheckedCreateNestedManyWithoutTripInput images?: Prisma.TripImageUncheckedCreateNestedManyWithoutTripInput } export type TripCreateOrConnectWithoutReviewsInput = { where: Prisma.TripWhereUniqueInput create: Prisma.XOR } export type TripUpsertWithoutReviewsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TripWhereInput } export type TripUpdateToOneWithWhereWithoutReviewsInput = { where?: Prisma.TripWhereInput data: Prisma.XOR } export type TripUpdateWithoutReviewsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizer?: Prisma.UserUpdateOneRequiredWithoutTripsNestedInput participants?: Prisma.TripParticipantUpdateManyWithoutTripNestedInput images?: Prisma.TripImageUpdateManyWithoutTripNestedInput } export type TripUncheckedUpdateWithoutReviewsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizerId?: Prisma.StringFieldUpdateOperationsInput | string participants?: Prisma.TripParticipantUncheckedUpdateManyWithoutTripNestedInput images?: Prisma.TripImageUncheckedUpdateManyWithoutTripNestedInput } export type TripCreateWithoutImagesInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizer: Prisma.UserCreateNestedOneWithoutTripsInput participants?: Prisma.TripParticipantCreateNestedManyWithoutTripInput reviews?: Prisma.TripReviewCreateNestedManyWithoutTripInput } export type TripUncheckedCreateWithoutImagesInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizerId: string participants?: Prisma.TripParticipantUncheckedCreateNestedManyWithoutTripInput reviews?: Prisma.TripReviewUncheckedCreateNestedManyWithoutTripInput } export type TripCreateOrConnectWithoutImagesInput = { where: Prisma.TripWhereUniqueInput create: Prisma.XOR } export type TripUpsertWithoutImagesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TripWhereInput } export type TripUpdateToOneWithWhereWithoutImagesInput = { where?: Prisma.TripWhereInput data: Prisma.XOR } export type TripUpdateWithoutImagesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizer?: Prisma.UserUpdateOneRequiredWithoutTripsNestedInput participants?: Prisma.TripParticipantUpdateManyWithoutTripNestedInput reviews?: Prisma.TripReviewUpdateManyWithoutTripNestedInput } export type TripUncheckedUpdateWithoutImagesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizerId?: Prisma.StringFieldUpdateOperationsInput | string participants?: Prisma.TripParticipantUncheckedUpdateManyWithoutTripNestedInput reviews?: Prisma.TripReviewUncheckedUpdateManyWithoutTripNestedInput } export type TripCreateWithoutParticipantsInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizer: Prisma.UserCreateNestedOneWithoutTripsInput images?: Prisma.TripImageCreateNestedManyWithoutTripInput reviews?: Prisma.TripReviewCreateNestedManyWithoutTripInput } export type TripUncheckedCreateWithoutParticipantsInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string organizerId: string images?: Prisma.TripImageUncheckedCreateNestedManyWithoutTripInput reviews?: Prisma.TripReviewUncheckedCreateNestedManyWithoutTripInput } export type TripCreateOrConnectWithoutParticipantsInput = { where: Prisma.TripWhereUniqueInput create: Prisma.XOR } export type TripUpsertWithoutParticipantsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TripWhereInput } export type TripUpdateToOneWithWhereWithoutParticipantsInput = { where?: Prisma.TripWhereInput data: Prisma.XOR } export type TripUpdateWithoutParticipantsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizer?: Prisma.UserUpdateOneRequiredWithoutTripsNestedInput images?: Prisma.TripImageUpdateManyWithoutTripNestedInput reviews?: Prisma.TripReviewUpdateManyWithoutTripNestedInput } export type TripUncheckedUpdateWithoutParticipantsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string organizerId?: Prisma.StringFieldUpdateOperationsInput | string images?: Prisma.TripImageUncheckedUpdateManyWithoutTripNestedInput reviews?: Prisma.TripReviewUncheckedUpdateManyWithoutTripNestedInput } export type TripCreateManyOrganizerInput = { id?: string title: string description?: string | null mountain: string location: string date: Date | string endDate?: Date | string | null maxParticipants: number price: number status?: $Enums.TripStatus createdAt?: Date | string updatedAt?: Date | string } export type TripUpdateWithoutOrganizerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string participants?: Prisma.TripParticipantUpdateManyWithoutTripNestedInput images?: Prisma.TripImageUpdateManyWithoutTripNestedInput reviews?: Prisma.TripReviewUpdateManyWithoutTripNestedInput } export type TripUncheckedUpdateWithoutOrganizerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string participants?: Prisma.TripParticipantUncheckedUpdateManyWithoutTripNestedInput images?: Prisma.TripImageUncheckedUpdateManyWithoutTripNestedInput reviews?: Prisma.TripReviewUncheckedUpdateManyWithoutTripNestedInput } export type TripUncheckedUpdateManyWithoutOrganizerInput = { id?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mountain?: Prisma.StringFieldUpdateOperationsInput | string location?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string endDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null maxParticipants?: Prisma.IntFieldUpdateOperationsInput | number price?: Prisma.IntFieldUpdateOperationsInput | number status?: Prisma.EnumTripStatusFieldUpdateOperationsInput | $Enums.TripStatus createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type TripCountOutputType */ export type TripCountOutputType = { participants: number images: number reviews: number } export type TripCountOutputTypeSelect = { participants?: boolean | TripCountOutputTypeCountParticipantsArgs images?: boolean | TripCountOutputTypeCountImagesArgs reviews?: boolean | TripCountOutputTypeCountReviewsArgs } /** * TripCountOutputType without action */ export type TripCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TripCountOutputType */ select?: Prisma.TripCountOutputTypeSelect | null } /** * TripCountOutputType without action */ export type TripCountOutputTypeCountParticipantsArgs = { where?: Prisma.TripParticipantWhereInput } /** * TripCountOutputType without action */ export type TripCountOutputTypeCountImagesArgs = { where?: Prisma.TripImageWhereInput } /** * TripCountOutputType without action */ export type TripCountOutputTypeCountReviewsArgs = { where?: Prisma.TripReviewWhereInput } export type TripSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean mountain?: boolean location?: boolean date?: boolean endDate?: boolean maxParticipants?: boolean price?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean organizerId?: boolean organizer?: boolean | Prisma.UserDefaultArgs participants?: boolean | Prisma.Trip$participantsArgs images?: boolean | Prisma.Trip$imagesArgs reviews?: boolean | Prisma.Trip$reviewsArgs _count?: boolean | Prisma.TripCountOutputTypeDefaultArgs }, ExtArgs["result"]["trip"]> export type TripSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean mountain?: boolean location?: boolean date?: boolean endDate?: boolean maxParticipants?: boolean price?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean organizerId?: boolean organizer?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["trip"]> export type TripSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean title?: boolean description?: boolean mountain?: boolean location?: boolean date?: boolean endDate?: boolean maxParticipants?: boolean price?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean organizerId?: boolean organizer?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["trip"]> export type TripSelectScalar = { id?: boolean title?: boolean description?: boolean mountain?: boolean location?: boolean date?: boolean endDate?: boolean maxParticipants?: boolean price?: boolean status?: boolean createdAt?: boolean updatedAt?: boolean organizerId?: boolean } export type TripOmit = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "mountain" | "location" | "date" | "endDate" | "maxParticipants" | "price" | "status" | "createdAt" | "updatedAt" | "organizerId", ExtArgs["result"]["trip"]> export type TripInclude = { organizer?: boolean | Prisma.UserDefaultArgs participants?: boolean | Prisma.Trip$participantsArgs images?: boolean | Prisma.Trip$imagesArgs reviews?: boolean | Prisma.Trip$reviewsArgs _count?: boolean | Prisma.TripCountOutputTypeDefaultArgs } export type TripIncludeCreateManyAndReturn = { organizer?: boolean | Prisma.UserDefaultArgs } export type TripIncludeUpdateManyAndReturn = { organizer?: boolean | Prisma.UserDefaultArgs } export type $TripPayload = { name: "Trip" objects: { organizer: Prisma.$UserPayload participants: Prisma.$TripParticipantPayload[] images: Prisma.$TripImagePayload[] reviews: Prisma.$TripReviewPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string title: string description: string | null mountain: string location: string date: Date endDate: Date | null maxParticipants: number price: number status: $Enums.TripStatus createdAt: Date updatedAt: Date organizerId: string }, ExtArgs["result"]["trip"]> composites: {} } export type TripGetPayload = runtime.Types.Result.GetResult export type TripCountArgs = Omit & { select?: TripCountAggregateInputType | true } export interface TripDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Trip'], meta: { name: 'Trip' } } /** * Find zero or one Trip that matches the filter. * @param {TripFindUniqueArgs} args - Arguments to find a Trip * @example * // Get one Trip * const trip = await prisma.trip.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TripClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Trip that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TripFindUniqueOrThrowArgs} args - Arguments to find a Trip * @example * // Get one Trip * const trip = await prisma.trip.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TripClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Trip 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 {TripFindFirstArgs} args - Arguments to find a Trip * @example * // Get one Trip * const trip = await prisma.trip.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TripClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Trip 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 {TripFindFirstOrThrowArgs} args - Arguments to find a Trip * @example * // Get one Trip * const trip = await prisma.trip.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TripClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Trips 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 {TripFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Trips * const trips = await prisma.trip.findMany() * * // Get first 10 Trips * const trips = await prisma.trip.findMany({ take: 10 }) * * // Only select the `id` * const tripWithIdOnly = await prisma.trip.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Trip. * @param {TripCreateArgs} args - Arguments to create a Trip. * @example * // Create one Trip * const Trip = await prisma.trip.create({ * data: { * // ... data to create a Trip * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TripClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Trips. * @param {TripCreateManyArgs} args - Arguments to create many Trips. * @example * // Create many Trips * const trip = await prisma.trip.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Trips and returns the data saved in the database. * @param {TripCreateManyAndReturnArgs} args - Arguments to create many Trips. * @example * // Create many Trips * const trip = await prisma.trip.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Trips and only return the `id` * const tripWithIdOnly = await prisma.trip.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Trip. * @param {TripDeleteArgs} args - Arguments to delete one Trip. * @example * // Delete one Trip * const Trip = await prisma.trip.delete({ * where: { * // ... filter to delete one Trip * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TripClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Trip. * @param {TripUpdateArgs} args - Arguments to update one Trip. * @example * // Update one Trip * const trip = await prisma.trip.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TripClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Trips. * @param {TripDeleteManyArgs} args - Arguments to filter Trips to delete. * @example * // Delete a few Trips * const { count } = await prisma.trip.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Trips. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TripUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Trips * const trip = await prisma.trip.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Trips and returns the data updated in the database. * @param {TripUpdateManyAndReturnArgs} args - Arguments to update many Trips. * @example * // Update many Trips * const trip = await prisma.trip.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Trips and only return the `id` * const tripWithIdOnly = await prisma.trip.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Trip. * @param {TripUpsertArgs} args - Arguments to update or create a Trip. * @example * // Update or create a Trip * const trip = await prisma.trip.upsert({ * create: { * // ... data to create a Trip * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Trip we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TripClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Trips. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TripCountArgs} args - Arguments to filter Trips to count. * @example * // Count the number of Trips * const count = await prisma.trip.count({ * where: { * // ... the filter for the Trips we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Trip. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TripAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Trip. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TripGroupByArgs} 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 TripGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TripGroupByArgs['orderBy'] } : { orderBy?: TripGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetTripGroupByPayload : Prisma.PrismaPromise /** * Fields of the Trip model */ readonly fields: TripFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Trip. * 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__TripClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" organizer = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> participants = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> images = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> reviews = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Trip model */ export interface TripFieldRefs { readonly id: Prisma.FieldRef<"Trip", 'String'> readonly title: Prisma.FieldRef<"Trip", 'String'> readonly description: Prisma.FieldRef<"Trip", 'String'> readonly mountain: Prisma.FieldRef<"Trip", 'String'> readonly location: Prisma.FieldRef<"Trip", 'String'> readonly date: Prisma.FieldRef<"Trip", 'DateTime'> readonly endDate: Prisma.FieldRef<"Trip", 'DateTime'> readonly maxParticipants: Prisma.FieldRef<"Trip", 'Int'> readonly price: Prisma.FieldRef<"Trip", 'Int'> readonly status: Prisma.FieldRef<"Trip", 'TripStatus'> readonly createdAt: Prisma.FieldRef<"Trip", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Trip", 'DateTime'> readonly organizerId: Prisma.FieldRef<"Trip", 'String'> } // Custom InputTypes /** * Trip findUnique */ export type TripFindUniqueArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * Filter, which Trip to fetch. */ where: Prisma.TripWhereUniqueInput } /** * Trip findUniqueOrThrow */ export type TripFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * Filter, which Trip to fetch. */ where: Prisma.TripWhereUniqueInput } /** * Trip findFirst */ export type TripFindFirstArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * Filter, which Trip to fetch. */ where?: Prisma.TripWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Trips to fetch. */ orderBy?: Prisma.TripOrderByWithRelationInput | Prisma.TripOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Trips. */ cursor?: Prisma.TripWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Trips 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` Trips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Trips. */ distinct?: Prisma.TripScalarFieldEnum | Prisma.TripScalarFieldEnum[] } /** * Trip findFirstOrThrow */ export type TripFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * Filter, which Trip to fetch. */ where?: Prisma.TripWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Trips to fetch. */ orderBy?: Prisma.TripOrderByWithRelationInput | Prisma.TripOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Trips. */ cursor?: Prisma.TripWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Trips 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` Trips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Trips. */ distinct?: Prisma.TripScalarFieldEnum | Prisma.TripScalarFieldEnum[] } /** * Trip findMany */ export type TripFindManyArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * Filter, which Trips to fetch. */ where?: Prisma.TripWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Trips to fetch. */ orderBy?: Prisma.TripOrderByWithRelationInput | Prisma.TripOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Trips. */ cursor?: Prisma.TripWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Trips 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` Trips. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Trips. */ distinct?: Prisma.TripScalarFieldEnum | Prisma.TripScalarFieldEnum[] } /** * Trip create */ export type TripCreateArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * The data needed to create a Trip. */ data: Prisma.XOR } /** * Trip createMany */ export type TripCreateManyArgs = { /** * The data used to create many Trips. */ data: Prisma.TripCreateManyInput | Prisma.TripCreateManyInput[] skipDuplicates?: boolean } /** * Trip createManyAndReturn */ export type TripCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelectCreateManyAndReturn | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * The data used to create many Trips. */ data: Prisma.TripCreateManyInput | Prisma.TripCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripIncludeCreateManyAndReturn | null } /** * Trip update */ export type TripUpdateArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * The data needed to update a Trip. */ data: Prisma.XOR /** * Choose, which Trip to update. */ where: Prisma.TripWhereUniqueInput } /** * Trip updateMany */ export type TripUpdateManyArgs = { /** * The data used to update Trips. */ data: Prisma.XOR /** * Filter which Trips to update */ where?: Prisma.TripWhereInput /** * Limit how many Trips to update. */ limit?: number } /** * Trip updateManyAndReturn */ export type TripUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelectUpdateManyAndReturn | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * The data used to update Trips. */ data: Prisma.XOR /** * Filter which Trips to update */ where?: Prisma.TripWhereInput /** * Limit how many Trips to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripIncludeUpdateManyAndReturn | null } /** * Trip upsert */ export type TripUpsertArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * The filter to search for the Trip to update in case it exists. */ where: Prisma.TripWhereUniqueInput /** * In case the Trip found by the `where` argument doesn't exist, create a new Trip with this data. */ create: Prisma.XOR /** * In case the Trip was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Trip delete */ export type TripDeleteArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null /** * Filter which Trip to delete. */ where: Prisma.TripWhereUniqueInput } /** * Trip deleteMany */ export type TripDeleteManyArgs = { /** * Filter which Trips to delete */ where?: Prisma.TripWhereInput /** * Limit how many Trips to delete. */ limit?: number } /** * Trip.participants */ export type Trip$participantsArgs = { /** * Select specific fields to fetch from the TripParticipant */ select?: Prisma.TripParticipantSelect | null /** * Omit specific fields from the TripParticipant */ omit?: Prisma.TripParticipantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripParticipantInclude | null where?: Prisma.TripParticipantWhereInput orderBy?: Prisma.TripParticipantOrderByWithRelationInput | Prisma.TripParticipantOrderByWithRelationInput[] cursor?: Prisma.TripParticipantWhereUniqueInput take?: number skip?: number distinct?: Prisma.TripParticipantScalarFieldEnum | Prisma.TripParticipantScalarFieldEnum[] } /** * Trip.images */ export type Trip$imagesArgs = { /** * Select specific fields to fetch from the TripImage */ select?: Prisma.TripImageSelect | null /** * Omit specific fields from the TripImage */ omit?: Prisma.TripImageOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripImageInclude | null where?: Prisma.TripImageWhereInput orderBy?: Prisma.TripImageOrderByWithRelationInput | Prisma.TripImageOrderByWithRelationInput[] cursor?: Prisma.TripImageWhereUniqueInput take?: number skip?: number distinct?: Prisma.TripImageScalarFieldEnum | Prisma.TripImageScalarFieldEnum[] } /** * Trip.reviews */ export type Trip$reviewsArgs = { /** * Select specific fields to fetch from the TripReview */ select?: Prisma.TripReviewSelect | null /** * Omit specific fields from the TripReview */ omit?: Prisma.TripReviewOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripReviewInclude | null where?: Prisma.TripReviewWhereInput orderBy?: Prisma.TripReviewOrderByWithRelationInput | Prisma.TripReviewOrderByWithRelationInput[] cursor?: Prisma.TripReviewWhereUniqueInput take?: number skip?: number distinct?: Prisma.TripReviewScalarFieldEnum | Prisma.TripReviewScalarFieldEnum[] } /** * Trip without action */ export type TripDefaultArgs = { /** * Select specific fields to fetch from the Trip */ select?: Prisma.TripSelect | null /** * Omit specific fields from the Trip */ omit?: Prisma.TripOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TripInclude | null }