
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `ContestEntry` 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.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"

/**
 * Model ContestEntry
 * 
 */
export type ContestEntryModel = runtime.Types.Result.DefaultSelection<Prisma.$ContestEntryPayload>

export type AggregateContestEntry = {
  _count: ContestEntryCountAggregateOutputType | null
  _avg: ContestEntryAvgAggregateOutputType | null
  _sum: ContestEntrySumAggregateOutputType | null
  _min: ContestEntryMinAggregateOutputType | null
  _max: ContestEntryMaxAggregateOutputType | null
}

export type ContestEntryAvgAggregateOutputType = {
  rank: number | null
}

export type ContestEntrySumAggregateOutputType = {
  rank: number | null
}

export type ContestEntryMinAggregateOutputType = {
  id: string | null
  contestId: string | null
  userId: string | null
  userTeamId: string | null
  status: $Enums.ContestEntryStatus | null
  rank: number | null
  createdAt: Date | null
}

export type ContestEntryMaxAggregateOutputType = {
  id: string | null
  contestId: string | null
  userId: string | null
  userTeamId: string | null
  status: $Enums.ContestEntryStatus | null
  rank: number | null
  createdAt: Date | null
}

export type ContestEntryCountAggregateOutputType = {
  id: number
  contestId: number
  userId: number
  userTeamId: number
  status: number
  rank: number
  createdAt: number
  _all: number
}


export type ContestEntryAvgAggregateInputType = {
  rank?: true
}

export type ContestEntrySumAggregateInputType = {
  rank?: true
}

export type ContestEntryMinAggregateInputType = {
  id?: true
  contestId?: true
  userId?: true
  userTeamId?: true
  status?: true
  rank?: true
  createdAt?: true
}

export type ContestEntryMaxAggregateInputType = {
  id?: true
  contestId?: true
  userId?: true
  userTeamId?: true
  status?: true
  rank?: true
  createdAt?: true
}

export type ContestEntryCountAggregateInputType = {
  id?: true
  contestId?: true
  userId?: true
  userTeamId?: true
  status?: true
  rank?: true
  createdAt?: true
  _all?: true
}

