Files
TREK/server/src/generated/prisma/models/journeys.ts
T
2026-04-26 23:22:06 +02:00

2253 lines
93 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 `journeys` 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 journeys
*
*/
export type journeysModel = runtime.Types.Result.DefaultSelection<Prisma.$journeysPayload>
export type AggregateJourneys = {
_count: JourneysCountAggregateOutputType | null
_avg: JourneysAvgAggregateOutputType | null
_sum: JourneysSumAggregateOutputType | null
_min: JourneysMinAggregateOutputType | null
_max: JourneysMaxAggregateOutputType | null
}
export type JourneysAvgAggregateOutputType = {
id: number | null
user_id: number | null
created_at: number | null
updated_at: number | null
}
export type JourneysSumAggregateOutputType = {
id: number | null
user_id: number | null
created_at: number | null
updated_at: number | null
}
export type JourneysMinAggregateOutputType = {
id: number | null
user_id: number | null
title: string | null
subtitle: string | null
cover_gradient: string | null
status: string | null
created_at: number | null
updated_at: number | null
cover_image: string | null
}
export type JourneysMaxAggregateOutputType = {
id: number | null
user_id: number | null
title: string | null
subtitle: string | null
cover_gradient: string | null
status: string | null
created_at: number | null
updated_at: number | null
cover_image: string | null
}
export type JourneysCountAggregateOutputType = {
id: number
user_id: number
title: number
subtitle: number
cover_gradient: number
status: number
created_at: number
updated_at: number
cover_image: number
_all: number
}
export type JourneysAvgAggregateInputType = {
id?: true
user_id?: true
created_at?: true
updated_at?: true
}
export type JourneysSumAggregateInputType = {
id?: true
user_id?: true
created_at?: true
updated_at?: true
}
export type JourneysMinAggregateInputType = {
id?: true
user_id?: true
title?: true
subtitle?: true
cover_gradient?: true
status?: true
created_at?: true
updated_at?: true
cover_image?: true
}
export type JourneysMaxAggregateInputType = {
id?: true
user_id?: true
title?: true
subtitle?: true
cover_gradient?: true
status?: true
created_at?: true
updated_at?: true
cover_image?: true
}
export type JourneysCountAggregateInputType = {
id?: true
user_id?: true
title?: true
subtitle?: true
cover_gradient?: true
status?: true
created_at?: true
updated_at?: true
cover_image?: true
_all?: true
}
export type JourneysAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which journeys to aggregate.
*/
where?: Prisma.journeysWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of journeys to fetch.
*/
orderBy?: Prisma.journeysOrderByWithRelationInput | Prisma.journeysOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.journeysWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` journeys 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` journeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned journeys
**/
_count?: true | JourneysCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: JourneysAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: JourneysSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: JourneysMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: JourneysMaxAggregateInputType
}
export type GetJourneysAggregateType<T extends JourneysAggregateArgs> = {
[P in keyof T & keyof AggregateJourneys]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateJourneys[P]>
: Prisma.GetScalarType<T[P], AggregateJourneys[P]>
}
export type journeysGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.journeysWhereInput
orderBy?: Prisma.journeysOrderByWithAggregationInput | Prisma.journeysOrderByWithAggregationInput[]
by: Prisma.JourneysScalarFieldEnum[] | Prisma.JourneysScalarFieldEnum
having?: Prisma.journeysScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: JourneysCountAggregateInputType | true
_avg?: JourneysAvgAggregateInputType
_sum?: JourneysSumAggregateInputType
_min?: JourneysMinAggregateInputType
_max?: JourneysMaxAggregateInputType
}
export type JourneysGroupByOutputType = {
id: number
user_id: number
title: string
subtitle: string | null
cover_gradient: string | null
status: string | null
created_at: number
updated_at: number
cover_image: string | null
_count: JourneysCountAggregateOutputType | null
_avg: JourneysAvgAggregateOutputType | null
_sum: JourneysSumAggregateOutputType | null
_min: JourneysMinAggregateOutputType | null
_max: JourneysMaxAggregateOutputType | null
}
export type GetJourneysGroupByPayload<T extends journeysGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<JourneysGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof JourneysGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], JourneysGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], JourneysGroupByOutputType[P]>
}
>
>
export type journeysWhereInput = {
AND?: Prisma.journeysWhereInput | Prisma.journeysWhereInput[]
OR?: Prisma.journeysWhereInput[]
NOT?: Prisma.journeysWhereInput | Prisma.journeysWhereInput[]
id?: Prisma.IntFilter<"journeys"> | number
user_id?: Prisma.IntFilter<"journeys"> | number
title?: Prisma.StringFilter<"journeys"> | string
subtitle?: Prisma.StringNullableFilter<"journeys"> | string | null
cover_gradient?: Prisma.StringNullableFilter<"journeys"> | string | null
status?: Prisma.StringNullableFilter<"journeys"> | string | null
created_at?: Prisma.IntFilter<"journeys"> | number
updated_at?: Prisma.IntFilter<"journeys"> | number
cover_image?: Prisma.StringNullableFilter<"journeys"> | string | null
journey_contributors?: Prisma.Journey_contributorsListRelationFilter
journey_entries?: Prisma.Journey_entriesListRelationFilter
journey_photos?: Prisma.Journey_photosListRelationFilter
journey_share_tokens?: Prisma.XOR<Prisma.Journey_share_tokensNullableScalarRelationFilter, Prisma.journey_share_tokensWhereInput> | null
journey_trips?: Prisma.Journey_tripsListRelationFilter
users?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>
}
export type journeysOrderByWithRelationInput = {
id?: Prisma.SortOrder
user_id?: Prisma.SortOrder
title?: Prisma.SortOrder
subtitle?: Prisma.SortOrderInput | Prisma.SortOrder
cover_gradient?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
cover_image?: Prisma.SortOrderInput | Prisma.SortOrder
journey_contributors?: Prisma.journey_contributorsOrderByRelationAggregateInput
journey_entries?: Prisma.journey_entriesOrderByRelationAggregateInput
journey_photos?: Prisma.journey_photosOrderByRelationAggregateInput
journey_share_tokens?: Prisma.journey_share_tokensOrderByWithRelationInput
journey_trips?: Prisma.journey_tripsOrderByRelationAggregateInput
users?: Prisma.usersOrderByWithRelationInput
}
export type journeysWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.journeysWhereInput | Prisma.journeysWhereInput[]
OR?: Prisma.journeysWhereInput[]
NOT?: Prisma.journeysWhereInput | Prisma.journeysWhereInput[]
user_id?: Prisma.IntFilter<"journeys"> | number
title?: Prisma.StringFilter<"journeys"> | string
subtitle?: Prisma.StringNullableFilter<"journeys"> | string | null
cover_gradient?: Prisma.StringNullableFilter<"journeys"> | string | null
status?: Prisma.StringNullableFilter<"journeys"> | string | null
created_at?: Prisma.IntFilter<"journeys"> | number
updated_at?: Prisma.IntFilter<"journeys"> | number
cover_image?: Prisma.StringNullableFilter<"journeys"> | string | null
journey_contributors?: Prisma.Journey_contributorsListRelationFilter
journey_entries?: Prisma.Journey_entriesListRelationFilter
journey_photos?: Prisma.Journey_photosListRelationFilter
journey_share_tokens?: Prisma.XOR<Prisma.Journey_share_tokensNullableScalarRelationFilter, Prisma.journey_share_tokensWhereInput> | null
journey_trips?: Prisma.Journey_tripsListRelationFilter
users?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.usersWhereInput>
}, "id">
export type journeysOrderByWithAggregationInput = {
id?: Prisma.SortOrder
user_id?: Prisma.SortOrder
title?: Prisma.SortOrder
subtitle?: Prisma.SortOrderInput | Prisma.SortOrder
cover_gradient?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
cover_image?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.journeysCountOrderByAggregateInput
_avg?: Prisma.journeysAvgOrderByAggregateInput
_max?: Prisma.journeysMaxOrderByAggregateInput
_min?: Prisma.journeysMinOrderByAggregateInput
_sum?: Prisma.journeysSumOrderByAggregateInput
}
export type journeysScalarWhereWithAggregatesInput = {
AND?: Prisma.journeysScalarWhereWithAggregatesInput | Prisma.journeysScalarWhereWithAggregatesInput[]
OR?: Prisma.journeysScalarWhereWithAggregatesInput[]
NOT?: Prisma.journeysScalarWhereWithAggregatesInput | Prisma.journeysScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"journeys"> | number
user_id?: Prisma.IntWithAggregatesFilter<"journeys"> | number
title?: Prisma.StringWithAggregatesFilter<"journeys"> | string
subtitle?: Prisma.StringNullableWithAggregatesFilter<"journeys"> | string | null
cover_gradient?: Prisma.StringNullableWithAggregatesFilter<"journeys"> | string | null
status?: Prisma.StringNullableWithAggregatesFilter<"journeys"> | string | null
created_at?: Prisma.IntWithAggregatesFilter<"journeys"> | number
updated_at?: Prisma.IntWithAggregatesFilter<"journeys"> | number
cover_image?: Prisma.StringNullableWithAggregatesFilter<"journeys"> | string | null
}
export type journeysCreateInput = {
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsCreateNestedManyWithoutJourneysInput
users: Prisma.usersCreateNestedOneWithoutJourneysInput
}
export type journeysUncheckedCreateInput = {
id?: number
user_id: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsUncheckedCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesUncheckedCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosUncheckedCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsUncheckedCreateNestedManyWithoutJourneysInput
}
export type journeysUpdateInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUpdateManyWithoutJourneysNestedInput
users?: Prisma.usersUpdateOneRequiredWithoutJourneysNestedInput
}
export type journeysUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
user_id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUncheckedUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUncheckedUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUncheckedUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUncheckedUpdateManyWithoutJourneysNestedInput
}
export type journeysCreateManyInput = {
id?: number
user_id: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
}
export type journeysUpdateManyMutationInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type journeysUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
user_id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type JourneysScalarRelationFilter = {
is?: Prisma.journeysWhereInput
isNot?: Prisma.journeysWhereInput
}
export type journeysCountOrderByAggregateInput = {
id?: Prisma.SortOrder
user_id?: Prisma.SortOrder
title?: Prisma.SortOrder
subtitle?: Prisma.SortOrder
cover_gradient?: Prisma.SortOrder
status?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
cover_image?: Prisma.SortOrder
}
export type journeysAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
user_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type journeysMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
user_id?: Prisma.SortOrder
title?: Prisma.SortOrder
subtitle?: Prisma.SortOrder
cover_gradient?: Prisma.SortOrder
status?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
cover_image?: Prisma.SortOrder
}
export type journeysMinOrderByAggregateInput = {
id?: Prisma.SortOrder
user_id?: Prisma.SortOrder
title?: Prisma.SortOrder
subtitle?: Prisma.SortOrder
cover_gradient?: Prisma.SortOrder
status?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
cover_image?: Prisma.SortOrder
}
export type journeysSumOrderByAggregateInput = {
id?: Prisma.SortOrder
user_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type JourneysListRelationFilter = {
every?: Prisma.journeysWhereInput
some?: Prisma.journeysWhereInput
none?: Prisma.journeysWhereInput
}
export type journeysOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type journeysCreateNestedOneWithoutJourney_contributorsInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_contributorsInput, Prisma.journeysUncheckedCreateWithoutJourney_contributorsInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_contributorsInput
connect?: Prisma.journeysWhereUniqueInput
}
export type journeysUpdateOneRequiredWithoutJourney_contributorsNestedInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_contributorsInput, Prisma.journeysUncheckedCreateWithoutJourney_contributorsInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_contributorsInput
upsert?: Prisma.journeysUpsertWithoutJourney_contributorsInput
connect?: Prisma.journeysWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.journeysUpdateToOneWithWhereWithoutJourney_contributorsInput, Prisma.journeysUpdateWithoutJourney_contributorsInput>, Prisma.journeysUncheckedUpdateWithoutJourney_contributorsInput>
}
export type journeysCreateNestedOneWithoutJourney_entriesInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_entriesInput, Prisma.journeysUncheckedCreateWithoutJourney_entriesInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_entriesInput
connect?: Prisma.journeysWhereUniqueInput
}
export type journeysUpdateOneRequiredWithoutJourney_entriesNestedInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_entriesInput, Prisma.journeysUncheckedCreateWithoutJourney_entriesInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_entriesInput
upsert?: Prisma.journeysUpsertWithoutJourney_entriesInput
connect?: Prisma.journeysWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.journeysUpdateToOneWithWhereWithoutJourney_entriesInput, Prisma.journeysUpdateWithoutJourney_entriesInput>, Prisma.journeysUncheckedUpdateWithoutJourney_entriesInput>
}
export type journeysCreateNestedOneWithoutJourney_photosInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_photosInput, Prisma.journeysUncheckedCreateWithoutJourney_photosInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_photosInput
connect?: Prisma.journeysWhereUniqueInput
}
export type journeysUpdateOneRequiredWithoutJourney_photosNestedInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_photosInput, Prisma.journeysUncheckedCreateWithoutJourney_photosInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_photosInput
upsert?: Prisma.journeysUpsertWithoutJourney_photosInput
connect?: Prisma.journeysWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.journeysUpdateToOneWithWhereWithoutJourney_photosInput, Prisma.journeysUpdateWithoutJourney_photosInput>, Prisma.journeysUncheckedUpdateWithoutJourney_photosInput>
}
export type journeysCreateNestedOneWithoutJourney_share_tokensInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_share_tokensInput, Prisma.journeysUncheckedCreateWithoutJourney_share_tokensInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_share_tokensInput
connect?: Prisma.journeysWhereUniqueInput
}
export type journeysUpdateOneRequiredWithoutJourney_share_tokensNestedInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_share_tokensInput, Prisma.journeysUncheckedCreateWithoutJourney_share_tokensInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_share_tokensInput
upsert?: Prisma.journeysUpsertWithoutJourney_share_tokensInput
connect?: Prisma.journeysWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.journeysUpdateToOneWithWhereWithoutJourney_share_tokensInput, Prisma.journeysUpdateWithoutJourney_share_tokensInput>, Prisma.journeysUncheckedUpdateWithoutJourney_share_tokensInput>
}
export type journeysCreateNestedOneWithoutJourney_tripsInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_tripsInput, Prisma.journeysUncheckedCreateWithoutJourney_tripsInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_tripsInput
connect?: Prisma.journeysWhereUniqueInput
}
export type journeysUpdateOneRequiredWithoutJourney_tripsNestedInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutJourney_tripsInput, Prisma.journeysUncheckedCreateWithoutJourney_tripsInput>
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutJourney_tripsInput
upsert?: Prisma.journeysUpsertWithoutJourney_tripsInput
connect?: Prisma.journeysWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.journeysUpdateToOneWithWhereWithoutJourney_tripsInput, Prisma.journeysUpdateWithoutJourney_tripsInput>, Prisma.journeysUncheckedUpdateWithoutJourney_tripsInput>
}
export type journeysCreateNestedManyWithoutUsersInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutUsersInput, Prisma.journeysUncheckedCreateWithoutUsersInput> | Prisma.journeysCreateWithoutUsersInput[] | Prisma.journeysUncheckedCreateWithoutUsersInput[]
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutUsersInput | Prisma.journeysCreateOrConnectWithoutUsersInput[]
createMany?: Prisma.journeysCreateManyUsersInputEnvelope
connect?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
}
export type journeysUncheckedCreateNestedManyWithoutUsersInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutUsersInput, Prisma.journeysUncheckedCreateWithoutUsersInput> | Prisma.journeysCreateWithoutUsersInput[] | Prisma.journeysUncheckedCreateWithoutUsersInput[]
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutUsersInput | Prisma.journeysCreateOrConnectWithoutUsersInput[]
createMany?: Prisma.journeysCreateManyUsersInputEnvelope
connect?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
}
export type journeysUpdateManyWithoutUsersNestedInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutUsersInput, Prisma.journeysUncheckedCreateWithoutUsersInput> | Prisma.journeysCreateWithoutUsersInput[] | Prisma.journeysUncheckedCreateWithoutUsersInput[]
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutUsersInput | Prisma.journeysCreateOrConnectWithoutUsersInput[]
upsert?: Prisma.journeysUpsertWithWhereUniqueWithoutUsersInput | Prisma.journeysUpsertWithWhereUniqueWithoutUsersInput[]
createMany?: Prisma.journeysCreateManyUsersInputEnvelope
set?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
disconnect?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
delete?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
connect?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
update?: Prisma.journeysUpdateWithWhereUniqueWithoutUsersInput | Prisma.journeysUpdateWithWhereUniqueWithoutUsersInput[]
updateMany?: Prisma.journeysUpdateManyWithWhereWithoutUsersInput | Prisma.journeysUpdateManyWithWhereWithoutUsersInput[]
deleteMany?: Prisma.journeysScalarWhereInput | Prisma.journeysScalarWhereInput[]
}
export type journeysUncheckedUpdateManyWithoutUsersNestedInput = {
create?: Prisma.XOR<Prisma.journeysCreateWithoutUsersInput, Prisma.journeysUncheckedCreateWithoutUsersInput> | Prisma.journeysCreateWithoutUsersInput[] | Prisma.journeysUncheckedCreateWithoutUsersInput[]
connectOrCreate?: Prisma.journeysCreateOrConnectWithoutUsersInput | Prisma.journeysCreateOrConnectWithoutUsersInput[]
upsert?: Prisma.journeysUpsertWithWhereUniqueWithoutUsersInput | Prisma.journeysUpsertWithWhereUniqueWithoutUsersInput[]
createMany?: Prisma.journeysCreateManyUsersInputEnvelope
set?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
disconnect?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
delete?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
connect?: Prisma.journeysWhereUniqueInput | Prisma.journeysWhereUniqueInput[]
update?: Prisma.journeysUpdateWithWhereUniqueWithoutUsersInput | Prisma.journeysUpdateWithWhereUniqueWithoutUsersInput[]
updateMany?: Prisma.journeysUpdateManyWithWhereWithoutUsersInput | Prisma.journeysUpdateManyWithWhereWithoutUsersInput[]
deleteMany?: Prisma.journeysScalarWhereInput | Prisma.journeysScalarWhereInput[]
}
export type journeysCreateWithoutJourney_contributorsInput = {
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_entries?: Prisma.journey_entriesCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsCreateNestedManyWithoutJourneysInput
users: Prisma.usersCreateNestedOneWithoutJourneysInput
}
export type journeysUncheckedCreateWithoutJourney_contributorsInput = {
id?: number
user_id: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_entries?: Prisma.journey_entriesUncheckedCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosUncheckedCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsUncheckedCreateNestedManyWithoutJourneysInput
}
export type journeysCreateOrConnectWithoutJourney_contributorsInput = {
where: Prisma.journeysWhereUniqueInput
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_contributorsInput, Prisma.journeysUncheckedCreateWithoutJourney_contributorsInput>
}
export type journeysUpsertWithoutJourney_contributorsInput = {
update: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_contributorsInput, Prisma.journeysUncheckedUpdateWithoutJourney_contributorsInput>
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_contributorsInput, Prisma.journeysUncheckedCreateWithoutJourney_contributorsInput>
where?: Prisma.journeysWhereInput
}
export type journeysUpdateToOneWithWhereWithoutJourney_contributorsInput = {
where?: Prisma.journeysWhereInput
data: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_contributorsInput, Prisma.journeysUncheckedUpdateWithoutJourney_contributorsInput>
}
export type journeysUpdateWithoutJourney_contributorsInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_entries?: Prisma.journey_entriesUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUpdateManyWithoutJourneysNestedInput
users?: Prisma.usersUpdateOneRequiredWithoutJourneysNestedInput
}
export type journeysUncheckedUpdateWithoutJourney_contributorsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
user_id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_entries?: Prisma.journey_entriesUncheckedUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUncheckedUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUncheckedUpdateManyWithoutJourneysNestedInput
}
export type journeysCreateWithoutJourney_entriesInput = {
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsCreateNestedManyWithoutJourneysInput
users: Prisma.usersCreateNestedOneWithoutJourneysInput
}
export type journeysUncheckedCreateWithoutJourney_entriesInput = {
id?: number
user_id: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsUncheckedCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosUncheckedCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsUncheckedCreateNestedManyWithoutJourneysInput
}
export type journeysCreateOrConnectWithoutJourney_entriesInput = {
where: Prisma.journeysWhereUniqueInput
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_entriesInput, Prisma.journeysUncheckedCreateWithoutJourney_entriesInput>
}
export type journeysUpsertWithoutJourney_entriesInput = {
update: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_entriesInput, Prisma.journeysUncheckedUpdateWithoutJourney_entriesInput>
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_entriesInput, Prisma.journeysUncheckedCreateWithoutJourney_entriesInput>
where?: Prisma.journeysWhereInput
}
export type journeysUpdateToOneWithWhereWithoutJourney_entriesInput = {
where?: Prisma.journeysWhereInput
data: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_entriesInput, Prisma.journeysUncheckedUpdateWithoutJourney_entriesInput>
}
export type journeysUpdateWithoutJourney_entriesInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUpdateManyWithoutJourneysNestedInput
users?: Prisma.usersUpdateOneRequiredWithoutJourneysNestedInput
}
export type journeysUncheckedUpdateWithoutJourney_entriesInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
user_id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUncheckedUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUncheckedUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUncheckedUpdateManyWithoutJourneysNestedInput
}
export type journeysCreateWithoutJourney_photosInput = {
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsCreateNestedManyWithoutJourneysInput
users: Prisma.usersCreateNestedOneWithoutJourneysInput
}
export type journeysUncheckedCreateWithoutJourney_photosInput = {
id?: number
user_id: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsUncheckedCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesUncheckedCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsUncheckedCreateNestedManyWithoutJourneysInput
}
export type journeysCreateOrConnectWithoutJourney_photosInput = {
where: Prisma.journeysWhereUniqueInput
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_photosInput, Prisma.journeysUncheckedCreateWithoutJourney_photosInput>
}
export type journeysUpsertWithoutJourney_photosInput = {
update: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_photosInput, Prisma.journeysUncheckedUpdateWithoutJourney_photosInput>
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_photosInput, Prisma.journeysUncheckedCreateWithoutJourney_photosInput>
where?: Prisma.journeysWhereInput
}
export type journeysUpdateToOneWithWhereWithoutJourney_photosInput = {
where?: Prisma.journeysWhereInput
data: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_photosInput, Prisma.journeysUncheckedUpdateWithoutJourney_photosInput>
}
export type journeysUpdateWithoutJourney_photosInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUpdateManyWithoutJourneysNestedInput
users?: Prisma.usersUpdateOneRequiredWithoutJourneysNestedInput
}
export type journeysUncheckedUpdateWithoutJourney_photosInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
user_id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUncheckedUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUncheckedUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUncheckedUpdateManyWithoutJourneysNestedInput
}
export type journeysCreateWithoutJourney_share_tokensInput = {
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosCreateNestedManyWithoutJourneysInput
journey_trips?: Prisma.journey_tripsCreateNestedManyWithoutJourneysInput
users: Prisma.usersCreateNestedOneWithoutJourneysInput
}
export type journeysUncheckedCreateWithoutJourney_share_tokensInput = {
id?: number
user_id: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsUncheckedCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesUncheckedCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosUncheckedCreateNestedManyWithoutJourneysInput
journey_trips?: Prisma.journey_tripsUncheckedCreateNestedManyWithoutJourneysInput
}
export type journeysCreateOrConnectWithoutJourney_share_tokensInput = {
where: Prisma.journeysWhereUniqueInput
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_share_tokensInput, Prisma.journeysUncheckedCreateWithoutJourney_share_tokensInput>
}
export type journeysUpsertWithoutJourney_share_tokensInput = {
update: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_share_tokensInput, Prisma.journeysUncheckedUpdateWithoutJourney_share_tokensInput>
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_share_tokensInput, Prisma.journeysUncheckedCreateWithoutJourney_share_tokensInput>
where?: Prisma.journeysWhereInput
}
export type journeysUpdateToOneWithWhereWithoutJourney_share_tokensInput = {
where?: Prisma.journeysWhereInput
data: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_share_tokensInput, Prisma.journeysUncheckedUpdateWithoutJourney_share_tokensInput>
}
export type journeysUpdateWithoutJourney_share_tokensInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUpdateManyWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUpdateManyWithoutJourneysNestedInput
users?: Prisma.usersUpdateOneRequiredWithoutJourneysNestedInput
}
export type journeysUncheckedUpdateWithoutJourney_share_tokensInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
user_id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUncheckedUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUncheckedUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUncheckedUpdateManyWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUncheckedUpdateManyWithoutJourneysNestedInput
}
export type journeysCreateWithoutJourney_tripsInput = {
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensCreateNestedOneWithoutJourneysInput
users: Prisma.usersCreateNestedOneWithoutJourneysInput
}
export type journeysUncheckedCreateWithoutJourney_tripsInput = {
id?: number
user_id: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsUncheckedCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesUncheckedCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosUncheckedCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedCreateNestedOneWithoutJourneysInput
}
export type journeysCreateOrConnectWithoutJourney_tripsInput = {
where: Prisma.journeysWhereUniqueInput
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_tripsInput, Prisma.journeysUncheckedCreateWithoutJourney_tripsInput>
}
export type journeysUpsertWithoutJourney_tripsInput = {
update: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_tripsInput, Prisma.journeysUncheckedUpdateWithoutJourney_tripsInput>
create: Prisma.XOR<Prisma.journeysCreateWithoutJourney_tripsInput, Prisma.journeysUncheckedCreateWithoutJourney_tripsInput>
where?: Prisma.journeysWhereInput
}
export type journeysUpdateToOneWithWhereWithoutJourney_tripsInput = {
where?: Prisma.journeysWhereInput
data: Prisma.XOR<Prisma.journeysUpdateWithoutJourney_tripsInput, Prisma.journeysUncheckedUpdateWithoutJourney_tripsInput>
}
export type journeysUpdateWithoutJourney_tripsInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUpdateOneWithoutJourneysNestedInput
users?: Prisma.usersUpdateOneRequiredWithoutJourneysNestedInput
}
export type journeysUncheckedUpdateWithoutJourney_tripsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
user_id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUncheckedUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUncheckedUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUncheckedUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedUpdateOneWithoutJourneysNestedInput
}
export type journeysCreateWithoutUsersInput = {
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsCreateNestedManyWithoutJourneysInput
}
export type journeysUncheckedCreateWithoutUsersInput = {
id?: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
journey_contributors?: Prisma.journey_contributorsUncheckedCreateNestedManyWithoutJourneysInput
journey_entries?: Prisma.journey_entriesUncheckedCreateNestedManyWithoutJourneysInput
journey_photos?: Prisma.journey_photosUncheckedCreateNestedManyWithoutJourneysInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedCreateNestedOneWithoutJourneysInput
journey_trips?: Prisma.journey_tripsUncheckedCreateNestedManyWithoutJourneysInput
}
export type journeysCreateOrConnectWithoutUsersInput = {
where: Prisma.journeysWhereUniqueInput
create: Prisma.XOR<Prisma.journeysCreateWithoutUsersInput, Prisma.journeysUncheckedCreateWithoutUsersInput>
}
export type journeysCreateManyUsersInputEnvelope = {
data: Prisma.journeysCreateManyUsersInput | Prisma.journeysCreateManyUsersInput[]
}
export type journeysUpsertWithWhereUniqueWithoutUsersInput = {
where: Prisma.journeysWhereUniqueInput
update: Prisma.XOR<Prisma.journeysUpdateWithoutUsersInput, Prisma.journeysUncheckedUpdateWithoutUsersInput>
create: Prisma.XOR<Prisma.journeysCreateWithoutUsersInput, Prisma.journeysUncheckedCreateWithoutUsersInput>
}
export type journeysUpdateWithWhereUniqueWithoutUsersInput = {
where: Prisma.journeysWhereUniqueInput
data: Prisma.XOR<Prisma.journeysUpdateWithoutUsersInput, Prisma.journeysUncheckedUpdateWithoutUsersInput>
}
export type journeysUpdateManyWithWhereWithoutUsersInput = {
where: Prisma.journeysScalarWhereInput
data: Prisma.XOR<Prisma.journeysUpdateManyMutationInput, Prisma.journeysUncheckedUpdateManyWithoutUsersInput>
}
export type journeysScalarWhereInput = {
AND?: Prisma.journeysScalarWhereInput | Prisma.journeysScalarWhereInput[]
OR?: Prisma.journeysScalarWhereInput[]
NOT?: Prisma.journeysScalarWhereInput | Prisma.journeysScalarWhereInput[]
id?: Prisma.IntFilter<"journeys"> | number
user_id?: Prisma.IntFilter<"journeys"> | number
title?: Prisma.StringFilter<"journeys"> | string
subtitle?: Prisma.StringNullableFilter<"journeys"> | string | null
cover_gradient?: Prisma.StringNullableFilter<"journeys"> | string | null
status?: Prisma.StringNullableFilter<"journeys"> | string | null
created_at?: Prisma.IntFilter<"journeys"> | number
updated_at?: Prisma.IntFilter<"journeys"> | number
cover_image?: Prisma.StringNullableFilter<"journeys"> | string | null
}
export type journeysCreateManyUsersInput = {
id?: number
title: string
subtitle?: string | null
cover_gradient?: string | null
status?: string | null
created_at: number
updated_at: number
cover_image?: string | null
}
export type journeysUpdateWithoutUsersInput = {
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUpdateManyWithoutJourneysNestedInput
}
export type journeysUncheckedUpdateWithoutUsersInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
journey_contributors?: Prisma.journey_contributorsUncheckedUpdateManyWithoutJourneysNestedInput
journey_entries?: Prisma.journey_entriesUncheckedUpdateManyWithoutJourneysNestedInput
journey_photos?: Prisma.journey_photosUncheckedUpdateManyWithoutJourneysNestedInput
journey_share_tokens?: Prisma.journey_share_tokensUncheckedUpdateOneWithoutJourneysNestedInput
journey_trips?: Prisma.journey_tripsUncheckedUpdateManyWithoutJourneysNestedInput
}
export type journeysUncheckedUpdateManyWithoutUsersInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
title?: Prisma.StringFieldUpdateOperationsInput | string
subtitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cover_gradient?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.IntFieldUpdateOperationsInput | number
updated_at?: Prisma.IntFieldUpdateOperationsInput | number
cover_image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
/**
* Count Type JourneysCountOutputType
*/
export type JourneysCountOutputType = {
journey_contributors: number
journey_entries: number
journey_photos: number
journey_trips: number
}
export type JourneysCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
journey_contributors?: boolean | JourneysCountOutputTypeCountJourney_contributorsArgs
journey_entries?: boolean | JourneysCountOutputTypeCountJourney_entriesArgs
journey_photos?: boolean | JourneysCountOutputTypeCountJourney_photosArgs
journey_trips?: boolean | JourneysCountOutputTypeCountJourney_tripsArgs
}
/**
* JourneysCountOutputType without action
*/
export type JourneysCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the JourneysCountOutputType
*/
select?: Prisma.JourneysCountOutputTypeSelect<ExtArgs> | null
}
/**
* JourneysCountOutputType without action
*/
export type JourneysCountOutputTypeCountJourney_contributorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.journey_contributorsWhereInput
}
/**
* JourneysCountOutputType without action
*/
export type JourneysCountOutputTypeCountJourney_entriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.journey_entriesWhereInput
}
/**
* JourneysCountOutputType without action
*/
export type JourneysCountOutputTypeCountJourney_photosArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.journey_photosWhereInput
}
/**
* JourneysCountOutputType without action
*/
export type JourneysCountOutputTypeCountJourney_tripsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.journey_tripsWhereInput
}
export type journeysSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
user_id?: boolean
title?: boolean
subtitle?: boolean
cover_gradient?: boolean
status?: boolean
created_at?: boolean
updated_at?: boolean
cover_image?: boolean
journey_contributors?: boolean | Prisma.journeys$journey_contributorsArgs<ExtArgs>
journey_entries?: boolean | Prisma.journeys$journey_entriesArgs<ExtArgs>
journey_photos?: boolean | Prisma.journeys$journey_photosArgs<ExtArgs>
journey_share_tokens?: boolean | Prisma.journeys$journey_share_tokensArgs<ExtArgs>
journey_trips?: boolean | Prisma.journeys$journey_tripsArgs<ExtArgs>
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
_count?: boolean | Prisma.JourneysCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["journeys"]>
export type journeysSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
user_id?: boolean
title?: boolean
subtitle?: boolean
cover_gradient?: boolean
status?: boolean
created_at?: boolean
updated_at?: boolean
cover_image?: boolean
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["journeys"]>
export type journeysSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
user_id?: boolean
title?: boolean
subtitle?: boolean
cover_gradient?: boolean
status?: boolean
created_at?: boolean
updated_at?: boolean
cover_image?: boolean
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["journeys"]>
export type journeysSelectScalar = {
id?: boolean
user_id?: boolean
title?: boolean
subtitle?: boolean
cover_gradient?: boolean
status?: boolean
created_at?: boolean
updated_at?: boolean
cover_image?: boolean
}
export type journeysOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "title" | "subtitle" | "cover_gradient" | "status" | "created_at" | "updated_at" | "cover_image", ExtArgs["result"]["journeys"]>
export type journeysInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
journey_contributors?: boolean | Prisma.journeys$journey_contributorsArgs<ExtArgs>
journey_entries?: boolean | Prisma.journeys$journey_entriesArgs<ExtArgs>
journey_photos?: boolean | Prisma.journeys$journey_photosArgs<ExtArgs>
journey_share_tokens?: boolean | Prisma.journeys$journey_share_tokensArgs<ExtArgs>
journey_trips?: boolean | Prisma.journeys$journey_tripsArgs<ExtArgs>
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
_count?: boolean | Prisma.JourneysCountOutputTypeDefaultArgs<ExtArgs>
}
export type journeysIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}
export type journeysIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
users?: boolean | Prisma.usersDefaultArgs<ExtArgs>
}
export type $journeysPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "journeys"
objects: {
journey_contributors: Prisma.$journey_contributorsPayload<ExtArgs>[]
journey_entries: Prisma.$journey_entriesPayload<ExtArgs>[]
journey_photos: Prisma.$journey_photosPayload<ExtArgs>[]
journey_share_tokens: Prisma.$journey_share_tokensPayload<ExtArgs> | null
journey_trips: Prisma.$journey_tripsPayload<ExtArgs>[]
users: Prisma.$usersPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
user_id: number
title: string
subtitle: string | null
cover_gradient: string | null
status: string | null
created_at: number
updated_at: number
cover_image: string | null
}, ExtArgs["result"]["journeys"]>
composites: {}
}
export type journeysGetPayload<S extends boolean | null | undefined | journeysDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$journeysPayload, S>
export type journeysCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<journeysFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: JourneysCountAggregateInputType | true
}
export interface journeysDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['journeys'], meta: { name: 'journeys' } }
/**
* Find zero or one Journeys that matches the filter.
* @param {journeysFindUniqueArgs} args - Arguments to find a Journeys
* @example
* // Get one Journeys
* const journeys = await prisma.journeys.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends journeysFindUniqueArgs>(args: Prisma.SelectSubset<T, journeysFindUniqueArgs<ExtArgs>>): Prisma.Prisma__journeysClient<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Journeys that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {journeysFindUniqueOrThrowArgs} args - Arguments to find a Journeys
* @example
* // Get one Journeys
* const journeys = await prisma.journeys.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends journeysFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, journeysFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__journeysClient<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Journeys 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 {journeysFindFirstArgs} args - Arguments to find a Journeys
* @example
* // Get one Journeys
* const journeys = await prisma.journeys.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends journeysFindFirstArgs>(args?: Prisma.SelectSubset<T, journeysFindFirstArgs<ExtArgs>>): Prisma.Prisma__journeysClient<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Journeys 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 {journeysFindFirstOrThrowArgs} args - Arguments to find a Journeys
* @example
* // Get one Journeys
* const journeys = await prisma.journeys.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends journeysFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, journeysFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__journeysClient<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Journeys 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 {journeysFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Journeys
* const journeys = await prisma.journeys.findMany()
*
* // Get first 10 Journeys
* const journeys = await prisma.journeys.findMany({ take: 10 })
*
* // Only select the `id`
* const journeysWithIdOnly = await prisma.journeys.findMany({ select: { id: true } })
*
*/
findMany<T extends journeysFindManyArgs>(args?: Prisma.SelectSubset<T, journeysFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Journeys.
* @param {journeysCreateArgs} args - Arguments to create a Journeys.
* @example
* // Create one Journeys
* const Journeys = await prisma.journeys.create({
* data: {
* // ... data to create a Journeys
* }
* })
*
*/
create<T extends journeysCreateArgs>(args: Prisma.SelectSubset<T, journeysCreateArgs<ExtArgs>>): Prisma.Prisma__journeysClient<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Journeys.
* @param {journeysCreateManyArgs} args - Arguments to create many Journeys.
* @example
* // Create many Journeys
* const journeys = await prisma.journeys.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends journeysCreateManyArgs>(args?: Prisma.SelectSubset<T, journeysCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Journeys and returns the data saved in the database.
* @param {journeysCreateManyAndReturnArgs} args - Arguments to create many Journeys.
* @example
* // Create many Journeys
* const journeys = await prisma.journeys.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Journeys and only return the `id`
* const journeysWithIdOnly = await prisma.journeys.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 journeysCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, journeysCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Journeys.
* @param {journeysDeleteArgs} args - Arguments to delete one Journeys.
* @example
* // Delete one Journeys
* const Journeys = await prisma.journeys.delete({
* where: {
* // ... filter to delete one Journeys
* }
* })
*
*/
delete<T extends journeysDeleteArgs>(args: Prisma.SelectSubset<T, journeysDeleteArgs<ExtArgs>>): Prisma.Prisma__journeysClient<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Journeys.
* @param {journeysUpdateArgs} args - Arguments to update one Journeys.
* @example
* // Update one Journeys
* const journeys = await prisma.journeys.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends journeysUpdateArgs>(args: Prisma.SelectSubset<T, journeysUpdateArgs<ExtArgs>>): Prisma.Prisma__journeysClient<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Journeys.
* @param {journeysDeleteManyArgs} args - Arguments to filter Journeys to delete.
* @example
* // Delete a few Journeys
* const { count } = await prisma.journeys.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends journeysDeleteManyArgs>(args?: Prisma.SelectSubset<T, journeysDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Journeys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {journeysUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Journeys
* const journeys = await prisma.journeys.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends journeysUpdateManyArgs>(args: Prisma.SelectSubset<T, journeysUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Journeys and returns the data updated in the database.
* @param {journeysUpdateManyAndReturnArgs} args - Arguments to update many Journeys.
* @example
* // Update many Journeys
* const journeys = await prisma.journeys.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Journeys and only return the `id`
* const journeysWithIdOnly = await prisma.journeys.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 journeysUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, journeysUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Journeys.
* @param {journeysUpsertArgs} args - Arguments to update or create a Journeys.
* @example
* // Update or create a Journeys
* const journeys = await prisma.journeys.upsert({
* create: {
* // ... data to create a Journeys
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Journeys we want to update
* }
* })
*/
upsert<T extends journeysUpsertArgs>(args: Prisma.SelectSubset<T, journeysUpsertArgs<ExtArgs>>): Prisma.Prisma__journeysClient<runtime.Types.Result.GetResult<Prisma.$journeysPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Journeys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {journeysCountArgs} args - Arguments to filter Journeys to count.
* @example
* // Count the number of Journeys
* const count = await prisma.journeys.count({
* where: {
* // ... the filter for the Journeys we want to count
* }
* })
**/
count<T extends journeysCountArgs>(
args?: Prisma.Subset<T, journeysCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], JourneysCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Journeys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {JourneysAggregateArgs} 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 JourneysAggregateArgs>(args: Prisma.Subset<T, JourneysAggregateArgs>): Prisma.PrismaPromise<GetJourneysAggregateType<T>>
/**
* Group by Journeys.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {journeysGroupByArgs} 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 journeysGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: journeysGroupByArgs['orderBy'] }
: { orderBy?: journeysGroupByArgs['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, journeysGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetJourneysGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the journeys model
*/
readonly fields: journeysFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for journeys.
* 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__journeysClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
journey_contributors<T extends Prisma.journeys$journey_contributorsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.journeys$journey_contributorsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$journey_contributorsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
journey_entries<T extends Prisma.journeys$journey_entriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.journeys$journey_entriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$journey_entriesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
journey_photos<T extends Prisma.journeys$journey_photosArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.journeys$journey_photosArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$journey_photosPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
journey_share_tokens<T extends Prisma.journeys$journey_share_tokensArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.journeys$journey_share_tokensArgs<ExtArgs>>): Prisma.Prisma__journey_share_tokensClient<runtime.Types.Result.GetResult<Prisma.$journey_share_tokensPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
journey_trips<T extends Prisma.journeys$journey_tripsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.journeys$journey_tripsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$journey_tripsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
users<T extends Prisma.usersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.usersDefaultArgs<ExtArgs>>): Prisma.Prisma__usersClient<runtime.Types.Result.GetResult<Prisma.$usersPayload<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 journeys model
*/
export interface journeysFieldRefs {
readonly id: Prisma.FieldRef<"journeys", 'Int'>
readonly user_id: Prisma.FieldRef<"journeys", 'Int'>
readonly title: Prisma.FieldRef<"journeys", 'String'>
readonly subtitle: Prisma.FieldRef<"journeys", 'String'>
readonly cover_gradient: Prisma.FieldRef<"journeys", 'String'>
readonly status: Prisma.FieldRef<"journeys", 'String'>
readonly created_at: Prisma.FieldRef<"journeys", 'Int'>
readonly updated_at: Prisma.FieldRef<"journeys", 'Int'>
readonly cover_image: Prisma.FieldRef<"journeys", 'String'>
}
// Custom InputTypes
/**
* journeys findUnique
*/
export type journeysFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* Filter, which journeys to fetch.
*/
where: Prisma.journeysWhereUniqueInput
}
/**
* journeys findUniqueOrThrow
*/
export type journeysFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* Filter, which journeys to fetch.
*/
where: Prisma.journeysWhereUniqueInput
}
/**
* journeys findFirst
*/
export type journeysFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* Filter, which journeys to fetch.
*/
where?: Prisma.journeysWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of journeys to fetch.
*/
orderBy?: Prisma.journeysOrderByWithRelationInput | Prisma.journeysOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for journeys.
*/
cursor?: Prisma.journeysWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` journeys 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` journeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of journeys.
*/
distinct?: Prisma.JourneysScalarFieldEnum | Prisma.JourneysScalarFieldEnum[]
}
/**
* journeys findFirstOrThrow
*/
export type journeysFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* Filter, which journeys to fetch.
*/
where?: Prisma.journeysWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of journeys to fetch.
*/
orderBy?: Prisma.journeysOrderByWithRelationInput | Prisma.journeysOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for journeys.
*/
cursor?: Prisma.journeysWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` journeys 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` journeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of journeys.
*/
distinct?: Prisma.JourneysScalarFieldEnum | Prisma.JourneysScalarFieldEnum[]
}
/**
* journeys findMany
*/
export type journeysFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* Filter, which journeys to fetch.
*/
where?: Prisma.journeysWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of journeys to fetch.
*/
orderBy?: Prisma.journeysOrderByWithRelationInput | Prisma.journeysOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing journeys.
*/
cursor?: Prisma.journeysWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` journeys 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` journeys.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of journeys.
*/
distinct?: Prisma.JourneysScalarFieldEnum | Prisma.JourneysScalarFieldEnum[]
}
/**
* journeys create
*/
export type journeysCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* The data needed to create a journeys.
*/
data: Prisma.XOR<Prisma.journeysCreateInput, Prisma.journeysUncheckedCreateInput>
}
/**
* journeys createMany
*/
export type journeysCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many journeys.
*/
data: Prisma.journeysCreateManyInput | Prisma.journeysCreateManyInput[]
}
/**
* journeys createManyAndReturn
*/
export type journeysCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* The data used to create many journeys.
*/
data: Prisma.journeysCreateManyInput | Prisma.journeysCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* journeys update
*/
export type journeysUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* The data needed to update a journeys.
*/
data: Prisma.XOR<Prisma.journeysUpdateInput, Prisma.journeysUncheckedUpdateInput>
/**
* Choose, which journeys to update.
*/
where: Prisma.journeysWhereUniqueInput
}
/**
* journeys updateMany
*/
export type journeysUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update journeys.
*/
data: Prisma.XOR<Prisma.journeysUpdateManyMutationInput, Prisma.journeysUncheckedUpdateManyInput>
/**
* Filter which journeys to update
*/
where?: Prisma.journeysWhereInput
/**
* Limit how many journeys to update.
*/
limit?: number
}
/**
* journeys updateManyAndReturn
*/
export type journeysUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* The data used to update journeys.
*/
data: Prisma.XOR<Prisma.journeysUpdateManyMutationInput, Prisma.journeysUncheckedUpdateManyInput>
/**
* Filter which journeys to update
*/
where?: Prisma.journeysWhereInput
/**
* Limit how many journeys to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* journeys upsert
*/
export type journeysUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* The filter to search for the journeys to update in case it exists.
*/
where: Prisma.journeysWhereUniqueInput
/**
* In case the journeys found by the `where` argument doesn't exist, create a new journeys with this data.
*/
create: Prisma.XOR<Prisma.journeysCreateInput, Prisma.journeysUncheckedCreateInput>
/**
* In case the journeys was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.journeysUpdateInput, Prisma.journeysUncheckedUpdateInput>
}
/**
* journeys delete
*/
export type journeysDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
/**
* Filter which journeys to delete.
*/
where: Prisma.journeysWhereUniqueInput
}
/**
* journeys deleteMany
*/
export type journeysDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which journeys to delete
*/
where?: Prisma.journeysWhereInput
/**
* Limit how many journeys to delete.
*/
limit?: number
}
/**
* journeys.journey_contributors
*/
export type journeys$journey_contributorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journey_contributors
*/
select?: Prisma.journey_contributorsSelect<ExtArgs> | null
/**
* Omit specific fields from the journey_contributors
*/
omit?: Prisma.journey_contributorsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journey_contributorsInclude<ExtArgs> | null
where?: Prisma.journey_contributorsWhereInput
orderBy?: Prisma.journey_contributorsOrderByWithRelationInput | Prisma.journey_contributorsOrderByWithRelationInput[]
cursor?: Prisma.journey_contributorsWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.Journey_contributorsScalarFieldEnum | Prisma.Journey_contributorsScalarFieldEnum[]
}
/**
* journeys.journey_entries
*/
export type journeys$journey_entriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journey_entries
*/
select?: Prisma.journey_entriesSelect<ExtArgs> | null
/**
* Omit specific fields from the journey_entries
*/
omit?: Prisma.journey_entriesOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journey_entriesInclude<ExtArgs> | null
where?: Prisma.journey_entriesWhereInput
orderBy?: Prisma.journey_entriesOrderByWithRelationInput | Prisma.journey_entriesOrderByWithRelationInput[]
cursor?: Prisma.journey_entriesWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.Journey_entriesScalarFieldEnum | Prisma.Journey_entriesScalarFieldEnum[]
}
/**
* journeys.journey_photos
*/
export type journeys$journey_photosArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journey_photos
*/
select?: Prisma.journey_photosSelect<ExtArgs> | null
/**
* Omit specific fields from the journey_photos
*/
omit?: Prisma.journey_photosOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journey_photosInclude<ExtArgs> | null
where?: Prisma.journey_photosWhereInput
orderBy?: Prisma.journey_photosOrderByWithRelationInput | Prisma.journey_photosOrderByWithRelationInput[]
cursor?: Prisma.journey_photosWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.Journey_photosScalarFieldEnum | Prisma.Journey_photosScalarFieldEnum[]
}
/**
* journeys.journey_share_tokens
*/
export type journeys$journey_share_tokensArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journey_share_tokens
*/
select?: Prisma.journey_share_tokensSelect<ExtArgs> | null
/**
* Omit specific fields from the journey_share_tokens
*/
omit?: Prisma.journey_share_tokensOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journey_share_tokensInclude<ExtArgs> | null
where?: Prisma.journey_share_tokensWhereInput
}
/**
* journeys.journey_trips
*/
export type journeys$journey_tripsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journey_trips
*/
select?: Prisma.journey_tripsSelect<ExtArgs> | null
/**
* Omit specific fields from the journey_trips
*/
omit?: Prisma.journey_tripsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journey_tripsInclude<ExtArgs> | null
where?: Prisma.journey_tripsWhereInput
orderBy?: Prisma.journey_tripsOrderByWithRelationInput | Prisma.journey_tripsOrderByWithRelationInput[]
cursor?: Prisma.journey_tripsWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.Journey_tripsScalarFieldEnum | Prisma.Journey_tripsScalarFieldEnum[]
}
/**
* journeys without action
*/
export type journeysDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the journeys
*/
select?: Prisma.journeysSelect<ExtArgs> | null
/**
* Omit specific fields from the journeys
*/
omit?: Prisma.journeysOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.journeysInclude<ExtArgs> | null
}