/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Session` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Session * */ export type SessionModel = runtime.Types.Result.DefaultSelection export type AggregateSession = { _count: SessionCountAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } export type SessionMinAggregateOutputType = { id: string | null userId: string | null expiresAt: Date | null } export type SessionMaxAggregateOutputType = { id: string | null userId: string | null expiresAt: Date | null } export type SessionCountAggregateOutputType = { id: number userId: number expiresAt: number _all: number } export type SessionMinAggregateInputType = { id?: true userId?: true expiresAt?: true } export type SessionMaxAggregateInputType = { id?: true userId?: true expiresAt?: true } export type SessionCountAggregateInputType = { id?: true userId?: true expiresAt?: true _all?: true } export type SessionAggregateArgs = { /** * Filter which Session to aggregate. */ where?: Prisma.SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions 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` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Sessions **/ _count?: true | SessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: SessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: SessionMaxAggregateInputType } export type GetSessionAggregateType = { [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SessionGroupByArgs = { where?: Prisma.SessionWhereInput orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[] by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum having?: Prisma.SessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: SessionCountAggregateInputType | true _min?: SessionMinAggregateInputType _max?: SessionMaxAggregateInputType } export type SessionGroupByOutputType = { id: string userId: string expiresAt: Date _count: SessionCountAggregateOutputType | null _min: SessionMinAggregateOutputType | null _max: SessionMaxAggregateOutputType | null } type GetSessionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type SessionWhereInput = { AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] OR?: Prisma.SessionWhereInput[] NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] id?: Prisma.StringFilter<"Session"> | string userId?: Prisma.StringFilter<"Session"> | string expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string user?: Prisma.XOR } export type SessionOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder expiresAt?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput } export type SessionWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] OR?: Prisma.SessionWhereInput[] NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] userId?: Prisma.StringFilter<"Session"> | string expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string user?: Prisma.XOR }, "id"> export type SessionOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder expiresAt?: Prisma.SortOrder _count?: Prisma.SessionCountOrderByAggregateInput _max?: Prisma.SessionMaxOrderByAggregateInput _min?: Prisma.SessionMinOrderByAggregateInput } export type SessionScalarWhereWithAggregatesInput = { AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] OR?: Prisma.SessionScalarWhereWithAggregatesInput[] NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Session"> | string userId?: Prisma.StringWithAggregatesFilter<"Session"> | string expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string } export type SessionCreateInput = { id: string expiresAt: Date | string user: Prisma.UserCreateNestedOneWithoutSessionInput } export type SessionUncheckedCreateInput = { id: string userId: string expiresAt: Date | string } export type SessionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutSessionNestedInput } export type SessionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionCreateManyInput = { id: string userId: string expiresAt: Date | string } export type SessionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionListRelationFilter = { every?: Prisma.SessionWhereInput some?: Prisma.SessionWhereInput none?: Prisma.SessionWhereInput } export type SessionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type SessionCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder expiresAt?: Prisma.SortOrder } export type SessionMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder expiresAt?: Prisma.SortOrder } export type SessionMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder expiresAt?: Prisma.SortOrder } export type SessionCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] createMany?: Prisma.SessionCreateManyUserInputEnvelope connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] } export type SessionUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] createMany?: Prisma.SessionCreateManyUserInputEnvelope connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] } export type SessionUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.SessionCreateManyUserInputEnvelope set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] } export type SessionUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.SessionCreateManyUserInputEnvelope set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] } export type SessionCreateWithoutUserInput = { id: string expiresAt: Date | string } export type SessionUncheckedCreateWithoutUserInput = { id: string expiresAt: Date | string } export type SessionCreateOrConnectWithoutUserInput = { where: Prisma.SessionWhereUniqueInput create: Prisma.XOR } export type SessionCreateManyUserInputEnvelope = { data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[] } export type SessionUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.SessionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SessionUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.SessionWhereUniqueInput data: Prisma.XOR } export type SessionUpdateManyWithWhereWithoutUserInput = { where: Prisma.SessionScalarWhereInput data: Prisma.XOR } export type SessionScalarWhereInput = { AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] OR?: Prisma.SessionScalarWhereInput[] NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] id?: Prisma.StringFilter<"Session"> | string userId?: Prisma.StringFilter<"Session"> | string expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string } export type SessionCreateManyUserInput = { id: string expiresAt: Date | string } export type SessionUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type SessionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean expiresAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean expiresAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean expiresAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["session"]> export type SessionSelectScalar = { id?: boolean userId?: boolean expiresAt?: boolean } export type SessionOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "expiresAt", ExtArgs["result"]["session"]> export type SessionInclude = { user?: boolean | Prisma.UserDefaultArgs } export type SessionIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type SessionIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $SessionPayload = { name: "Session" objects: { user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string userId: string expiresAt: Date }, ExtArgs["result"]["session"]> composites: {} } export type SessionGetPayload = runtime.Types.Result.GetResult export type SessionCountArgs = Omit & { select?: SessionCountAggregateInputType | true } export interface SessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } /** * Find zero or one Session that matches the filter. * @param {SessionFindUniqueArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Session that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Session 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 {SessionFindFirstArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Session 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 {SessionFindFirstOrThrowArgs} args - Arguments to find a Session * @example * // Get one Session * const session = await prisma.session.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Sessions 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 {SessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Sessions * const sessions = await prisma.session.findMany() * * // Get first 10 Sessions * const sessions = await prisma.session.findMany({ take: 10 }) * * // Only select the `id` * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Session. * @param {SessionCreateArgs} args - Arguments to create a Session. * @example * // Create one Session * const Session = await prisma.session.create({ * data: { * // ... data to create a Session * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Sessions. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions * const session = await prisma.session.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Sessions and returns the data saved in the database. * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions * const session = await prisma.session.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Sessions and only return the `id` * const sessionWithIdOnly = await prisma.session.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 Session. * @param {SessionDeleteArgs} args - Arguments to delete one Session. * @example * // Delete one Session * const Session = await prisma.session.delete({ * where: { * // ... filter to delete one Session * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Session. * @param {SessionUpdateArgs} args - Arguments to update one Session. * @example * // Update one Session * const session = await prisma.session.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Sessions. * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. * @example * // Delete a few Sessions * const { count } = await prisma.session.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Sessions * const session = await prisma.session.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Sessions and returns the data updated in the database. * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions. * @example * // Update many Sessions * const session = await prisma.session.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Sessions and only return the `id` * const sessionWithIdOnly = await prisma.session.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 Session. * @param {SessionUpsertArgs} args - Arguments to update or create a Session. * @example * // Update or create a Session * const session = await prisma.session.upsert({ * create: { * // ... data to create a Session * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Session we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionCountArgs} args - Arguments to filter Sessions to count. * @example * // Count the number of Sessions * const count = await prisma.session.count({ * where: { * // ... the filter for the Sessions 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 Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionAggregateArgs} 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 Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {SessionGroupByArgs} 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 SessionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SessionGroupByArgs['orderBy'] } : { orderBy?: SessionGroupByArgs['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 ? GetSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the Session model */ readonly fields: SessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Session. * 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__SessionClient 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 Session model */ export interface SessionFieldRefs { readonly id: Prisma.FieldRef<"Session", 'String'> readonly userId: Prisma.FieldRef<"Session", 'String'> readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'> } // Custom InputTypes /** * Session findUnique */ export type SessionFindUniqueArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * Filter, which Session to fetch. */ where: Prisma.SessionWhereUniqueInput } /** * Session findUniqueOrThrow */ export type SessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * Filter, which Session to fetch. */ where: Prisma.SessionWhereUniqueInput } /** * Session findFirst */ export type SessionFindFirstArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * Filter, which Session to fetch. */ where?: Prisma.SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sessions. */ cursor?: Prisma.SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions 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` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] } /** * Session findFirstOrThrow */ export type SessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * Filter, which Session to fetch. */ where?: Prisma.SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Sessions. */ cursor?: Prisma.SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions 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` Sessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Sessions. */ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] } /** * Session findMany */ export type SessionFindManyArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * Filter, which Sessions to fetch. */ where?: Prisma.SessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Sessions to fetch. */ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Sessions. */ cursor?: Prisma.SessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Sessions 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` Sessions. */ skip?: number distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] } /** * Session create */ export type SessionCreateArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * The data needed to create a Session. */ data: Prisma.XOR } /** * Session createMany */ export type SessionCreateManyArgs = { /** * The data used to create many Sessions. */ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] } /** * Session createManyAndReturn */ export type SessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelectCreateManyAndReturn | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * The data used to create many Sessions. */ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionIncludeCreateManyAndReturn | null } /** * Session update */ export type SessionUpdateArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * The data needed to update a Session. */ data: Prisma.XOR /** * Choose, which Session to update. */ where: Prisma.SessionWhereUniqueInput } /** * Session updateMany */ export type SessionUpdateManyArgs = { /** * The data used to update Sessions. */ data: Prisma.XOR /** * Filter which Sessions to update */ where?: Prisma.SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number } /** * Session updateManyAndReturn */ export type SessionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelectUpdateManyAndReturn | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * The data used to update Sessions. */ data: Prisma.XOR /** * Filter which Sessions to update */ where?: Prisma.SessionWhereInput /** * Limit how many Sessions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionIncludeUpdateManyAndReturn | null } /** * Session upsert */ export type SessionUpsertArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * The filter to search for the Session to update in case it exists. */ where: Prisma.SessionWhereUniqueInput /** * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. */ create: Prisma.XOR /** * In case the Session was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Session delete */ export type SessionDeleteArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null /** * Filter which Session to delete. */ where: Prisma.SessionWhereUniqueInput } /** * Session deleteMany */ export type SessionDeleteManyArgs = { /** * Filter which Sessions to delete */ where?: Prisma.SessionWhereInput /** * Limit how many Sessions to delete. */ limit?: number } /** * Session without action */ export type SessionDefaultArgs = { /** * Select specific fields to fetch from the Session */ select?: Prisma.SessionSelect | null /** * Omit specific fields from the Session */ omit?: Prisma.SessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionInclude | null }