export type ContestEntryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ContestEntry to aggregate.
   */
  where?: Prisma.ContestEntryWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ContestEntries to fetch.
   */
  orderBy?: Prisma.ContestEntryOrderByWithRelationInput | Prisma.ContestEntryOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ContestEntryWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ContestEntries 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` ContestEntries.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ContestEntries
  **/
  _count?: true | ContestEntryCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ContestEntryAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ContestEntrySumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ContestEntryMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ContestEntryMaxAggregateInputType
}

export type GetContestEntryAggregateType<T extends ContestEntryAggregateArgs> = {
      [P in keyof T & keyof AggregateContestEntry]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateContestEntry[P]>
    : Prisma.GetScalarType<T[P], AggregateContestEntry[P]>
}




export type ContestEntryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ContestEntryWhereInput
  orderBy?: Prisma.ContestEntryOrderByWithAggregationInput | Prisma.ContestEntryOrderByWithAggregationInput[]
  by: Prisma.ContestEntryScalarFieldEnum[] | Prisma.ContestEntryScalarFieldEnum
  having?: Prisma.ContestEntryScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ContestEntryCountAggregateInputType | true
  _avg?: ContestEntryAvgAggregateInputType
  _sum?: ContestEntrySumAggregateInputType
  _min?: ContestEntryMinAggregateInputType
  _max?: ContestEntryMaxAggregateInputType
}

export type ContestEntryGroupByOutputType = {
  id: string
  contestId: string
  userId: string
  userTeamId: string
  status: $Enums.ContestEntryStatus
  rank: number | null
  createdAt: Date
  _count: ContestEntryCountAggregateOutputType | null
  _avg: ContestEntryAvgAggregateOutputType | null
  _sum: ContestEntrySumAggregateOutputType | null
  _min: ContestEntryMinAggregateOutputType | null
  _max: ContestEntryMaxAggregateOutputType | null
}

export type GetContestEntryGroupByPayload<T extends ContestEntryGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<ContestEntryGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof ContestEntryGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], ContestEntryGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], ContestEntryGroupByOutputType[P]>
      }
    >
  >



export type ContestEntryWhereInput = {
  AND?: Prisma.ContestEntryWhereInput | Prisma.ContestEntryWhereInput[]
  OR?: Prisma.ContestEntryWhereInput[]
  NOT?: Prisma.ContestEntryWhereInput | Prisma.ContestEntryWhereInput[]
  id?: Prisma.StringFilter<"ContestEntry"> | string
  contestId?: Prisma.StringFilter<"ContestEntry"> | string
  userId?: Prisma.StringFilter<"ContestEntry"> | string
  userTeamId?: Prisma.StringFilter<"ContestEntry"> | string
  status?: Prisma.EnumContestEntryStatusFilter<"ContestEntry"> | $Enums.ContestEntryStatus
  rank?: Prisma.IntNullableFilter<"ContestEntry"> | number | null
  createdAt?: Prisma.DateTimeFilter<"ContestEntry"> | Date | string
  contest?: Prisma.XOR<Prisma.ContestScalarRelationFilter, Prisma.ContestWhereInput>
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  userTeam?: Prisma.XOR<Prisma.UserTeamScalarRelationFilter, Prisma.UserTeamWhereInput>
}

export type ContestEntryOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  contestId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  userTeamId?: Prisma.SortOrder
  status?: Prisma.SortOrder
  rank?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  contest?: Prisma.ContestOrderByWithRelationInput
  user?: Prisma.UserOrderByWithRelationInput
  userTeam?: Prisma.UserTeamOrderByWithRelationInput
}

export type ContestEntryWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  contestId_userTeamId?: Prisma.ContestEntryContestIdUserTeamIdCompoundUniqueInput
  AND?: Prisma.ContestEntryWhereInput | Prisma.ContestEntryWhereInput[]
  OR?: Prisma.ContestEntryWhereInput[]
  NOT?: Prisma.ContestEntryWhereInput | Prisma.ContestEntryWhereInput[]
  contestId?: Prisma.StringFilter<"ContestEntry"> | string
  userId?: Prisma.StringFilter<"ContestEntry"> | string
  userTeamId?: Prisma.StringFilter<"ContestEntry"> | string
  status?: Prisma.EnumContestEntryStatusFilter<"ContestEntry"> | $Enums.ContestEntryStatus
  rank?: Prisma.IntNullableFilter<"ContestEntry"> | number | null
  createdAt?: Prisma.DateTimeFilter<"ContestEntry"> | Date | string
  contest?: Prisma.XOR<Prisma.ContestScalarRelationFilter, Prisma.ContestWhereInput>
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  userTeam?: Prisma.XOR<Prisma.UserTeamScalarRelationFilter, Prisma.UserTeamWhereInput>
}, "id" | "contestId_userTeamId">

export type ContestEntryOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  contestId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  userTeamId?: Prisma.SortOrder
  status?: Prisma.SortOrder
  rank?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.ContestEntryCountOrderByAggregateInput
  _avg?: Prisma.ContestEntryAvgOrderByAggregateInput
  _max?: Prisma.ContestEntryMaxOrderByAggregateInput
  _min?: Prisma.ContestEntryMinOrderByAggregateInput
  _sum?: Prisma.ContestEntrySumOrderByAggregateInput
}

export type ContestEntryScalarWhereWithAggregatesInput = {
  AND?: Prisma.ContestEntryScalarWhereWithAggregatesInput | Prisma.ContestEntryScalarWhereWithAggregatesInput[]
  OR?: Prisma.ContestEntryScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ContestEntryScalarWhereWithAggregatesInput | Prisma.ContestEntryScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ContestEntry"> | string
  contestId?: Prisma.StringWithAggregatesFilter<"ContestEntry"> | string
  userId?: Prisma.StringWithAggregatesFilter<"ContestEntry"> | string
  userTeamId?: Prisma.StringWithAggregatesFilter<"ContestEntry"> | string
  status?: Prisma.EnumContestEntryStatusWithAggregatesFilter<"ContestEntry"> | $Enums.ContestEntryStatus
  rank?: Prisma.IntNullableWithAggregatesFilter<"ContestEntry"> | number | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ContestEntry"> | Date | string
}

export type ContestEntryCreateInput = {
  id?: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
  contest: Prisma.ContestCreateNestedOneWithoutEntriesInput
  user: Prisma.UserCreateNestedOneWithoutEntriesInput
  userTeam: Prisma.UserTeamCreateNestedOneWithoutEntriesInput
}

export type ContestEntryUncheckedCreateInput = {
  id?: string
  contestId: string
  userId: string
  userTeamId: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
}

export type ContestEntryUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contest?: Prisma.ContestUpdateOneRequiredWithoutEntriesNestedInput
  user?: Prisma.UserUpdateOneRequiredWithoutEntriesNestedInput
  userTeam?: Prisma.UserTeamUpdateOneRequiredWithoutEntriesNestedInput
}

export type ContestEntryUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  contestId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  userTeamId?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ContestEntryCreateManyInput = {
  id?: string
  contestId: string
  userId: string
  userTeamId: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
}

export type ContestEntryUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ContestEntryUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  contestId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  userTeamId?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ContestEntryListRelationFilter = {
  every?: Prisma.ContestEntryWhereInput
  some?: Prisma.ContestEntryWhereInput
  none?: Prisma.ContestEntryWhereInput
}

export type ContestEntryOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type ContestEntryContestIdUserTeamIdCompoundUniqueInput = {
  contestId: string
  userTeamId: string
}

export type ContestEntryCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  contestId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  userTeamId?: Prisma.SortOrder
  status?: Prisma.SortOrder
  rank?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ContestEntryAvgOrderByAggregateInput = {
  rank?: Prisma.SortOrder
}

export type ContestEntryMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  contestId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  userTeamId?: Prisma.SortOrder
  status?: Prisma.SortOrder
  rank?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ContestEntryMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  contestId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  userTeamId?: Prisma.SortOrder
  status?: Prisma.SortOrder
  rank?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type ContestEntrySumOrderByAggregateInput = {
  rank?: Prisma.SortOrder
}

export type ContestEntryCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserInput, Prisma.ContestEntryUncheckedCreateWithoutUserInput> | Prisma.ContestEntryCreateWithoutUserInput[] | Prisma.ContestEntryUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutUserInput | Prisma.ContestEntryCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.ContestEntryCreateManyUserInputEnvelope
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
}

export type ContestEntryUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserInput, Prisma.ContestEntryUncheckedCreateWithoutUserInput> | Prisma.ContestEntryCreateWithoutUserInput[] | Prisma.ContestEntryUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutUserInput | Prisma.ContestEntryCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.ContestEntryCreateManyUserInputEnvelope
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
}

export type ContestEntryUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserInput, Prisma.ContestEntryUncheckedCreateWithoutUserInput> | Prisma.ContestEntryCreateWithoutUserInput[] | Prisma.ContestEntryUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutUserInput | Prisma.ContestEntryCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.ContestEntryUpsertWithWhereUniqueWithoutUserInput | Prisma.ContestEntryUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.ContestEntryCreateManyUserInputEnvelope
  set?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  disconnect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  delete?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  update?: Prisma.ContestEntryUpdateWithWhereUniqueWithoutUserInput | Prisma.ContestEntryUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.ContestEntryUpdateManyWithWhereWithoutUserInput | Prisma.ContestEntryUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.ContestEntryScalarWhereInput | Prisma.ContestEntryScalarWhereInput[]
}

export type ContestEntryUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserInput, Prisma.ContestEntryUncheckedCreateWithoutUserInput> | Prisma.ContestEntryCreateWithoutUserInput[] | Prisma.ContestEntryUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutUserInput | Prisma.ContestEntryCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.ContestEntryUpsertWithWhereUniqueWithoutUserInput | Prisma.ContestEntryUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.ContestEntryCreateManyUserInputEnvelope
  set?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  disconnect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  delete?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  update?: Prisma.ContestEntryUpdateWithWhereUniqueWithoutUserInput | Prisma.ContestEntryUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.ContestEntryUpdateManyWithWhereWithoutUserInput | Prisma.ContestEntryUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.ContestEntryScalarWhereInput | Prisma.ContestEntryScalarWhereInput[]
}

export type ContestEntryCreateNestedManyWithoutUserTeamInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserTeamInput, Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput> | Prisma.ContestEntryCreateWithoutUserTeamInput[] | Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutUserTeamInput | Prisma.ContestEntryCreateOrConnectWithoutUserTeamInput[]
  createMany?: Prisma.ContestEntryCreateManyUserTeamInputEnvelope
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
}

export type ContestEntryUncheckedCreateNestedManyWithoutUserTeamInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserTeamInput, Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput> | Prisma.ContestEntryCreateWithoutUserTeamInput[] | Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutUserTeamInput | Prisma.ContestEntryCreateOrConnectWithoutUserTeamInput[]
  createMany?: Prisma.ContestEntryCreateManyUserTeamInputEnvelope
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
}

export type ContestEntryUpdateManyWithoutUserTeamNestedInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserTeamInput, Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput> | Prisma.ContestEntryCreateWithoutUserTeamInput[] | Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutUserTeamInput | Prisma.ContestEntryCreateOrConnectWithoutUserTeamInput[]
  upsert?: Prisma.ContestEntryUpsertWithWhereUniqueWithoutUserTeamInput | Prisma.ContestEntryUpsertWithWhereUniqueWithoutUserTeamInput[]
  createMany?: Prisma.ContestEntryCreateManyUserTeamInputEnvelope
  set?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  disconnect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  delete?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  update?: Prisma.ContestEntryUpdateWithWhereUniqueWithoutUserTeamInput | Prisma.ContestEntryUpdateWithWhereUniqueWithoutUserTeamInput[]
  updateMany?: Prisma.ContestEntryUpdateManyWithWhereWithoutUserTeamInput | Prisma.ContestEntryUpdateManyWithWhereWithoutUserTeamInput[]
  deleteMany?: Prisma.ContestEntryScalarWhereInput | Prisma.ContestEntryScalarWhereInput[]
}

export type ContestEntryUncheckedUpdateManyWithoutUserTeamNestedInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserTeamInput, Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput> | Prisma.ContestEntryCreateWithoutUserTeamInput[] | Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutUserTeamInput | Prisma.ContestEntryCreateOrConnectWithoutUserTeamInput[]
  upsert?: Prisma.ContestEntryUpsertWithWhereUniqueWithoutUserTeamInput | Prisma.ContestEntryUpsertWithWhereUniqueWithoutUserTeamInput[]
  createMany?: Prisma.ContestEntryCreateManyUserTeamInputEnvelope
  set?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  disconnect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  delete?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  update?: Prisma.ContestEntryUpdateWithWhereUniqueWithoutUserTeamInput | Prisma.ContestEntryUpdateWithWhereUniqueWithoutUserTeamInput[]
  updateMany?: Prisma.ContestEntryUpdateManyWithWhereWithoutUserTeamInput | Prisma.ContestEntryUpdateManyWithWhereWithoutUserTeamInput[]
  deleteMany?: Prisma.ContestEntryScalarWhereInput | Prisma.ContestEntryScalarWhereInput[]
}

export type ContestEntryCreateNestedManyWithoutContestInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutContestInput, Prisma.ContestEntryUncheckedCreateWithoutContestInput> | Prisma.ContestEntryCreateWithoutContestInput[] | Prisma.ContestEntryUncheckedCreateWithoutContestInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutContestInput | Prisma.ContestEntryCreateOrConnectWithoutContestInput[]
  createMany?: Prisma.ContestEntryCreateManyContestInputEnvelope
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
}

export type ContestEntryUncheckedCreateNestedManyWithoutContestInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutContestInput, Prisma.ContestEntryUncheckedCreateWithoutContestInput> | Prisma.ContestEntryCreateWithoutContestInput[] | Prisma.ContestEntryUncheckedCreateWithoutContestInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutContestInput | Prisma.ContestEntryCreateOrConnectWithoutContestInput[]
  createMany?: Prisma.ContestEntryCreateManyContestInputEnvelope
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
}

export type ContestEntryUpdateManyWithoutContestNestedInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutContestInput, Prisma.ContestEntryUncheckedCreateWithoutContestInput> | Prisma.ContestEntryCreateWithoutContestInput[] | Prisma.ContestEntryUncheckedCreateWithoutContestInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutContestInput | Prisma.ContestEntryCreateOrConnectWithoutContestInput[]
  upsert?: Prisma.ContestEntryUpsertWithWhereUniqueWithoutContestInput | Prisma.ContestEntryUpsertWithWhereUniqueWithoutContestInput[]
  createMany?: Prisma.ContestEntryCreateManyContestInputEnvelope
  set?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  disconnect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  delete?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  update?: Prisma.ContestEntryUpdateWithWhereUniqueWithoutContestInput | Prisma.ContestEntryUpdateWithWhereUniqueWithoutContestInput[]
  updateMany?: Prisma.ContestEntryUpdateManyWithWhereWithoutContestInput | Prisma.ContestEntryUpdateManyWithWhereWithoutContestInput[]
  deleteMany?: Prisma.ContestEntryScalarWhereInput | Prisma.ContestEntryScalarWhereInput[]
}

export type ContestEntryUncheckedUpdateManyWithoutContestNestedInput = {
  create?: Prisma.XOR<Prisma.ContestEntryCreateWithoutContestInput, Prisma.ContestEntryUncheckedCreateWithoutContestInput> | Prisma.ContestEntryCreateWithoutContestInput[] | Prisma.ContestEntryUncheckedCreateWithoutContestInput[]
  connectOrCreate?: Prisma.ContestEntryCreateOrConnectWithoutContestInput | Prisma.ContestEntryCreateOrConnectWithoutContestInput[]
  upsert?: Prisma.ContestEntryUpsertWithWhereUniqueWithoutContestInput | Prisma.ContestEntryUpsertWithWhereUniqueWithoutContestInput[]
  createMany?: Prisma.ContestEntryCreateManyContestInputEnvelope
  set?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  disconnect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  delete?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  connect?: Prisma.ContestEntryWhereUniqueInput | Prisma.ContestEntryWhereUniqueInput[]
  update?: Prisma.ContestEntryUpdateWithWhereUniqueWithoutContestInput | Prisma.ContestEntryUpdateWithWhereUniqueWithoutContestInput[]
  updateMany?: Prisma.ContestEntryUpdateManyWithWhereWithoutContestInput | Prisma.ContestEntryUpdateManyWithWhereWithoutContestInput[]
  deleteMany?: Prisma.ContestEntryScalarWhereInput | Prisma.ContestEntryScalarWhereInput[]
}

export type EnumContestEntryStatusFieldUpdateOperationsInput = {
  set?: $Enums.ContestEntryStatus
}

export type ContestEntryCreateWithoutUserInput = {
  id?: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
  contest: Prisma.ContestCreateNestedOneWithoutEntriesInput
  userTeam: Prisma.UserTeamCreateNestedOneWithoutEntriesInput
}

export type ContestEntryUncheckedCreateWithoutUserInput = {
  id?: string
  contestId: string
  userTeamId: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
}

export type ContestEntryCreateOrConnectWithoutUserInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  create: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserInput, Prisma.ContestEntryUncheckedCreateWithoutUserInput>
}

export type ContestEntryCreateManyUserInputEnvelope = {
  data: Prisma.ContestEntryCreateManyUserInput | Prisma.ContestEntryCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type ContestEntryUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  update: Prisma.XOR<Prisma.ContestEntryUpdateWithoutUserInput, Prisma.ContestEntryUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserInput, Prisma.ContestEntryUncheckedCreateWithoutUserInput>
}

export type ContestEntryUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  data: Prisma.XOR<Prisma.ContestEntryUpdateWithoutUserInput, Prisma.ContestEntryUncheckedUpdateWithoutUserInput>
}

export type ContestEntryUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.ContestEntryScalarWhereInput
  data: Prisma.XOR<Prisma.ContestEntryUpdateManyMutationInput, Prisma.ContestEntryUncheckedUpdateManyWithoutUserInput>
}

export type ContestEntryScalarWhereInput = {
  AND?: Prisma.ContestEntryScalarWhereInput | Prisma.ContestEntryScalarWhereInput[]
  OR?: Prisma.ContestEntryScalarWhereInput[]
  NOT?: Prisma.ContestEntryScalarWhereInput | Prisma.ContestEntryScalarWhereInput[]
  id?: Prisma.StringFilter<"ContestEntry"> | string
  contestId?: Prisma.StringFilter<"ContestEntry"> | string
  userId?: Prisma.StringFilter<"ContestEntry"> | string
  userTeamId?: Prisma.StringFilter<"ContestEntry"> | string
  status?: Prisma.EnumContestEntryStatusFilter<"ContestEntry"> | $Enums.ContestEntryStatus
  rank?: Prisma.IntNullableFilter<"ContestEntry"> | number | null
  createdAt?: Prisma.DateTimeFilter<"ContestEntry"> | Date | string
}

export type ContestEntryCreateWithoutUserTeamInput = {
  id?: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
  contest: Prisma.ContestCreateNestedOneWithoutEntriesInput
  user: Prisma.UserCreateNestedOneWithoutEntriesInput
}

export type ContestEntryUncheckedCreateWithoutUserTeamInput = {
  id?: string
  contestId: string
  userId: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
}

export type ContestEntryCreateOrConnectWithoutUserTeamInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  create: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserTeamInput, Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput>
}

export type ContestEntryCreateManyUserTeamInputEnvelope = {
  data: Prisma.ContestEntryCreateManyUserTeamInput | Prisma.ContestEntryCreateManyUserTeamInput[]
  skipDuplicates?: boolean
}

export type ContestEntryUpsertWithWhereUniqueWithoutUserTeamInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  update: Prisma.XOR<Prisma.ContestEntryUpdateWithoutUserTeamInput, Prisma.ContestEntryUncheckedUpdateWithoutUserTeamInput>
  create: Prisma.XOR<Prisma.ContestEntryCreateWithoutUserTeamInput, Prisma.ContestEntryUncheckedCreateWithoutUserTeamInput>
}

export type ContestEntryUpdateWithWhereUniqueWithoutUserTeamInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  data: Prisma.XOR<Prisma.ContestEntryUpdateWithoutUserTeamInput, Prisma.ContestEntryUncheckedUpdateWithoutUserTeamInput>
}

export type ContestEntryUpdateManyWithWhereWithoutUserTeamInput = {
  where: Prisma.ContestEntryScalarWhereInput
  data: Prisma.XOR<Prisma.ContestEntryUpdateManyMutationInput, Prisma.ContestEntryUncheckedUpdateManyWithoutUserTeamInput>
}

export type ContestEntryCreateWithoutContestInput = {
  id?: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
  user: Prisma.UserCreateNestedOneWithoutEntriesInput
  userTeam: Prisma.UserTeamCreateNestedOneWithoutEntriesInput
}

export type ContestEntryUncheckedCreateWithoutContestInput = {
  id?: string
  userId: string
  userTeamId: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
}

export type ContestEntryCreateOrConnectWithoutContestInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  create: Prisma.XOR<Prisma.ContestEntryCreateWithoutContestInput, Prisma.ContestEntryUncheckedCreateWithoutContestInput>
}

export type ContestEntryCreateManyContestInputEnvelope = {
  data: Prisma.ContestEntryCreateManyContestInput | Prisma.ContestEntryCreateManyContestInput[]
  skipDuplicates?: boolean
}

export type ContestEntryUpsertWithWhereUniqueWithoutContestInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  update: Prisma.XOR<Prisma.ContestEntryUpdateWithoutContestInput, Prisma.ContestEntryUncheckedUpdateWithoutContestInput>
  create: Prisma.XOR<Prisma.ContestEntryCreateWithoutContestInput, Prisma.ContestEntryUncheckedCreateWithoutContestInput>
}

export type ContestEntryUpdateWithWhereUniqueWithoutContestInput = {
  where: Prisma.ContestEntryWhereUniqueInput
  data: Prisma.XOR<Prisma.ContestEntryUpdateWithoutContestInput, Prisma.ContestEntryUncheckedUpdateWithoutContestInput>
}

export type ContestEntryUpdateManyWithWhereWithoutContestInput = {
  where: Prisma.ContestEntryScalarWhereInput
  data: Prisma.XOR<Prisma.ContestEntryUpdateManyMutationInput, Prisma.ContestEntryUncheckedUpdateManyWithoutContestInput>
}

export type ContestEntryCreateManyUserInput = {
  id?: string
  contestId: string
  userTeamId: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
}

export type ContestEntryUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contest?: Prisma.ContestUpdateOneRequiredWithoutEntriesNestedInput
  userTeam?: Prisma.UserTeamUpdateOneRequiredWithoutEntriesNestedInput
}

export type ContestEntryUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  contestId?: Prisma.StringFieldUpdateOperationsInput | string
  userTeamId?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ContestEntryUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  contestId?: Prisma.StringFieldUpdateOperationsInput | string
  userTeamId?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ContestEntryCreateManyUserTeamInput = {
  id?: string
  contestId: string
  userId: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
}

export type ContestEntryUpdateWithoutUserTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  contest?: Prisma.ContestUpdateOneRequiredWithoutEntriesNestedInput
  user?: Prisma.UserUpdateOneRequiredWithoutEntriesNestedInput
}

export type ContestEntryUncheckedUpdateWithoutUserTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  contestId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ContestEntryUncheckedUpdateManyWithoutUserTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  contestId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ContestEntryCreateManyContestInput = {
  id?: string
  userId: string
  userTeamId: string
  status?: $Enums.ContestEntryStatus
  rank?: number | null
  createdAt?: Date | string
}

export type ContestEntryUpdateWithoutContestInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneRequiredWithoutEntriesNestedInput
  userTeam?: Prisma.UserTeamUpdateOneRequiredWithoutEntriesNestedInput
}

export type ContestEntryUncheckedUpdateWithoutContestInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  userTeamId?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ContestEntryUncheckedUpdateManyWithoutContestInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  userTeamId?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumContestEntryStatusFieldUpdateOperationsInput | $Enums.ContestEntryStatus
  rank?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type ContestEntrySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  contestId?: boolean
  userId?: boolean
  userTeamId?: boolean
  status?: boolean
  rank?: boolean
  createdAt?: boolean
  contest?: boolean | Prisma.ContestDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  userTeam?: boolean | Prisma.UserTeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["contestEntry"]>

export type ContestEntrySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  contestId?: boolean
  userId?: boolean
  userTeamId?: boolean
  status?: boolean
  rank?: boolean
  createdAt?: boolean
  contest?: boolean | Prisma.ContestDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  userTeam?: boolean | Prisma.UserTeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["contestEntry"]>

export type ContestEntrySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  contestId?: boolean
  userId?: boolean
  userTeamId?: boolean
  status?: boolean
  rank?: boolean
  createdAt?: boolean
  contest?: boolean | Prisma.ContestDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  userTeam?: boolean | Prisma.UserTeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["contestEntry"]>

export type ContestEntrySelectScalar = {
  id?: boolean
  contestId?: boolean
  userId?: boolean
  userTeamId?: boolean
  status?: boolean
  rank?: boolean
  createdAt?: boolean
}

export type ContestEntryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "contestId" | "userId" | "userTeamId" | "status" | "rank" | "createdAt", ExtArgs["result"]["contestEntry"]>
export type ContestEntryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  contest?: boolean | Prisma.ContestDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  userTeam?: boolean | Prisma.UserTeamDefaultArgs<ExtArgs>
}
export type ContestEntryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  contest?: boolean | Prisma.ContestDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  userTeam?: boolean | Prisma.UserTeamDefaultArgs<ExtArgs>
}
export type ContestEntryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  contest?: boolean | Prisma.ContestDefaultArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  userTeam?: boolean | Prisma.UserTeamDefaultArgs<ExtArgs>
}

export type $ContestEntryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ContestEntry"
  objects: {
    contest: Prisma.$ContestPayload<ExtArgs>
    user: Prisma.$UserPayload<ExtArgs>
    userTeam: Prisma.$UserTeamPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    contestId: string
    userId: string
    userTeamId: string
    status: $Enums.ContestEntryStatus
    rank: number | null
    createdAt: Date
  }, ExtArgs["result"]["contestEntry"]>
  composites: {}
}

export type ContestEntryGetPayload<S extends boolean | null | undefined | ContestEntryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload, S>

export type ContestEntryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<ContestEntryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: ContestEntryCountAggregateInputType | true
  }

export interface ContestEntryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ContestEntry'], meta: { name: 'ContestEntry' } }
  /**
   * Find zero or one ContestEntry that matches the filter.
   * @param {ContestEntryFindUniqueArgs} args - Arguments to find a ContestEntry
   * @example
   * // Get one ContestEntry
   * const contestEntry = await prisma.contestEntry.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends ContestEntryFindUniqueArgs>(args: Prisma.SelectSubset<T, ContestEntryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ContestEntryClient<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one ContestEntry that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {ContestEntryFindUniqueOrThrowArgs} args - Arguments to find a ContestEntry
   * @example
   * // Get one ContestEntry
   * const contestEntry = await prisma.contestEntry.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends ContestEntryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ContestEntryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContestEntryClient<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first ContestEntry 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 {ContestEntryFindFirstArgs} args - Arguments to find a ContestEntry
   * @example
   * // Get one ContestEntry
   * const contestEntry = await prisma.contestEntry.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends ContestEntryFindFirstArgs>(args?: Prisma.SelectSubset<T, ContestEntryFindFirstArgs<ExtArgs>>): Prisma.Prisma__ContestEntryClient<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first ContestEntry 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 {ContestEntryFindFirstOrThrowArgs} args - Arguments to find a ContestEntry
   * @example
   * // Get one ContestEntry
   * const contestEntry = await prisma.contestEntry.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends ContestEntryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ContestEntryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContestEntryClient<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more ContestEntries 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 {ContestEntryFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all ContestEntries
   * const contestEntries = await prisma.contestEntry.findMany()
   * 
   * // Get first 10 ContestEntries
   * const contestEntries = await prisma.contestEntry.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const contestEntryWithIdOnly = await prisma.contestEntry.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends ContestEntryFindManyArgs>(args?: Prisma.SelectSubset<T, ContestEntryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a ContestEntry.
   * @param {ContestEntryCreateArgs} args - Arguments to create a ContestEntry.
   * @example
   * // Create one ContestEntry
   * const ContestEntry = await prisma.contestEntry.create({
   *   data: {
   *     // ... data to create a ContestEntry
   *   }
   * })
   * 
   */
  create<T extends ContestEntryCreateArgs>(args: Prisma.SelectSubset<T, ContestEntryCreateArgs<ExtArgs>>): Prisma.Prisma__ContestEntryClient<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many ContestEntries.
   * @param {ContestEntryCreateManyArgs} args - Arguments to create many ContestEntries.
   * @example
   * // Create many ContestEntries
   * const contestEntry = await prisma.contestEntry.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends ContestEntryCreateManyArgs>(args?: Prisma.SelectSubset<T, ContestEntryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many ContestEntries and returns the data saved in the database.
   * @param {ContestEntryCreateManyAndReturnArgs} args - Arguments to create many ContestEntries.
   * @example
   * // Create many ContestEntries
   * const contestEntry = await prisma.contestEntry.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many ContestEntries and only return the `id`
   * const contestEntryWithIdOnly = await prisma.contestEntry.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 ContestEntryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ContestEntryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a ContestEntry.
   * @param {ContestEntryDeleteArgs} args - Arguments to delete one ContestEntry.
   * @example
   * // Delete one ContestEntry
   * const ContestEntry = await prisma.contestEntry.delete({
   *   where: {
   *     // ... filter to delete one ContestEntry
   *   }
   * })
   * 
   */
  delete<T extends ContestEntryDeleteArgs>(args: Prisma.SelectSubset<T, ContestEntryDeleteArgs<ExtArgs>>): Prisma.Prisma__ContestEntryClient<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one ContestEntry.
   * @param {ContestEntryUpdateArgs} args - Arguments to update one ContestEntry.
   * @example
   * // Update one ContestEntry
   * const contestEntry = await prisma.contestEntry.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends ContestEntryUpdateArgs>(args: Prisma.SelectSubset<T, ContestEntryUpdateArgs<ExtArgs>>): Prisma.Prisma__ContestEntryClient<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more ContestEntries.
   * @param {ContestEntryDeleteManyArgs} args - Arguments to filter ContestEntries to delete.
   * @example
   * // Delete a few ContestEntries
   * const { count } = await prisma.contestEntry.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends ContestEntryDeleteManyArgs>(args?: Prisma.SelectSubset<T, ContestEntryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more ContestEntries.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ContestEntryUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many ContestEntries
   * const contestEntry = await prisma.contestEntry.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends ContestEntryUpdateManyArgs>(args: Prisma.SelectSubset<T, ContestEntryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more ContestEntries and returns the data updated in the database.
   * @param {ContestEntryUpdateManyAndReturnArgs} args - Arguments to update many ContestEntries.
   * @example
   * // Update many ContestEntries
   * const contestEntry = await prisma.contestEntry.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more ContestEntries and only return the `id`
   * const contestEntryWithIdOnly = await prisma.contestEntry.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 ContestEntryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ContestEntryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one ContestEntry.
   * @param {ContestEntryUpsertArgs} args - Arguments to update or create a ContestEntry.
   * @example
   * // Update or create a ContestEntry
   * const contestEntry = await prisma.contestEntry.upsert({
   *   create: {
   *     // ... data to create a ContestEntry
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the ContestEntry we want to update
   *   }
   * })
   */
  upsert<T extends ContestEntryUpsertArgs>(args: Prisma.SelectSubset<T, ContestEntryUpsertArgs<ExtArgs>>): Prisma.Prisma__ContestEntryClient<runtime.Types.Result.GetResult<Prisma.$ContestEntryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of ContestEntries.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ContestEntryCountArgs} args - Arguments to filter ContestEntries to count.
   * @example
   * // Count the number of ContestEntries
   * const count = await prisma.contestEntry.count({
   *   where: {
   *     // ... the filter for the ContestEntries we want to count
   *   }
   * })
  **/
  count<T extends ContestEntryCountArgs>(
    args?: Prisma.Subset<T, ContestEntryCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], ContestEntryCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a ContestEntry.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ContestEntryAggregateArgs} 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 ContestEntryAggregateArgs>(args: Prisma.Subset<T, ContestEntryAggregateArgs>): Prisma.PrismaPromise<GetContestEntryAggregateType<T>>

  /**
   * Group by ContestEntry.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ContestEntryGroupByArgs} 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 ContestEntryGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: ContestEntryGroupByArgs['orderBy'] }
      : { orderBy?: ContestEntryGroupByArgs['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, ContestEntryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContestEntryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the ContestEntry model
 */
readonly fields: ContestEntryFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for ContestEntry.
 * 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__ContestEntryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  contest<T extends Prisma.ContestDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ContestDefaultArgs<ExtArgs>>): Prisma.Prisma__ContestClient<runtime.Types.Result.GetResult<Prisma.$ContestPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  userTeam<T extends Prisma.UserTeamDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserTeamDefaultArgs<ExtArgs>>): Prisma.Prisma__UserTeamClient<runtime.Types.Result.GetResult<Prisma.$UserTeamPayload<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 ContestEntry model
 */
export interface ContestEntryFieldRefs {
  readonly id: Prisma.FieldRef<"ContestEntry", 'String'>
  readonly contestId: Prisma.FieldRef<"ContestEntry", 'String'>
  readonly userId: Prisma.FieldRef<"ContestEntry", 'String'>
  readonly userTeamId: Prisma.FieldRef<"ContestEntry", 'String'>
  readonly status: Prisma.FieldRef<"ContestEntry", 'ContestEntryStatus'>
  readonly rank: Prisma.FieldRef<"ContestEntry", 'Int'>
  readonly createdAt: Prisma.FieldRef<"ContestEntry", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ContestEntry findUnique
 */
export type ContestEntryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * Filter, which ContestEntry to fetch.
   */
  where: Prisma.ContestEntryWhereUniqueInput
}

/**
 * ContestEntry findUniqueOrThrow
 */
export type ContestEntryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * Filter, which ContestEntry to fetch.
   */
  where: Prisma.ContestEntryWhereUniqueInput
}

/**
 * ContestEntry findFirst
 */
export type ContestEntryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * Filter, which ContestEntry to fetch.
   */
  where?: Prisma.ContestEntryWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ContestEntries to fetch.
   */
  orderBy?: Prisma.ContestEntryOrderByWithRelationInput | Prisma.ContestEntryOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ContestEntries.
   */
  cursor?: Prisma.ContestEntryWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ContestEntries 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` ContestEntries.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ContestEntries.
   */
  distinct?: Prisma.ContestEntryScalarFieldEnum | Prisma.ContestEntryScalarFieldEnum[]
}

