/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Sport` 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 Sport * */ export type SportModel = runtime.Types.Result.DefaultSelection export type AggregateSport = { _count: SportCountAggregateOutputType | null _min: SportMinAggregateOutputType | null _max: SportMaxAggregateOutputType | null } export type SportMinAggregateOutputType = { id: string | null name: string | null slug: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type SportMaxAggregateOutputType = { id: string | null name: string | null slug: string | null isActive: boolean | null createdAt: Date | null updatedAt: Date | null } export type SportCountAggregateOutputType = { id: number name: number slug: number isActive: number createdAt: number updatedAt: number _all: number } export type SportMinAggregateInputType = { id?: true name?: true slug?: true isActive?: true createdAt?: true updatedAt?: true } export type SportMaxAggregateInputType = { id?: true name?: true slug?: true isActive?: true createdAt?: true updatedAt?: true } export type SportCountAggregateInputType = { id?: true name?: true slug?: true isActive?: true createdAt?: true updatedAt?: true _all?: true } export type SportAggregateArgs = { /** * Filter which Sport to aggregate. */ where?: Prisma.SportWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sports to fetch. */ orderBy?: Prisma.SportOrderByWithRelationInput | Prisma.SportOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SportWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sports 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` Sports. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Sports **/ _count?: true | SportCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SportMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SportMaxAggregateInputType } export type GetSportAggregateType = { [P in keyof T & keyof AggregateSport]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SportGroupByArgs = { where?: Prisma.SportWhereInput orderBy?: Prisma.SportOrderByWithAggregationInput | Prisma.SportOrderByWithAggregationInput[] by: Prisma.SportScalarFieldEnum[] | Prisma.SportScalarFieldEnum having?: Prisma.SportScalarWhereWithAggregatesInput take?: number skip?: number _count?: SportCountAggregateInputType | true _min?: SportMinAggregateInputType _max?: SportMaxAggregateInputType } export type SportGroupByOutputType = { id: string name: string slug: string isActive: boolean createdAt: Date updatedAt: Date _count: SportCountAggregateOutputType | null _min: SportMinAggregateOutputType | null _max: SportMaxAggregateOutputType | null } export type GetSportGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SportGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SportWhereInput = { AND?: Prisma.SportWhereInput | Prisma.SportWhereInput[] OR?: Prisma.SportWhereInput[] NOT?: Prisma.SportWhereInput | Prisma.SportWhereInput[] id?: Prisma.UuidFilter<"Sport"> | string name?: Prisma.StringFilter<"Sport"> | string slug?: Prisma.StringFilter<"Sport"> | string isActive?: Prisma.BoolFilter<"Sport"> | boolean createdAt?: Prisma.DateTimeFilter<"Sport"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Sport"> | Date | string courts?: Prisma.CourtListRelationFilter } export type SportOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder courts?: Prisma.CourtOrderByRelationAggregateInput } export type SportWhereUniqueInput = Prisma.AtLeast<{ id?: string name?: string slug?: string AND?: Prisma.SportWhereInput | Prisma.SportWhereInput[] OR?: Prisma.SportWhereInput[] NOT?: Prisma.SportWhereInput | Prisma.SportWhereInput[] isActive?: Prisma.BoolFilter<"Sport"> | boolean createdAt?: Prisma.DateTimeFilter<"Sport"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Sport"> | Date | string courts?: Prisma.CourtListRelationFilter }, "id" | "name" | "slug"> export type SportOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.SportCountOrderByAggregateInput _max?: Prisma.SportMaxOrderByAggregateInput _min?: Prisma.SportMinOrderByAggregateInput } export type SportScalarWhereWithAggregatesInput = { AND?: Prisma.SportScalarWhereWithAggregatesInput | Prisma.SportScalarWhereWithAggregatesInput[] OR?: Prisma.SportScalarWhereWithAggregatesInput[] NOT?: Prisma.SportScalarWhereWithAggregatesInput | Prisma.SportScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"Sport"> | string name?: Prisma.StringWithAggregatesFilter<"Sport"> | string slug?: Prisma.StringWithAggregatesFilter<"Sport"> | string isActive?: Prisma.BoolWithAggregatesFilter<"Sport"> | boolean createdAt?: Prisma.DateTimeWithAggregatesFilter<"Sport"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Sport"> | Date | string } export type SportCreateInput = { id: string name: string slug: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string courts?: Prisma.CourtCreateNestedManyWithoutSportInput } export type SportUncheckedCreateInput = { id: string name: string slug: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string courts?: Prisma.CourtUncheckedCreateNestedManyWithoutSportInput } export type SportUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string courts?: Prisma.CourtUpdateManyWithoutSportNestedInput } export type SportUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string courts?: Prisma.CourtUncheckedUpdateManyWithoutSportNestedInput } export type SportCreateManyInput = { id: string name: string slug: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SportUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SportUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SportCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type SportMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type SportMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder isActive?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type SportScalarRelationFilter = { is?: Prisma.SportWhereInput isNot?: Prisma.SportWhereInput } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type SportCreateNestedOneWithoutCourtsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SportCreateOrConnectWithoutCourtsInput connect?: Prisma.SportWhereUniqueInput } export type SportUpdateOneRequiredWithoutCourtsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.SportCreateOrConnectWithoutCourtsInput upsert?: Prisma.SportUpsertWithoutCourtsInput connect?: Prisma.SportWhereUniqueInput update?: Prisma.XOR, Prisma.SportUncheckedUpdateWithoutCourtsInput> } export type SportCreateWithoutCourtsInput = { id: string name: string slug: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SportUncheckedCreateWithoutCourtsInput = { id: string name: string slug: string isActive?: boolean createdAt?: Date | string updatedAt?: Date | string } export type SportCreateOrConnectWithoutCourtsInput = { where: Prisma.SportWhereUniqueInput create: Prisma.XOR } export type SportUpsertWithoutCourtsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.SportWhereInput } export type SportUpdateToOneWithWhereWithoutCourtsInput = { where?: Prisma.SportWhereInput data: Prisma.XOR } export type SportUpdateWithoutCourtsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SportUncheckedUpdateWithoutCourtsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type SportCountOutputType */ export type SportCountOutputType = { courts: number } export type SportCountOutputTypeSelect = { courts?: boolean | SportCountOutputTypeCountCourtsArgs } /** * SportCountOutputType without action */ export type SportCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the SportCountOutputType */ select?: Prisma.SportCountOutputTypeSelect | null } /** * SportCountOutputType without action */ export type SportCountOutputTypeCountCourtsArgs = { where?: Prisma.CourtWhereInput } export type SportSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean slug?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean courts?: boolean | Prisma.Sport$courtsArgs _count?: boolean | Prisma.SportCountOutputTypeDefaultArgs }, ExtArgs["result"]["sport"]> export type SportSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean slug?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["sport"]> export type SportSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean slug?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["sport"]> export type SportSelectScalar = { id?: boolean name?: boolean slug?: boolean isActive?: boolean createdAt?: boolean updatedAt?: boolean } export type SportOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "slug" | "isActive" | "createdAt" | "updatedAt", ExtArgs["result"]["sport"]> export type SportInclude = { courts?: boolean | Prisma.Sport$courtsArgs _count?: boolean | Prisma.SportCountOutputTypeDefaultArgs } export type SportIncludeCreateManyAndReturn = {} export type SportIncludeUpdateManyAndReturn = {} export type $SportPayload = { name: "Sport" objects: { courts: Prisma.$CourtPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string slug: string isActive: boolean createdAt: Date updatedAt: Date }, ExtArgs["result"]["sport"]> composites: {} } export type SportGetPayload = runtime.Types.Result.GetResult export type SportCountArgs = Omit & { select?: SportCountAggregateInputType | true } export interface SportDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Sport'], meta: { name: 'Sport' } } /** * Find zero or one Sport that matches the filter. * @param {SportFindUniqueArgs} args - Arguments to find a Sport * @example * // Get one Sport * const sport = await prisma.sport.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SportClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Sport that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SportFindUniqueOrThrowArgs} args - Arguments to find a Sport * @example * // Get one Sport * const sport = await prisma.sport.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SportClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Sport 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 {SportFindFirstArgs} args - Arguments to find a Sport * @example * // Get one Sport * const sport = await prisma.sport.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SportClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Sport 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 {SportFindFirstOrThrowArgs} args - Arguments to find a Sport * @example * // Get one Sport * const sport = await prisma.sport.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SportClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sports 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 {SportFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sports * const sports = await prisma.sport.findMany() * * // Get first 10 Sports * const sports = await prisma.sport.findMany({ take: 10 }) * * // Only select the `id` * const sportWithIdOnly = await prisma.sport.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Sport. * @param {SportCreateArgs} args - Arguments to create a Sport. * @example * // Create one Sport * const Sport = await prisma.sport.create({ * data: { * // ... data to create a Sport * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SportClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sports. * @param {SportCreateManyArgs} args - Arguments to create many Sports. * @example * // Create many Sports * const sport = await prisma.sport.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Sports and returns the data saved in the database. * @param {SportCreateManyAndReturnArgs} args - Arguments to create many Sports. * @example * // Create many Sports * const sport = await prisma.sport.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Sports and only return the `id` * const sportWithIdOnly = await prisma.sport.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 Sport. * @param {SportDeleteArgs} args - Arguments to delete one Sport. * @example * // Delete one Sport * const Sport = await prisma.sport.delete({ * where: { * // ... filter to delete one Sport * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SportClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Sport. * @param {SportUpdateArgs} args - Arguments to update one Sport. * @example * // Update one Sport * const sport = await prisma.sport.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SportClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sports. * @param {SportDeleteManyArgs} args - Arguments to filter Sports to delete. * @example * // Delete a few Sports * const { count } = await prisma.sport.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sports. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SportUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sports * const sport = await prisma.sport.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sports and returns the data updated in the database. * @param {SportUpdateManyAndReturnArgs} args - Arguments to update many Sports. * @example * // Update many Sports * const sport = await prisma.sport.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Sports and only return the `id` * const sportWithIdOnly = await prisma.sport.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 Sport. * @param {SportUpsertArgs} args - Arguments to update or create a Sport. * @example * // Update or create a Sport * const sport = await prisma.sport.upsert({ * create: { * // ... data to create a Sport * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Sport we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SportClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sports. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SportCountArgs} args - Arguments to filter Sports to count. * @example * // Count the number of Sports * const count = await prisma.sport.count({ * where: { * // ... the filter for the Sports 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 Sport. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SportAggregateArgs} 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 Sport. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SportGroupByArgs} 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 SportGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SportGroupByArgs['orderBy'] } : { orderBy?: SportGroupByArgs['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 ? GetSportGroupByPayload : Prisma.PrismaPromise /** * Fields of the Sport model */ readonly fields: SportFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Sport. * 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__SportClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" courts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(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 Sport model */ export interface SportFieldRefs { readonly id: Prisma.FieldRef<"Sport", 'String'> readonly name: Prisma.FieldRef<"Sport", 'String'> readonly slug: Prisma.FieldRef<"Sport", 'String'> readonly isActive: Prisma.FieldRef<"Sport", 'Boolean'> readonly createdAt: Prisma.FieldRef<"Sport", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Sport", 'DateTime'> } // Custom InputTypes /** * Sport findUnique */ export type SportFindUniqueArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * Filter, which Sport to fetch. */ where: Prisma.SportWhereUniqueInput } /** * Sport findUniqueOrThrow */ export type SportFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * Filter, which Sport to fetch. */ where: Prisma.SportWhereUniqueInput } /** * Sport findFirst */ export type SportFindFirstArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * Filter, which Sport to fetch. */ where?: Prisma.SportWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sports to fetch. */ orderBy?: Prisma.SportOrderByWithRelationInput | Prisma.SportOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sports. */ cursor?: Prisma.SportWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sports 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` Sports. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sports. */ distinct?: Prisma.SportScalarFieldEnum | Prisma.SportScalarFieldEnum[] } /** * Sport findFirstOrThrow */ export type SportFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * Filter, which Sport to fetch. */ where?: Prisma.SportWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sports to fetch. */ orderBy?: Prisma.SportOrderByWithRelationInput | Prisma.SportOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sports. */ cursor?: Prisma.SportWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sports 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` Sports. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sports. */ distinct?: Prisma.SportScalarFieldEnum | Prisma.SportScalarFieldEnum[] } /** * Sport findMany */ export type SportFindManyArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * Filter, which Sports to fetch. */ where?: Prisma.SportWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sports to fetch. */ orderBy?: Prisma.SportOrderByWithRelationInput | Prisma.SportOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sports. */ cursor?: Prisma.SportWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sports 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` Sports. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sports. */ distinct?: Prisma.SportScalarFieldEnum | Prisma.SportScalarFieldEnum[] } /** * Sport create */ export type SportCreateArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * The data needed to create a Sport. */ data: Prisma.XOR } /** * Sport createMany */ export type SportCreateManyArgs = { /** * The data used to create many Sports. */ data: Prisma.SportCreateManyInput | Prisma.SportCreateManyInput[] skipDuplicates?: boolean } /** * Sport createManyAndReturn */ export type SportCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelectCreateManyAndReturn | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * The data used to create many Sports. */ data: Prisma.SportCreateManyInput | Prisma.SportCreateManyInput[] skipDuplicates?: boolean } /** * Sport update */ export type SportUpdateArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * The data needed to update a Sport. */ data: Prisma.XOR /** * Choose, which Sport to update. */ where: Prisma.SportWhereUniqueInput } /** * Sport updateMany */ export type SportUpdateManyArgs = { /** * The data used to update Sports. */ data: Prisma.XOR /** * Filter which Sports to update */ where?: Prisma.SportWhereInput /** * Limit how many Sports to update. */ limit?: number } /** * Sport updateManyAndReturn */ export type SportUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelectUpdateManyAndReturn | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * The data used to update Sports. */ data: Prisma.XOR /** * Filter which Sports to update */ where?: Prisma.SportWhereInput /** * Limit how many Sports to update. */ limit?: number } /** * Sport upsert */ export type SportUpsertArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * The filter to search for the Sport to update in case it exists. */ where: Prisma.SportWhereUniqueInput /** * In case the Sport found by the `where` argument doesn't exist, create a new Sport with this data. */ create: Prisma.XOR /** * In case the Sport was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Sport delete */ export type SportDeleteArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null /** * Filter which Sport to delete. */ where: Prisma.SportWhereUniqueInput } /** * Sport deleteMany */ export type SportDeleteManyArgs = { /** * Filter which Sports to delete */ where?: Prisma.SportWhereInput /** * Limit how many Sports to delete. */ limit?: number } /** * Sport.courts */ export type Sport$courtsArgs = { /** * Select specific fields to fetch from the Court */ select?: Prisma.CourtSelect | null /** * Omit specific fields from the Court */ omit?: Prisma.CourtOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.CourtInclude | null where?: Prisma.CourtWhereInput orderBy?: Prisma.CourtOrderByWithRelationInput | Prisma.CourtOrderByWithRelationInput[] cursor?: Prisma.CourtWhereUniqueInput take?: number skip?: number distinct?: Prisma.CourtScalarFieldEnum | Prisma.CourtScalarFieldEnum[] } /** * Sport without action */ export type SportDefaultArgs = { /** * Select specific fields to fetch from the Sport */ select?: Prisma.SportSelect | null /** * Omit specific fields from the Sport */ omit?: Prisma.SportOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SportInclude | null }