/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `DeviceToken` 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 DeviceToken * */ export type DeviceTokenModel = runtime.Types.Result.DefaultSelection export type AggregateDeviceToken = { _count: DeviceTokenCountAggregateOutputType | null _min: DeviceTokenMinAggregateOutputType | null _max: DeviceTokenMaxAggregateOutputType | null } export type DeviceTokenMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null userId: string | null tenantId: string | null platform: string | null token: string | null pushProvider: string | null appVersion: string | null lastSeenAt: Date | null revokedAt: Date | null } export type DeviceTokenMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null userId: string | null tenantId: string | null platform: string | null token: string | null pushProvider: string | null appVersion: string | null lastSeenAt: Date | null revokedAt: Date | null } export type DeviceTokenCountAggregateOutputType = { id: number createdAt: number updatedAt: number userId: number tenantId: number platform: number token: number pushProvider: number appVersion: number lastSeenAt: number revokedAt: number _all: number } export type DeviceTokenMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true userId?: true tenantId?: true platform?: true token?: true pushProvider?: true appVersion?: true lastSeenAt?: true revokedAt?: true } export type DeviceTokenMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true userId?: true tenantId?: true platform?: true token?: true pushProvider?: true appVersion?: true lastSeenAt?: true revokedAt?: true } export type DeviceTokenCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true userId?: true tenantId?: true platform?: true token?: true pushProvider?: true appVersion?: true lastSeenAt?: true revokedAt?: true _all?: true } export type DeviceTokenAggregateArgs = { /** * Filter which DeviceToken to aggregate. */ where?: Prisma.DeviceTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceTokens to fetch. */ orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.DeviceTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceTokens 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` DeviceTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned DeviceTokens **/ _count?: true | DeviceTokenCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DeviceTokenMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DeviceTokenMaxAggregateInputType } export type GetDeviceTokenAggregateType = { [P in keyof T & keyof AggregateDeviceToken]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type DeviceTokenGroupByArgs = { where?: Prisma.DeviceTokenWhereInput orderBy?: Prisma.DeviceTokenOrderByWithAggregationInput | Prisma.DeviceTokenOrderByWithAggregationInput[] by: Prisma.DeviceTokenScalarFieldEnum[] | Prisma.DeviceTokenScalarFieldEnum having?: Prisma.DeviceTokenScalarWhereWithAggregatesInput take?: number skip?: number _count?: DeviceTokenCountAggregateInputType | true _min?: DeviceTokenMinAggregateInputType _max?: DeviceTokenMaxAggregateInputType } export type DeviceTokenGroupByOutputType = { id: string createdAt: Date updatedAt: Date userId: string tenantId: string | null platform: string token: string pushProvider: string appVersion: string | null lastSeenAt: Date revokedAt: Date | null _count: DeviceTokenCountAggregateOutputType | null _min: DeviceTokenMinAggregateOutputType | null _max: DeviceTokenMaxAggregateOutputType | null } export type GetDeviceTokenGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DeviceTokenGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type DeviceTokenWhereInput = { AND?: Prisma.DeviceTokenWhereInput | Prisma.DeviceTokenWhereInput[] OR?: Prisma.DeviceTokenWhereInput[] NOT?: Prisma.DeviceTokenWhereInput | Prisma.DeviceTokenWhereInput[] id?: Prisma.StringFilter<"DeviceToken"> | string createdAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string updatedAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string userId?: Prisma.StringFilter<"DeviceToken"> | string tenantId?: Prisma.StringNullableFilter<"DeviceToken"> | string | null platform?: Prisma.StringFilter<"DeviceToken"> | string token?: Prisma.StringFilter<"DeviceToken"> | string pushProvider?: Prisma.StringFilter<"DeviceToken"> | string appVersion?: Prisma.StringNullableFilter<"DeviceToken"> | string | null lastSeenAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string revokedAt?: Prisma.DateTimeNullableFilter<"DeviceToken"> | Date | string | null user?: Prisma.XOR tenant?: Prisma.XOR | null } export type DeviceTokenOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder userId?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder platform?: Prisma.SortOrder token?: Prisma.SortOrder pushProvider?: Prisma.SortOrder appVersion?: Prisma.SortOrderInput | Prisma.SortOrder lastSeenAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput tenant?: Prisma.TenantOrderByWithRelationInput } export type DeviceTokenWhereUniqueInput = Prisma.AtLeast<{ id?: string token?: string AND?: Prisma.DeviceTokenWhereInput | Prisma.DeviceTokenWhereInput[] OR?: Prisma.DeviceTokenWhereInput[] NOT?: Prisma.DeviceTokenWhereInput | Prisma.DeviceTokenWhereInput[] createdAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string updatedAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string userId?: Prisma.StringFilter<"DeviceToken"> | string tenantId?: Prisma.StringNullableFilter<"DeviceToken"> | string | null platform?: Prisma.StringFilter<"DeviceToken"> | string pushProvider?: Prisma.StringFilter<"DeviceToken"> | string appVersion?: Prisma.StringNullableFilter<"DeviceToken"> | string | null lastSeenAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string revokedAt?: Prisma.DateTimeNullableFilter<"DeviceToken"> | Date | string | null user?: Prisma.XOR tenant?: Prisma.XOR | null }, "id" | "token"> export type DeviceTokenOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder userId?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder platform?: Prisma.SortOrder token?: Prisma.SortOrder pushProvider?: Prisma.SortOrder appVersion?: Prisma.SortOrderInput | Prisma.SortOrder lastSeenAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.DeviceTokenCountOrderByAggregateInput _max?: Prisma.DeviceTokenMaxOrderByAggregateInput _min?: Prisma.DeviceTokenMinOrderByAggregateInput } export type DeviceTokenScalarWhereWithAggregatesInput = { AND?: Prisma.DeviceTokenScalarWhereWithAggregatesInput | Prisma.DeviceTokenScalarWhereWithAggregatesInput[] OR?: Prisma.DeviceTokenScalarWhereWithAggregatesInput[] NOT?: Prisma.DeviceTokenScalarWhereWithAggregatesInput | Prisma.DeviceTokenScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"DeviceToken"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"DeviceToken"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DeviceToken"> | Date | string userId?: Prisma.StringWithAggregatesFilter<"DeviceToken"> | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"DeviceToken"> | string | null platform?: Prisma.StringWithAggregatesFilter<"DeviceToken"> | string token?: Prisma.StringWithAggregatesFilter<"DeviceToken"> | string pushProvider?: Prisma.StringWithAggregatesFilter<"DeviceToken"> | string appVersion?: Prisma.StringNullableWithAggregatesFilter<"DeviceToken"> | string | null lastSeenAt?: Prisma.DateTimeWithAggregatesFilter<"DeviceToken"> | Date | string revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"DeviceToken"> | Date | string | null } export type DeviceTokenCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null user: Prisma.UserCreateNestedOneWithoutDeviceTokensInput tenant?: Prisma.TenantCreateNestedOneWithoutDeviceTokensInput } export type DeviceTokenUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string userId: string tenantId?: string | null platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null } export type DeviceTokenUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: Prisma.UserUpdateOneRequiredWithoutDeviceTokensNestedInput tenant?: Prisma.TenantUpdateOneWithoutDeviceTokensNestedInput } export type DeviceTokenUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type DeviceTokenCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string userId: string tenantId?: string | null platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null } export type DeviceTokenUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type DeviceTokenUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type DeviceTokenListRelationFilter = { every?: Prisma.DeviceTokenWhereInput some?: Prisma.DeviceTokenWhereInput none?: Prisma.DeviceTokenWhereInput } export type DeviceTokenOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type DeviceTokenCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder userId?: Prisma.SortOrder tenantId?: Prisma.SortOrder platform?: Prisma.SortOrder token?: Prisma.SortOrder pushProvider?: Prisma.SortOrder appVersion?: Prisma.SortOrder lastSeenAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrder } export type DeviceTokenMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder userId?: Prisma.SortOrder tenantId?: Prisma.SortOrder platform?: Prisma.SortOrder token?: Prisma.SortOrder pushProvider?: Prisma.SortOrder appVersion?: Prisma.SortOrder lastSeenAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrder } export type DeviceTokenMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder userId?: Prisma.SortOrder tenantId?: Prisma.SortOrder platform?: Prisma.SortOrder token?: Prisma.SortOrder pushProvider?: Prisma.SortOrder appVersion?: Prisma.SortOrder lastSeenAt?: Prisma.SortOrder revokedAt?: Prisma.SortOrder } export type DeviceTokenCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutUserInput[] | Prisma.DeviceTokenUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutUserInput | Prisma.DeviceTokenCreateOrConnectWithoutUserInput[] createMany?: Prisma.DeviceTokenCreateManyUserInputEnvelope connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] } export type DeviceTokenUncheckedCreateNestedManyWithoutUserInput = { create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutUserInput[] | Prisma.DeviceTokenUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutUserInput | Prisma.DeviceTokenCreateOrConnectWithoutUserInput[] createMany?: Prisma.DeviceTokenCreateManyUserInputEnvelope connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] } export type DeviceTokenUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutUserInput[] | Prisma.DeviceTokenUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutUserInput | Prisma.DeviceTokenCreateOrConnectWithoutUserInput[] upsert?: Prisma.DeviceTokenUpsertWithWhereUniqueWithoutUserInput | Prisma.DeviceTokenUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.DeviceTokenCreateManyUserInputEnvelope set?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] disconnect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] delete?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] update?: Prisma.DeviceTokenUpdateWithWhereUniqueWithoutUserInput | Prisma.DeviceTokenUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.DeviceTokenUpdateManyWithWhereWithoutUserInput | Prisma.DeviceTokenUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] } export type DeviceTokenUncheckedUpdateManyWithoutUserNestedInput = { create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutUserInput[] | Prisma.DeviceTokenUncheckedCreateWithoutUserInput[] connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutUserInput | Prisma.DeviceTokenCreateOrConnectWithoutUserInput[] upsert?: Prisma.DeviceTokenUpsertWithWhereUniqueWithoutUserInput | Prisma.DeviceTokenUpsertWithWhereUniqueWithoutUserInput[] createMany?: Prisma.DeviceTokenCreateManyUserInputEnvelope set?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] disconnect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] delete?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] update?: Prisma.DeviceTokenUpdateWithWhereUniqueWithoutUserInput | Prisma.DeviceTokenUpdateWithWhereUniqueWithoutUserInput[] updateMany?: Prisma.DeviceTokenUpdateManyWithWhereWithoutUserInput | Prisma.DeviceTokenUpdateManyWithWhereWithoutUserInput[] deleteMany?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] } export type DeviceTokenCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutTenantInput[] | Prisma.DeviceTokenUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutTenantInput | Prisma.DeviceTokenCreateOrConnectWithoutTenantInput[] createMany?: Prisma.DeviceTokenCreateManyTenantInputEnvelope connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] } export type DeviceTokenUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutTenantInput[] | Prisma.DeviceTokenUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutTenantInput | Prisma.DeviceTokenCreateOrConnectWithoutTenantInput[] createMany?: Prisma.DeviceTokenCreateManyTenantInputEnvelope connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] } export type DeviceTokenUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutTenantInput[] | Prisma.DeviceTokenUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutTenantInput | Prisma.DeviceTokenCreateOrConnectWithoutTenantInput[] upsert?: Prisma.DeviceTokenUpsertWithWhereUniqueWithoutTenantInput | Prisma.DeviceTokenUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.DeviceTokenCreateManyTenantInputEnvelope set?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] disconnect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] delete?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] update?: Prisma.DeviceTokenUpdateWithWhereUniqueWithoutTenantInput | Prisma.DeviceTokenUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.DeviceTokenUpdateManyWithWhereWithoutTenantInput | Prisma.DeviceTokenUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] } export type DeviceTokenUncheckedUpdateManyWithoutTenantNestedInput = { create?: Prisma.XOR | Prisma.DeviceTokenCreateWithoutTenantInput[] | Prisma.DeviceTokenUncheckedCreateWithoutTenantInput[] connectOrCreate?: Prisma.DeviceTokenCreateOrConnectWithoutTenantInput | Prisma.DeviceTokenCreateOrConnectWithoutTenantInput[] upsert?: Prisma.DeviceTokenUpsertWithWhereUniqueWithoutTenantInput | Prisma.DeviceTokenUpsertWithWhereUniqueWithoutTenantInput[] createMany?: Prisma.DeviceTokenCreateManyTenantInputEnvelope set?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] disconnect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] delete?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] connect?: Prisma.DeviceTokenWhereUniqueInput | Prisma.DeviceTokenWhereUniqueInput[] update?: Prisma.DeviceTokenUpdateWithWhereUniqueWithoutTenantInput | Prisma.DeviceTokenUpdateWithWhereUniqueWithoutTenantInput[] updateMany?: Prisma.DeviceTokenUpdateManyWithWhereWithoutTenantInput | Prisma.DeviceTokenUpdateManyWithWhereWithoutTenantInput[] deleteMany?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] } export type DeviceTokenCreateWithoutUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null tenant?: Prisma.TenantCreateNestedOneWithoutDeviceTokensInput } export type DeviceTokenUncheckedCreateWithoutUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null } export type DeviceTokenCreateOrConnectWithoutUserInput = { where: Prisma.DeviceTokenWhereUniqueInput create: Prisma.XOR } export type DeviceTokenCreateManyUserInputEnvelope = { data: Prisma.DeviceTokenCreateManyUserInput | Prisma.DeviceTokenCreateManyUserInput[] skipDuplicates?: boolean } export type DeviceTokenUpsertWithWhereUniqueWithoutUserInput = { where: Prisma.DeviceTokenWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceTokenUpdateWithWhereUniqueWithoutUserInput = { where: Prisma.DeviceTokenWhereUniqueInput data: Prisma.XOR } export type DeviceTokenUpdateManyWithWhereWithoutUserInput = { where: Prisma.DeviceTokenScalarWhereInput data: Prisma.XOR } export type DeviceTokenScalarWhereInput = { AND?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] OR?: Prisma.DeviceTokenScalarWhereInput[] NOT?: Prisma.DeviceTokenScalarWhereInput | Prisma.DeviceTokenScalarWhereInput[] id?: Prisma.StringFilter<"DeviceToken"> | string createdAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string updatedAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string userId?: Prisma.StringFilter<"DeviceToken"> | string tenantId?: Prisma.StringNullableFilter<"DeviceToken"> | string | null platform?: Prisma.StringFilter<"DeviceToken"> | string token?: Prisma.StringFilter<"DeviceToken"> | string pushProvider?: Prisma.StringFilter<"DeviceToken"> | string appVersion?: Prisma.StringNullableFilter<"DeviceToken"> | string | null lastSeenAt?: Prisma.DateTimeFilter<"DeviceToken"> | Date | string revokedAt?: Prisma.DateTimeNullableFilter<"DeviceToken"> | Date | string | null } export type DeviceTokenCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null user: Prisma.UserCreateNestedOneWithoutDeviceTokensInput } export type DeviceTokenUncheckedCreateWithoutTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string userId: string platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null } export type DeviceTokenCreateOrConnectWithoutTenantInput = { where: Prisma.DeviceTokenWhereUniqueInput create: Prisma.XOR } export type DeviceTokenCreateManyTenantInputEnvelope = { data: Prisma.DeviceTokenCreateManyTenantInput | Prisma.DeviceTokenCreateManyTenantInput[] skipDuplicates?: boolean } export type DeviceTokenUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.DeviceTokenWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type DeviceTokenUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.DeviceTokenWhereUniqueInput data: Prisma.XOR } export type DeviceTokenUpdateManyWithWhereWithoutTenantInput = { where: Prisma.DeviceTokenScalarWhereInput data: Prisma.XOR } export type DeviceTokenCreateManyUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId?: string | null platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null } export type DeviceTokenUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null tenant?: Prisma.TenantUpdateOneWithoutDeviceTokensNestedInput } export type DeviceTokenUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type DeviceTokenUncheckedUpdateManyWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type DeviceTokenCreateManyTenantInput = { id?: string createdAt?: Date | string updatedAt?: Date | string userId: string platform: string token: string pushProvider: string appVersion?: string | null lastSeenAt?: Date | string revokedAt?: Date | string | null } export type DeviceTokenUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null user?: Prisma.UserUpdateOneRequiredWithoutDeviceTokensNestedInput } export type DeviceTokenUncheckedUpdateWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.StringFieldUpdateOperationsInput | string platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type DeviceTokenUncheckedUpdateManyWithoutTenantInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string userId?: Prisma.StringFieldUpdateOperationsInput | string platform?: Prisma.StringFieldUpdateOperationsInput | string token?: Prisma.StringFieldUpdateOperationsInput | string pushProvider?: Prisma.StringFieldUpdateOperationsInput | string appVersion?: Prisma.NullableStringFieldUpdateOperationsInput | string | null lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type DeviceTokenSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean userId?: boolean tenantId?: boolean platform?: boolean token?: boolean pushProvider?: boolean appVersion?: boolean lastSeenAt?: boolean revokedAt?: boolean user?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.DeviceToken$tenantArgs }, ExtArgs["result"]["deviceToken"]> export type DeviceTokenSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean userId?: boolean tenantId?: boolean platform?: boolean token?: boolean pushProvider?: boolean appVersion?: boolean lastSeenAt?: boolean revokedAt?: boolean user?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.DeviceToken$tenantArgs }, ExtArgs["result"]["deviceToken"]> export type DeviceTokenSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean userId?: boolean tenantId?: boolean platform?: boolean token?: boolean pushProvider?: boolean appVersion?: boolean lastSeenAt?: boolean revokedAt?: boolean user?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.DeviceToken$tenantArgs }, ExtArgs["result"]["deviceToken"]> export type DeviceTokenSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean userId?: boolean tenantId?: boolean platform?: boolean token?: boolean pushProvider?: boolean appVersion?: boolean lastSeenAt?: boolean revokedAt?: boolean } export type DeviceTokenOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "userId" | "tenantId" | "platform" | "token" | "pushProvider" | "appVersion" | "lastSeenAt" | "revokedAt", ExtArgs["result"]["deviceToken"]> export type DeviceTokenInclude = { user?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.DeviceToken$tenantArgs } export type DeviceTokenIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.DeviceToken$tenantArgs } export type DeviceTokenIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs tenant?: boolean | Prisma.DeviceToken$tenantArgs } export type $DeviceTokenPayload = { name: "DeviceToken" objects: { user: Prisma.$UserPayload tenant: Prisma.$TenantPayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date userId: string tenantId: string | null platform: string token: string pushProvider: string appVersion: string | null lastSeenAt: Date revokedAt: Date | null }, ExtArgs["result"]["deviceToken"]> composites: {} } export type DeviceTokenGetPayload = runtime.Types.Result.GetResult export type DeviceTokenCountArgs = Omit & { select?: DeviceTokenCountAggregateInputType | true } export interface DeviceTokenDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['DeviceToken'], meta: { name: 'DeviceToken' } } /** * Find zero or one DeviceToken that matches the filter. * @param {DeviceTokenFindUniqueArgs} args - Arguments to find a DeviceToken * @example * // Get one DeviceToken * const deviceToken = await prisma.deviceToken.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one DeviceToken that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {DeviceTokenFindUniqueOrThrowArgs} args - Arguments to find a DeviceToken * @example * // Get one DeviceToken * const deviceToken = await prisma.deviceToken.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first DeviceToken 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 {DeviceTokenFindFirstArgs} args - Arguments to find a DeviceToken * @example * // Get one DeviceToken * const deviceToken = await prisma.deviceToken.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first DeviceToken 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 {DeviceTokenFindFirstOrThrowArgs} args - Arguments to find a DeviceToken * @example * // Get one DeviceToken * const deviceToken = await prisma.deviceToken.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more DeviceTokens 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 {DeviceTokenFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all DeviceTokens * const deviceTokens = await prisma.deviceToken.findMany() * * // Get first 10 DeviceTokens * const deviceTokens = await prisma.deviceToken.findMany({ take: 10 }) * * // Only select the `id` * const deviceTokenWithIdOnly = await prisma.deviceToken.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a DeviceToken. * @param {DeviceTokenCreateArgs} args - Arguments to create a DeviceToken. * @example * // Create one DeviceToken * const DeviceToken = await prisma.deviceToken.create({ * data: { * // ... data to create a DeviceToken * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many DeviceTokens. * @param {DeviceTokenCreateManyArgs} args - Arguments to create many DeviceTokens. * @example * // Create many DeviceTokens * const deviceToken = await prisma.deviceToken.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many DeviceTokens and returns the data saved in the database. * @param {DeviceTokenCreateManyAndReturnArgs} args - Arguments to create many DeviceTokens. * @example * // Create many DeviceTokens * const deviceToken = await prisma.deviceToken.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many DeviceTokens and only return the `id` * const deviceTokenWithIdOnly = await prisma.deviceToken.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 DeviceToken. * @param {DeviceTokenDeleteArgs} args - Arguments to delete one DeviceToken. * @example * // Delete one DeviceToken * const DeviceToken = await prisma.deviceToken.delete({ * where: { * // ... filter to delete one DeviceToken * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one DeviceToken. * @param {DeviceTokenUpdateArgs} args - Arguments to update one DeviceToken. * @example * // Update one DeviceToken * const deviceToken = await prisma.deviceToken.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more DeviceTokens. * @param {DeviceTokenDeleteManyArgs} args - Arguments to filter DeviceTokens to delete. * @example * // Delete a few DeviceTokens * const { count } = await prisma.deviceToken.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTokenUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many DeviceTokens * const deviceToken = await prisma.deviceToken.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more DeviceTokens and returns the data updated in the database. * @param {DeviceTokenUpdateManyAndReturnArgs} args - Arguments to update many DeviceTokens. * @example * // Update many DeviceTokens * const deviceToken = await prisma.deviceToken.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more DeviceTokens and only return the `id` * const deviceTokenWithIdOnly = await prisma.deviceToken.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 DeviceToken. * @param {DeviceTokenUpsertArgs} args - Arguments to update or create a DeviceToken. * @example * // Update or create a DeviceToken * const deviceToken = await prisma.deviceToken.upsert({ * create: { * // ... data to create a DeviceToken * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the DeviceToken we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DeviceTokenClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of DeviceTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTokenCountArgs} args - Arguments to filter DeviceTokens to count. * @example * // Count the number of DeviceTokens * const count = await prisma.deviceToken.count({ * where: { * // ... the filter for the DeviceTokens 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 DeviceToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTokenAggregateArgs} 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 DeviceToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DeviceTokenGroupByArgs} 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 DeviceTokenGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: DeviceTokenGroupByArgs['orderBy'] } : { orderBy?: DeviceTokenGroupByArgs['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 ? GetDeviceTokenGroupByPayload : Prisma.PrismaPromise /** * Fields of the DeviceToken model */ readonly fields: DeviceTokenFieldRefs; } /** * The delegate class that acts as a "Promise-like" for DeviceToken. * 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__DeviceTokenClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> tenant = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantClient, 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 DeviceToken model */ export interface DeviceTokenFieldRefs { readonly id: Prisma.FieldRef<"DeviceToken", 'String'> readonly createdAt: Prisma.FieldRef<"DeviceToken", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"DeviceToken", 'DateTime'> readonly userId: Prisma.FieldRef<"DeviceToken", 'String'> readonly tenantId: Prisma.FieldRef<"DeviceToken", 'String'> readonly platform: Prisma.FieldRef<"DeviceToken", 'String'> readonly token: Prisma.FieldRef<"DeviceToken", 'String'> readonly pushProvider: Prisma.FieldRef<"DeviceToken", 'String'> readonly appVersion: Prisma.FieldRef<"DeviceToken", 'String'> readonly lastSeenAt: Prisma.FieldRef<"DeviceToken", 'DateTime'> readonly revokedAt: Prisma.FieldRef<"DeviceToken", 'DateTime'> } // Custom InputTypes /** * DeviceToken findUnique */ export type DeviceTokenFindUniqueArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * Filter, which DeviceToken to fetch. */ where: Prisma.DeviceTokenWhereUniqueInput } /** * DeviceToken findUniqueOrThrow */ export type DeviceTokenFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * Filter, which DeviceToken to fetch. */ where: Prisma.DeviceTokenWhereUniqueInput } /** * DeviceToken findFirst */ export type DeviceTokenFindFirstArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * Filter, which DeviceToken to fetch. */ where?: Prisma.DeviceTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceTokens to fetch. */ orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceTokens. */ cursor?: Prisma.DeviceTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceTokens 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` DeviceTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceTokens. */ distinct?: Prisma.DeviceTokenScalarFieldEnum | Prisma.DeviceTokenScalarFieldEnum[] } /** * DeviceToken findFirstOrThrow */ export type DeviceTokenFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * Filter, which DeviceToken to fetch. */ where?: Prisma.DeviceTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceTokens to fetch. */ orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for DeviceTokens. */ cursor?: Prisma.DeviceTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceTokens 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` DeviceTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceTokens. */ distinct?: Prisma.DeviceTokenScalarFieldEnum | Prisma.DeviceTokenScalarFieldEnum[] } /** * DeviceToken findMany */ export type DeviceTokenFindManyArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * Filter, which DeviceTokens to fetch. */ where?: Prisma.DeviceTokenWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of DeviceTokens to fetch. */ orderBy?: Prisma.DeviceTokenOrderByWithRelationInput | Prisma.DeviceTokenOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing DeviceTokens. */ cursor?: Prisma.DeviceTokenWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` DeviceTokens 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` DeviceTokens. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of DeviceTokens. */ distinct?: Prisma.DeviceTokenScalarFieldEnum | Prisma.DeviceTokenScalarFieldEnum[] } /** * DeviceToken create */ export type DeviceTokenCreateArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * The data needed to create a DeviceToken. */ data: Prisma.XOR } /** * DeviceToken createMany */ export type DeviceTokenCreateManyArgs = { /** * The data used to create many DeviceTokens. */ data: Prisma.DeviceTokenCreateManyInput | Prisma.DeviceTokenCreateManyInput[] skipDuplicates?: boolean } /** * DeviceToken createManyAndReturn */ export type DeviceTokenCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelectCreateManyAndReturn | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * The data used to create many DeviceTokens. */ data: Prisma.DeviceTokenCreateManyInput | Prisma.DeviceTokenCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenIncludeCreateManyAndReturn | null } /** * DeviceToken update */ export type DeviceTokenUpdateArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * The data needed to update a DeviceToken. */ data: Prisma.XOR /** * Choose, which DeviceToken to update. */ where: Prisma.DeviceTokenWhereUniqueInput } /** * DeviceToken updateMany */ export type DeviceTokenUpdateManyArgs = { /** * The data used to update DeviceTokens. */ data: Prisma.XOR /** * Filter which DeviceTokens to update */ where?: Prisma.DeviceTokenWhereInput /** * Limit how many DeviceTokens to update. */ limit?: number } /** * DeviceToken updateManyAndReturn */ export type DeviceTokenUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelectUpdateManyAndReturn | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * The data used to update DeviceTokens. */ data: Prisma.XOR /** * Filter which DeviceTokens to update */ where?: Prisma.DeviceTokenWhereInput /** * Limit how many DeviceTokens to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenIncludeUpdateManyAndReturn | null } /** * DeviceToken upsert */ export type DeviceTokenUpsertArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * The filter to search for the DeviceToken to update in case it exists. */ where: Prisma.DeviceTokenWhereUniqueInput /** * In case the DeviceToken found by the `where` argument doesn't exist, create a new DeviceToken with this data. */ create: Prisma.XOR /** * In case the DeviceToken was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * DeviceToken delete */ export type DeviceTokenDeleteArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null /** * Filter which DeviceToken to delete. */ where: Prisma.DeviceTokenWhereUniqueInput } /** * DeviceToken deleteMany */ export type DeviceTokenDeleteManyArgs = { /** * Filter which DeviceTokens to delete */ where?: Prisma.DeviceTokenWhereInput /** * Limit how many DeviceTokens to delete. */ limit?: number } /** * DeviceToken.tenant */ export type DeviceToken$tenantArgs = { /** * Select specific fields to fetch from the Tenant */ select?: Prisma.TenantSelect | null /** * Omit specific fields from the Tenant */ omit?: Prisma.TenantOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInclude | null where?: Prisma.TenantWhereInput } /** * DeviceToken without action */ export type DeviceTokenDefaultArgs = { /** * Select specific fields to fetch from the DeviceToken */ select?: Prisma.DeviceTokenSelect | null /** * Omit specific fields from the DeviceToken */ omit?: Prisma.DeviceTokenOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.DeviceTokenInclude | null }