/**
 * ContestEntry findFirstOrThrow
 */
export type ContestEntryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * Filter, which ContestEntry to fetch.
   */
  where?: Prisma.ContestEntryWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ContestEntries to fetch.
   */
  orderBy?: Prisma.ContestEntryOrderByWithRelationInput | Prisma.ContestEntryOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ContestEntries.
   */
  cursor?: Prisma.ContestEntryWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ContestEntries 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` ContestEntries.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ContestEntries.
   */
  distinct?: Prisma.ContestEntryScalarFieldEnum | Prisma.ContestEntryScalarFieldEnum[]
}

/**
 * ContestEntry findMany
 */
export type ContestEntryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * Filter, which ContestEntries to fetch.
   */
  where?: Prisma.ContestEntryWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ContestEntries to fetch.
   */
  orderBy?: Prisma.ContestEntryOrderByWithRelationInput | Prisma.ContestEntryOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing ContestEntries.
   */
  cursor?: Prisma.ContestEntryWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ContestEntries 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` ContestEntries.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ContestEntries.
   */
  distinct?: Prisma.ContestEntryScalarFieldEnum | Prisma.ContestEntryScalarFieldEnum[]
}

/**
 * ContestEntry create
 */
export type ContestEntryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * The data needed to create a ContestEntry.
   */
  data: Prisma.XOR<Prisma.ContestEntryCreateInput, Prisma.ContestEntryUncheckedCreateInput>
}

