/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `UserSession` 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 UserSession * */ export type UserSessionModel = runtime.Types.Result.DefaultSelection export type AggregateUserSession = { _count: UserSessionCountAggregateOutputType | null _min: UserSessionMinAggregateOutputType | null _max: UserSessionMaxAggregateOutputType | null } export type UserSessionMinAggregateOutputType = { id: string | null userId: string | null tokenHash: string | null createdAt: Date | null lastSeenAt: Date | null expiresAt: Date | null revokedAt: Date | null trustedAt: Date | null ipHash: string | null userAgent: string | null deviceLabel: string | null approxLocation: string | null browserFingerprint: string | null } export type UserSessionMaxAggregateOutputType = { id: string | null userId: string | null tokenHash: string | null createdAt: Date | null lastSeenAt: Date | null expiresAt: Date | null revokedAt: Date | null trustedAt: Date | null ipHash: string | null userAgent: string | null deviceLabel: string | null approxLocation: string | null browserFingerprint: string | null } export type UserSessionCountAggregateOutputType = { id: number userId: number tokenHash: number createdAt: number lastSeenAt: number expiresAt: number revokedAt: number trustedAt: number ipHash: number userAgent: number deviceLabel: number approxLocation: number browserFingerprint: number _all: number } export type UserSessionMinAggregateInputType = { id?: true userId?: true tokenHash?: true createdAt?: true lastSeenAt?: true expiresAt?: true revokedAt?: true trustedAt?: true ipHash?: true userAgent?: true deviceLabel?: true approxLocation?: true browserFingerprint?: true } export type UserSessionMaxAggregateInputType = { id?: true userId?: true tokenHash?: true createdAt?: true lastSeenAt?: true expiresAt?: true revokedAt?: true trustedAt?: true ipHash?: true userAgent?: true deviceLabel?: true approxLocation?: true browserFingerprint?: true } export type UserSessionCountAggregateInputType = { id?: true userId?: true tokenHash?: true createdAt?: true lastSeenAt?: true expiresAt?: true revokedAt?: true trustedAt?: true ipHash?: true userAgent?: true deviceLabel?: true approxLocation?: true browserFingerprint?: true _all?: true } export type UserSessionAggregateArgs = { /** * Filter which UserSession to aggregate. */ where?: Prisma.UserSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserSessions to fetch. */ orderBy?: Prisma.UserSessionOrderByWithRelationInput | Prisma.UserSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.UserSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserSessions 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` UserSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserSessions **/ _count?: true | UserSessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserSessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserSessionMaxAggregateInputType } export type GetUserSessionAggregateType = { [P in keyof T & keyof AggregateUserSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type UserSessionGroupByArgs = { where?: Prisma.UserSessionWhereInput orderBy?: Prisma.UserSessionOrderByWithAggregationInput | Prisma.UserSessionOrderByWithAggregationInput[] by: Prisma.UserSessionScalarFieldEnum[] | Prisma.UserSessionScalarFieldEnum having?: Prisma.UserSessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserSessionCountAggregateInputType | true _min?: UserSessionMinAggregateInputType _max?: UserSessionMaxAggregateInputType } export type UserSessionGroupByOutputType = { id: string userId: string tokenHash: string createdAt: Date lastSeenAt: Date expiresAt: Date revokedAt: Date | null trustedAt: Date | null ipHash: string | null userAgent: string | null deviceLabel: string | null approxLocation: string | null browserFingerprint: string | null _count: UserSessionCountAggregateOutputType | null _min: UserSessionMinAggregateOutputType | null _max: UserSessionMaxAggregateOutputType | null } export type GetUserSessionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UserSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type UserSessionWhereInput = { AND?: Prisma.UserSessionWhereInput | Prisma.UserSessionWhereInput[] OR?: Prisma.UserSessionWhereInput[] NOT?: Prisma.UserSessionWhereInput | Prisma.UserSessionWhereInput[] id?: Prisma.StringFilter<"UserSession"> | string userId?: Prisma.StringFilter<"UserSession"> | string tokenHash?: Prisma.StringFilter<"UserSession"> | string createdAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string lastSeenAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string expiresAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string revokedAt?: Prisma.DateTimeNullableFilter<"UserSession"> | Date | string | null trustedAt?: Prisma.DateTimeNullableFilter<"UserSession"> | Date | string | null ipHash?: Prisma.StringNullableFilter<"UserSession"> | string | null userAgent?: Prisma.StringNullableFilter<"UserSession"> | string | null deviceLabel?: Prisma.StringNullableFilter<"UserSession"> | string | null approxLocation?: Prisma.StringNullableFilter<"UserSession"> | string | null browserFingerprint?: Prisma.StringNullableFilter<"UserSession"> | string | null user?: Prisma.XOR } export type UserSessionOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder tokenHash?: Prisma.SortOrder createdAt?: Prisma.SortOrder lastSeenAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder trustedAt?: Prisma.SortOrderInput | Prisma.SortOrder ipHash?: Prisma.SortOrderInput | Prisma.SortOrder userAgent?: Prisma.SortOrderInput | Prisma.SortOrder deviceLabel?: Prisma.SortOrderInput | Prisma.SortOrder approxLocation?: Prisma.SortOrderInput | Prisma.SortOrder browserFingerprint?: Prisma.SortOrderInput | Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput } export type UserSessionWhereUniqueInput = Prisma.AtLeast<{ id?: string tokenHash?: string AND?: Prisma.UserSessionWhereInput | Prisma.UserSessionWhereInput[] OR?: Prisma.UserSessionWhereInput[] NOT?: Prisma.UserSessionWhereInput | Prisma.UserSessionWhereInput[] userId?: Prisma.StringFilter<"UserSession"> | string createdAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string lastSeenAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string expiresAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string revokedAt?: Prisma.DateTimeNullableFilter<"UserSession"> | Date | string | null trustedAt?: Prisma.DateTimeNullableFilter<"UserSession"> | Date | string | null ipHash?: Prisma.StringNullableFilter<"UserSession"> | string | null userAgent?: Prisma.StringNullableFilter<"UserSession"> | string | null deviceLabel?: Prisma.StringNullableFilter<"UserSession"> | string | null approxLocation?: Prisma.StringNullableFilter<"UserSession"> | string | null browserFingerprint?: Prisma.StringNullableFilter<"UserSession"> | string | null user?: Prisma.XOR }, "id" | "tokenHash"> export type UserSessionOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder tokenHash?: Prisma.SortOrder createdAt?: Prisma.SortOrder lastSeenAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder trustedAt?: Prisma.SortOrderInput | Prisma.SortOrder ipHash?: Prisma.SortOrderInput | Prisma.SortOrder userAgent?: Prisma.SortOrderInput | Prisma.SortOrder deviceLabel?: Prisma.SortOrderInput | Prisma.SortOrder approxLocation?: Prisma.SortOrderInput | Prisma.SortOrder browserFingerprint?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.UserSessionCountOrderByAggregateInput _max?: Prisma.UserSessionMaxOrderByAggregateInput _min?: Prisma.UserSessionMinOrderByAggregateInput } export type UserSessionScalarWhereWithAggregatesInput = { AND?: Prisma.UserSessionScalarWhereWithAggregatesInput | Prisma.UserSessionScalarWhereWithAggregatesInput[] OR?: Prisma.UserSessionScalarWhereWithAggregatesInput[] NOT?: Prisma.UserSessionScalarWhereWithAggregatesInput | Prisma.UserSessionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"UserSession"> | string userId?: Prisma.StringWithAggregatesFilter<"UserSession"> | string tokenHash?: Prisma.StringWithAggregatesFilter<"UserSession"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserSession"> | Date | string lastSeenAt?: Prisma.DateTimeWithAggregatesFilter<"UserSession"> | Date | string expiresAt?: Prisma.DateTimeWithAggregatesFilter<"UserSession"> | Date | string revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"UserSession"> | Date | string | null trustedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"UserSession"> | Date | string | null ipHash?: Prisma.StringNullableWithAggregatesFilter<"UserSession"> | string | null userAgent?: Prisma.StringNullableWithAggregatesFilter<"UserSession"> | string | null deviceLabel?: Prisma.StringNullableWithAggregatesFilter<"UserSession"> | string | null approxLocation?: Prisma.StringNullableWithAggregatesFilter<"UserSession"> | string | null browserFingerprint?: Prisma.StringNullableWithAggregatesFilter<"UserSession"> | string | null } export type UserSessionCreateInput = { id?: string tokenHash: string createdAt?: Date | string lastSeenAt?: Date | string expiresAt: Date | string revokedAt?: Date | string | null trustedAt?: Date | string | null ipHash?: string | null userAgent?: string | null deviceLabel?: string | null approxLocation?: string | null browserFingerprint?: string | null user: Prisma.UserCreateNestedOneWithoutUserSessionsInput } export type UserSessionUncheckedCreateInput = { id?: string userId: string tokenHash: string createdAt?: Date | string lastSeenAt?: Date | string expiresAt: Date | string revokedAt?: Date | string | null trustedAt?: Date | string | null ipHash?: string | null userAgent?: string | null deviceLabel?: string | null approxLocation?: string | null browserFingerprint?: string | null } export type UserSessionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null browserFingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null user?: Prisma.UserUpdateOneRequiredWithoutUserSessionsNestedInput } export type UserSessionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null browserFingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserSessionCreateManyInput = { id?: string userId: string tokenHash: string createdAt?: Date | string lastSeenAt?: Date | string expiresAt: Date | string revokedAt?: Date | string | null trustedAt?: Date | string | null ipHash?: string | null userAgent?: string | null deviceLabel?: string | null approxLocation?: string | null browserFingerprint?: string | null } export type UserSessionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null browserFingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserSessionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null browserFingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserSessionListRelationFilter = { every?: Prisma.UserSessionWhereInput some?: Prisma.UserSessionWhereInput none?: Prisma.UserSessionWhereInput } export type UserSessionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type UserSessionCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder tokenHash?: Prisma.SortOrder createdAt?: Prisma.SortOrder lastSeenAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrder trustedAt?: Prisma.SortOrder ipHash?: Prisma.SortOrder userAgent?: Prisma.SortOrder deviceLabel?: Prisma.SortOrder approxLocation?: Prisma.SortOrder browserFingerprint?: Prisma.SortOrder } export type UserSessionMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder tokenHash?: Prisma.SortOrder createdAt?: Prisma.SortOrder lastSeenAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrder trustedAt?: Prisma.SortOrder ipHash?: Prisma.SortOrder userAgent?: Prisma.SortOrder deviceLabel?: Prisma.SortOrder approxLocation?: Prisma.SortOrder browserFingerprint?: Prisma.SortOrder } export type UserSessionMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder tokenHash?: Prisma.SortOrder createdAt?: Prisma.SortOrder lastSeenAt?: Prisma.SortOrder expiresAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrder trustedAt?: Prisma.SortOrder ipHash?: Prisma.SortOrder userAgent?: Prisma.SortOrder deviceLabel?: Prisma.SortOrder approxLocation?: Prisma.SortOrder browserFingerprint?: Prisma.SortOrder } export type UserSessionCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.UserSessionCreateWithoutUserInput[] | Prisma.UserSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.UserSessionCreateOrConnectWithoutUserInput | Prisma.UserSessionCreateOrConnectWithoutUserInput[] createMany?: Prisma.UserSessionCreateManyUserInputEnvelope connect?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] } export type UserSessionUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.UserSessionCreateWithoutUserInput[] | Prisma.UserSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.UserSessionCreateOrConnectWithoutUserInput | Prisma.UserSessionCreateOrConnectWithoutUserInput[] createMany?: Prisma.UserSessionCreateManyUserInputEnvelope connect?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] } export type UserSessionUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.UserSessionCreateWithoutUserInput[] | Prisma.UserSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.UserSessionCreateOrConnectWithoutUserInput | Prisma.UserSessionCreateOrConnectWithoutUserInput[] upsert?: Prisma.UserSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.UserSessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.UserSessionCreateManyUserInputEnvelope set?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] disconnect?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] delete?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] connect?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] update?: Prisma.UserSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.UserSessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.UserSessionUpdateManyWithWhereWithoutUserInput | Prisma.UserSessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.UserSessionScalarWhereInput | Prisma.UserSessionScalarWhereInput[] } export type UserSessionUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.UserSessionCreateWithoutUserInput[] | Prisma.UserSessionUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.UserSessionCreateOrConnectWithoutUserInput | Prisma.UserSessionCreateOrConnectWithoutUserInput[] upsert?: Prisma.UserSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.UserSessionUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.UserSessionCreateManyUserInputEnvelope set?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] disconnect?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] delete?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] connect?: Prisma.UserSessionWhereUniqueInput | Prisma.UserSessionWhereUniqueInput[] update?: Prisma.UserSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.UserSessionUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.UserSessionUpdateManyWithWhereWithoutUserInput | Prisma.UserSessionUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.UserSessionScalarWhereInput | Prisma.UserSessionScalarWhereInput[] } export type UserSessionCreateWithoutUserInput = { id?: string tokenHash: string createdAt?: Date | string lastSeenAt?: Date | string expiresAt: Date | string revokedAt?: Date | string | null trustedAt?: Date | string | null ipHash?: string | null userAgent?: string | null deviceLabel?: string | null approxLocation?: string | null browserFingerprint?: string | null } export type UserSessionUncheckedCreateWithoutUserInput = { id?: string tokenHash: string createdAt?: Date | string lastSeenAt?: Date | string expiresAt: Date | string revokedAt?: Date | string | null trustedAt?: Date | string | null ipHash?: string | null userAgent?: string | null deviceLabel?: string | null approxLocation?: string | null browserFingerprint?: string | null } export type UserSessionCreateOrConnectWithoutUserInput = { where: Prisma.UserSessionWhereUniqueInput create: Prisma.XOR } export type UserSessionCreateManyUserInputEnvelope = { data: Prisma.UserSessionCreateManyUserInput | Prisma.UserSessionCreateManyUserInput[] skipDuplicates?: boolean } export type UserSessionUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.UserSessionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type UserSessionUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.UserSessionWhereUniqueInput data: Prisma.XOR } export type UserSessionUpdateManyWithWhereWithoutUserInput = { where: Prisma.UserSessionScalarWhereInput data: Prisma.XOR } export type UserSessionScalarWhereInput = { AND?: Prisma.UserSessionScalarWhereInput | Prisma.UserSessionScalarWhereInput[] OR?: Prisma.UserSessionScalarWhereInput[] NOT?: Prisma.UserSessionScalarWhereInput | Prisma.UserSessionScalarWhereInput[] id?: Prisma.StringFilter<"UserSession"> | string userId?: Prisma.StringFilter<"UserSession"> | string tokenHash?: Prisma.StringFilter<"UserSession"> | string createdAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string lastSeenAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string expiresAt?: Prisma.DateTimeFilter<"UserSession"> | Date | string revokedAt?: Prisma.DateTimeNullableFilter<"UserSession"> | Date | string | null trustedAt?: Prisma.DateTimeNullableFilter<"UserSession"> | Date | string | null ipHash?: Prisma.StringNullableFilter<"UserSession"> | string | null userAgent?: Prisma.StringNullableFilter<"UserSession"> | string | null deviceLabel?: Prisma.StringNullableFilter<"UserSession"> | string | null approxLocation?: Prisma.StringNullableFilter<"UserSession"> | string | null browserFingerprint?: Prisma.StringNullableFilter<"UserSession"> | string | null } export type UserSessionCreateManyUserInput = { id?: string tokenHash: string createdAt?: Date | string lastSeenAt?: Date | string expiresAt: Date | string revokedAt?: Date | string | null trustedAt?: Date | string | null ipHash?: string | null userAgent?: string | null deviceLabel?: string | null approxLocation?: string | null browserFingerprint?: string | null } export type UserSessionUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null browserFingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserSessionUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null browserFingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserSessionUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tokenHash?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null trustedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deviceLabel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null browserFingerprint?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type UserSessionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean tokenHash?: boolean createdAt?: boolean lastSeenAt?: boolean expiresAt?: boolean revokedAt?: boolean trustedAt?: boolean ipHash?: boolean userAgent?: boolean deviceLabel?: boolean approxLocation?: boolean browserFingerprint?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userSession"]> export type UserSessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean tokenHash?: boolean createdAt?: boolean lastSeenAt?: boolean expiresAt?: boolean revokedAt?: boolean trustedAt?: boolean ipHash?: boolean userAgent?: boolean deviceLabel?: boolean approxLocation?: boolean browserFingerprint?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userSession"]> export type UserSessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean tokenHash?: boolean createdAt?: boolean lastSeenAt?: boolean expiresAt?: boolean revokedAt?: boolean trustedAt?: boolean ipHash?: boolean userAgent?: boolean deviceLabel?: boolean approxLocation?: boolean browserFingerprint?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userSession"]> export type UserSessionSelectScalar = { id?: boolean userId?: boolean tokenHash?: boolean createdAt?: boolean lastSeenAt?: boolean expiresAt?: boolean revokedAt?: boolean trustedAt?: boolean ipHash?: boolean userAgent?: boolean deviceLabel?: boolean approxLocation?: boolean browserFingerprint?: boolean } export type UserSessionOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "tokenHash" | "createdAt" | "lastSeenAt" | "expiresAt" | "revokedAt" | "trustedAt" | "ipHash" | "userAgent" | "deviceLabel" | "approxLocation" | "browserFingerprint", ExtArgs["result"]["userSession"]> export type UserSessionInclude = { user?: boolean | Prisma.UserDefaultArgs } export type UserSessionIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type UserSessionIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $UserSessionPayload = { name: "UserSession" objects: { user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string userId: string tokenHash: string createdAt: Date lastSeenAt: Date expiresAt: Date revokedAt: Date | null trustedAt: Date | null ipHash: string | null userAgent: string | null deviceLabel: string | null approxLocation: string | null browserFingerprint: string | null }, ExtArgs["result"]["userSession"]> composites: {} } export type UserSessionGetPayload = runtime.Types.Result.GetResult export type UserSessionCountArgs = Omit & { select?: UserSessionCountAggregateInputType | true } export interface UserSessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UserSession'], meta: { name: 'UserSession' } } /** * Find zero or one UserSession that matches the filter. * @param {UserSessionFindUniqueArgs} args - Arguments to find a UserSession * @example * // Get one UserSession * const userSession = await prisma.userSession.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserSessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one UserSession that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserSessionFindUniqueOrThrowArgs} args - Arguments to find a UserSession * @example * // Get one UserSession * const userSession = await prisma.userSession.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserSessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first UserSession 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 {UserSessionFindFirstArgs} args - Arguments to find a UserSession * @example * // Get one UserSession * const userSession = await prisma.userSession.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserSessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first UserSession 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 {UserSessionFindFirstOrThrowArgs} args - Arguments to find a UserSession * @example * // Get one UserSession * const userSession = await prisma.userSession.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserSessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more UserSessions 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 {UserSessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserSessions * const userSessions = await prisma.userSession.findMany() * * // Get first 10 UserSessions * const userSessions = await prisma.userSession.findMany({ take: 10 }) * * // Only select the `id` * const userSessionWithIdOnly = await prisma.userSession.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a UserSession. * @param {UserSessionCreateArgs} args - Arguments to create a UserSession. * @example * // Create one UserSession * const UserSession = await prisma.userSession.create({ * data: { * // ... data to create a UserSession * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__UserSessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many UserSessions. * @param {UserSessionCreateManyArgs} args - Arguments to create many UserSessions. * @example * // Create many UserSessions * const userSession = await prisma.userSession.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many UserSessions and returns the data saved in the database. * @param {UserSessionCreateManyAndReturnArgs} args - Arguments to create many UserSessions. * @example * // Create many UserSessions * const userSession = await prisma.userSession.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UserSessions and only return the `id` * const userSessionWithIdOnly = await prisma.userSession.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 UserSession. * @param {UserSessionDeleteArgs} args - Arguments to delete one UserSession. * @example * // Delete one UserSession * const UserSession = await prisma.userSession.delete({ * where: { * // ... filter to delete one UserSession * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserSessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one UserSession. * @param {UserSessionUpdateArgs} args - Arguments to update one UserSession. * @example * // Update one UserSession * const userSession = await prisma.userSession.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__UserSessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more UserSessions. * @param {UserSessionDeleteManyArgs} args - Arguments to filter UserSessions to delete. * @example * // Delete a few UserSessions * const { count } = await prisma.userSession.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserSessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserSessions * const userSession = await prisma.userSession.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserSessions and returns the data updated in the database. * @param {UserSessionUpdateManyAndReturnArgs} args - Arguments to update many UserSessions. * @example * // Update many UserSessions * const userSession = await prisma.userSession.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more UserSessions and only return the `id` * const userSessionWithIdOnly = await prisma.userSession.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 UserSession. * @param {UserSessionUpsertArgs} args - Arguments to update or create a UserSession. * @example * // Update or create a UserSession * const userSession = await prisma.userSession.upsert({ * create: { * // ... data to create a UserSession * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserSession we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserSessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of UserSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserSessionCountArgs} args - Arguments to filter UserSessions to count. * @example * // Count the number of UserSessions * const count = await prisma.userSession.count({ * where: { * // ... the filter for the UserSessions 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 UserSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserSessionAggregateArgs} 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 UserSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserSessionGroupByArgs} 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 UserSessionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: UserSessionGroupByArgs['orderBy'] } : { orderBy?: UserSessionGroupByArgs['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 ? GetUserSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the UserSession model */ readonly fields: UserSessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserSession. * 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__UserSessionClient 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 UserSession model */ export interface UserSessionFieldRefs { readonly id: Prisma.FieldRef<"UserSession", 'String'> readonly userId: Prisma.FieldRef<"UserSession", 'String'> readonly tokenHash: Prisma.FieldRef<"UserSession", 'String'> readonly createdAt: Prisma.FieldRef<"UserSession", 'DateTime'> readonly lastSeenAt: Prisma.FieldRef<"UserSession", 'DateTime'> readonly expiresAt: Prisma.FieldRef<"UserSession", 'DateTime'> readonly revokedAt: Prisma.FieldRef<"UserSession", 'DateTime'> readonly trustedAt: Prisma.FieldRef<"UserSession", 'DateTime'> readonly ipHash: Prisma.FieldRef<"UserSession", 'String'> readonly userAgent: Prisma.FieldRef<"UserSession", 'String'> readonly deviceLabel: Prisma.FieldRef<"UserSession", 'String'> readonly approxLocation: Prisma.FieldRef<"UserSession", 'String'> readonly browserFingerprint: Prisma.FieldRef<"UserSession", 'String'> } // Custom InputTypes /** * UserSession findUnique */ export type UserSessionFindUniqueArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * Filter, which UserSession to fetch. */ where: Prisma.UserSessionWhereUniqueInput } /** * UserSession findUniqueOrThrow */ export type UserSessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * Filter, which UserSession to fetch. */ where: Prisma.UserSessionWhereUniqueInput } /** * UserSession findFirst */ export type UserSessionFindFirstArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * Filter, which UserSession to fetch. */ where?: Prisma.UserSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserSessions to fetch. */ orderBy?: Prisma.UserSessionOrderByWithRelationInput | Prisma.UserSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserSessions. */ cursor?: Prisma.UserSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserSessions 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` UserSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserSessions. */ distinct?: Prisma.UserSessionScalarFieldEnum | Prisma.UserSessionScalarFieldEnum[] } /** * UserSession findFirstOrThrow */ export type UserSessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * Filter, which UserSession to fetch. */ where?: Prisma.UserSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserSessions to fetch. */ orderBy?: Prisma.UserSessionOrderByWithRelationInput | Prisma.UserSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserSessions. */ cursor?: Prisma.UserSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserSessions 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` UserSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserSessions. */ distinct?: Prisma.UserSessionScalarFieldEnum | Prisma.UserSessionScalarFieldEnum[] } /** * UserSession findMany */ export type UserSessionFindManyArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * Filter, which UserSessions to fetch. */ where?: Prisma.UserSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserSessions to fetch. */ orderBy?: Prisma.UserSessionOrderByWithRelationInput | Prisma.UserSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserSessions. */ cursor?: Prisma.UserSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserSessions 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` UserSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserSessions. */ distinct?: Prisma.UserSessionScalarFieldEnum | Prisma.UserSessionScalarFieldEnum[] } /** * UserSession create */ export type UserSessionCreateArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * The data needed to create a UserSession. */ data: Prisma.XOR } /** * UserSession createMany */ export type UserSessionCreateManyArgs = { /** * The data used to create many UserSessions. */ data: Prisma.UserSessionCreateManyInput | Prisma.UserSessionCreateManyInput[] skipDuplicates?: boolean } /** * UserSession createManyAndReturn */ export type UserSessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelectCreateManyAndReturn | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * The data used to create many UserSessions. */ data: Prisma.UserSessionCreateManyInput | Prisma.UserSessionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionIncludeCreateManyAndReturn | null } /** * UserSession update */ export type UserSessionUpdateArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * The data needed to update a UserSession. */ data: Prisma.XOR /** * Choose, which UserSession to update. */ where: Prisma.UserSessionWhereUniqueInput } /** * UserSession updateMany */ export type UserSessionUpdateManyArgs = { /** * The data used to update UserSessions. */ data: Prisma.XOR /** * Filter which UserSessions to update */ where?: Prisma.UserSessionWhereInput /** * Limit how many UserSessions to update. */ limit?: number } /** * UserSession updateManyAndReturn */ export type UserSessionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelectUpdateManyAndReturn | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * The data used to update UserSessions. */ data: Prisma.XOR /** * Filter which UserSessions to update */ where?: Prisma.UserSessionWhereInput /** * Limit how many UserSessions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionIncludeUpdateManyAndReturn | null } /** * UserSession upsert */ export type UserSessionUpsertArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * The filter to search for the UserSession to update in case it exists. */ where: Prisma.UserSessionWhereUniqueInput /** * In case the UserSession found by the `where` argument doesn't exist, create a new UserSession with this data. */ create: Prisma.XOR /** * In case the UserSession was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * UserSession delete */ export type UserSessionDeleteArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null /** * Filter which UserSession to delete. */ where: Prisma.UserSessionWhereUniqueInput } /** * UserSession deleteMany */ export type UserSessionDeleteManyArgs = { /** * Filter which UserSessions to delete */ where?: Prisma.UserSessionWhereInput /** * Limit how many UserSessions to delete. */ limit?: number } /** * UserSession without action */ export type UserSessionDefaultArgs = { /** * Select specific fields to fetch from the UserSession */ select?: Prisma.UserSessionSelect | null /** * Omit specific fields from the UserSession */ omit?: Prisma.UserSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSessionInclude | null }