/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Game` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums" import type * as Prisma from "../internal/prismaNamespace" /** * Model Game * */ export type GameModel = runtime.Types.Result.DefaultSelection export type AggregateGame = { _count: GameCountAggregateOutputType | null _avg: GameAvgAggregateOutputType | null _sum: GameSumAggregateOutputType | null _min: GameMinAggregateOutputType | null _max: GameMaxAggregateOutputType | null } export type GameAvgAggregateOutputType = { clicks: number | null timeSeconds: number | null } export type GameSumAggregateOutputType = { clicks: number | null timeSeconds: number | null } export type GameMinAggregateOutputType = { id: string | null userId: string | null mode: string | null startArticle: string | null targetArticle: string | null path: string | null clicks: number | null timeSeconds: number | null won: boolean | null playedAt: Date | null } export type GameMaxAggregateOutputType = { id: string | null userId: string | null mode: string | null startArticle: string | null targetArticle: string | null path: string | null clicks: number | null timeSeconds: number | null won: boolean | null playedAt: Date | null } export type GameCountAggregateOutputType = { id: number userId: number mode: number startArticle: number targetArticle: number path: number clicks: number timeSeconds: number won: number playedAt: number _all: number } export type GameAvgAggregateInputType = { clicks?: true timeSeconds?: true } export type GameSumAggregateInputType = { clicks?: true timeSeconds?: true } export type GameMinAggregateInputType = { id?: true userId?: true mode?: true startArticle?: true targetArticle?: true path?: true clicks?: true timeSeconds?: true won?: true playedAt?: true } export type GameMaxAggregateInputType = { id?: true userId?: true mode?: true startArticle?: true targetArticle?: true path?: true clicks?: true timeSeconds?: true won?: true playedAt?: true } export type GameCountAggregateInputType = { id?: true userId?: true mode?: true startArticle?: true targetArticle?: true path?: true clicks?: true timeSeconds?: true won?: true playedAt?: true _all?: true } export type GameAggregateArgs = { /** * Filter which Game to aggregate. */ where?: Prisma.GameWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Games to fetch. */ orderBy?: Prisma.GameOrderByWithRelationInput | Prisma.GameOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.GameWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Games 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` Games. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Games **/ _count?: true | GameCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: GameAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: GameSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GameMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GameMaxAggregateInputType } export type GetGameAggregateType = { [P in keyof T & keyof AggregateGame]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type GameGroupByArgs = { where?: Prisma.GameWhereInput orderBy?: Prisma.GameOrderByWithAggregationInput | Prisma.GameOrderByWithAggregationInput[] by: Prisma.GameScalarFieldEnum[] | Prisma.GameScalarFieldEnum having?: Prisma.GameScalarWhereWithAggregatesInput take?: number skip?: number _count?: GameCountAggregateInputType | true _avg?: GameAvgAggregateInputType _sum?: GameSumAggregateInputType _min?: GameMinAggregateInputType _max?: GameMaxAggregateInputType } export type GameGroupByOutputType = { id: string userId: string mode: string startArticle: string targetArticle: string path: string clicks: number timeSeconds: number won: boolean playedAt: Date _count: GameCountAggregateOutputType | null _avg: GameAvgAggregateOutputType | null _sum: GameSumAggregateOutputType | null _min: GameMinAggregateOutputType | null _max: GameMaxAggregateOutputType | null } export type GetGameGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof GameGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type GameWhereInput = { AND?: Prisma.GameWhereInput | Prisma.GameWhereInput[] OR?: Prisma.GameWhereInput[] NOT?: Prisma.GameWhereInput | Prisma.GameWhereInput[] id?: Prisma.StringFilter<"Game"> | string userId?: Prisma.StringFilter<"Game"> | string mode?: Prisma.StringFilter<"Game"> | string startArticle?: Prisma.StringFilter<"Game"> | string targetArticle?: Prisma.StringFilter<"Game"> | string path?: Prisma.StringFilter<"Game"> | string clicks?: Prisma.IntFilter<"Game"> | number timeSeconds?: Prisma.FloatFilter<"Game"> | number won?: Prisma.BoolFilter<"Game"> | boolean playedAt?: Prisma.DateTimeFilter<"Game"> | Date | string user?: Prisma.XOR } export type GameOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder mode?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder path?: Prisma.SortOrder clicks?: Prisma.SortOrder timeSeconds?: Prisma.SortOrder won?: Prisma.SortOrder playedAt?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput } export type GameWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.GameWhereInput | Prisma.GameWhereInput[] OR?: Prisma.GameWhereInput[] NOT?: Prisma.GameWhereInput | Prisma.GameWhereInput[] userId?: Prisma.StringFilter<"Game"> | string mode?: Prisma.StringFilter<"Game"> | string startArticle?: Prisma.StringFilter<"Game"> | string targetArticle?: Prisma.StringFilter<"Game"> | string path?: Prisma.StringFilter<"Game"> | string clicks?: Prisma.IntFilter<"Game"> | number timeSeconds?: Prisma.FloatFilter<"Game"> | number won?: Prisma.BoolFilter<"Game"> | boolean playedAt?: Prisma.DateTimeFilter<"Game"> | Date | string user?: Prisma.XOR }, "id"> export type GameOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder mode?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder path?: Prisma.SortOrder clicks?: Prisma.SortOrder timeSeconds?: Prisma.SortOrder won?: Prisma.SortOrder playedAt?: Prisma.SortOrder _count?: Prisma.GameCountOrderByAggregateInput _avg?: Prisma.GameAvgOrderByAggregateInput _max?: Prisma.GameMaxOrderByAggregateInput _min?: Prisma.GameMinOrderByAggregateInput _sum?: Prisma.GameSumOrderByAggregateInput } export type GameScalarWhereWithAggregatesInput = { AND?: Prisma.GameScalarWhereWithAggregatesInput | Prisma.GameScalarWhereWithAggregatesInput[] OR?: Prisma.GameScalarWhereWithAggregatesInput[] NOT?: Prisma.GameScalarWhereWithAggregatesInput | Prisma.GameScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Game"> | string userId?: Prisma.StringWithAggregatesFilter<"Game"> | string mode?: Prisma.StringWithAggregatesFilter<"Game"> | string startArticle?: Prisma.StringWithAggregatesFilter<"Game"> | string targetArticle?: Prisma.StringWithAggregatesFilter<"Game"> | string path?: Prisma.StringWithAggregatesFilter<"Game"> | string clicks?: Prisma.IntWithAggregatesFilter<"Game"> | number timeSeconds?: Prisma.FloatWithAggregatesFilter<"Game"> | number won?: Prisma.BoolWithAggregatesFilter<"Game"> | boolean playedAt?: Prisma.DateTimeWithAggregatesFilter<"Game"> | Date | string } export type GameCreateInput = { id?: string mode: string startArticle: string targetArticle: string path: string clicks: number timeSeconds: number won?: boolean playedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutGamesInput } export type GameUncheckedCreateInput = { id?: string userId: string mode: string startArticle: string targetArticle: string path: string clicks: number timeSeconds: number won?: boolean playedAt?: Date | string } export type GameUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mode?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string path?: Prisma.StringFieldUpdateOperationsInput | string clicks?: Prisma.IntFieldUpdateOperationsInput | number timeSeconds?: Prisma.FloatFieldUpdateOperationsInput | number won?: Prisma.BoolFieldUpdateOperationsInput | boolean playedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutGamesNestedInput } export type GameUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string mode?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string path?: Prisma.StringFieldUpdateOperationsInput | string clicks?: Prisma.IntFieldUpdateOperationsInput | number timeSeconds?: Prisma.FloatFieldUpdateOperationsInput | number won?: Prisma.BoolFieldUpdateOperationsInput | boolean playedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type GameCreateManyInput = { id?: string userId: string mode: string startArticle: string targetArticle: string path: string clicks: number timeSeconds: number won?: boolean playedAt?: Date | string } export type GameUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mode?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string path?: Prisma.StringFieldUpdateOperationsInput | string clicks?: Prisma.IntFieldUpdateOperationsInput | number timeSeconds?: Prisma.FloatFieldUpdateOperationsInput | number won?: Prisma.BoolFieldUpdateOperationsInput | boolean playedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type GameUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string mode?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string path?: Prisma.StringFieldUpdateOperationsInput | string clicks?: Prisma.IntFieldUpdateOperationsInput | number timeSeconds?: Prisma.FloatFieldUpdateOperationsInput | number won?: Prisma.BoolFieldUpdateOperationsInput | boolean playedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type GameListRelationFilter = { every?: Prisma.GameWhereInput some?: Prisma.GameWhereInput none?: Prisma.GameWhereInput } export type GameOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type GameCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder mode?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder path?: Prisma.SortOrder clicks?: Prisma.SortOrder timeSeconds?: Prisma.SortOrder won?: Prisma.SortOrder playedAt?: Prisma.SortOrder } export type GameAvgOrderByAggregateInput = { clicks?: Prisma.SortOrder timeSeconds?: Prisma.SortOrder } export type GameMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder mode?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder path?: Prisma.SortOrder clicks?: Prisma.SortOrder timeSeconds?: Prisma.SortOrder won?: Prisma.SortOrder playedAt?: Prisma.SortOrder } export type GameMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder mode?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder path?: Prisma.SortOrder clicks?: Prisma.SortOrder timeSeconds?: Prisma.SortOrder won?: Prisma.SortOrder playedAt?: Prisma.SortOrder } export type GameSumOrderByAggregateInput = { clicks?: Prisma.SortOrder timeSeconds?: Prisma.SortOrder } export type GameCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.GameCreateWithoutUserInput[] | Prisma.GameUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.GameCreateOrConnectWithoutUserInput | Prisma.GameCreateOrConnectWithoutUserInput[] createMany?: Prisma.GameCreateManyUserInputEnvelope connect?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] } export type GameUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.GameCreateWithoutUserInput[] | Prisma.GameUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.GameCreateOrConnectWithoutUserInput | Prisma.GameCreateOrConnectWithoutUserInput[] createMany?: Prisma.GameCreateManyUserInputEnvelope connect?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] } export type GameUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.GameCreateWithoutUserInput[] | Prisma.GameUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.GameCreateOrConnectWithoutUserInput | Prisma.GameCreateOrConnectWithoutUserInput[] upsert?: Prisma.GameUpsertWithWhereUniqueWithoutUserInput | Prisma.GameUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.GameCreateManyUserInputEnvelope set?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] disconnect?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] delete?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] connect?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] update?: Prisma.GameUpdateWithWhereUniqueWithoutUserInput | Prisma.GameUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.GameUpdateManyWithWhereWithoutUserInput | Prisma.GameUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.GameScalarWhereInput | Prisma.GameScalarWhereInput[] } export type GameUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.GameCreateWithoutUserInput[] | Prisma.GameUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.GameCreateOrConnectWithoutUserInput | Prisma.GameCreateOrConnectWithoutUserInput[] upsert?: Prisma.GameUpsertWithWhereUniqueWithoutUserInput | Prisma.GameUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.GameCreateManyUserInputEnvelope set?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] disconnect?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] delete?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] connect?: Prisma.GameWhereUniqueInput | Prisma.GameWhereUniqueInput[] update?: Prisma.GameUpdateWithWhereUniqueWithoutUserInput | Prisma.GameUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.GameUpdateManyWithWhereWithoutUserInput | Prisma.GameUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.GameScalarWhereInput | Prisma.GameScalarWhereInput[] } export type IntFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type GameCreateWithoutUserInput = { id?: string mode: string startArticle: string targetArticle: string path: string clicks: number timeSeconds: number won?: boolean playedAt?: Date | string } export type GameUncheckedCreateWithoutUserInput = { id?: string mode: string startArticle: string targetArticle: string path: string clicks: number timeSeconds: number won?: boolean playedAt?: Date | string } export type GameCreateOrConnectWithoutUserInput = { where: Prisma.GameWhereUniqueInput create: Prisma.XOR } export type GameCreateManyUserInputEnvelope = { data: Prisma.GameCreateManyUserInput | Prisma.GameCreateManyUserInput[] } export type GameUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.GameWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type GameUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.GameWhereUniqueInput data: Prisma.XOR } export type GameUpdateManyWithWhereWithoutUserInput = { where: Prisma.GameScalarWhereInput data: Prisma.XOR } export type GameScalarWhereInput = { AND?: Prisma.GameScalarWhereInput | Prisma.GameScalarWhereInput[] OR?: Prisma.GameScalarWhereInput[] NOT?: Prisma.GameScalarWhereInput | Prisma.GameScalarWhereInput[] id?: Prisma.StringFilter<"Game"> | string userId?: Prisma.StringFilter<"Game"> | string mode?: Prisma.StringFilter<"Game"> | string startArticle?: Prisma.StringFilter<"Game"> | string targetArticle?: Prisma.StringFilter<"Game"> | string path?: Prisma.StringFilter<"Game"> | string clicks?: Prisma.IntFilter<"Game"> | number timeSeconds?: Prisma.FloatFilter<"Game"> | number won?: Prisma.BoolFilter<"Game"> | boolean playedAt?: Prisma.DateTimeFilter<"Game"> | Date | string } export type GameCreateManyUserInput = { id?: string mode: string startArticle: string targetArticle: string path: string clicks: number timeSeconds: number won?: boolean playedAt?: Date | string } export type GameUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mode?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string path?: Prisma.StringFieldUpdateOperationsInput | string clicks?: Prisma.IntFieldUpdateOperationsInput | number timeSeconds?: Prisma.FloatFieldUpdateOperationsInput | number won?: Prisma.BoolFieldUpdateOperationsInput | boolean playedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type GameUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mode?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string path?: Prisma.StringFieldUpdateOperationsInput | string clicks?: Prisma.IntFieldUpdateOperationsInput | number timeSeconds?: Prisma.FloatFieldUpdateOperationsInput | number won?: Prisma.BoolFieldUpdateOperationsInput | boolean playedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type GameUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mode?: Prisma.StringFieldUpdateOperationsInput | string startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string path?: Prisma.StringFieldUpdateOperationsInput | string clicks?: Prisma.IntFieldUpdateOperationsInput | number timeSeconds?: Prisma.FloatFieldUpdateOperationsInput | number won?: Prisma.BoolFieldUpdateOperationsInput | boolean playedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type GameSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean mode?: boolean startArticle?: boolean targetArticle?: boolean path?: boolean clicks?: boolean timeSeconds?: boolean won?: boolean playedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["game"]> export type GameSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean mode?: boolean startArticle?: boolean targetArticle?: boolean path?: boolean clicks?: boolean timeSeconds?: boolean won?: boolean playedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["game"]> export type GameSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean mode?: boolean startArticle?: boolean targetArticle?: boolean path?: boolean clicks?: boolean timeSeconds?: boolean won?: boolean playedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["game"]> export type GameSelectScalar = { id?: boolean userId?: boolean mode?: boolean startArticle?: boolean targetArticle?: boolean path?: boolean clicks?: boolean timeSeconds?: boolean won?: boolean playedAt?: boolean } export type GameOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "mode" | "startArticle" | "targetArticle" | "path" | "clicks" | "timeSeconds" | "won" | "playedAt", ExtArgs["result"]["game"]> export type GameInclude = { user?: boolean | Prisma.UserDefaultArgs } export type GameIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type GameIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $GamePayload = { name: "Game" objects: { user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string userId: string mode: string startArticle: string targetArticle: string path: string clicks: number timeSeconds: number won: boolean playedAt: Date }, ExtArgs["result"]["game"]> composites: {} } export type GameGetPayload = runtime.Types.Result.GetResult export type GameCountArgs = Omit & { select?: GameCountAggregateInputType | true } export interface GameDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Game'], meta: { name: 'Game' } } /** * Find zero or one Game that matches the filter. * @param {GameFindUniqueArgs} args - Arguments to find a Game * @example * // Get one Game * const game = await prisma.game.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__GameClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Game that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GameFindUniqueOrThrowArgs} args - Arguments to find a Game * @example * // Get one Game * const game = await prisma.game.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__GameClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Game 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 {GameFindFirstArgs} args - Arguments to find a Game * @example * // Get one Game * const game = await prisma.game.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__GameClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Game 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 {GameFindFirstOrThrowArgs} args - Arguments to find a Game * @example * // Get one Game * const game = await prisma.game.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__GameClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Games 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 {GameFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Games * const games = await prisma.game.findMany() * * // Get first 10 Games * const games = await prisma.game.findMany({ take: 10 }) * * // Only select the `id` * const gameWithIdOnly = await prisma.game.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Game. * @param {GameCreateArgs} args - Arguments to create a Game. * @example * // Create one Game * const Game = await prisma.game.create({ * data: { * // ... data to create a Game * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__GameClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Games. * @param {GameCreateManyArgs} args - Arguments to create many Games. * @example * // Create many Games * const game = await prisma.game.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Games and returns the data saved in the database. * @param {GameCreateManyAndReturnArgs} args - Arguments to create many Games. * @example * // Create many Games * const game = await prisma.game.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Games and only return the `id` * const gameWithIdOnly = await prisma.game.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Game. * @param {GameDeleteArgs} args - Arguments to delete one Game. * @example * // Delete one Game * const Game = await prisma.game.delete({ * where: { * // ... filter to delete one Game * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__GameClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Game. * @param {GameUpdateArgs} args - Arguments to update one Game. * @example * // Update one Game * const game = await prisma.game.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__GameClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Games. * @param {GameDeleteManyArgs} args - Arguments to filter Games to delete. * @example * // Delete a few Games * const { count } = await prisma.game.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Games. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GameUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Games * const game = await prisma.game.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Games and returns the data updated in the database. * @param {GameUpdateManyAndReturnArgs} args - Arguments to update many Games. * @example * // Update many Games * const game = await prisma.game.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Games and only return the `id` * const gameWithIdOnly = await prisma.game.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Game. * @param {GameUpsertArgs} args - Arguments to update or create a Game. * @example * // Update or create a Game * const game = await prisma.game.upsert({ * create: { * // ... data to create a Game * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Game we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__GameClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Games. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GameCountArgs} args - Arguments to filter Games to count. * @example * // Count the number of Games * const count = await prisma.game.count({ * where: { * // ... the filter for the Games we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Game. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GameAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Game. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GameGroupByArgs} 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 GameGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: GameGroupByArgs['orderBy'] } : { orderBy?: GameGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetGameGroupByPayload : Prisma.PrismaPromise /** * Fields of the Game model */ readonly fields: GameFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Game. * 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__GameClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the Game model */ export interface GameFieldRefs { readonly id: Prisma.FieldRef<"Game", 'String'> readonly userId: Prisma.FieldRef<"Game", 'String'> readonly mode: Prisma.FieldRef<"Game", 'String'> readonly startArticle: Prisma.FieldRef<"Game", 'String'> readonly targetArticle: Prisma.FieldRef<"Game", 'String'> readonly path: Prisma.FieldRef<"Game", 'String'> readonly clicks: Prisma.FieldRef<"Game", 'Int'> readonly timeSeconds: Prisma.FieldRef<"Game", 'Float'> readonly won: Prisma.FieldRef<"Game", 'Boolean'> readonly playedAt: Prisma.FieldRef<"Game", 'DateTime'> } // Custom InputTypes /** * Game findUnique */ export type GameFindUniqueArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * Filter, which Game to fetch. */ where: Prisma.GameWhereUniqueInput } /** * Game findUniqueOrThrow */ export type GameFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * Filter, which Game to fetch. */ where: Prisma.GameWhereUniqueInput } /** * Game findFirst */ export type GameFindFirstArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * Filter, which Game to fetch. */ where?: Prisma.GameWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Games to fetch. */ orderBy?: Prisma.GameOrderByWithRelationInput | Prisma.GameOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Games. */ cursor?: Prisma.GameWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Games 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` Games. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Games. */ distinct?: Prisma.GameScalarFieldEnum | Prisma.GameScalarFieldEnum[] } /** * Game findFirstOrThrow */ export type GameFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * Filter, which Game to fetch. */ where?: Prisma.GameWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Games to fetch. */ orderBy?: Prisma.GameOrderByWithRelationInput | Prisma.GameOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Games. */ cursor?: Prisma.GameWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Games 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` Games. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Games. */ distinct?: Prisma.GameScalarFieldEnum | Prisma.GameScalarFieldEnum[] } /** * Game findMany */ export type GameFindManyArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * Filter, which Games to fetch. */ where?: Prisma.GameWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Games to fetch. */ orderBy?: Prisma.GameOrderByWithRelationInput | Prisma.GameOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Games. */ cursor?: Prisma.GameWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Games 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` Games. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Games. */ distinct?: Prisma.GameScalarFieldEnum | Prisma.GameScalarFieldEnum[] } /** * Game create */ export type GameCreateArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * The data needed to create a Game. */ data: Prisma.XOR } /** * Game createMany */ export type GameCreateManyArgs = { /** * The data used to create many Games. */ data: Prisma.GameCreateManyInput | Prisma.GameCreateManyInput[] } /** * Game createManyAndReturn */ export type GameCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelectCreateManyAndReturn | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * The data used to create many Games. */ data: Prisma.GameCreateManyInput | Prisma.GameCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameIncludeCreateManyAndReturn | null } /** * Game update */ export type GameUpdateArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * The data needed to update a Game. */ data: Prisma.XOR /** * Choose, which Game to update. */ where: Prisma.GameWhereUniqueInput } /** * Game updateMany */ export type GameUpdateManyArgs = { /** * The data used to update Games. */ data: Prisma.XOR /** * Filter which Games to update */ where?: Prisma.GameWhereInput /** * Limit how many Games to update. */ limit?: number } /** * Game updateManyAndReturn */ export type GameUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelectUpdateManyAndReturn | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * The data used to update Games. */ data: Prisma.XOR /** * Filter which Games to update */ where?: Prisma.GameWhereInput /** * Limit how many Games to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameIncludeUpdateManyAndReturn | null } /** * Game upsert */ export type GameUpsertArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * The filter to search for the Game to update in case it exists. */ where: Prisma.GameWhereUniqueInput /** * In case the Game found by the `where` argument doesn't exist, create a new Game with this data. */ create: Prisma.XOR /** * In case the Game was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Game delete */ export type GameDeleteArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null /** * Filter which Game to delete. */ where: Prisma.GameWhereUniqueInput } /** * Game deleteMany */ export type GameDeleteManyArgs = { /** * Filter which Games to delete */ where?: Prisma.GameWhereInput /** * Limit how many Games to delete. */ limit?: number } /** * Game without action */ export type GameDefaultArgs = { /** * Select specific fields to fetch from the Game */ select?: Prisma.GameSelect | null /** * Omit specific fields from the Game */ omit?: Prisma.GameOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GameInclude | null }