Files
setrip/app/generated/prisma/models/TripParticipant.ts
T

1564 lines
64 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 `TripParticipant` 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 TripParticipant
*
*/
export type TripParticipantModel = runtime.Types.Result.DefaultSelection<Prisma.$TripParticipantPayload>
export type AggregateTripParticipant = {
_count: TripParticipantCountAggregateOutputType | null
_min: TripParticipantMinAggregateOutputType | null
_max: TripParticipantMaxAggregateOutputType | null
}
export type TripParticipantMinAggregateOutputType = {
id: string | null
status: $Enums.ParticipantStatus | null
createdAt: Date | null
markedPaidAt: Date | null
paymentConfirmedAt: Date | null
tripId: string | null
userId: string | null
}
export type TripParticipantMaxAggregateOutputType = {
id: string | null
status: $Enums.ParticipantStatus | null
createdAt: Date | null
markedPaidAt: Date | null
paymentConfirmedAt: Date | null
tripId: string | null
userId: string | null
}
export type TripParticipantCountAggregateOutputType = {
id: number
status: number
createdAt: number
markedPaidAt: number
paymentConfirmedAt: number
tripId: number
userId: number
_all: number
}
export type TripParticipantMinAggregateInputType = {
id?: true
status?: true
createdAt?: true
markedPaidAt?: true
paymentConfirmedAt?: true
tripId?: true
userId?: true
}
export type TripParticipantMaxAggregateInputType = {
id?: true
status?: true
createdAt?: true
markedPaidAt?: true
paymentConfirmedAt?: true
tripId?: true
userId?: true
}
export type TripParticipantCountAggregateInputType = {
id?: true
status?: true
createdAt?: true
markedPaidAt?: true
paymentConfirmedAt?: true
tripId?: true
userId?: true
_all?: true
}
export type TripParticipantAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which TripParticipant to aggregate.
*/
where?: Prisma.TripParticipantWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TripParticipants to fetch.
*/
orderBy?: Prisma.TripParticipantOrderByWithRelationInput | Prisma.TripParticipantOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.TripParticipantWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TripParticipants 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` TripParticipants.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned TripParticipants
**/
_count?: true | TripParticipantCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: TripParticipantMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: TripParticipantMaxAggregateInputType
}
export type GetTripParticipantAggregateType<T extends TripParticipantAggregateArgs> = {
[P in keyof T & keyof AggregateTripParticipant]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateTripParticipant[P]>
: Prisma.GetScalarType<T[P], AggregateTripParticipant[P]>
}
export type TripParticipantGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TripParticipantWhereInput
orderBy?: Prisma.TripParticipantOrderByWithAggregationInput | Prisma.TripParticipantOrderByWithAggregationInput[]
by: Prisma.TripParticipantScalarFieldEnum[] | Prisma.TripParticipantScalarFieldEnum
having?: Prisma.TripParticipantScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: TripParticipantCountAggregateInputType | true
_min?: TripParticipantMinAggregateInputType
_max?: TripParticipantMaxAggregateInputType
}
export type TripParticipantGroupByOutputType = {
id: string
status: $Enums.ParticipantStatus
createdAt: Date
markedPaidAt: Date | null
paymentConfirmedAt: Date | null
tripId: string
userId: string
_count: TripParticipantCountAggregateOutputType | null
_min: TripParticipantMinAggregateOutputType | null
_max: TripParticipantMaxAggregateOutputType | null
}
export type GetTripParticipantGroupByPayload<T extends TripParticipantGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<TripParticipantGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TripParticipantGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], TripParticipantGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], TripParticipantGroupByOutputType[P]>
}
>
>
export type TripParticipantWhereInput = {
AND?: Prisma.TripParticipantWhereInput | Prisma.TripParticipantWhereInput[]
OR?: Prisma.TripParticipantWhereInput[]
NOT?: Prisma.TripParticipantWhereInput | Prisma.TripParticipantWhereInput[]
id?: Prisma.StringFilter<"TripParticipant"> | string
status?: Prisma.EnumParticipantStatusFilter<"TripParticipant"> | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFilter<"TripParticipant"> | Date | string
markedPaidAt?: Prisma.DateTimeNullableFilter<"TripParticipant"> | Date | string | null
paymentConfirmedAt?: Prisma.DateTimeNullableFilter<"TripParticipant"> | Date | string | null
tripId?: Prisma.StringFilter<"TripParticipant"> | string
userId?: Prisma.StringFilter<"TripParticipant"> | string
trip?: Prisma.XOR<Prisma.TripScalarRelationFilter, Prisma.TripWhereInput>
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}
export type TripParticipantOrderByWithRelationInput = {
id?: Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
markedPaidAt?: Prisma.SortOrderInput | Prisma.SortOrder
paymentConfirmedAt?: Prisma.SortOrderInput | Prisma.SortOrder
tripId?: Prisma.SortOrder
userId?: Prisma.SortOrder
trip?: Prisma.TripOrderByWithRelationInput
user?: Prisma.UserOrderByWithRelationInput
}
export type TripParticipantWhereUniqueInput = Prisma.AtLeast<{
id?: string
tripId_userId?: Prisma.TripParticipantTripIdUserIdCompoundUniqueInput
AND?: Prisma.TripParticipantWhereInput | Prisma.TripParticipantWhereInput[]
OR?: Prisma.TripParticipantWhereInput[]
NOT?: Prisma.TripParticipantWhereInput | Prisma.TripParticipantWhereInput[]
status?: Prisma.EnumParticipantStatusFilter<"TripParticipant"> | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFilter<"TripParticipant"> | Date | string
markedPaidAt?: Prisma.DateTimeNullableFilter<"TripParticipant"> | Date | string | null
paymentConfirmedAt?: Prisma.DateTimeNullableFilter<"TripParticipant"> | Date | string | null
tripId?: Prisma.StringFilter<"TripParticipant"> | string
userId?: Prisma.StringFilter<"TripParticipant"> | string
trip?: Prisma.XOR<Prisma.TripScalarRelationFilter, Prisma.TripWhereInput>
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id" | "tripId_userId">
export type TripParticipantOrderByWithAggregationInput = {
id?: Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
markedPaidAt?: Prisma.SortOrderInput | Prisma.SortOrder
paymentConfirmedAt?: Prisma.SortOrderInput | Prisma.SortOrder
tripId?: Prisma.SortOrder
userId?: Prisma.SortOrder
_count?: Prisma.TripParticipantCountOrderByAggregateInput
_max?: Prisma.TripParticipantMaxOrderByAggregateInput
_min?: Prisma.TripParticipantMinOrderByAggregateInput
}
export type TripParticipantScalarWhereWithAggregatesInput = {
AND?: Prisma.TripParticipantScalarWhereWithAggregatesInput | Prisma.TripParticipantScalarWhereWithAggregatesInput[]
OR?: Prisma.TripParticipantScalarWhereWithAggregatesInput[]
NOT?: Prisma.TripParticipantScalarWhereWithAggregatesInput | Prisma.TripParticipantScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"TripParticipant"> | string
status?: Prisma.EnumParticipantStatusWithAggregatesFilter<"TripParticipant"> | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeWithAggregatesFilter<"TripParticipant"> | Date | string
markedPaidAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TripParticipant"> | Date | string | null
paymentConfirmedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TripParticipant"> | Date | string | null
tripId?: Prisma.StringWithAggregatesFilter<"TripParticipant"> | string
userId?: Prisma.StringWithAggregatesFilter<"TripParticipant"> | string
}
export type TripParticipantCreateInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
trip: Prisma.TripCreateNestedOneWithoutParticipantsInput
user: Prisma.UserCreateNestedOneWithoutParticipationsInput
}
export type TripParticipantUncheckedCreateInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
tripId: string
userId: string
}
export type TripParticipantUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
trip?: Prisma.TripUpdateOneRequiredWithoutParticipantsNestedInput
user?: Prisma.UserUpdateOneRequiredWithoutParticipationsNestedInput
}
export type TripParticipantUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
tripId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TripParticipantCreateManyInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
tripId: string
userId: string
}
export type TripParticipantUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type TripParticipantUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
tripId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TripParticipantListRelationFilter = {
every?: Prisma.TripParticipantWhereInput
some?: Prisma.TripParticipantWhereInput
none?: Prisma.TripParticipantWhereInput
}
export type TripParticipantOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type TripParticipantTripIdUserIdCompoundUniqueInput = {
tripId: string
userId: string
}
export type TripParticipantCountOrderByAggregateInput = {
id?: Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
markedPaidAt?: Prisma.SortOrder
paymentConfirmedAt?: Prisma.SortOrder
tripId?: Prisma.SortOrder
userId?: Prisma.SortOrder
}
export type TripParticipantMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
markedPaidAt?: Prisma.SortOrder
paymentConfirmedAt?: Prisma.SortOrder
tripId?: Prisma.SortOrder
userId?: Prisma.SortOrder
}
export type TripParticipantMinOrderByAggregateInput = {
id?: Prisma.SortOrder
status?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
markedPaidAt?: Prisma.SortOrder
paymentConfirmedAt?: Prisma.SortOrder
tripId?: Prisma.SortOrder
userId?: Prisma.SortOrder
}
export type TripParticipantCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.TripParticipantCreateWithoutUserInput, Prisma.TripParticipantUncheckedCreateWithoutUserInput> | Prisma.TripParticipantCreateWithoutUserInput[] | Prisma.TripParticipantUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.TripParticipantCreateOrConnectWithoutUserInput | Prisma.TripParticipantCreateOrConnectWithoutUserInput[]
createMany?: Prisma.TripParticipantCreateManyUserInputEnvelope
connect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
}
export type TripParticipantUncheckedCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.TripParticipantCreateWithoutUserInput, Prisma.TripParticipantUncheckedCreateWithoutUserInput> | Prisma.TripParticipantCreateWithoutUserInput[] | Prisma.TripParticipantUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.TripParticipantCreateOrConnectWithoutUserInput | Prisma.TripParticipantCreateOrConnectWithoutUserInput[]
createMany?: Prisma.TripParticipantCreateManyUserInputEnvelope
connect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
}
export type TripParticipantUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.TripParticipantCreateWithoutUserInput, Prisma.TripParticipantUncheckedCreateWithoutUserInput> | Prisma.TripParticipantCreateWithoutUserInput[] | Prisma.TripParticipantUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.TripParticipantCreateOrConnectWithoutUserInput | Prisma.TripParticipantCreateOrConnectWithoutUserInput[]
upsert?: Prisma.TripParticipantUpsertWithWhereUniqueWithoutUserInput | Prisma.TripParticipantUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.TripParticipantCreateManyUserInputEnvelope
set?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
disconnect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
delete?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
connect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
update?: Prisma.TripParticipantUpdateWithWhereUniqueWithoutUserInput | Prisma.TripParticipantUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.TripParticipantUpdateManyWithWhereWithoutUserInput | Prisma.TripParticipantUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.TripParticipantScalarWhereInput | Prisma.TripParticipantScalarWhereInput[]
}
export type TripParticipantUncheckedUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.TripParticipantCreateWithoutUserInput, Prisma.TripParticipantUncheckedCreateWithoutUserInput> | Prisma.TripParticipantCreateWithoutUserInput[] | Prisma.TripParticipantUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.TripParticipantCreateOrConnectWithoutUserInput | Prisma.TripParticipantCreateOrConnectWithoutUserInput[]
upsert?: Prisma.TripParticipantUpsertWithWhereUniqueWithoutUserInput | Prisma.TripParticipantUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.TripParticipantCreateManyUserInputEnvelope
set?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
disconnect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
delete?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
connect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
update?: Prisma.TripParticipantUpdateWithWhereUniqueWithoutUserInput | Prisma.TripParticipantUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.TripParticipantUpdateManyWithWhereWithoutUserInput | Prisma.TripParticipantUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.TripParticipantScalarWhereInput | Prisma.TripParticipantScalarWhereInput[]
}
export type TripParticipantCreateNestedManyWithoutTripInput = {
create?: Prisma.XOR<Prisma.TripParticipantCreateWithoutTripInput, Prisma.TripParticipantUncheckedCreateWithoutTripInput> | Prisma.TripParticipantCreateWithoutTripInput[] | Prisma.TripParticipantUncheckedCreateWithoutTripInput[]
connectOrCreate?: Prisma.TripParticipantCreateOrConnectWithoutTripInput | Prisma.TripParticipantCreateOrConnectWithoutTripInput[]
createMany?: Prisma.TripParticipantCreateManyTripInputEnvelope
connect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
}
export type TripParticipantUncheckedCreateNestedManyWithoutTripInput = {
create?: Prisma.XOR<Prisma.TripParticipantCreateWithoutTripInput, Prisma.TripParticipantUncheckedCreateWithoutTripInput> | Prisma.TripParticipantCreateWithoutTripInput[] | Prisma.TripParticipantUncheckedCreateWithoutTripInput[]
connectOrCreate?: Prisma.TripParticipantCreateOrConnectWithoutTripInput | Prisma.TripParticipantCreateOrConnectWithoutTripInput[]
createMany?: Prisma.TripParticipantCreateManyTripInputEnvelope
connect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
}
export type TripParticipantUpdateManyWithoutTripNestedInput = {
create?: Prisma.XOR<Prisma.TripParticipantCreateWithoutTripInput, Prisma.TripParticipantUncheckedCreateWithoutTripInput> | Prisma.TripParticipantCreateWithoutTripInput[] | Prisma.TripParticipantUncheckedCreateWithoutTripInput[]
connectOrCreate?: Prisma.TripParticipantCreateOrConnectWithoutTripInput | Prisma.TripParticipantCreateOrConnectWithoutTripInput[]
upsert?: Prisma.TripParticipantUpsertWithWhereUniqueWithoutTripInput | Prisma.TripParticipantUpsertWithWhereUniqueWithoutTripInput[]
createMany?: Prisma.TripParticipantCreateManyTripInputEnvelope
set?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
disconnect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
delete?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
connect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
update?: Prisma.TripParticipantUpdateWithWhereUniqueWithoutTripInput | Prisma.TripParticipantUpdateWithWhereUniqueWithoutTripInput[]
updateMany?: Prisma.TripParticipantUpdateManyWithWhereWithoutTripInput | Prisma.TripParticipantUpdateManyWithWhereWithoutTripInput[]
deleteMany?: Prisma.TripParticipantScalarWhereInput | Prisma.TripParticipantScalarWhereInput[]
}
export type TripParticipantUncheckedUpdateManyWithoutTripNestedInput = {
create?: Prisma.XOR<Prisma.TripParticipantCreateWithoutTripInput, Prisma.TripParticipantUncheckedCreateWithoutTripInput> | Prisma.TripParticipantCreateWithoutTripInput[] | Prisma.TripParticipantUncheckedCreateWithoutTripInput[]
connectOrCreate?: Prisma.TripParticipantCreateOrConnectWithoutTripInput | Prisma.TripParticipantCreateOrConnectWithoutTripInput[]
upsert?: Prisma.TripParticipantUpsertWithWhereUniqueWithoutTripInput | Prisma.TripParticipantUpsertWithWhereUniqueWithoutTripInput[]
createMany?: Prisma.TripParticipantCreateManyTripInputEnvelope
set?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
disconnect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
delete?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
connect?: Prisma.TripParticipantWhereUniqueInput | Prisma.TripParticipantWhereUniqueInput[]
update?: Prisma.TripParticipantUpdateWithWhereUniqueWithoutTripInput | Prisma.TripParticipantUpdateWithWhereUniqueWithoutTripInput[]
updateMany?: Prisma.TripParticipantUpdateManyWithWhereWithoutTripInput | Prisma.TripParticipantUpdateManyWithWhereWithoutTripInput[]
deleteMany?: Prisma.TripParticipantScalarWhereInput | Prisma.TripParticipantScalarWhereInput[]
}
export type EnumParticipantStatusFieldUpdateOperationsInput = {
set?: $Enums.ParticipantStatus
}
export type TripParticipantCreateWithoutUserInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
trip: Prisma.TripCreateNestedOneWithoutParticipantsInput
}
export type TripParticipantUncheckedCreateWithoutUserInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
tripId: string
}
export type TripParticipantCreateOrConnectWithoutUserInput = {
where: Prisma.TripParticipantWhereUniqueInput
create: Prisma.XOR<Prisma.TripParticipantCreateWithoutUserInput, Prisma.TripParticipantUncheckedCreateWithoutUserInput>
}
export type TripParticipantCreateManyUserInputEnvelope = {
data: Prisma.TripParticipantCreateManyUserInput | Prisma.TripParticipantCreateManyUserInput[]
skipDuplicates?: boolean
}
export type TripParticipantUpsertWithWhereUniqueWithoutUserInput = {
where: Prisma.TripParticipantWhereUniqueInput
update: Prisma.XOR<Prisma.TripParticipantUpdateWithoutUserInput, Prisma.TripParticipantUncheckedUpdateWithoutUserInput>
create: Prisma.XOR<Prisma.TripParticipantCreateWithoutUserInput, Prisma.TripParticipantUncheckedCreateWithoutUserInput>
}
export type TripParticipantUpdateWithWhereUniqueWithoutUserInput = {
where: Prisma.TripParticipantWhereUniqueInput
data: Prisma.XOR<Prisma.TripParticipantUpdateWithoutUserInput, Prisma.TripParticipantUncheckedUpdateWithoutUserInput>
}
export type TripParticipantUpdateManyWithWhereWithoutUserInput = {
where: Prisma.TripParticipantScalarWhereInput
data: Prisma.XOR<Prisma.TripParticipantUpdateManyMutationInput, Prisma.TripParticipantUncheckedUpdateManyWithoutUserInput>
}
export type TripParticipantScalarWhereInput = {
AND?: Prisma.TripParticipantScalarWhereInput | Prisma.TripParticipantScalarWhereInput[]
OR?: Prisma.TripParticipantScalarWhereInput[]
NOT?: Prisma.TripParticipantScalarWhereInput | Prisma.TripParticipantScalarWhereInput[]
id?: Prisma.StringFilter<"TripParticipant"> | string
status?: Prisma.EnumParticipantStatusFilter<"TripParticipant"> | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFilter<"TripParticipant"> | Date | string
markedPaidAt?: Prisma.DateTimeNullableFilter<"TripParticipant"> | Date | string | null
paymentConfirmedAt?: Prisma.DateTimeNullableFilter<"TripParticipant"> | Date | string | null
tripId?: Prisma.StringFilter<"TripParticipant"> | string
userId?: Prisma.StringFilter<"TripParticipant"> | string
}
export type TripParticipantCreateWithoutTripInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
user: Prisma.UserCreateNestedOneWithoutParticipationsInput
}
export type TripParticipantUncheckedCreateWithoutTripInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
userId: string
}
export type TripParticipantCreateOrConnectWithoutTripInput = {
where: Prisma.TripParticipantWhereUniqueInput
create: Prisma.XOR<Prisma.TripParticipantCreateWithoutTripInput, Prisma.TripParticipantUncheckedCreateWithoutTripInput>
}
export type TripParticipantCreateManyTripInputEnvelope = {
data: Prisma.TripParticipantCreateManyTripInput | Prisma.TripParticipantCreateManyTripInput[]
skipDuplicates?: boolean
}
export type TripParticipantUpsertWithWhereUniqueWithoutTripInput = {
where: Prisma.TripParticipantWhereUniqueInput
update: Prisma.XOR<Prisma.TripParticipantUpdateWithoutTripInput, Prisma.TripParticipantUncheckedUpdateWithoutTripInput>
create: Prisma.XOR<Prisma.TripParticipantCreateWithoutTripInput, Prisma.TripParticipantUncheckedCreateWithoutTripInput>
}
export type TripParticipantUpdateWithWhereUniqueWithoutTripInput = {
where: Prisma.TripParticipantWhereUniqueInput
data: Prisma.XOR<Prisma.TripParticipantUpdateWithoutTripInput, Prisma.TripParticipantUncheckedUpdateWithoutTripInput>
}
export type TripParticipantUpdateManyWithWhereWithoutTripInput = {
where: Prisma.TripParticipantScalarWhereInput
data: Prisma.XOR<Prisma.TripParticipantUpdateManyMutationInput, Prisma.TripParticipantUncheckedUpdateManyWithoutTripInput>
}
export type TripParticipantCreateManyUserInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
tripId: string
}
export type TripParticipantUpdateWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
trip?: Prisma.TripUpdateOneRequiredWithoutParticipantsNestedInput
}
export type TripParticipantUncheckedUpdateWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
tripId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TripParticipantUncheckedUpdateManyWithoutUserInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
tripId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TripParticipantCreateManyTripInput = {
id?: string
status?: $Enums.ParticipantStatus
createdAt?: Date | string
markedPaidAt?: Date | string | null
paymentConfirmedAt?: Date | string | null
userId: string
}
export type TripParticipantUpdateWithoutTripInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
user?: Prisma.UserUpdateOneRequiredWithoutParticipationsNestedInput
}
export type TripParticipantUncheckedUpdateWithoutTripInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
userId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TripParticipantUncheckedUpdateManyWithoutTripInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumParticipantStatusFieldUpdateOperationsInput | $Enums.ParticipantStatus
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
markedPaidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
paymentConfirmedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
userId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type TripParticipantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
status?: boolean
createdAt?: boolean
markedPaidAt?: boolean
paymentConfirmedAt?: boolean
tripId?: boolean
userId?: boolean
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tripParticipant"]>
export type TripParticipantSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
status?: boolean
createdAt?: boolean
markedPaidAt?: boolean
paymentConfirmedAt?: boolean
tripId?: boolean
userId?: boolean
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tripParticipant"]>
export type TripParticipantSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
status?: boolean
createdAt?: boolean
markedPaidAt?: boolean
paymentConfirmedAt?: boolean
tripId?: boolean
userId?: boolean
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["tripParticipant"]>
export type TripParticipantSelectScalar = {
id?: boolean
status?: boolean
createdAt?: boolean
markedPaidAt?: boolean
paymentConfirmedAt?: boolean
tripId?: boolean
userId?: boolean
}
export type TripParticipantOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "status" | "createdAt" | "markedPaidAt" | "paymentConfirmedAt" | "tripId" | "userId", ExtArgs["result"]["tripParticipant"]>
export type TripParticipantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type TripParticipantIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type TripParticipantIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
trip?: boolean | Prisma.TripDefaultArgs<ExtArgs>
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type $TripParticipantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "TripParticipant"
objects: {
trip: Prisma.$TripPayload<ExtArgs>
user: Prisma.$UserPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
status: $Enums.ParticipantStatus
createdAt: Date
/**
* Peserta menekan "Saya sudah bayar" (pembayaran manual)
*/
markedPaidAt: Date | null
/**
* Organizer mengonfirmasi uang sudah masuk
*/
paymentConfirmedAt: Date | null
tripId: string
userId: string
}, ExtArgs["result"]["tripParticipant"]>
composites: {}
}
export type TripParticipantGetPayload<S extends boolean | null | undefined | TripParticipantDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload, S>
export type TripParticipantCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<TripParticipantFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: TripParticipantCountAggregateInputType | true
}
export interface TripParticipantDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TripParticipant'], meta: { name: 'TripParticipant' } }
/**
* Find zero or one TripParticipant that matches the filter.
* @param {TripParticipantFindUniqueArgs} args - Arguments to find a TripParticipant
* @example
* // Get one TripParticipant
* const tripParticipant = await prisma.tripParticipant.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends TripParticipantFindUniqueArgs>(args: Prisma.SelectSubset<T, TripParticipantFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one TripParticipant that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {TripParticipantFindUniqueOrThrowArgs} args - Arguments to find a TripParticipant
* @example
* // Get one TripParticipant
* const tripParticipant = await prisma.tripParticipant.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends TripParticipantFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TripParticipantFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first TripParticipant 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 {TripParticipantFindFirstArgs} args - Arguments to find a TripParticipant
* @example
* // Get one TripParticipant
* const tripParticipant = await prisma.tripParticipant.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends TripParticipantFindFirstArgs>(args?: Prisma.SelectSubset<T, TripParticipantFindFirstArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first TripParticipant 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 {TripParticipantFindFirstOrThrowArgs} args - Arguments to find a TripParticipant
* @example
* // Get one TripParticipant
* const tripParticipant = await prisma.tripParticipant.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends TripParticipantFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TripParticipantFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more TripParticipants 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 {TripParticipantFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all TripParticipants
* const tripParticipants = await prisma.tripParticipant.findMany()
*
* // Get first 10 TripParticipants
* const tripParticipants = await prisma.tripParticipant.findMany({ take: 10 })
*
* // Only select the `id`
* const tripParticipantWithIdOnly = await prisma.tripParticipant.findMany({ select: { id: true } })
*
*/
findMany<T extends TripParticipantFindManyArgs>(args?: Prisma.SelectSubset<T, TripParticipantFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a TripParticipant.
* @param {TripParticipantCreateArgs} args - Arguments to create a TripParticipant.
* @example
* // Create one TripParticipant
* const TripParticipant = await prisma.tripParticipant.create({
* data: {
* // ... data to create a TripParticipant
* }
* })
*
*/
create<T extends TripParticipantCreateArgs>(args: Prisma.SelectSubset<T, TripParticipantCreateArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many TripParticipants.
* @param {TripParticipantCreateManyArgs} args - Arguments to create many TripParticipants.
* @example
* // Create many TripParticipants
* const tripParticipant = await prisma.tripParticipant.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends TripParticipantCreateManyArgs>(args?: Prisma.SelectSubset<T, TripParticipantCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many TripParticipants and returns the data saved in the database.
* @param {TripParticipantCreateManyAndReturnArgs} args - Arguments to create many TripParticipants.
* @example
* // Create many TripParticipants
* const tripParticipant = await prisma.tripParticipant.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many TripParticipants and only return the `id`
* const tripParticipantWithIdOnly = await prisma.tripParticipant.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 TripParticipantCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TripParticipantCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a TripParticipant.
* @param {TripParticipantDeleteArgs} args - Arguments to delete one TripParticipant.
* @example
* // Delete one TripParticipant
* const TripParticipant = await prisma.tripParticipant.delete({
* where: {
* // ... filter to delete one TripParticipant
* }
* })
*
*/
delete<T extends TripParticipantDeleteArgs>(args: Prisma.SelectSubset<T, TripParticipantDeleteArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one TripParticipant.
* @param {TripParticipantUpdateArgs} args - Arguments to update one TripParticipant.
* @example
* // Update one TripParticipant
* const tripParticipant = await prisma.tripParticipant.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends TripParticipantUpdateArgs>(args: Prisma.SelectSubset<T, TripParticipantUpdateArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more TripParticipants.
* @param {TripParticipantDeleteManyArgs} args - Arguments to filter TripParticipants to delete.
* @example
* // Delete a few TripParticipants
* const { count } = await prisma.tripParticipant.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends TripParticipantDeleteManyArgs>(args?: Prisma.SelectSubset<T, TripParticipantDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more TripParticipants.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TripParticipantUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many TripParticipants
* const tripParticipant = await prisma.tripParticipant.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends TripParticipantUpdateManyArgs>(args: Prisma.SelectSubset<T, TripParticipantUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more TripParticipants and returns the data updated in the database.
* @param {TripParticipantUpdateManyAndReturnArgs} args - Arguments to update many TripParticipants.
* @example
* // Update many TripParticipants
* const tripParticipant = await prisma.tripParticipant.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more TripParticipants and only return the `id`
* const tripParticipantWithIdOnly = await prisma.tripParticipant.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 TripParticipantUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TripParticipantUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one TripParticipant.
* @param {TripParticipantUpsertArgs} args - Arguments to update or create a TripParticipant.
* @example
* // Update or create a TripParticipant
* const tripParticipant = await prisma.tripParticipant.upsert({
* create: {
* // ... data to create a TripParticipant
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the TripParticipant we want to update
* }
* })
*/
upsert<T extends TripParticipantUpsertArgs>(args: Prisma.SelectSubset<T, TripParticipantUpsertArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of TripParticipants.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TripParticipantCountArgs} args - Arguments to filter TripParticipants to count.
* @example
* // Count the number of TripParticipants
* const count = await prisma.tripParticipant.count({
* where: {
* // ... the filter for the TripParticipants we want to count
* }
* })
**/
count<T extends TripParticipantCountArgs>(
args?: Prisma.Subset<T, TripParticipantCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], TripParticipantCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a TripParticipant.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TripParticipantAggregateArgs} 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 TripParticipantAggregateArgs>(args: Prisma.Subset<T, TripParticipantAggregateArgs>): Prisma.PrismaPromise<GetTripParticipantAggregateType<T>>
/**
* Group by TripParticipant.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TripParticipantGroupByArgs} 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 TripParticipantGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: TripParticipantGroupByArgs['orderBy'] }
: { orderBy?: TripParticipantGroupByArgs['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, TripParticipantGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTripParticipantGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the TripParticipant model
*/
readonly fields: TripParticipantFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for TripParticipant.
* 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__TripParticipantClient<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 TripParticipant model
*/
export interface TripParticipantFieldRefs {
readonly id: Prisma.FieldRef<"TripParticipant", 'String'>
readonly status: Prisma.FieldRef<"TripParticipant", 'ParticipantStatus'>
readonly createdAt: Prisma.FieldRef<"TripParticipant", 'DateTime'>
readonly markedPaidAt: Prisma.FieldRef<"TripParticipant", 'DateTime'>
readonly paymentConfirmedAt: Prisma.FieldRef<"TripParticipant", 'DateTime'>
readonly tripId: Prisma.FieldRef<"TripParticipant", 'String'>
readonly userId: Prisma.FieldRef<"TripParticipant", 'String'>
}
// Custom InputTypes
/**
* TripParticipant findUnique
*/
export type TripParticipantFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* Filter, which TripParticipant to fetch.
*/
where: Prisma.TripParticipantWhereUniqueInput
}
/**
* TripParticipant findUniqueOrThrow
*/
export type TripParticipantFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* Filter, which TripParticipant to fetch.
*/
where: Prisma.TripParticipantWhereUniqueInput
}
/**
* TripParticipant findFirst
*/
export type TripParticipantFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* Filter, which TripParticipant to fetch.
*/
where?: Prisma.TripParticipantWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TripParticipants to fetch.
*/
orderBy?: Prisma.TripParticipantOrderByWithRelationInput | Prisma.TripParticipantOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for TripParticipants.
*/
cursor?: Prisma.TripParticipantWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TripParticipants 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` TripParticipants.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TripParticipants.
*/
distinct?: Prisma.TripParticipantScalarFieldEnum | Prisma.TripParticipantScalarFieldEnum[]
}
/**
* TripParticipant findFirstOrThrow
*/
export type TripParticipantFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* Filter, which TripParticipant to fetch.
*/
where?: Prisma.TripParticipantWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TripParticipants to fetch.
*/
orderBy?: Prisma.TripParticipantOrderByWithRelationInput | Prisma.TripParticipantOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for TripParticipants.
*/
cursor?: Prisma.TripParticipantWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TripParticipants 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` TripParticipants.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TripParticipants.
*/
distinct?: Prisma.TripParticipantScalarFieldEnum | Prisma.TripParticipantScalarFieldEnum[]
}
/**
* TripParticipant findMany
*/
export type TripParticipantFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* Filter, which TripParticipants to fetch.
*/
where?: Prisma.TripParticipantWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TripParticipants to fetch.
*/
orderBy?: Prisma.TripParticipantOrderByWithRelationInput | Prisma.TripParticipantOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing TripParticipants.
*/
cursor?: Prisma.TripParticipantWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TripParticipants 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` TripParticipants.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TripParticipants.
*/
distinct?: Prisma.TripParticipantScalarFieldEnum | Prisma.TripParticipantScalarFieldEnum[]
}
/**
* TripParticipant create
*/
export type TripParticipantCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* The data needed to create a TripParticipant.
*/
data: Prisma.XOR<Prisma.TripParticipantCreateInput, Prisma.TripParticipantUncheckedCreateInput>
}
/**
* TripParticipant createMany
*/
export type TripParticipantCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many TripParticipants.
*/
data: Prisma.TripParticipantCreateManyInput | Prisma.TripParticipantCreateManyInput[]
skipDuplicates?: boolean
}
/**
* TripParticipant createManyAndReturn
*/
export type TripParticipantCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* The data used to create many TripParticipants.
*/
data: Prisma.TripParticipantCreateManyInput | Prisma.TripParticipantCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* TripParticipant update
*/
export type TripParticipantUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* The data needed to update a TripParticipant.
*/
data: Prisma.XOR<Prisma.TripParticipantUpdateInput, Prisma.TripParticipantUncheckedUpdateInput>
/**
* Choose, which TripParticipant to update.
*/
where: Prisma.TripParticipantWhereUniqueInput
}
/**
* TripParticipant updateMany
*/
export type TripParticipantUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update TripParticipants.
*/
data: Prisma.XOR<Prisma.TripParticipantUpdateManyMutationInput, Prisma.TripParticipantUncheckedUpdateManyInput>
/**
* Filter which TripParticipants to update
*/
where?: Prisma.TripParticipantWhereInput
/**
* Limit how many TripParticipants to update.
*/
limit?: number
}
/**
* TripParticipant updateManyAndReturn
*/
export type TripParticipantUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* The data used to update TripParticipants.
*/
data: Prisma.XOR<Prisma.TripParticipantUpdateManyMutationInput, Prisma.TripParticipantUncheckedUpdateManyInput>
/**
* Filter which TripParticipants to update
*/
where?: Prisma.TripParticipantWhereInput
/**
* Limit how many TripParticipants to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* TripParticipant upsert
*/
export type TripParticipantUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* The filter to search for the TripParticipant to update in case it exists.
*/
where: Prisma.TripParticipantWhereUniqueInput
/**
* In case the TripParticipant found by the `where` argument doesn't exist, create a new TripParticipant with this data.
*/
create: Prisma.XOR<Prisma.TripParticipantCreateInput, Prisma.TripParticipantUncheckedCreateInput>
/**
* In case the TripParticipant was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.TripParticipantUpdateInput, Prisma.TripParticipantUncheckedUpdateInput>
}
/**
* TripParticipant delete
*/
export type TripParticipantDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
/**
* Filter which TripParticipant to delete.
*/
where: Prisma.TripParticipantWhereUniqueInput
}
/**
* TripParticipant deleteMany
*/
export type TripParticipantDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which TripParticipants to delete
*/
where?: Prisma.TripParticipantWhereInput
/**
* Limit how many TripParticipants to delete.
*/
limit?: number
}
/**
* TripParticipant without action
*/
export type TripParticipantDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TripParticipant
*/
select?: Prisma.TripParticipantSelect<ExtArgs> | null
/**
* Omit specific fields from the TripParticipant
*/
omit?: Prisma.TripParticipantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TripParticipantInclude<ExtArgs> | null
}