/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Room` 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 Room * */ export type RoomModel = runtime.Types.Result.DefaultSelection export type AggregateRoom = { _count: RoomCountAggregateOutputType | null _avg: RoomAvgAggregateOutputType | null _sum: RoomSumAggregateOutputType | null _min: RoomMinAggregateOutputType | null _max: RoomMaxAggregateOutputType | null } export type RoomAvgAggregateOutputType = { round: number | null totalRounds: number | null maxPlayers: number | null timeLimit: number | null countdownStart: number | null roundStart: number | null createdAt: number | null } export type RoomSumAggregateOutputType = { round: number | null totalRounds: number | null maxPlayers: number | null timeLimit: number | null countdownStart: bigint | null roundStart: bigint | null createdAt: bigint | null } export type RoomMinAggregateOutputType = { code: string | null phase: string | null round: number | null totalRounds: number | null maxPlayers: number | null gameMode: string | null searchAllowed: boolean | null timeLimit: number | null startArticle: string | null targetArticle: string | null roundWinner: string | null countdownStart: bigint | null roundStart: bigint | null createdAt: bigint | null updatedAt: Date | null } export type RoomMaxAggregateOutputType = { code: string | null phase: string | null round: number | null totalRounds: number | null maxPlayers: number | null gameMode: string | null searchAllowed: boolean | null timeLimit: number | null startArticle: string | null targetArticle: string | null roundWinner: string | null countdownStart: bigint | null roundStart: bigint | null createdAt: bigint | null updatedAt: Date | null } export type RoomCountAggregateOutputType = { code: number players: number phase: number round: number totalRounds: number maxPlayers: number gameMode: number searchAllowed: number timeLimit: number startArticle: number targetArticle: number roundWinner: number countdownStart: number roundStart: number createdAt: number updatedAt: number _all: number } export type RoomAvgAggregateInputType = { round?: true totalRounds?: true maxPlayers?: true timeLimit?: true countdownStart?: true roundStart?: true createdAt?: true } export type RoomSumAggregateInputType = { round?: true totalRounds?: true maxPlayers?: true timeLimit?: true countdownStart?: true roundStart?: true createdAt?: true } export type RoomMinAggregateInputType = { code?: true phase?: true round?: true totalRounds?: true maxPlayers?: true gameMode?: true searchAllowed?: true timeLimit?: true startArticle?: true targetArticle?: true roundWinner?: true countdownStart?: true roundStart?: true createdAt?: true updatedAt?: true } export type RoomMaxAggregateInputType = { code?: true phase?: true round?: true totalRounds?: true maxPlayers?: true gameMode?: true searchAllowed?: true timeLimit?: true startArticle?: true targetArticle?: true roundWinner?: true countdownStart?: true roundStart?: true createdAt?: true updatedAt?: true } export type RoomCountAggregateInputType = { code?: true players?: true phase?: true round?: true totalRounds?: true maxPlayers?: true gameMode?: true searchAllowed?: true timeLimit?: true startArticle?: true targetArticle?: true roundWinner?: true countdownStart?: true roundStart?: true createdAt?: true updatedAt?: true _all?: true } export type RoomAggregateArgs = { /** * Filter which Room to aggregate. */ where?: Prisma.RoomWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Rooms to fetch. */ orderBy?: Prisma.RoomOrderByWithRelationInput | Prisma.RoomOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.RoomWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Rooms 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` Rooms. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Rooms **/ _count?: true | RoomCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: RoomAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: RoomSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RoomMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RoomMaxAggregateInputType } export type GetRoomAggregateType = { [P in keyof T & keyof AggregateRoom]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type RoomGroupByArgs = { where?: Prisma.RoomWhereInput orderBy?: Prisma.RoomOrderByWithAggregationInput | Prisma.RoomOrderByWithAggregationInput[] by: Prisma.RoomScalarFieldEnum[] | Prisma.RoomScalarFieldEnum having?: Prisma.RoomScalarWhereWithAggregatesInput take?: number skip?: number _count?: RoomCountAggregateInputType | true _avg?: RoomAvgAggregateInputType _sum?: RoomSumAggregateInputType _min?: RoomMinAggregateInputType _max?: RoomMaxAggregateInputType } export type RoomGroupByOutputType = { code: string players: runtime.JsonValue phase: string round: number totalRounds: number maxPlayers: number gameMode: string searchAllowed: boolean timeLimit: number startArticle: string targetArticle: string roundWinner: string | null countdownStart: bigint | null roundStart: bigint | null createdAt: bigint updatedAt: Date _count: RoomCountAggregateOutputType | null _avg: RoomAvgAggregateOutputType | null _sum: RoomSumAggregateOutputType | null _min: RoomMinAggregateOutputType | null _max: RoomMaxAggregateOutputType | null } export type GetRoomGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof RoomGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type RoomWhereInput = { AND?: Prisma.RoomWhereInput | Prisma.RoomWhereInput[] OR?: Prisma.RoomWhereInput[] NOT?: Prisma.RoomWhereInput | Prisma.RoomWhereInput[] code?: Prisma.StringFilter<"Room"> | string players?: Prisma.JsonFilter<"Room"> phase?: Prisma.StringFilter<"Room"> | string round?: Prisma.IntFilter<"Room"> | number totalRounds?: Prisma.IntFilter<"Room"> | number maxPlayers?: Prisma.IntFilter<"Room"> | number gameMode?: Prisma.StringFilter<"Room"> | string searchAllowed?: Prisma.BoolFilter<"Room"> | boolean timeLimit?: Prisma.IntFilter<"Room"> | number startArticle?: Prisma.StringFilter<"Room"> | string targetArticle?: Prisma.StringFilter<"Room"> | string roundWinner?: Prisma.StringNullableFilter<"Room"> | string | null countdownStart?: Prisma.BigIntNullableFilter<"Room"> | bigint | number | null roundStart?: Prisma.BigIntNullableFilter<"Room"> | bigint | number | null createdAt?: Prisma.BigIntFilter<"Room"> | bigint | number updatedAt?: Prisma.DateTimeFilter<"Room"> | Date | string } export type RoomOrderByWithRelationInput = { code?: Prisma.SortOrder players?: Prisma.SortOrder phase?: Prisma.SortOrder round?: Prisma.SortOrder totalRounds?: Prisma.SortOrder maxPlayers?: Prisma.SortOrder gameMode?: Prisma.SortOrder searchAllowed?: Prisma.SortOrder timeLimit?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder roundWinner?: Prisma.SortOrderInput | Prisma.SortOrder countdownStart?: Prisma.SortOrderInput | Prisma.SortOrder roundStart?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type RoomWhereUniqueInput = Prisma.AtLeast<{ code?: string AND?: Prisma.RoomWhereInput | Prisma.RoomWhereInput[] OR?: Prisma.RoomWhereInput[] NOT?: Prisma.RoomWhereInput | Prisma.RoomWhereInput[] players?: Prisma.JsonFilter<"Room"> phase?: Prisma.StringFilter<"Room"> | string round?: Prisma.IntFilter<"Room"> | number totalRounds?: Prisma.IntFilter<"Room"> | number maxPlayers?: Prisma.IntFilter<"Room"> | number gameMode?: Prisma.StringFilter<"Room"> | string searchAllowed?: Prisma.BoolFilter<"Room"> | boolean timeLimit?: Prisma.IntFilter<"Room"> | number startArticle?: Prisma.StringFilter<"Room"> | string targetArticle?: Prisma.StringFilter<"Room"> | string roundWinner?: Prisma.StringNullableFilter<"Room"> | string | null countdownStart?: Prisma.BigIntNullableFilter<"Room"> | bigint | number | null roundStart?: Prisma.BigIntNullableFilter<"Room"> | bigint | number | null createdAt?: Prisma.BigIntFilter<"Room"> | bigint | number updatedAt?: Prisma.DateTimeFilter<"Room"> | Date | string }, "code"> export type RoomOrderByWithAggregationInput = { code?: Prisma.SortOrder players?: Prisma.SortOrder phase?: Prisma.SortOrder round?: Prisma.SortOrder totalRounds?: Prisma.SortOrder maxPlayers?: Prisma.SortOrder gameMode?: Prisma.SortOrder searchAllowed?: Prisma.SortOrder timeLimit?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder roundWinner?: Prisma.SortOrderInput | Prisma.SortOrder countdownStart?: Prisma.SortOrderInput | Prisma.SortOrder roundStart?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.RoomCountOrderByAggregateInput _avg?: Prisma.RoomAvgOrderByAggregateInput _max?: Prisma.RoomMaxOrderByAggregateInput _min?: Prisma.RoomMinOrderByAggregateInput _sum?: Prisma.RoomSumOrderByAggregateInput } export type RoomScalarWhereWithAggregatesInput = { AND?: Prisma.RoomScalarWhereWithAggregatesInput | Prisma.RoomScalarWhereWithAggregatesInput[] OR?: Prisma.RoomScalarWhereWithAggregatesInput[] NOT?: Prisma.RoomScalarWhereWithAggregatesInput | Prisma.RoomScalarWhereWithAggregatesInput[] code?: Prisma.StringWithAggregatesFilter<"Room"> | string players?: Prisma.JsonWithAggregatesFilter<"Room"> phase?: Prisma.StringWithAggregatesFilter<"Room"> | string round?: Prisma.IntWithAggregatesFilter<"Room"> | number totalRounds?: Prisma.IntWithAggregatesFilter<"Room"> | number maxPlayers?: Prisma.IntWithAggregatesFilter<"Room"> | number gameMode?: Prisma.StringWithAggregatesFilter<"Room"> | string searchAllowed?: Prisma.BoolWithAggregatesFilter<"Room"> | boolean timeLimit?: Prisma.IntWithAggregatesFilter<"Room"> | number startArticle?: Prisma.StringWithAggregatesFilter<"Room"> | string targetArticle?: Prisma.StringWithAggregatesFilter<"Room"> | string roundWinner?: Prisma.StringNullableWithAggregatesFilter<"Room"> | string | null countdownStart?: Prisma.BigIntNullableWithAggregatesFilter<"Room"> | bigint | number | null roundStart?: Prisma.BigIntNullableWithAggregatesFilter<"Room"> | bigint | number | null createdAt?: Prisma.BigIntWithAggregatesFilter<"Room"> | bigint | number updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Room"> | Date | string } export type RoomCreateInput = { code: string players?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: string round?: number totalRounds?: number maxPlayers?: number gameMode?: string searchAllowed?: boolean timeLimit?: number startArticle?: string targetArticle?: string roundWinner?: string | null countdownStart?: bigint | number | null roundStart?: bigint | number | null createdAt: bigint | number updatedAt?: Date | string } export type RoomUncheckedCreateInput = { code: string players?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: string round?: number totalRounds?: number maxPlayers?: number gameMode?: string searchAllowed?: boolean timeLimit?: number startArticle?: string targetArticle?: string roundWinner?: string | null countdownStart?: bigint | number | null roundStart?: bigint | number | null createdAt: bigint | number updatedAt?: Date | string } export type RoomUpdateInput = { code?: Prisma.StringFieldUpdateOperationsInput | string players?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: Prisma.StringFieldUpdateOperationsInput | string round?: Prisma.IntFieldUpdateOperationsInput | number totalRounds?: Prisma.IntFieldUpdateOperationsInput | number maxPlayers?: Prisma.IntFieldUpdateOperationsInput | number gameMode?: Prisma.StringFieldUpdateOperationsInput | string searchAllowed?: Prisma.BoolFieldUpdateOperationsInput | boolean timeLimit?: Prisma.IntFieldUpdateOperationsInput | number startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string roundWinner?: Prisma.NullableStringFieldUpdateOperationsInput | string | null countdownStart?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null roundStart?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type RoomUncheckedUpdateInput = { code?: Prisma.StringFieldUpdateOperationsInput | string players?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: Prisma.StringFieldUpdateOperationsInput | string round?: Prisma.IntFieldUpdateOperationsInput | number totalRounds?: Prisma.IntFieldUpdateOperationsInput | number maxPlayers?: Prisma.IntFieldUpdateOperationsInput | number gameMode?: Prisma.StringFieldUpdateOperationsInput | string searchAllowed?: Prisma.BoolFieldUpdateOperationsInput | boolean timeLimit?: Prisma.IntFieldUpdateOperationsInput | number startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string roundWinner?: Prisma.NullableStringFieldUpdateOperationsInput | string | null countdownStart?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null roundStart?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type RoomCreateManyInput = { code: string players?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: string round?: number totalRounds?: number maxPlayers?: number gameMode?: string searchAllowed?: boolean timeLimit?: number startArticle?: string targetArticle?: string roundWinner?: string | null countdownStart?: bigint | number | null roundStart?: bigint | number | null createdAt: bigint | number updatedAt?: Date | string } export type RoomUpdateManyMutationInput = { code?: Prisma.StringFieldUpdateOperationsInput | string players?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: Prisma.StringFieldUpdateOperationsInput | string round?: Prisma.IntFieldUpdateOperationsInput | number totalRounds?: Prisma.IntFieldUpdateOperationsInput | number maxPlayers?: Prisma.IntFieldUpdateOperationsInput | number gameMode?: Prisma.StringFieldUpdateOperationsInput | string searchAllowed?: Prisma.BoolFieldUpdateOperationsInput | boolean timeLimit?: Prisma.IntFieldUpdateOperationsInput | number startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string roundWinner?: Prisma.NullableStringFieldUpdateOperationsInput | string | null countdownStart?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null roundStart?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type RoomUncheckedUpdateManyInput = { code?: Prisma.StringFieldUpdateOperationsInput | string players?: Prisma.JsonNullValueInput | runtime.InputJsonValue phase?: Prisma.StringFieldUpdateOperationsInput | string round?: Prisma.IntFieldUpdateOperationsInput | number totalRounds?: Prisma.IntFieldUpdateOperationsInput | number maxPlayers?: Prisma.IntFieldUpdateOperationsInput | number gameMode?: Prisma.StringFieldUpdateOperationsInput | string searchAllowed?: Prisma.BoolFieldUpdateOperationsInput | boolean timeLimit?: Prisma.IntFieldUpdateOperationsInput | number startArticle?: Prisma.StringFieldUpdateOperationsInput | string targetArticle?: Prisma.StringFieldUpdateOperationsInput | string roundWinner?: Prisma.NullableStringFieldUpdateOperationsInput | string | null countdownStart?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null roundStart?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null createdAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type RoomCountOrderByAggregateInput = { code?: Prisma.SortOrder players?: Prisma.SortOrder phase?: Prisma.SortOrder round?: Prisma.SortOrder totalRounds?: Prisma.SortOrder maxPlayers?: Prisma.SortOrder gameMode?: Prisma.SortOrder searchAllowed?: Prisma.SortOrder timeLimit?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder roundWinner?: Prisma.SortOrder countdownStart?: Prisma.SortOrder roundStart?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type RoomAvgOrderByAggregateInput = { round?: Prisma.SortOrder totalRounds?: Prisma.SortOrder maxPlayers?: Prisma.SortOrder timeLimit?: Prisma.SortOrder countdownStart?: Prisma.SortOrder roundStart?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type RoomMaxOrderByAggregateInput = { code?: Prisma.SortOrder phase?: Prisma.SortOrder round?: Prisma.SortOrder totalRounds?: Prisma.SortOrder maxPlayers?: Prisma.SortOrder gameMode?: Prisma.SortOrder searchAllowed?: Prisma.SortOrder timeLimit?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder roundWinner?: Prisma.SortOrder countdownStart?: Prisma.SortOrder roundStart?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type RoomMinOrderByAggregateInput = { code?: Prisma.SortOrder phase?: Prisma.SortOrder round?: Prisma.SortOrder totalRounds?: Prisma.SortOrder maxPlayers?: Prisma.SortOrder gameMode?: Prisma.SortOrder searchAllowed?: Prisma.SortOrder timeLimit?: Prisma.SortOrder startArticle?: Prisma.SortOrder targetArticle?: Prisma.SortOrder roundWinner?: Prisma.SortOrder countdownStart?: Prisma.SortOrder roundStart?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type RoomSumOrderByAggregateInput = { round?: Prisma.SortOrder totalRounds?: Prisma.SortOrder maxPlayers?: Prisma.SortOrder timeLimit?: Prisma.SortOrder countdownStart?: Prisma.SortOrder roundStart?: Prisma.SortOrder createdAt?: Prisma.SortOrder } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type NullableBigIntFieldUpdateOperationsInput = { set?: bigint | number | null increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type BigIntFieldUpdateOperationsInput = { set?: bigint | number increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type RoomSelect = runtime.Types.Extensions.GetSelect<{ code?: boolean players?: boolean phase?: boolean round?: boolean totalRounds?: boolean maxPlayers?: boolean gameMode?: boolean searchAllowed?: boolean timeLimit?: boolean startArticle?: boolean targetArticle?: boolean roundWinner?: boolean countdownStart?: boolean roundStart?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["room"]> export type RoomSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ code?: boolean players?: boolean phase?: boolean round?: boolean totalRounds?: boolean maxPlayers?: boolean gameMode?: boolean searchAllowed?: boolean timeLimit?: boolean startArticle?: boolean targetArticle?: boolean roundWinner?: boolean countdownStart?: boolean roundStart?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["room"]> export type RoomSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ code?: boolean players?: boolean phase?: boolean round?: boolean totalRounds?: boolean maxPlayers?: boolean gameMode?: boolean searchAllowed?: boolean timeLimit?: boolean startArticle?: boolean targetArticle?: boolean roundWinner?: boolean countdownStart?: boolean roundStart?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["room"]> export type RoomSelectScalar = { code?: boolean players?: boolean phase?: boolean round?: boolean totalRounds?: boolean maxPlayers?: boolean gameMode?: boolean searchAllowed?: boolean timeLimit?: boolean startArticle?: boolean targetArticle?: boolean roundWinner?: boolean countdownStart?: boolean roundStart?: boolean createdAt?: boolean updatedAt?: boolean } export type RoomOmit = runtime.Types.Extensions.GetOmit<"code" | "players" | "phase" | "round" | "totalRounds" | "maxPlayers" | "gameMode" | "searchAllowed" | "timeLimit" | "startArticle" | "targetArticle" | "roundWinner" | "countdownStart" | "roundStart" | "createdAt" | "updatedAt", ExtArgs["result"]["room"]> export type $RoomPayload = { name: "Room" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ code: string players: runtime.JsonValue phase: string round: number totalRounds: number maxPlayers: number gameMode: string searchAllowed: boolean timeLimit: number startArticle: string targetArticle: string roundWinner: string | null countdownStart: bigint | null roundStart: bigint | null createdAt: bigint updatedAt: Date }, ExtArgs["result"]["room"]> composites: {} } export type RoomGetPayload = runtime.Types.Result.GetResult export type RoomCountArgs = Omit & { select?: RoomCountAggregateInputType | true } export interface RoomDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Room'], meta: { name: 'Room' } } /** * Find zero or one Room that matches the filter. * @param {RoomFindUniqueArgs} args - Arguments to find a Room * @example * // Get one Room * const room = await prisma.room.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__RoomClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Room that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RoomFindUniqueOrThrowArgs} args - Arguments to find a Room * @example * // Get one Room * const room = await prisma.room.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__RoomClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Room 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 {RoomFindFirstArgs} args - Arguments to find a Room * @example * // Get one Room * const room = await prisma.room.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__RoomClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Room 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 {RoomFindFirstOrThrowArgs} args - Arguments to find a Room * @example * // Get one Room * const room = await prisma.room.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__RoomClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Rooms 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 {RoomFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Rooms * const rooms = await prisma.room.findMany() * * // Get first 10 Rooms * const rooms = await prisma.room.findMany({ take: 10 }) * * // Only select the `code` * const roomWithCodeOnly = await prisma.room.findMany({ select: { code: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Room. * @param {RoomCreateArgs} args - Arguments to create a Room. * @example * // Create one Room * const Room = await prisma.room.create({ * data: { * // ... data to create a Room * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__RoomClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Rooms. * @param {RoomCreateManyArgs} args - Arguments to create many Rooms. * @example * // Create many Rooms * const room = await prisma.room.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Rooms and returns the data saved in the database. * @param {RoomCreateManyAndReturnArgs} args - Arguments to create many Rooms. * @example * // Create many Rooms * const room = await prisma.room.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Rooms and only return the `code` * const roomWithCodeOnly = await prisma.room.createManyAndReturn({ * select: { code: 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 Room. * @param {RoomDeleteArgs} args - Arguments to delete one Room. * @example * // Delete one Room * const Room = await prisma.room.delete({ * where: { * // ... filter to delete one Room * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__RoomClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Room. * @param {RoomUpdateArgs} args - Arguments to update one Room. * @example * // Update one Room * const room = await prisma.room.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__RoomClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Rooms. * @param {RoomDeleteManyArgs} args - Arguments to filter Rooms to delete. * @example * // Delete a few Rooms * const { count } = await prisma.room.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Rooms. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoomUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Rooms * const room = await prisma.room.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Rooms and returns the data updated in the database. * @param {RoomUpdateManyAndReturnArgs} args - Arguments to update many Rooms. * @example * // Update many Rooms * const room = await prisma.room.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Rooms and only return the `code` * const roomWithCodeOnly = await prisma.room.updateManyAndReturn({ * select: { code: 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 Room. * @param {RoomUpsertArgs} args - Arguments to update or create a Room. * @example * // Update or create a Room * const room = await prisma.room.upsert({ * create: { * // ... data to create a Room * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Room we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__RoomClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Rooms. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoomCountArgs} args - Arguments to filter Rooms to count. * @example * // Count the number of Rooms * const count = await prisma.room.count({ * where: { * // ... the filter for the Rooms 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 Room. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoomAggregateArgs} 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 Room. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RoomGroupByArgs} 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 RoomGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: RoomGroupByArgs['orderBy'] } : { orderBy?: RoomGroupByArgs['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 ? GetRoomGroupByPayload : Prisma.PrismaPromise /** * Fields of the Room model */ readonly fields: RoomFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Room. * 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__RoomClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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 Room model */ export interface RoomFieldRefs { readonly code: Prisma.FieldRef<"Room", 'String'> readonly players: Prisma.FieldRef<"Room", 'Json'> readonly phase: Prisma.FieldRef<"Room", 'String'> readonly round: Prisma.FieldRef<"Room", 'Int'> readonly totalRounds: Prisma.FieldRef<"Room", 'Int'> readonly maxPlayers: Prisma.FieldRef<"Room", 'Int'> readonly gameMode: Prisma.FieldRef<"Room", 'String'> readonly searchAllowed: Prisma.FieldRef<"Room", 'Boolean'> readonly timeLimit: Prisma.FieldRef<"Room", 'Int'> readonly startArticle: Prisma.FieldRef<"Room", 'String'> readonly targetArticle: Prisma.FieldRef<"Room", 'String'> readonly roundWinner: Prisma.FieldRef<"Room", 'String'> readonly countdownStart: Prisma.FieldRef<"Room", 'BigInt'> readonly roundStart: Prisma.FieldRef<"Room", 'BigInt'> readonly createdAt: Prisma.FieldRef<"Room", 'BigInt'> readonly updatedAt: Prisma.FieldRef<"Room", 'DateTime'> } // Custom InputTypes /** * Room findUnique */ export type RoomFindUniqueArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * Filter, which Room to fetch. */ where: Prisma.RoomWhereUniqueInput } /** * Room findUniqueOrThrow */ export type RoomFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * Filter, which Room to fetch. */ where: Prisma.RoomWhereUniqueInput } /** * Room findFirst */ export type RoomFindFirstArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * Filter, which Room to fetch. */ where?: Prisma.RoomWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Rooms to fetch. */ orderBy?: Prisma.RoomOrderByWithRelationInput | Prisma.RoomOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Rooms. */ cursor?: Prisma.RoomWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Rooms 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` Rooms. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Rooms. */ distinct?: Prisma.RoomScalarFieldEnum | Prisma.RoomScalarFieldEnum[] } /** * Room findFirstOrThrow */ export type RoomFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * Filter, which Room to fetch. */ where?: Prisma.RoomWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Rooms to fetch. */ orderBy?: Prisma.RoomOrderByWithRelationInput | Prisma.RoomOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Rooms. */ cursor?: Prisma.RoomWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Rooms 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` Rooms. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Rooms. */ distinct?: Prisma.RoomScalarFieldEnum | Prisma.RoomScalarFieldEnum[] } /** * Room findMany */ export type RoomFindManyArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * Filter, which Rooms to fetch. */ where?: Prisma.RoomWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Rooms to fetch. */ orderBy?: Prisma.RoomOrderByWithRelationInput | Prisma.RoomOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Rooms. */ cursor?: Prisma.RoomWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Rooms 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` Rooms. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Rooms. */ distinct?: Prisma.RoomScalarFieldEnum | Prisma.RoomScalarFieldEnum[] } /** * Room create */ export type RoomCreateArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * The data needed to create a Room. */ data: Prisma.XOR } /** * Room createMany */ export type RoomCreateManyArgs = { /** * The data used to create many Rooms. */ data: Prisma.RoomCreateManyInput | Prisma.RoomCreateManyInput[] skipDuplicates?: boolean } /** * Room createManyAndReturn */ export type RoomCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelectCreateManyAndReturn | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * The data used to create many Rooms. */ data: Prisma.RoomCreateManyInput | Prisma.RoomCreateManyInput[] skipDuplicates?: boolean } /** * Room update */ export type RoomUpdateArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * The data needed to update a Room. */ data: Prisma.XOR /** * Choose, which Room to update. */ where: Prisma.RoomWhereUniqueInput } /** * Room updateMany */ export type RoomUpdateManyArgs = { /** * The data used to update Rooms. */ data: Prisma.XOR /** * Filter which Rooms to update */ where?: Prisma.RoomWhereInput /** * Limit how many Rooms to update. */ limit?: number } /** * Room updateManyAndReturn */ export type RoomUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelectUpdateManyAndReturn | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * The data used to update Rooms. */ data: Prisma.XOR /** * Filter which Rooms to update */ where?: Prisma.RoomWhereInput /** * Limit how many Rooms to update. */ limit?: number } /** * Room upsert */ export type RoomUpsertArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * The filter to search for the Room to update in case it exists. */ where: Prisma.RoomWhereUniqueInput /** * In case the Room found by the `where` argument doesn't exist, create a new Room with this data. */ create: Prisma.XOR /** * In case the Room was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Room delete */ export type RoomDeleteArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null /** * Filter which Room to delete. */ where: Prisma.RoomWhereUniqueInput } /** * Room deleteMany */ export type RoomDeleteManyArgs = { /** * Filter which Rooms to delete */ where?: Prisma.RoomWhereInput /** * Limit how many Rooms to delete. */ limit?: number } /** * Room without action */ export type RoomDefaultArgs = { /** * Select specific fields to fetch from the Room */ select?: Prisma.RoomSelect | null /** * Omit specific fields from the Room */ omit?: Prisma.RoomOmit | null }