
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `Player` 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 Player
 * 
 */
export type PlayerModel = runtime.Types.Result.DefaultSelection<Prisma.$PlayerPayload>

export type AggregatePlayer = {
  _count: PlayerCountAggregateOutputType | null
  _avg: PlayerAvgAggregateOutputType | null
  _sum: PlayerSumAggregateOutputType | null
  _min: PlayerMinAggregateOutputType | null
  _max: PlayerMaxAggregateOutputType | null
}

export type PlayerAvgAggregateOutputType = {
  creditValue: number | null
}

export type PlayerSumAggregateOutputType = {
  creditValue: number | null
}

export type PlayerMinAggregateOutputType = {
  id: string | null
  name: string | null
  teamId: string | null
  role: string | null
  creditValue: number | null
  hasPhoto: boolean | null
  imageUrl: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type PlayerMaxAggregateOutputType = {
  id: string | null
  name: string | null
  teamId: string | null
  role: string | null
  creditValue: number | null
  hasPhoto: boolean | null
  imageUrl: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type PlayerCountAggregateOutputType = {
  id: number
  name: number
  teamId: number
  role: number
  creditValue: number
  hasPhoto: number
  imageUrl: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type PlayerAvgAggregateInputType = {
  creditValue?: true
}

export type PlayerSumAggregateInputType = {
  creditValue?: true
}

export type PlayerMinAggregateInputType = {
  id?: true
  name?: true
  teamId?: true
  role?: true
  creditValue?: true
  hasPhoto?: true
  imageUrl?: true
  createdAt?: true
  updatedAt?: true
}

export type PlayerMaxAggregateInputType = {
  id?: true
  name?: true
  teamId?: true
  role?: true
  creditValue?: true
  hasPhoto?: true
  imageUrl?: true
  createdAt?: true
  updatedAt?: true
}

export type PlayerCountAggregateInputType = {
  id?: true
  name?: true
  teamId?: true
  role?: true
  creditValue?: true
  hasPhoto?: true
  imageUrl?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type PlayerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Player to aggregate.
   */
  where?: Prisma.PlayerWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Players to fetch.
   */
  orderBy?: Prisma.PlayerOrderByWithRelationInput | Prisma.PlayerOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.PlayerWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Players 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` Players.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned Players
  **/
  _count?: true | PlayerCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: PlayerAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: PlayerSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: PlayerMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: PlayerMaxAggregateInputType
}

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




export type PlayerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.PlayerWhereInput
  orderBy?: Prisma.PlayerOrderByWithAggregationInput | Prisma.PlayerOrderByWithAggregationInput[]
  by: Prisma.PlayerScalarFieldEnum[] | Prisma.PlayerScalarFieldEnum
  having?: Prisma.PlayerScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: PlayerCountAggregateInputType | true
  _avg?: PlayerAvgAggregateInputType
  _sum?: PlayerSumAggregateInputType
  _min?: PlayerMinAggregateInputType
  _max?: PlayerMaxAggregateInputType
}

export type PlayerGroupByOutputType = {
  id: string
  name: string
  teamId: string
  role: string
  creditValue: number
  hasPhoto: boolean
  imageUrl: string
  createdAt: Date
  updatedAt: Date
  _count: PlayerCountAggregateOutputType | null
  _avg: PlayerAvgAggregateOutputType | null
  _sum: PlayerSumAggregateOutputType | null
  _min: PlayerMinAggregateOutputType | null
  _max: PlayerMaxAggregateOutputType | null
}

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



export type PlayerWhereInput = {
  AND?: Prisma.PlayerWhereInput | Prisma.PlayerWhereInput[]
  OR?: Prisma.PlayerWhereInput[]
  NOT?: Prisma.PlayerWhereInput | Prisma.PlayerWhereInput[]
  id?: Prisma.StringFilter<"Player"> | string
  name?: Prisma.StringFilter<"Player"> | string
  teamId?: Prisma.StringFilter<"Player"> | string
  role?: Prisma.StringFilter<"Player"> | string
  creditValue?: Prisma.FloatFilter<"Player"> | number
  hasPhoto?: Prisma.BoolFilter<"Player"> | boolean
  imageUrl?: Prisma.StringFilter<"Player"> | string
  createdAt?: Prisma.DateTimeFilter<"Player"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Player"> | Date | string
  team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
  matchEntries?: Prisma.MatchPlayerListRelationFilter
}

export type PlayerOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  creditValue?: Prisma.SortOrder
  hasPhoto?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  team?: Prisma.TeamOrderByWithRelationInput
  matchEntries?: Prisma.MatchPlayerOrderByRelationAggregateInput
}

export type PlayerWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.PlayerWhereInput | Prisma.PlayerWhereInput[]
  OR?: Prisma.PlayerWhereInput[]
  NOT?: Prisma.PlayerWhereInput | Prisma.PlayerWhereInput[]
  name?: Prisma.StringFilter<"Player"> | string
  teamId?: Prisma.StringFilter<"Player"> | string
  role?: Prisma.StringFilter<"Player"> | string
  creditValue?: Prisma.FloatFilter<"Player"> | number
  hasPhoto?: Prisma.BoolFilter<"Player"> | boolean
  imageUrl?: Prisma.StringFilter<"Player"> | string
  createdAt?: Prisma.DateTimeFilter<"Player"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Player"> | Date | string
  team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
  matchEntries?: Prisma.MatchPlayerListRelationFilter
}, "id">

export type PlayerOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  creditValue?: Prisma.SortOrder
  hasPhoto?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.PlayerCountOrderByAggregateInput
  _avg?: Prisma.PlayerAvgOrderByAggregateInput
  _max?: Prisma.PlayerMaxOrderByAggregateInput
  _min?: Prisma.PlayerMinOrderByAggregateInput
  _sum?: Prisma.PlayerSumOrderByAggregateInput
}

export type PlayerScalarWhereWithAggregatesInput = {
  AND?: Prisma.PlayerScalarWhereWithAggregatesInput | Prisma.PlayerScalarWhereWithAggregatesInput[]
  OR?: Prisma.PlayerScalarWhereWithAggregatesInput[]
  NOT?: Prisma.PlayerScalarWhereWithAggregatesInput | Prisma.PlayerScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"Player"> | string
  name?: Prisma.StringWithAggregatesFilter<"Player"> | string
  teamId?: Prisma.StringWithAggregatesFilter<"Player"> | string
  role?: Prisma.StringWithAggregatesFilter<"Player"> | string
  creditValue?: Prisma.FloatWithAggregatesFilter<"Player"> | number
  hasPhoto?: Prisma.BoolWithAggregatesFilter<"Player"> | boolean
  imageUrl?: Prisma.StringWithAggregatesFilter<"Player"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Player"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Player"> | Date | string
}

export type PlayerCreateInput = {
  id?: string
  name: string
  role: string
  creditValue?: number
  hasPhoto?: boolean
  imageUrl?: string
  createdAt?: Date | string
  updatedAt?: Date | string
  team: Prisma.TeamCreateNestedOneWithoutPlayersInput
  matchEntries?: Prisma.MatchPlayerCreateNestedManyWithoutPlayerInput
}

export type PlayerUncheckedCreateInput = {
  id?: string
  name: string
  teamId: string
  role: string
  creditValue?: number
  hasPhoto?: boolean
  imageUrl?: string
  createdAt?: Date | string
  updatedAt?: Date | string
  matchEntries?: Prisma.MatchPlayerUncheckedCreateNestedManyWithoutPlayerInput
}

export type PlayerUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  team?: Prisma.TeamUpdateOneRequiredWithoutPlayersNestedInput
  matchEntries?: Prisma.MatchPlayerUpdateManyWithoutPlayerNestedInput
}

export type PlayerUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  teamId?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  matchEntries?: Prisma.MatchPlayerUncheckedUpdateManyWithoutPlayerNestedInput
}

export type PlayerCreateManyInput = {
  id?: string
  name: string
  teamId: string
  role: string
  creditValue?: number
  hasPhoto?: boolean
  imageUrl?: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type PlayerUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type PlayerUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  teamId?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type PlayerListRelationFilter = {
  every?: Prisma.PlayerWhereInput
  some?: Prisma.PlayerWhereInput
  none?: Prisma.PlayerWhereInput
}

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

export type PlayerCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  creditValue?: Prisma.SortOrder
  hasPhoto?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type PlayerAvgOrderByAggregateInput = {
  creditValue?: Prisma.SortOrder
}

export type PlayerMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  creditValue?: Prisma.SortOrder
  hasPhoto?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type PlayerMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  teamId?: Prisma.SortOrder
  role?: Prisma.SortOrder
  creditValue?: Prisma.SortOrder
  hasPhoto?: Prisma.SortOrder
  imageUrl?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type PlayerSumOrderByAggregateInput = {
  creditValue?: Prisma.SortOrder
}

export type PlayerScalarRelationFilter = {
  is?: Prisma.PlayerWhereInput
  isNot?: Prisma.PlayerWhereInput
}

export type PlayerCreateNestedManyWithoutTeamInput = {
  create?: Prisma.XOR<Prisma.PlayerCreateWithoutTeamInput, Prisma.PlayerUncheckedCreateWithoutTeamInput> | Prisma.PlayerCreateWithoutTeamInput[] | Prisma.PlayerUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutTeamInput | Prisma.PlayerCreateOrConnectWithoutTeamInput[]
  createMany?: Prisma.PlayerCreateManyTeamInputEnvelope
  connect?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
}

export type PlayerUncheckedCreateNestedManyWithoutTeamInput = {
  create?: Prisma.XOR<Prisma.PlayerCreateWithoutTeamInput, Prisma.PlayerUncheckedCreateWithoutTeamInput> | Prisma.PlayerCreateWithoutTeamInput[] | Prisma.PlayerUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutTeamInput | Prisma.PlayerCreateOrConnectWithoutTeamInput[]
  createMany?: Prisma.PlayerCreateManyTeamInputEnvelope
  connect?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
}

export type PlayerUpdateManyWithoutTeamNestedInput = {
  create?: Prisma.XOR<Prisma.PlayerCreateWithoutTeamInput, Prisma.PlayerUncheckedCreateWithoutTeamInput> | Prisma.PlayerCreateWithoutTeamInput[] | Prisma.PlayerUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutTeamInput | Prisma.PlayerCreateOrConnectWithoutTeamInput[]
  upsert?: Prisma.PlayerUpsertWithWhereUniqueWithoutTeamInput | Prisma.PlayerUpsertWithWhereUniqueWithoutTeamInput[]
  createMany?: Prisma.PlayerCreateManyTeamInputEnvelope
  set?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
  disconnect?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
  delete?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
  connect?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
  update?: Prisma.PlayerUpdateWithWhereUniqueWithoutTeamInput | Prisma.PlayerUpdateWithWhereUniqueWithoutTeamInput[]
  updateMany?: Prisma.PlayerUpdateManyWithWhereWithoutTeamInput | Prisma.PlayerUpdateManyWithWhereWithoutTeamInput[]
  deleteMany?: Prisma.PlayerScalarWhereInput | Prisma.PlayerScalarWhereInput[]
}

export type PlayerUncheckedUpdateManyWithoutTeamNestedInput = {
  create?: Prisma.XOR<Prisma.PlayerCreateWithoutTeamInput, Prisma.PlayerUncheckedCreateWithoutTeamInput> | Prisma.PlayerCreateWithoutTeamInput[] | Prisma.PlayerUncheckedCreateWithoutTeamInput[]
  connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutTeamInput | Prisma.PlayerCreateOrConnectWithoutTeamInput[]
  upsert?: Prisma.PlayerUpsertWithWhereUniqueWithoutTeamInput | Prisma.PlayerUpsertWithWhereUniqueWithoutTeamInput[]
  createMany?: Prisma.PlayerCreateManyTeamInputEnvelope
  set?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
  disconnect?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
  delete?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
  connect?: Prisma.PlayerWhereUniqueInput | Prisma.PlayerWhereUniqueInput[]
  update?: Prisma.PlayerUpdateWithWhereUniqueWithoutTeamInput | Prisma.PlayerUpdateWithWhereUniqueWithoutTeamInput[]
  updateMany?: Prisma.PlayerUpdateManyWithWhereWithoutTeamInput | Prisma.PlayerUpdateManyWithWhereWithoutTeamInput[]
  deleteMany?: Prisma.PlayerScalarWhereInput | Prisma.PlayerScalarWhereInput[]
}

export type FloatFieldUpdateOperationsInput = {
  set?: number
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type PlayerCreateNestedOneWithoutMatchEntriesInput = {
  create?: Prisma.XOR<Prisma.PlayerCreateWithoutMatchEntriesInput, Prisma.PlayerUncheckedCreateWithoutMatchEntriesInput>
  connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutMatchEntriesInput
  connect?: Prisma.PlayerWhereUniqueInput
}

export type PlayerUpdateOneRequiredWithoutMatchEntriesNestedInput = {
  create?: Prisma.XOR<Prisma.PlayerCreateWithoutMatchEntriesInput, Prisma.PlayerUncheckedCreateWithoutMatchEntriesInput>
  connectOrCreate?: Prisma.PlayerCreateOrConnectWithoutMatchEntriesInput
  upsert?: Prisma.PlayerUpsertWithoutMatchEntriesInput
  connect?: Prisma.PlayerWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.PlayerUpdateToOneWithWhereWithoutMatchEntriesInput, Prisma.PlayerUpdateWithoutMatchEntriesInput>, Prisma.PlayerUncheckedUpdateWithoutMatchEntriesInput>
}

export type PlayerCreateWithoutTeamInput = {
  id?: string
  name: string
  role: string
  creditValue?: number
  hasPhoto?: boolean
  imageUrl?: string
  createdAt?: Date | string
  updatedAt?: Date | string
  matchEntries?: Prisma.MatchPlayerCreateNestedManyWithoutPlayerInput
}

export type PlayerUncheckedCreateWithoutTeamInput = {
  id?: string
  name: string
  role: string
  creditValue?: number
  hasPhoto?: boolean
  imageUrl?: string
  createdAt?: Date | string
  updatedAt?: Date | string
  matchEntries?: Prisma.MatchPlayerUncheckedCreateNestedManyWithoutPlayerInput
}

export type PlayerCreateOrConnectWithoutTeamInput = {
  where: Prisma.PlayerWhereUniqueInput
  create: Prisma.XOR<Prisma.PlayerCreateWithoutTeamInput, Prisma.PlayerUncheckedCreateWithoutTeamInput>
}

export type PlayerCreateManyTeamInputEnvelope = {
  data: Prisma.PlayerCreateManyTeamInput | Prisma.PlayerCreateManyTeamInput[]
  skipDuplicates?: boolean
}

export type PlayerUpsertWithWhereUniqueWithoutTeamInput = {
  where: Prisma.PlayerWhereUniqueInput
  update: Prisma.XOR<Prisma.PlayerUpdateWithoutTeamInput, Prisma.PlayerUncheckedUpdateWithoutTeamInput>
  create: Prisma.XOR<Prisma.PlayerCreateWithoutTeamInput, Prisma.PlayerUncheckedCreateWithoutTeamInput>
}

export type PlayerUpdateWithWhereUniqueWithoutTeamInput = {
  where: Prisma.PlayerWhereUniqueInput
  data: Prisma.XOR<Prisma.PlayerUpdateWithoutTeamInput, Prisma.PlayerUncheckedUpdateWithoutTeamInput>
}

export type PlayerUpdateManyWithWhereWithoutTeamInput = {
  where: Prisma.PlayerScalarWhereInput
  data: Prisma.XOR<Prisma.PlayerUpdateManyMutationInput, Prisma.PlayerUncheckedUpdateManyWithoutTeamInput>
}

export type PlayerScalarWhereInput = {
  AND?: Prisma.PlayerScalarWhereInput | Prisma.PlayerScalarWhereInput[]
  OR?: Prisma.PlayerScalarWhereInput[]
  NOT?: Prisma.PlayerScalarWhereInput | Prisma.PlayerScalarWhereInput[]
  id?: Prisma.StringFilter<"Player"> | string
  name?: Prisma.StringFilter<"Player"> | string
  teamId?: Prisma.StringFilter<"Player"> | string
  role?: Prisma.StringFilter<"Player"> | string
  creditValue?: Prisma.FloatFilter<"Player"> | number
  hasPhoto?: Prisma.BoolFilter<"Player"> | boolean
  imageUrl?: Prisma.StringFilter<"Player"> | string
  createdAt?: Prisma.DateTimeFilter<"Player"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Player"> | Date | string
}

export type PlayerCreateWithoutMatchEntriesInput = {
  id?: string
  name: string
  role: string
  creditValue?: number
  hasPhoto?: boolean
  imageUrl?: string
  createdAt?: Date | string
  updatedAt?: Date | string
  team: Prisma.TeamCreateNestedOneWithoutPlayersInput
}

export type PlayerUncheckedCreateWithoutMatchEntriesInput = {
  id?: string
  name: string
  teamId: string
  role: string
  creditValue?: number
  hasPhoto?: boolean
  imageUrl?: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type PlayerCreateOrConnectWithoutMatchEntriesInput = {
  where: Prisma.PlayerWhereUniqueInput
  create: Prisma.XOR<Prisma.PlayerCreateWithoutMatchEntriesInput, Prisma.PlayerUncheckedCreateWithoutMatchEntriesInput>
}

export type PlayerUpsertWithoutMatchEntriesInput = {
  update: Prisma.XOR<Prisma.PlayerUpdateWithoutMatchEntriesInput, Prisma.PlayerUncheckedUpdateWithoutMatchEntriesInput>
  create: Prisma.XOR<Prisma.PlayerCreateWithoutMatchEntriesInput, Prisma.PlayerUncheckedCreateWithoutMatchEntriesInput>
  where?: Prisma.PlayerWhereInput
}

export type PlayerUpdateToOneWithWhereWithoutMatchEntriesInput = {
  where?: Prisma.PlayerWhereInput
  data: Prisma.XOR<Prisma.PlayerUpdateWithoutMatchEntriesInput, Prisma.PlayerUncheckedUpdateWithoutMatchEntriesInput>
}

export type PlayerUpdateWithoutMatchEntriesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  team?: Prisma.TeamUpdateOneRequiredWithoutPlayersNestedInput
}

export type PlayerUncheckedUpdateWithoutMatchEntriesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  teamId?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type PlayerCreateManyTeamInput = {
  id?: string
  name: string
  role: string
  creditValue?: number
  hasPhoto?: boolean
  imageUrl?: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type PlayerUpdateWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  matchEntries?: Prisma.MatchPlayerUpdateManyWithoutPlayerNestedInput
}

export type PlayerUncheckedUpdateWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  matchEntries?: Prisma.MatchPlayerUncheckedUpdateManyWithoutPlayerNestedInput
}

export type PlayerUncheckedUpdateManyWithoutTeamInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  role?: Prisma.StringFieldUpdateOperationsInput | string
  creditValue?: Prisma.FloatFieldUpdateOperationsInput | number
  hasPhoto?: Prisma.BoolFieldUpdateOperationsInput | boolean
  imageUrl?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type PlayerCountOutputType
 */

export type PlayerCountOutputType = {
  matchEntries: number
}

export type PlayerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  matchEntries?: boolean | PlayerCountOutputTypeCountMatchEntriesArgs
}

/**
 * PlayerCountOutputType without action
 */
export type PlayerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PlayerCountOutputType
   */
  select?: Prisma.PlayerCountOutputTypeSelect<ExtArgs> | null
}

/**
 * PlayerCountOutputType without action
 */
export type PlayerCountOutputTypeCountMatchEntriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.MatchPlayerWhereInput
}


export type PlayerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  teamId?: boolean
  role?: boolean
  creditValue?: boolean
  hasPhoto?: boolean
  imageUrl?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
  matchEntries?: boolean | Prisma.Player$matchEntriesArgs<ExtArgs>
  _count?: boolean | Prisma.PlayerCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["player"]>

export type PlayerSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  teamId?: boolean
  role?: boolean
  creditValue?: boolean
  hasPhoto?: boolean
  imageUrl?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["player"]>

export type PlayerSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  teamId?: boolean
  role?: boolean
  creditValue?: boolean
  hasPhoto?: boolean
  imageUrl?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["player"]>

export type PlayerSelectScalar = {
  id?: boolean
  name?: boolean
  teamId?: boolean
  role?: boolean
  creditValue?: boolean
  hasPhoto?: boolean
  imageUrl?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type PlayerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "teamId" | "role" | "creditValue" | "hasPhoto" | "imageUrl" | "createdAt" | "updatedAt", ExtArgs["result"]["player"]>
export type PlayerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
  matchEntries?: boolean | Prisma.Player$matchEntriesArgs<ExtArgs>
  _count?: boolean | Prisma.PlayerCountOutputTypeDefaultArgs<ExtArgs>
}
export type PlayerIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}
export type PlayerIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}

export type $PlayerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Player"
  objects: {
    team: Prisma.$TeamPayload<ExtArgs>
    matchEntries: Prisma.$MatchPlayerPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    name: string
    teamId: string
    role: string
    creditValue: number
    hasPhoto: boolean
    imageUrl: string
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["player"]>
  composites: {}
}

export type PlayerGetPayload<S extends boolean | null | undefined | PlayerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PlayerPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Player.
 * 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__PlayerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  team<T extends Prisma.TeamDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  matchEntries<T extends Prisma.Player$matchEntriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Player$matchEntriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MatchPlayerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<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 Player model
 */
export interface PlayerFieldRefs {
  readonly id: Prisma.FieldRef<"Player", 'String'>
  readonly name: Prisma.FieldRef<"Player", 'String'>
  readonly teamId: Prisma.FieldRef<"Player", 'String'>
  readonly role: Prisma.FieldRef<"Player", 'String'>
  readonly creditValue: Prisma.FieldRef<"Player", 'Float'>
  readonly hasPhoto: Prisma.FieldRef<"Player", 'Boolean'>
  readonly imageUrl: Prisma.FieldRef<"Player", 'String'>
  readonly createdAt: Prisma.FieldRef<"Player", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Player", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Player findUnique
 */
export type PlayerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Player
   */
  select?: Prisma.PlayerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Player
   */
  omit?: Prisma.PlayerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlayerInclude<ExtArgs> | null
  /**
   * Filter, which Player to fetch.
   */
  where: Prisma.PlayerWhereUniqueInput
}

/**
 * Player findUniqueOrThrow
 */
export type PlayerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Player
   */
  select?: Prisma.PlayerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Player
   */
  omit?: Prisma.PlayerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlayerInclude<ExtArgs> | null
  /**
   * Filter, which Player to fetch.
   */
  where: Prisma.PlayerWhereUniqueInput
}

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

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

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

/**
 * Player create
 */
export type PlayerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Player
   */
  select?: Prisma.PlayerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Player
   */
  omit?: Prisma.PlayerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlayerInclude<ExtArgs> | null
  /**
   * The data needed to create a Player.
   */
  data: Prisma.XOR<Prisma.PlayerCreateInput, Prisma.PlayerUncheckedCreateInput>
}

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

/**
 * Player createManyAndReturn
 */
export type PlayerCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Player
   */
  select?: Prisma.PlayerSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Player
   */
  omit?: Prisma.PlayerOmit<ExtArgs> | null
  /**
   * The data used to create many Players.
   */
  data: Prisma.PlayerCreateManyInput | Prisma.PlayerCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlayerIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Player update
 */
export type PlayerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Player
   */
  select?: Prisma.PlayerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Player
   */
  omit?: Prisma.PlayerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlayerInclude<ExtArgs> | null
  /**
   * The data needed to update a Player.
   */
  data: Prisma.XOR<Prisma.PlayerUpdateInput, Prisma.PlayerUncheckedUpdateInput>
  /**
   * Choose, which Player to update.
   */
  where: Prisma.PlayerWhereUniqueInput
}

/**
 * Player updateMany
 */
export type PlayerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Players.
   */
  data: Prisma.XOR<Prisma.PlayerUpdateManyMutationInput, Prisma.PlayerUncheckedUpdateManyInput>
  /**
   * Filter which Players to update
   */
  where?: Prisma.PlayerWhereInput
  /**
   * Limit how many Players to update.
   */
  limit?: number
}

/**
 * Player updateManyAndReturn
 */
export type PlayerUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Player
   */
  select?: Prisma.PlayerSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Player
   */
  omit?: Prisma.PlayerOmit<ExtArgs> | null
  /**
   * The data used to update Players.
   */
  data: Prisma.XOR<Prisma.PlayerUpdateManyMutationInput, Prisma.PlayerUncheckedUpdateManyInput>
  /**
   * Filter which Players to update
   */
  where?: Prisma.PlayerWhereInput
  /**
   * Limit how many Players to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlayerIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Player upsert
 */
export type PlayerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Player
   */
  select?: Prisma.PlayerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Player
   */
  omit?: Prisma.PlayerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlayerInclude<ExtArgs> | null
  /**
   * The filter to search for the Player to update in case it exists.
   */
  where: Prisma.PlayerWhereUniqueInput
  /**
   * In case the Player found by the `where` argument doesn't exist, create a new Player with this data.
   */
  create: Prisma.XOR<Prisma.PlayerCreateInput, Prisma.PlayerUncheckedCreateInput>
  /**
   * In case the Player was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.PlayerUpdateInput, Prisma.PlayerUncheckedUpdateInput>
}

/**
 * Player delete
 */
export type PlayerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Player
   */
  select?: Prisma.PlayerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Player
   */
  omit?: Prisma.PlayerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PlayerInclude<ExtArgs> | null
  /**
   * Filter which Player to delete.
   */
  where: Prisma.PlayerWhereUniqueInput
}

/**
 * Player deleteMany
 */
export type PlayerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Players to delete
   */
  where?: Prisma.PlayerWhereInput
  /**
   * Limit how many Players to delete.
   */
  limit?: number
}

/**
 * Player.matchEntries
 */
export type Player$matchEntriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MatchPlayer
   */
  select?: Prisma.MatchPlayerSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MatchPlayer
   */
  omit?: Prisma.MatchPlayerOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MatchPlayerInclude<ExtArgs> | null
  where?: Prisma.MatchPlayerWhereInput
  orderBy?: Prisma.MatchPlayerOrderByWithRelationInput | Prisma.MatchPlayerOrderByWithRelationInput[]
  cursor?: Prisma.MatchPlayerWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.MatchPlayerScalarFieldEnum | Prisma.MatchPlayerScalarFieldEnum[]
}

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