Files
got-gaming/prisma/generated/prisma/models/Challenge.ts

2262 lines
94 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 `Challenge` 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 Challenge
*
*/
export type ChallengeModel = runtime.Types.Result.DefaultSelection<Prisma.$ChallengePayload>
export type AggregateChallenge = {
_count: ChallengeCountAggregateOutputType | null
_avg: ChallengeAvgAggregateOutputType | null
_sum: ChallengeSumAggregateOutputType | null
_min: ChallengeMinAggregateOutputType | null
_max: ChallengeMaxAggregateOutputType | null
}
export type ChallengeAvgAggregateOutputType = {
pointsReward: number | null
}
export type ChallengeSumAggregateOutputType = {
pointsReward: number | null
}
export type ChallengeMinAggregateOutputType = {
id: string | null
challengerId: string | null
challengedId: string | null
title: string | null
description: string | null
pointsReward: number | null
status: $Enums.ChallengeStatus | null
adminId: string | null
adminComment: string | null
winnerId: string | null
createdAt: Date | null
acceptedAt: Date | null
completedAt: Date | null
updatedAt: Date | null
}
export type ChallengeMaxAggregateOutputType = {
id: string | null
challengerId: string | null
challengedId: string | null
title: string | null
description: string | null
pointsReward: number | null
status: $Enums.ChallengeStatus | null
adminId: string | null
adminComment: string | null
winnerId: string | null
createdAt: Date | null
acceptedAt: Date | null
completedAt: Date | null
updatedAt: Date | null
}
export type ChallengeCountAggregateOutputType = {
id: number
challengerId: number
challengedId: number
title: number
description: number
pointsReward: number
status: number
adminId: number
adminComment: number
winnerId: number
createdAt: number
acceptedAt: number
completedAt: number
updatedAt: number
_all: number
}
export type ChallengeAvgAggregateInputType = {
pointsReward?: true
}
export type ChallengeSumAggregateInputType = {
pointsReward?: true
}
export type ChallengeMinAggregateInputType = {
id?: true
challengerId?: true
challengedId?: true
title?: true
description?: true
pointsReward?: true
status?: true
adminId?: true
adminComment?: true
winnerId?: true
createdAt?: true
acceptedAt?: true
completedAt?: true
updatedAt?: true
}
export type ChallengeMaxAggregateInputType = {
id?: true
challengerId?: true
challengedId?: true
title?: true
description?: true
pointsReward?: true
status?: true
adminId?: true
adminComment?: true
winnerId?: true
createdAt?: true
acceptedAt?: true
completedAt?: true
updatedAt?: true
}
export type ChallengeCountAggregateInputType = {
id?: true
challengerId?: true
challengedId?: true
title?: true
description?: true
pointsReward?: true
status?: true
adminId?: true
adminComment?: true
winnerId?: true
createdAt?: true
acceptedAt?: true
completedAt?: true
updatedAt?: true
_all?: true
}
export type ChallengeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Challenge to aggregate.
*/
where?: Prisma.ChallengeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Challenges to fetch.
*/
orderBy?: Prisma.ChallengeOrderByWithRelationInput | Prisma.ChallengeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.ChallengeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Challenges 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` Challenges.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Challenges
**/
_count?: true | ChallengeCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ChallengeAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ChallengeSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ChallengeMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ChallengeMaxAggregateInputType
}
export type GetChallengeAggregateType<T extends ChallengeAggregateArgs> = {
[P in keyof T & keyof AggregateChallenge]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateChallenge[P]>
: Prisma.GetScalarType<T[P], AggregateChallenge[P]>
}
export type ChallengeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ChallengeWhereInput
orderBy?: Prisma.ChallengeOrderByWithAggregationInput | Prisma.ChallengeOrderByWithAggregationInput[]
by: Prisma.ChallengeScalarFieldEnum[] | Prisma.ChallengeScalarFieldEnum
having?: Prisma.ChallengeScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ChallengeCountAggregateInputType | true
_avg?: ChallengeAvgAggregateInputType
_sum?: ChallengeSumAggregateInputType
_min?: ChallengeMinAggregateInputType
_max?: ChallengeMaxAggregateInputType
}
export type ChallengeGroupByOutputType = {
id: string
challengerId: string
challengedId: string
title: string
description: string
pointsReward: number
status: $Enums.ChallengeStatus
adminId: string | null
adminComment: string | null
winnerId: string | null
createdAt: Date
acceptedAt: Date | null
completedAt: Date | null
updatedAt: Date
_count: ChallengeCountAggregateOutputType | null
_avg: ChallengeAvgAggregateOutputType | null
_sum: ChallengeSumAggregateOutputType | null
_min: ChallengeMinAggregateOutputType | null
_max: ChallengeMaxAggregateOutputType | null
}
type GetChallengeGroupByPayload<T extends ChallengeGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ChallengeGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ChallengeGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ChallengeGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ChallengeGroupByOutputType[P]>
}
>
>
export type ChallengeWhereInput = {
AND?: Prisma.ChallengeWhereInput | Prisma.ChallengeWhereInput[]
OR?: Prisma.ChallengeWhereInput[]
NOT?: Prisma.ChallengeWhereInput | Prisma.ChallengeWhereInput[]
id?: Prisma.StringFilter<"Challenge"> | string
challengerId?: Prisma.StringFilter<"Challenge"> | string
challengedId?: Prisma.StringFilter<"Challenge"> | string
title?: Prisma.StringFilter<"Challenge"> | string
description?: Prisma.StringFilter<"Challenge"> | string
pointsReward?: Prisma.IntFilter<"Challenge"> | number
status?: Prisma.EnumChallengeStatusFilter<"Challenge"> | $Enums.ChallengeStatus
adminId?: Prisma.StringNullableFilter<"Challenge"> | string | null
adminComment?: Prisma.StringNullableFilter<"Challenge"> | string | null
winnerId?: Prisma.StringNullableFilter<"Challenge"> | string | null
createdAt?: Prisma.DateTimeFilter<"Challenge"> | Date | string
acceptedAt?: Prisma.DateTimeNullableFilter<"Challenge"> | Date | string | null
completedAt?: Prisma.DateTimeNullableFilter<"Challenge"> | Date | string | null
updatedAt?: Prisma.DateTimeFilter<"Challenge"> | Date | string
challenger?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
challenged?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
admin?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
winner?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}
export type ChallengeOrderByWithRelationInput = {
id?: Prisma.SortOrder
challengerId?: Prisma.SortOrder
challengedId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
pointsReward?: Prisma.SortOrder
status?: Prisma.SortOrder
adminId?: Prisma.SortOrderInput | Prisma.SortOrder
adminComment?: Prisma.SortOrderInput | Prisma.SortOrder
winnerId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder
completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
updatedAt?: Prisma.SortOrder
challenger?: Prisma.UserOrderByWithRelationInput
challenged?: Prisma.UserOrderByWithRelationInput
admin?: Prisma.UserOrderByWithRelationInput
winner?: Prisma.UserOrderByWithRelationInput
}
export type ChallengeWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.ChallengeWhereInput | Prisma.ChallengeWhereInput[]
OR?: Prisma.ChallengeWhereInput[]
NOT?: Prisma.ChallengeWhereInput | Prisma.ChallengeWhereInput[]
challengerId?: Prisma.StringFilter<"Challenge"> | string
challengedId?: Prisma.StringFilter<"Challenge"> | string
title?: Prisma.StringFilter<"Challenge"> | string
description?: Prisma.StringFilter<"Challenge"> | string
pointsReward?: Prisma.IntFilter<"Challenge"> | number
status?: Prisma.EnumChallengeStatusFilter<"Challenge"> | $Enums.ChallengeStatus
adminId?: Prisma.StringNullableFilter<"Challenge"> | string | null
adminComment?: Prisma.StringNullableFilter<"Challenge"> | string | null
winnerId?: Prisma.StringNullableFilter<"Challenge"> | string | null
createdAt?: Prisma.DateTimeFilter<"Challenge"> | Date | string
acceptedAt?: Prisma.DateTimeNullableFilter<"Challenge"> | Date | string | null
completedAt?: Prisma.DateTimeNullableFilter<"Challenge"> | Date | string | null
updatedAt?: Prisma.DateTimeFilter<"Challenge"> | Date | string
challenger?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
challenged?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
admin?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
winner?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}, "id">
export type ChallengeOrderByWithAggregationInput = {
id?: Prisma.SortOrder
challengerId?: Prisma.SortOrder
challengedId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
pointsReward?: Prisma.SortOrder
status?: Prisma.SortOrder
adminId?: Prisma.SortOrderInput | Prisma.SortOrder
adminComment?: Prisma.SortOrderInput | Prisma.SortOrder
winnerId?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
acceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder
completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.ChallengeCountOrderByAggregateInput
_avg?: Prisma.ChallengeAvgOrderByAggregateInput
_max?: Prisma.ChallengeMaxOrderByAggregateInput
_min?: Prisma.ChallengeMinOrderByAggregateInput
_sum?: Prisma.ChallengeSumOrderByAggregateInput
}
export type ChallengeScalarWhereWithAggregatesInput = {
AND?: Prisma.ChallengeScalarWhereWithAggregatesInput | Prisma.ChallengeScalarWhereWithAggregatesInput[]
OR?: Prisma.ChallengeScalarWhereWithAggregatesInput[]
NOT?: Prisma.ChallengeScalarWhereWithAggregatesInput | Prisma.ChallengeScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Challenge"> | string
challengerId?: Prisma.StringWithAggregatesFilter<"Challenge"> | string
challengedId?: Prisma.StringWithAggregatesFilter<"Challenge"> | string
title?: Prisma.StringWithAggregatesFilter<"Challenge"> | string
description?: Prisma.StringWithAggregatesFilter<"Challenge"> | string
pointsReward?: Prisma.IntWithAggregatesFilter<"Challenge"> | number
status?: Prisma.EnumChallengeStatusWithAggregatesFilter<"Challenge"> | $Enums.ChallengeStatus
adminId?: Prisma.StringNullableWithAggregatesFilter<"Challenge"> | string | null
adminComment?: Prisma.StringNullableWithAggregatesFilter<"Challenge"> | string | null
winnerId?: Prisma.StringNullableWithAggregatesFilter<"Challenge"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Challenge"> | Date | string
acceptedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Challenge"> | Date | string | null
completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Challenge"> | Date | string | null
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Challenge"> | Date | string
}
export type ChallengeCreateInput = {
id?: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminComment?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
challenger: Prisma.UserCreateNestedOneWithoutChallengesAsChallengerInput
challenged: Prisma.UserCreateNestedOneWithoutChallengesAsChallengedInput
admin?: Prisma.UserCreateNestedOneWithoutChallengesAsAdminInput
winner?: Prisma.UserCreateNestedOneWithoutChallengesAsWinnerInput
}
export type ChallengeUncheckedCreateInput = {
id?: string
challengerId: string
challengedId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminId?: string | null
adminComment?: string | null
winnerId?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
challenger?: Prisma.UserUpdateOneRequiredWithoutChallengesAsChallengerNestedInput
challenged?: Prisma.UserUpdateOneRequiredWithoutChallengesAsChallengedNestedInput
admin?: Prisma.UserUpdateOneWithoutChallengesAsAdminNestedInput
winner?: Prisma.UserUpdateOneWithoutChallengesAsWinnerNestedInput
}
export type ChallengeUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengerId?: Prisma.StringFieldUpdateOperationsInput | string
challengedId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
winnerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeCreateManyInput = {
id?: string
challengerId: string
challengedId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminId?: string | null
adminComment?: string | null
winnerId?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengerId?: Prisma.StringFieldUpdateOperationsInput | string
challengedId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
winnerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeListRelationFilter = {
every?: Prisma.ChallengeWhereInput
some?: Prisma.ChallengeWhereInput
none?: Prisma.ChallengeWhereInput
}
export type ChallengeOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type ChallengeCountOrderByAggregateInput = {
id?: Prisma.SortOrder
challengerId?: Prisma.SortOrder
challengedId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
pointsReward?: Prisma.SortOrder
status?: Prisma.SortOrder
adminId?: Prisma.SortOrder
adminComment?: Prisma.SortOrder
winnerId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
acceptedAt?: Prisma.SortOrder
completedAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ChallengeAvgOrderByAggregateInput = {
pointsReward?: Prisma.SortOrder
}
export type ChallengeMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
challengerId?: Prisma.SortOrder
challengedId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
pointsReward?: Prisma.SortOrder
status?: Prisma.SortOrder
adminId?: Prisma.SortOrder
adminComment?: Prisma.SortOrder
winnerId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
acceptedAt?: Prisma.SortOrder
completedAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ChallengeMinOrderByAggregateInput = {
id?: Prisma.SortOrder
challengerId?: Prisma.SortOrder
challengedId?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
pointsReward?: Prisma.SortOrder
status?: Prisma.SortOrder
adminId?: Prisma.SortOrder
adminComment?: Prisma.SortOrder
winnerId?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
acceptedAt?: Prisma.SortOrder
completedAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type ChallengeSumOrderByAggregateInput = {
pointsReward?: Prisma.SortOrder
}
export type ChallengeCreateNestedManyWithoutChallengerInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengerInput, Prisma.ChallengeUncheckedCreateWithoutChallengerInput> | Prisma.ChallengeCreateWithoutChallengerInput[] | Prisma.ChallengeUncheckedCreateWithoutChallengerInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutChallengerInput | Prisma.ChallengeCreateOrConnectWithoutChallengerInput[]
createMany?: Prisma.ChallengeCreateManyChallengerInputEnvelope
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
}
export type ChallengeCreateNestedManyWithoutChallengedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengedInput, Prisma.ChallengeUncheckedCreateWithoutChallengedInput> | Prisma.ChallengeCreateWithoutChallengedInput[] | Prisma.ChallengeUncheckedCreateWithoutChallengedInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutChallengedInput | Prisma.ChallengeCreateOrConnectWithoutChallengedInput[]
createMany?: Prisma.ChallengeCreateManyChallengedInputEnvelope
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
}
export type ChallengeCreateNestedManyWithoutAdminInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutAdminInput, Prisma.ChallengeUncheckedCreateWithoutAdminInput> | Prisma.ChallengeCreateWithoutAdminInput[] | Prisma.ChallengeUncheckedCreateWithoutAdminInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutAdminInput | Prisma.ChallengeCreateOrConnectWithoutAdminInput[]
createMany?: Prisma.ChallengeCreateManyAdminInputEnvelope
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
}
export type ChallengeCreateNestedManyWithoutWinnerInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutWinnerInput, Prisma.ChallengeUncheckedCreateWithoutWinnerInput> | Prisma.ChallengeCreateWithoutWinnerInput[] | Prisma.ChallengeUncheckedCreateWithoutWinnerInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutWinnerInput | Prisma.ChallengeCreateOrConnectWithoutWinnerInput[]
createMany?: Prisma.ChallengeCreateManyWinnerInputEnvelope
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
}
export type ChallengeUncheckedCreateNestedManyWithoutChallengerInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengerInput, Prisma.ChallengeUncheckedCreateWithoutChallengerInput> | Prisma.ChallengeCreateWithoutChallengerInput[] | Prisma.ChallengeUncheckedCreateWithoutChallengerInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutChallengerInput | Prisma.ChallengeCreateOrConnectWithoutChallengerInput[]
createMany?: Prisma.ChallengeCreateManyChallengerInputEnvelope
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
}
export type ChallengeUncheckedCreateNestedManyWithoutChallengedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengedInput, Prisma.ChallengeUncheckedCreateWithoutChallengedInput> | Prisma.ChallengeCreateWithoutChallengedInput[] | Prisma.ChallengeUncheckedCreateWithoutChallengedInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutChallengedInput | Prisma.ChallengeCreateOrConnectWithoutChallengedInput[]
createMany?: Prisma.ChallengeCreateManyChallengedInputEnvelope
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
}
export type ChallengeUncheckedCreateNestedManyWithoutAdminInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutAdminInput, Prisma.ChallengeUncheckedCreateWithoutAdminInput> | Prisma.ChallengeCreateWithoutAdminInput[] | Prisma.ChallengeUncheckedCreateWithoutAdminInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutAdminInput | Prisma.ChallengeCreateOrConnectWithoutAdminInput[]
createMany?: Prisma.ChallengeCreateManyAdminInputEnvelope
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
}
export type ChallengeUncheckedCreateNestedManyWithoutWinnerInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutWinnerInput, Prisma.ChallengeUncheckedCreateWithoutWinnerInput> | Prisma.ChallengeCreateWithoutWinnerInput[] | Prisma.ChallengeUncheckedCreateWithoutWinnerInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutWinnerInput | Prisma.ChallengeCreateOrConnectWithoutWinnerInput[]
createMany?: Prisma.ChallengeCreateManyWinnerInputEnvelope
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
}
export type ChallengeUpdateManyWithoutChallengerNestedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengerInput, Prisma.ChallengeUncheckedCreateWithoutChallengerInput> | Prisma.ChallengeCreateWithoutChallengerInput[] | Prisma.ChallengeUncheckedCreateWithoutChallengerInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutChallengerInput | Prisma.ChallengeCreateOrConnectWithoutChallengerInput[]
upsert?: Prisma.ChallengeUpsertWithWhereUniqueWithoutChallengerInput | Prisma.ChallengeUpsertWithWhereUniqueWithoutChallengerInput[]
createMany?: Prisma.ChallengeCreateManyChallengerInputEnvelope
set?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
disconnect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
delete?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
update?: Prisma.ChallengeUpdateWithWhereUniqueWithoutChallengerInput | Prisma.ChallengeUpdateWithWhereUniqueWithoutChallengerInput[]
updateMany?: Prisma.ChallengeUpdateManyWithWhereWithoutChallengerInput | Prisma.ChallengeUpdateManyWithWhereWithoutChallengerInput[]
deleteMany?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
}
export type ChallengeUpdateManyWithoutChallengedNestedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengedInput, Prisma.ChallengeUncheckedCreateWithoutChallengedInput> | Prisma.ChallengeCreateWithoutChallengedInput[] | Prisma.ChallengeUncheckedCreateWithoutChallengedInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutChallengedInput | Prisma.ChallengeCreateOrConnectWithoutChallengedInput[]
upsert?: Prisma.ChallengeUpsertWithWhereUniqueWithoutChallengedInput | Prisma.ChallengeUpsertWithWhereUniqueWithoutChallengedInput[]
createMany?: Prisma.ChallengeCreateManyChallengedInputEnvelope
set?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
disconnect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
delete?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
update?: Prisma.ChallengeUpdateWithWhereUniqueWithoutChallengedInput | Prisma.ChallengeUpdateWithWhereUniqueWithoutChallengedInput[]
updateMany?: Prisma.ChallengeUpdateManyWithWhereWithoutChallengedInput | Prisma.ChallengeUpdateManyWithWhereWithoutChallengedInput[]
deleteMany?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
}
export type ChallengeUpdateManyWithoutAdminNestedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutAdminInput, Prisma.ChallengeUncheckedCreateWithoutAdminInput> | Prisma.ChallengeCreateWithoutAdminInput[] | Prisma.ChallengeUncheckedCreateWithoutAdminInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutAdminInput | Prisma.ChallengeCreateOrConnectWithoutAdminInput[]
upsert?: Prisma.ChallengeUpsertWithWhereUniqueWithoutAdminInput | Prisma.ChallengeUpsertWithWhereUniqueWithoutAdminInput[]
createMany?: Prisma.ChallengeCreateManyAdminInputEnvelope
set?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
disconnect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
delete?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
update?: Prisma.ChallengeUpdateWithWhereUniqueWithoutAdminInput | Prisma.ChallengeUpdateWithWhereUniqueWithoutAdminInput[]
updateMany?: Prisma.ChallengeUpdateManyWithWhereWithoutAdminInput | Prisma.ChallengeUpdateManyWithWhereWithoutAdminInput[]
deleteMany?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
}
export type ChallengeUpdateManyWithoutWinnerNestedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutWinnerInput, Prisma.ChallengeUncheckedCreateWithoutWinnerInput> | Prisma.ChallengeCreateWithoutWinnerInput[] | Prisma.ChallengeUncheckedCreateWithoutWinnerInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutWinnerInput | Prisma.ChallengeCreateOrConnectWithoutWinnerInput[]
upsert?: Prisma.ChallengeUpsertWithWhereUniqueWithoutWinnerInput | Prisma.ChallengeUpsertWithWhereUniqueWithoutWinnerInput[]
createMany?: Prisma.ChallengeCreateManyWinnerInputEnvelope
set?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
disconnect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
delete?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
update?: Prisma.ChallengeUpdateWithWhereUniqueWithoutWinnerInput | Prisma.ChallengeUpdateWithWhereUniqueWithoutWinnerInput[]
updateMany?: Prisma.ChallengeUpdateManyWithWhereWithoutWinnerInput | Prisma.ChallengeUpdateManyWithWhereWithoutWinnerInput[]
deleteMany?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
}
export type ChallengeUncheckedUpdateManyWithoutChallengerNestedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengerInput, Prisma.ChallengeUncheckedCreateWithoutChallengerInput> | Prisma.ChallengeCreateWithoutChallengerInput[] | Prisma.ChallengeUncheckedCreateWithoutChallengerInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutChallengerInput | Prisma.ChallengeCreateOrConnectWithoutChallengerInput[]
upsert?: Prisma.ChallengeUpsertWithWhereUniqueWithoutChallengerInput | Prisma.ChallengeUpsertWithWhereUniqueWithoutChallengerInput[]
createMany?: Prisma.ChallengeCreateManyChallengerInputEnvelope
set?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
disconnect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
delete?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
update?: Prisma.ChallengeUpdateWithWhereUniqueWithoutChallengerInput | Prisma.ChallengeUpdateWithWhereUniqueWithoutChallengerInput[]
updateMany?: Prisma.ChallengeUpdateManyWithWhereWithoutChallengerInput | Prisma.ChallengeUpdateManyWithWhereWithoutChallengerInput[]
deleteMany?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
}
export type ChallengeUncheckedUpdateManyWithoutChallengedNestedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengedInput, Prisma.ChallengeUncheckedCreateWithoutChallengedInput> | Prisma.ChallengeCreateWithoutChallengedInput[] | Prisma.ChallengeUncheckedCreateWithoutChallengedInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutChallengedInput | Prisma.ChallengeCreateOrConnectWithoutChallengedInput[]
upsert?: Prisma.ChallengeUpsertWithWhereUniqueWithoutChallengedInput | Prisma.ChallengeUpsertWithWhereUniqueWithoutChallengedInput[]
createMany?: Prisma.ChallengeCreateManyChallengedInputEnvelope
set?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
disconnect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
delete?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
update?: Prisma.ChallengeUpdateWithWhereUniqueWithoutChallengedInput | Prisma.ChallengeUpdateWithWhereUniqueWithoutChallengedInput[]
updateMany?: Prisma.ChallengeUpdateManyWithWhereWithoutChallengedInput | Prisma.ChallengeUpdateManyWithWhereWithoutChallengedInput[]
deleteMany?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
}
export type ChallengeUncheckedUpdateManyWithoutAdminNestedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutAdminInput, Prisma.ChallengeUncheckedCreateWithoutAdminInput> | Prisma.ChallengeCreateWithoutAdminInput[] | Prisma.ChallengeUncheckedCreateWithoutAdminInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutAdminInput | Prisma.ChallengeCreateOrConnectWithoutAdminInput[]
upsert?: Prisma.ChallengeUpsertWithWhereUniqueWithoutAdminInput | Prisma.ChallengeUpsertWithWhereUniqueWithoutAdminInput[]
createMany?: Prisma.ChallengeCreateManyAdminInputEnvelope
set?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
disconnect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
delete?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
update?: Prisma.ChallengeUpdateWithWhereUniqueWithoutAdminInput | Prisma.ChallengeUpdateWithWhereUniqueWithoutAdminInput[]
updateMany?: Prisma.ChallengeUpdateManyWithWhereWithoutAdminInput | Prisma.ChallengeUpdateManyWithWhereWithoutAdminInput[]
deleteMany?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
}
export type ChallengeUncheckedUpdateManyWithoutWinnerNestedInput = {
create?: Prisma.XOR<Prisma.ChallengeCreateWithoutWinnerInput, Prisma.ChallengeUncheckedCreateWithoutWinnerInput> | Prisma.ChallengeCreateWithoutWinnerInput[] | Prisma.ChallengeUncheckedCreateWithoutWinnerInput[]
connectOrCreate?: Prisma.ChallengeCreateOrConnectWithoutWinnerInput | Prisma.ChallengeCreateOrConnectWithoutWinnerInput[]
upsert?: Prisma.ChallengeUpsertWithWhereUniqueWithoutWinnerInput | Prisma.ChallengeUpsertWithWhereUniqueWithoutWinnerInput[]
createMany?: Prisma.ChallengeCreateManyWinnerInputEnvelope
set?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
disconnect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
delete?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
connect?: Prisma.ChallengeWhereUniqueInput | Prisma.ChallengeWhereUniqueInput[]
update?: Prisma.ChallengeUpdateWithWhereUniqueWithoutWinnerInput | Prisma.ChallengeUpdateWithWhereUniqueWithoutWinnerInput[]
updateMany?: Prisma.ChallengeUpdateManyWithWhereWithoutWinnerInput | Prisma.ChallengeUpdateManyWithWhereWithoutWinnerInput[]
deleteMany?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
}
export type EnumChallengeStatusFieldUpdateOperationsInput = {
set?: $Enums.ChallengeStatus
}
export type NullableDateTimeFieldUpdateOperationsInput = {
set?: Date | string | null
}
export type ChallengeCreateWithoutChallengerInput = {
id?: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminComment?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
challenged: Prisma.UserCreateNestedOneWithoutChallengesAsChallengedInput
admin?: Prisma.UserCreateNestedOneWithoutChallengesAsAdminInput
winner?: Prisma.UserCreateNestedOneWithoutChallengesAsWinnerInput
}
export type ChallengeUncheckedCreateWithoutChallengerInput = {
id?: string
challengedId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminId?: string | null
adminComment?: string | null
winnerId?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeCreateOrConnectWithoutChallengerInput = {
where: Prisma.ChallengeWhereUniqueInput
create: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengerInput, Prisma.ChallengeUncheckedCreateWithoutChallengerInput>
}
export type ChallengeCreateManyChallengerInputEnvelope = {
data: Prisma.ChallengeCreateManyChallengerInput | Prisma.ChallengeCreateManyChallengerInput[]
}
export type ChallengeCreateWithoutChallengedInput = {
id?: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminComment?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
challenger: Prisma.UserCreateNestedOneWithoutChallengesAsChallengerInput
admin?: Prisma.UserCreateNestedOneWithoutChallengesAsAdminInput
winner?: Prisma.UserCreateNestedOneWithoutChallengesAsWinnerInput
}
export type ChallengeUncheckedCreateWithoutChallengedInput = {
id?: string
challengerId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminId?: string | null
adminComment?: string | null
winnerId?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeCreateOrConnectWithoutChallengedInput = {
where: Prisma.ChallengeWhereUniqueInput
create: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengedInput, Prisma.ChallengeUncheckedCreateWithoutChallengedInput>
}
export type ChallengeCreateManyChallengedInputEnvelope = {
data: Prisma.ChallengeCreateManyChallengedInput | Prisma.ChallengeCreateManyChallengedInput[]
}
export type ChallengeCreateWithoutAdminInput = {
id?: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminComment?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
challenger: Prisma.UserCreateNestedOneWithoutChallengesAsChallengerInput
challenged: Prisma.UserCreateNestedOneWithoutChallengesAsChallengedInput
winner?: Prisma.UserCreateNestedOneWithoutChallengesAsWinnerInput
}
export type ChallengeUncheckedCreateWithoutAdminInput = {
id?: string
challengerId: string
challengedId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminComment?: string | null
winnerId?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeCreateOrConnectWithoutAdminInput = {
where: Prisma.ChallengeWhereUniqueInput
create: Prisma.XOR<Prisma.ChallengeCreateWithoutAdminInput, Prisma.ChallengeUncheckedCreateWithoutAdminInput>
}
export type ChallengeCreateManyAdminInputEnvelope = {
data: Prisma.ChallengeCreateManyAdminInput | Prisma.ChallengeCreateManyAdminInput[]
}
export type ChallengeCreateWithoutWinnerInput = {
id?: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminComment?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
challenger: Prisma.UserCreateNestedOneWithoutChallengesAsChallengerInput
challenged: Prisma.UserCreateNestedOneWithoutChallengesAsChallengedInput
admin?: Prisma.UserCreateNestedOneWithoutChallengesAsAdminInput
}
export type ChallengeUncheckedCreateWithoutWinnerInput = {
id?: string
challengerId: string
challengedId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminId?: string | null
adminComment?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeCreateOrConnectWithoutWinnerInput = {
where: Prisma.ChallengeWhereUniqueInput
create: Prisma.XOR<Prisma.ChallengeCreateWithoutWinnerInput, Prisma.ChallengeUncheckedCreateWithoutWinnerInput>
}
export type ChallengeCreateManyWinnerInputEnvelope = {
data: Prisma.ChallengeCreateManyWinnerInput | Prisma.ChallengeCreateManyWinnerInput[]
}
export type ChallengeUpsertWithWhereUniqueWithoutChallengerInput = {
where: Prisma.ChallengeWhereUniqueInput
update: Prisma.XOR<Prisma.ChallengeUpdateWithoutChallengerInput, Prisma.ChallengeUncheckedUpdateWithoutChallengerInput>
create: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengerInput, Prisma.ChallengeUncheckedCreateWithoutChallengerInput>
}
export type ChallengeUpdateWithWhereUniqueWithoutChallengerInput = {
where: Prisma.ChallengeWhereUniqueInput
data: Prisma.XOR<Prisma.ChallengeUpdateWithoutChallengerInput, Prisma.ChallengeUncheckedUpdateWithoutChallengerInput>
}
export type ChallengeUpdateManyWithWhereWithoutChallengerInput = {
where: Prisma.ChallengeScalarWhereInput
data: Prisma.XOR<Prisma.ChallengeUpdateManyMutationInput, Prisma.ChallengeUncheckedUpdateManyWithoutChallengerInput>
}
export type ChallengeScalarWhereInput = {
AND?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
OR?: Prisma.ChallengeScalarWhereInput[]
NOT?: Prisma.ChallengeScalarWhereInput | Prisma.ChallengeScalarWhereInput[]
id?: Prisma.StringFilter<"Challenge"> | string
challengerId?: Prisma.StringFilter<"Challenge"> | string
challengedId?: Prisma.StringFilter<"Challenge"> | string
title?: Prisma.StringFilter<"Challenge"> | string
description?: Prisma.StringFilter<"Challenge"> | string
pointsReward?: Prisma.IntFilter<"Challenge"> | number
status?: Prisma.EnumChallengeStatusFilter<"Challenge"> | $Enums.ChallengeStatus
adminId?: Prisma.StringNullableFilter<"Challenge"> | string | null
adminComment?: Prisma.StringNullableFilter<"Challenge"> | string | null
winnerId?: Prisma.StringNullableFilter<"Challenge"> | string | null
createdAt?: Prisma.DateTimeFilter<"Challenge"> | Date | string
acceptedAt?: Prisma.DateTimeNullableFilter<"Challenge"> | Date | string | null
completedAt?: Prisma.DateTimeNullableFilter<"Challenge"> | Date | string | null
updatedAt?: Prisma.DateTimeFilter<"Challenge"> | Date | string
}
export type ChallengeUpsertWithWhereUniqueWithoutChallengedInput = {
where: Prisma.ChallengeWhereUniqueInput
update: Prisma.XOR<Prisma.ChallengeUpdateWithoutChallengedInput, Prisma.ChallengeUncheckedUpdateWithoutChallengedInput>
create: Prisma.XOR<Prisma.ChallengeCreateWithoutChallengedInput, Prisma.ChallengeUncheckedCreateWithoutChallengedInput>
}
export type ChallengeUpdateWithWhereUniqueWithoutChallengedInput = {
where: Prisma.ChallengeWhereUniqueInput
data: Prisma.XOR<Prisma.ChallengeUpdateWithoutChallengedInput, Prisma.ChallengeUncheckedUpdateWithoutChallengedInput>
}
export type ChallengeUpdateManyWithWhereWithoutChallengedInput = {
where: Prisma.ChallengeScalarWhereInput
data: Prisma.XOR<Prisma.ChallengeUpdateManyMutationInput, Prisma.ChallengeUncheckedUpdateManyWithoutChallengedInput>
}
export type ChallengeUpsertWithWhereUniqueWithoutAdminInput = {
where: Prisma.ChallengeWhereUniqueInput
update: Prisma.XOR<Prisma.ChallengeUpdateWithoutAdminInput, Prisma.ChallengeUncheckedUpdateWithoutAdminInput>
create: Prisma.XOR<Prisma.ChallengeCreateWithoutAdminInput, Prisma.ChallengeUncheckedCreateWithoutAdminInput>
}
export type ChallengeUpdateWithWhereUniqueWithoutAdminInput = {
where: Prisma.ChallengeWhereUniqueInput
data: Prisma.XOR<Prisma.ChallengeUpdateWithoutAdminInput, Prisma.ChallengeUncheckedUpdateWithoutAdminInput>
}
export type ChallengeUpdateManyWithWhereWithoutAdminInput = {
where: Prisma.ChallengeScalarWhereInput
data: Prisma.XOR<Prisma.ChallengeUpdateManyMutationInput, Prisma.ChallengeUncheckedUpdateManyWithoutAdminInput>
}
export type ChallengeUpsertWithWhereUniqueWithoutWinnerInput = {
where: Prisma.ChallengeWhereUniqueInput
update: Prisma.XOR<Prisma.ChallengeUpdateWithoutWinnerInput, Prisma.ChallengeUncheckedUpdateWithoutWinnerInput>
create: Prisma.XOR<Prisma.ChallengeCreateWithoutWinnerInput, Prisma.ChallengeUncheckedCreateWithoutWinnerInput>
}
export type ChallengeUpdateWithWhereUniqueWithoutWinnerInput = {
where: Prisma.ChallengeWhereUniqueInput
data: Prisma.XOR<Prisma.ChallengeUpdateWithoutWinnerInput, Prisma.ChallengeUncheckedUpdateWithoutWinnerInput>
}
export type ChallengeUpdateManyWithWhereWithoutWinnerInput = {
where: Prisma.ChallengeScalarWhereInput
data: Prisma.XOR<Prisma.ChallengeUpdateManyMutationInput, Prisma.ChallengeUncheckedUpdateManyWithoutWinnerInput>
}
export type ChallengeCreateManyChallengerInput = {
id?: string
challengedId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminId?: string | null
adminComment?: string | null
winnerId?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeCreateManyChallengedInput = {
id?: string
challengerId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminId?: string | null
adminComment?: string | null
winnerId?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeCreateManyAdminInput = {
id?: string
challengerId: string
challengedId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminComment?: string | null
winnerId?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeCreateManyWinnerInput = {
id?: string
challengerId: string
challengedId: string
title: string
description: string
pointsReward?: number
status?: $Enums.ChallengeStatus
adminId?: string | null
adminComment?: string | null
createdAt?: Date | string
acceptedAt?: Date | string | null
completedAt?: Date | string | null
updatedAt?: Date | string
}
export type ChallengeUpdateWithoutChallengerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
challenged?: Prisma.UserUpdateOneRequiredWithoutChallengesAsChallengedNestedInput
admin?: Prisma.UserUpdateOneWithoutChallengesAsAdminNestedInput
winner?: Prisma.UserUpdateOneWithoutChallengesAsWinnerNestedInput
}
export type ChallengeUncheckedUpdateWithoutChallengerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengedId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
winnerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeUncheckedUpdateManyWithoutChallengerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengedId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
winnerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeUpdateWithoutChallengedInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
challenger?: Prisma.UserUpdateOneRequiredWithoutChallengesAsChallengerNestedInput
admin?: Prisma.UserUpdateOneWithoutChallengesAsAdminNestedInput
winner?: Prisma.UserUpdateOneWithoutChallengesAsWinnerNestedInput
}
export type ChallengeUncheckedUpdateWithoutChallengedInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengerId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
winnerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeUncheckedUpdateManyWithoutChallengedInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengerId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
winnerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeUpdateWithoutAdminInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
challenger?: Prisma.UserUpdateOneRequiredWithoutChallengesAsChallengerNestedInput
challenged?: Prisma.UserUpdateOneRequiredWithoutChallengesAsChallengedNestedInput
winner?: Prisma.UserUpdateOneWithoutChallengesAsWinnerNestedInput
}
export type ChallengeUncheckedUpdateWithoutAdminInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengerId?: Prisma.StringFieldUpdateOperationsInput | string
challengedId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
winnerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeUncheckedUpdateManyWithoutAdminInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengerId?: Prisma.StringFieldUpdateOperationsInput | string
challengedId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
winnerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeUpdateWithoutWinnerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
challenger?: Prisma.UserUpdateOneRequiredWithoutChallengesAsChallengerNestedInput
challenged?: Prisma.UserUpdateOneRequiredWithoutChallengesAsChallengedNestedInput
admin?: Prisma.UserUpdateOneWithoutChallengesAsAdminNestedInput
}
export type ChallengeUncheckedUpdateWithoutWinnerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengerId?: Prisma.StringFieldUpdateOperationsInput | string
challengedId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeUncheckedUpdateManyWithoutWinnerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
challengerId?: Prisma.StringFieldUpdateOperationsInput | string
challengedId?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.StringFieldUpdateOperationsInput | string
pointsReward?: Prisma.IntFieldUpdateOperationsInput | number
status?: Prisma.EnumChallengeStatusFieldUpdateOperationsInput | $Enums.ChallengeStatus
adminId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
adminComment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type ChallengeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
challengerId?: boolean
challengedId?: boolean
title?: boolean
description?: boolean
pointsReward?: boolean
status?: boolean
adminId?: boolean
adminComment?: boolean
winnerId?: boolean
createdAt?: boolean
acceptedAt?: boolean
completedAt?: boolean
updatedAt?: boolean
challenger?: boolean | Prisma.UserDefaultArgs<ExtArgs>
challenged?: boolean | Prisma.UserDefaultArgs<ExtArgs>
admin?: boolean | Prisma.Challenge$adminArgs<ExtArgs>
winner?: boolean | Prisma.Challenge$winnerArgs<ExtArgs>
}, ExtArgs["result"]["challenge"]>
export type ChallengeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
challengerId?: boolean
challengedId?: boolean
title?: boolean
description?: boolean
pointsReward?: boolean
status?: boolean
adminId?: boolean
adminComment?: boolean
winnerId?: boolean
createdAt?: boolean
acceptedAt?: boolean
completedAt?: boolean
updatedAt?: boolean
challenger?: boolean | Prisma.UserDefaultArgs<ExtArgs>
challenged?: boolean | Prisma.UserDefaultArgs<ExtArgs>
admin?: boolean | Prisma.Challenge$adminArgs<ExtArgs>
winner?: boolean | Prisma.Challenge$winnerArgs<ExtArgs>
}, ExtArgs["result"]["challenge"]>
export type ChallengeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
challengerId?: boolean
challengedId?: boolean
title?: boolean
description?: boolean
pointsReward?: boolean
status?: boolean
adminId?: boolean
adminComment?: boolean
winnerId?: boolean
createdAt?: boolean
acceptedAt?: boolean
completedAt?: boolean
updatedAt?: boolean
challenger?: boolean | Prisma.UserDefaultArgs<ExtArgs>
challenged?: boolean | Prisma.UserDefaultArgs<ExtArgs>
admin?: boolean | Prisma.Challenge$adminArgs<ExtArgs>
winner?: boolean | Prisma.Challenge$winnerArgs<ExtArgs>
}, ExtArgs["result"]["challenge"]>
export type ChallengeSelectScalar = {
id?: boolean
challengerId?: boolean
challengedId?: boolean
title?: boolean
description?: boolean
pointsReward?: boolean
status?: boolean
adminId?: boolean
adminComment?: boolean
winnerId?: boolean
createdAt?: boolean
acceptedAt?: boolean
completedAt?: boolean
updatedAt?: boolean
}
export type ChallengeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "challengerId" | "challengedId" | "title" | "description" | "pointsReward" | "status" | "adminId" | "adminComment" | "winnerId" | "createdAt" | "acceptedAt" | "completedAt" | "updatedAt", ExtArgs["result"]["challenge"]>
export type ChallengeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
challenger?: boolean | Prisma.UserDefaultArgs<ExtArgs>
challenged?: boolean | Prisma.UserDefaultArgs<ExtArgs>
admin?: boolean | Prisma.Challenge$adminArgs<ExtArgs>
winner?: boolean | Prisma.Challenge$winnerArgs<ExtArgs>
}
export type ChallengeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
challenger?: boolean | Prisma.UserDefaultArgs<ExtArgs>
challenged?: boolean | Prisma.UserDefaultArgs<ExtArgs>
admin?: boolean | Prisma.Challenge$adminArgs<ExtArgs>
winner?: boolean | Prisma.Challenge$winnerArgs<ExtArgs>
}
export type ChallengeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
challenger?: boolean | Prisma.UserDefaultArgs<ExtArgs>
challenged?: boolean | Prisma.UserDefaultArgs<ExtArgs>
admin?: boolean | Prisma.Challenge$adminArgs<ExtArgs>
winner?: boolean | Prisma.Challenge$winnerArgs<ExtArgs>
}
export type $ChallengePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Challenge"
objects: {
challenger: Prisma.$UserPayload<ExtArgs>
challenged: Prisma.$UserPayload<ExtArgs>
admin: Prisma.$UserPayload<ExtArgs> | null
winner: Prisma.$UserPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
challengerId: string
challengedId: string
title: string
description: string
pointsReward: number
status: $Enums.ChallengeStatus
adminId: string | null
adminComment: string | null
winnerId: string | null
createdAt: Date
acceptedAt: Date | null
completedAt: Date | null
updatedAt: Date
}, ExtArgs["result"]["challenge"]>
composites: {}
}
export type ChallengeGetPayload<S extends boolean | null | undefined | ChallengeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ChallengePayload, S>
export type ChallengeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<ChallengeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ChallengeCountAggregateInputType | true
}
export interface ChallengeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Challenge'], meta: { name: 'Challenge' } }
/**
* Find zero or one Challenge that matches the filter.
* @param {ChallengeFindUniqueArgs} args - Arguments to find a Challenge
* @example
* // Get one Challenge
* const challenge = await prisma.challenge.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ChallengeFindUniqueArgs>(args: Prisma.SelectSubset<T, ChallengeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ChallengeClient<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Challenge that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ChallengeFindUniqueOrThrowArgs} args - Arguments to find a Challenge
* @example
* // Get one Challenge
* const challenge = await prisma.challenge.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ChallengeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ChallengeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ChallengeClient<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Challenge 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 {ChallengeFindFirstArgs} args - Arguments to find a Challenge
* @example
* // Get one Challenge
* const challenge = await prisma.challenge.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ChallengeFindFirstArgs>(args?: Prisma.SelectSubset<T, ChallengeFindFirstArgs<ExtArgs>>): Prisma.Prisma__ChallengeClient<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Challenge 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 {ChallengeFindFirstOrThrowArgs} args - Arguments to find a Challenge
* @example
* // Get one Challenge
* const challenge = await prisma.challenge.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ChallengeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ChallengeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ChallengeClient<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Challenges 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 {ChallengeFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Challenges
* const challenges = await prisma.challenge.findMany()
*
* // Get first 10 Challenges
* const challenges = await prisma.challenge.findMany({ take: 10 })
*
* // Only select the `id`
* const challengeWithIdOnly = await prisma.challenge.findMany({ select: { id: true } })
*
*/
findMany<T extends ChallengeFindManyArgs>(args?: Prisma.SelectSubset<T, ChallengeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Challenge.
* @param {ChallengeCreateArgs} args - Arguments to create a Challenge.
* @example
* // Create one Challenge
* const Challenge = await prisma.challenge.create({
* data: {
* // ... data to create a Challenge
* }
* })
*
*/
create<T extends ChallengeCreateArgs>(args: Prisma.SelectSubset<T, ChallengeCreateArgs<ExtArgs>>): Prisma.Prisma__ChallengeClient<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Challenges.
* @param {ChallengeCreateManyArgs} args - Arguments to create many Challenges.
* @example
* // Create many Challenges
* const challenge = await prisma.challenge.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ChallengeCreateManyArgs>(args?: Prisma.SelectSubset<T, ChallengeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Challenges and returns the data saved in the database.
* @param {ChallengeCreateManyAndReturnArgs} args - Arguments to create many Challenges.
* @example
* // Create many Challenges
* const challenge = await prisma.challenge.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Challenges and only return the `id`
* const challengeWithIdOnly = await prisma.challenge.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 ChallengeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ChallengeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Challenge.
* @param {ChallengeDeleteArgs} args - Arguments to delete one Challenge.
* @example
* // Delete one Challenge
* const Challenge = await prisma.challenge.delete({
* where: {
* // ... filter to delete one Challenge
* }
* })
*
*/
delete<T extends ChallengeDeleteArgs>(args: Prisma.SelectSubset<T, ChallengeDeleteArgs<ExtArgs>>): Prisma.Prisma__ChallengeClient<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Challenge.
* @param {ChallengeUpdateArgs} args - Arguments to update one Challenge.
* @example
* // Update one Challenge
* const challenge = await prisma.challenge.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ChallengeUpdateArgs>(args: Prisma.SelectSubset<T, ChallengeUpdateArgs<ExtArgs>>): Prisma.Prisma__ChallengeClient<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Challenges.
* @param {ChallengeDeleteManyArgs} args - Arguments to filter Challenges to delete.
* @example
* // Delete a few Challenges
* const { count } = await prisma.challenge.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ChallengeDeleteManyArgs>(args?: Prisma.SelectSubset<T, ChallengeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Challenges.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChallengeUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Challenges
* const challenge = await prisma.challenge.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ChallengeUpdateManyArgs>(args: Prisma.SelectSubset<T, ChallengeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Challenges and returns the data updated in the database.
* @param {ChallengeUpdateManyAndReturnArgs} args - Arguments to update many Challenges.
* @example
* // Update many Challenges
* const challenge = await prisma.challenge.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Challenges and only return the `id`
* const challengeWithIdOnly = await prisma.challenge.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 ChallengeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ChallengeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Challenge.
* @param {ChallengeUpsertArgs} args - Arguments to update or create a Challenge.
* @example
* // Update or create a Challenge
* const challenge = await prisma.challenge.upsert({
* create: {
* // ... data to create a Challenge
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Challenge we want to update
* }
* })
*/
upsert<T extends ChallengeUpsertArgs>(args: Prisma.SelectSubset<T, ChallengeUpsertArgs<ExtArgs>>): Prisma.Prisma__ChallengeClient<runtime.Types.Result.GetResult<Prisma.$ChallengePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Challenges.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChallengeCountArgs} args - Arguments to filter Challenges to count.
* @example
* // Count the number of Challenges
* const count = await prisma.challenge.count({
* where: {
* // ... the filter for the Challenges we want to count
* }
* })
**/
count<T extends ChallengeCountArgs>(
args?: Prisma.Subset<T, ChallengeCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ChallengeCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Challenge.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChallengeAggregateArgs} 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 ChallengeAggregateArgs>(args: Prisma.Subset<T, ChallengeAggregateArgs>): Prisma.PrismaPromise<GetChallengeAggregateType<T>>
/**
* Group by Challenge.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ChallengeGroupByArgs} 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 ChallengeGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: ChallengeGroupByArgs['orderBy'] }
: { orderBy?: ChallengeGroupByArgs['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, ChallengeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetChallengeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Challenge model
*/
readonly fields: ChallengeFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Challenge.
* 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__ChallengeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
challenger<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>
challenged<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>
admin<T extends Prisma.Challenge$adminArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Challenge$adminArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
winner<T extends Prisma.Challenge$winnerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Challenge$winnerArgs<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 Challenge model
*/
export interface ChallengeFieldRefs {
readonly id: Prisma.FieldRef<"Challenge", 'String'>
readonly challengerId: Prisma.FieldRef<"Challenge", 'String'>
readonly challengedId: Prisma.FieldRef<"Challenge", 'String'>
readonly title: Prisma.FieldRef<"Challenge", 'String'>
readonly description: Prisma.FieldRef<"Challenge", 'String'>
readonly pointsReward: Prisma.FieldRef<"Challenge", 'Int'>
readonly status: Prisma.FieldRef<"Challenge", 'ChallengeStatus'>
readonly adminId: Prisma.FieldRef<"Challenge", 'String'>
readonly adminComment: Prisma.FieldRef<"Challenge", 'String'>
readonly winnerId: Prisma.FieldRef<"Challenge", 'String'>
readonly createdAt: Prisma.FieldRef<"Challenge", 'DateTime'>
readonly acceptedAt: Prisma.FieldRef<"Challenge", 'DateTime'>
readonly completedAt: Prisma.FieldRef<"Challenge", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Challenge", 'DateTime'>
}
// Custom InputTypes
/**
* Challenge findUnique
*/
export type ChallengeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* Filter, which Challenge to fetch.
*/
where: Prisma.ChallengeWhereUniqueInput
}
/**
* Challenge findUniqueOrThrow
*/
export type ChallengeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* Filter, which Challenge to fetch.
*/
where: Prisma.ChallengeWhereUniqueInput
}
/**
* Challenge findFirst
*/
export type ChallengeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* Filter, which Challenge to fetch.
*/
where?: Prisma.ChallengeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Challenges to fetch.
*/
orderBy?: Prisma.ChallengeOrderByWithRelationInput | Prisma.ChallengeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Challenges.
*/
cursor?: Prisma.ChallengeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Challenges 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` Challenges.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Challenges.
*/
distinct?: Prisma.ChallengeScalarFieldEnum | Prisma.ChallengeScalarFieldEnum[]
}
/**
* Challenge findFirstOrThrow
*/
export type ChallengeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* Filter, which Challenge to fetch.
*/
where?: Prisma.ChallengeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Challenges to fetch.
*/
orderBy?: Prisma.ChallengeOrderByWithRelationInput | Prisma.ChallengeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Challenges.
*/
cursor?: Prisma.ChallengeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Challenges 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` Challenges.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Challenges.
*/
distinct?: Prisma.ChallengeScalarFieldEnum | Prisma.ChallengeScalarFieldEnum[]
}
/**
* Challenge findMany
*/
export type ChallengeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* Filter, which Challenges to fetch.
*/
where?: Prisma.ChallengeWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Challenges to fetch.
*/
orderBy?: Prisma.ChallengeOrderByWithRelationInput | Prisma.ChallengeOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Challenges.
*/
cursor?: Prisma.ChallengeWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Challenges 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` Challenges.
*/
skip?: number
distinct?: Prisma.ChallengeScalarFieldEnum | Prisma.ChallengeScalarFieldEnum[]
}
/**
* Challenge create
*/
export type ChallengeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* The data needed to create a Challenge.
*/
data: Prisma.XOR<Prisma.ChallengeCreateInput, Prisma.ChallengeUncheckedCreateInput>
}
/**
* Challenge createMany
*/
export type ChallengeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Challenges.
*/
data: Prisma.ChallengeCreateManyInput | Prisma.ChallengeCreateManyInput[]
}
/**
* Challenge createManyAndReturn
*/
export type ChallengeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* The data used to create many Challenges.
*/
data: Prisma.ChallengeCreateManyInput | Prisma.ChallengeCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Challenge update
*/
export type ChallengeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* The data needed to update a Challenge.
*/
data: Prisma.XOR<Prisma.ChallengeUpdateInput, Prisma.ChallengeUncheckedUpdateInput>
/**
* Choose, which Challenge to update.
*/
where: Prisma.ChallengeWhereUniqueInput
}
/**
* Challenge updateMany
*/
export type ChallengeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Challenges.
*/
data: Prisma.XOR<Prisma.ChallengeUpdateManyMutationInput, Prisma.ChallengeUncheckedUpdateManyInput>
/**
* Filter which Challenges to update
*/
where?: Prisma.ChallengeWhereInput
/**
* Limit how many Challenges to update.
*/
limit?: number
}
/**
* Challenge updateManyAndReturn
*/
export type ChallengeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* The data used to update Challenges.
*/
data: Prisma.XOR<Prisma.ChallengeUpdateManyMutationInput, Prisma.ChallengeUncheckedUpdateManyInput>
/**
* Filter which Challenges to update
*/
where?: Prisma.ChallengeWhereInput
/**
* Limit how many Challenges to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Challenge upsert
*/
export type ChallengeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* The filter to search for the Challenge to update in case it exists.
*/
where: Prisma.ChallengeWhereUniqueInput
/**
* In case the Challenge found by the `where` argument doesn't exist, create a new Challenge with this data.
*/
create: Prisma.XOR<Prisma.ChallengeCreateInput, Prisma.ChallengeUncheckedCreateInput>
/**
* In case the Challenge was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.ChallengeUpdateInput, Prisma.ChallengeUncheckedUpdateInput>
}
/**
* Challenge delete
*/
export type ChallengeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
/**
* Filter which Challenge to delete.
*/
where: Prisma.ChallengeWhereUniqueInput
}
/**
* Challenge deleteMany
*/
export type ChallengeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Challenges to delete
*/
where?: Prisma.ChallengeWhereInput
/**
* Limit how many Challenges to delete.
*/
limit?: number
}
/**
* Challenge.admin
*/
export type Challenge$adminArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* Challenge.winner
*/
export type Challenge$winnerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* Challenge without action
*/
export type ChallengeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Challenge
*/
select?: Prisma.ChallengeSelect<ExtArgs> | null
/**
* Omit specific fields from the Challenge
*/
omit?: Prisma.ChallengeOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ChallengeInclude<ExtArgs> | null
}