/**
 * ContestEntry createMany
 */
export type ContestEntryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many ContestEntries.
   */
  data: Prisma.ContestEntryCreateManyInput | Prisma.ContestEntryCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * ContestEntry createManyAndReturn
 */
export type ContestEntryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * The data used to create many ContestEntries.
   */
  data: Prisma.ContestEntryCreateManyInput | Prisma.ContestEntryCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * ContestEntry update
 */
export type ContestEntryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * The data needed to update a ContestEntry.
   */
  data: Prisma.XOR<Prisma.ContestEntryUpdateInput, Prisma.ContestEntryUncheckedUpdateInput>
  /**
   * Choose, which ContestEntry to update.
   */
  where: Prisma.ContestEntryWhereUniqueInput
}

/**
 * ContestEntry updateMany
 */
export type ContestEntryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ContestEntries.
   */
  data: Prisma.XOR<Prisma.ContestEntryUpdateManyMutationInput, Prisma.ContestEntryUncheckedUpdateManyInput>
  /**
   * Filter which ContestEntries to update
   */
  where?: Prisma.ContestEntryWhereInput
  /**
   * Limit how many ContestEntries to update.
   */
  limit?: number
}

/**
 * ContestEntry updateManyAndReturn
 */
export type ContestEntryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * The data used to update ContestEntries.
   */
  data: Prisma.XOR<Prisma.ContestEntryUpdateManyMutationInput, Prisma.ContestEntryUncheckedUpdateManyInput>
  /**
   * Filter which ContestEntries to update
   */
  where?: Prisma.ContestEntryWhereInput
  /**
   * Limit how many ContestEntries to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * ContestEntry upsert
 */
export type ContestEntryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * The filter to search for the ContestEntry to update in case it exists.
   */
  where: Prisma.ContestEntryWhereUniqueInput
  /**
   * In case the ContestEntry found by the `where` argument doesn't exist, create a new ContestEntry with this data.
   */
  create: Prisma.XOR<Prisma.ContestEntryCreateInput, Prisma.ContestEntryUncheckedCreateInput>
  /**
   * In case the ContestEntry was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ContestEntryUpdateInput, Prisma.ContestEntryUncheckedUpdateInput>
}

/**
 * ContestEntry delete
 */
export type ContestEntryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
  /**
   * Filter which ContestEntry to delete.
   */
  where: Prisma.ContestEntryWhereUniqueInput
}

/**
 * ContestEntry deleteMany
 */
export type ContestEntryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ContestEntries to delete
   */
  where?: Prisma.ContestEntryWhereInput
  /**
   * Limit how many ContestEntries to delete.
   */
  limit?: number
}

/**
 * ContestEntry without action
 */
export type ContestEntryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ContestEntry
   */
  select?: Prisma.ContestEntrySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ContestEntry
   */
  omit?: Prisma.ContestEntryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ContestEntryInclude<ExtArgs> | null
}
