Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/DeviceToken.ts
T

1731 lines
68 KiB
TypeScript

/* !!! 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<Prisma.$DeviceTokenPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends DeviceTokenAggregateArgs> = {
[P in keyof T & keyof AggregateDeviceToken]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateDeviceToken[P]>
: Prisma.GetScalarType<T[P], AggregateDeviceToken[P]>
}
export type DeviceTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends DeviceTokenGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<DeviceTokenGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof DeviceTokenGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], DeviceTokenGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], DeviceTokenGroupByOutputType[P]>
}
>
>
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<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | 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<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
tenant?: Prisma.XOR<Prisma.TenantNullableScalarRelationFilter, Prisma.TenantWhereInput> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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<Prisma.DeviceTokenCreateWithoutUserInput, Prisma.DeviceTokenUncheckedCreateWithoutUserInput>
}
export type DeviceTokenCreateManyUserInputEnvelope = {
data: Prisma.DeviceTokenCreateManyUserInput | Prisma.DeviceTokenCreateManyUserInput[]
skipDuplicates?: boolean
}
export type DeviceTokenUpsertWithWhereUniqueWithoutUserInput = {
where: Prisma.DeviceTokenWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceTokenUpdateWithoutUserInput, Prisma.DeviceTokenUncheckedUpdateWithoutUserInput>
create: Prisma.XOR<Prisma.DeviceTokenCreateWithoutUserInput, Prisma.DeviceTokenUncheckedCreateWithoutUserInput>
}
export type DeviceTokenUpdateWithWhereUniqueWithoutUserInput = {
where: Prisma.DeviceTokenWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceTokenUpdateWithoutUserInput, Prisma.DeviceTokenUncheckedUpdateWithoutUserInput>
}
export type DeviceTokenUpdateManyWithWhereWithoutUserInput = {
where: Prisma.DeviceTokenScalarWhereInput
data: Prisma.XOR<Prisma.DeviceTokenUpdateManyMutationInput, Prisma.DeviceTokenUncheckedUpdateManyWithoutUserInput>
}
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<Prisma.DeviceTokenCreateWithoutTenantInput, Prisma.DeviceTokenUncheckedCreateWithoutTenantInput>
}
export type DeviceTokenCreateManyTenantInputEnvelope = {
data: Prisma.DeviceTokenCreateManyTenantInput | Prisma.DeviceTokenCreateManyTenantInput[]
skipDuplicates?: boolean
}
export type DeviceTokenUpsertWithWhereUniqueWithoutTenantInput = {
where: Prisma.DeviceTokenWhereUniqueInput
update: Prisma.XOR<Prisma.DeviceTokenUpdateWithoutTenantInput, Prisma.DeviceTokenUncheckedUpdateWithoutTenantInput>
create: Prisma.XOR<Prisma.DeviceTokenCreateWithoutTenantInput, Prisma.DeviceTokenUncheckedCreateWithoutTenantInput>
}
export type DeviceTokenUpdateWithWhereUniqueWithoutTenantInput = {
where: Prisma.DeviceTokenWhereUniqueInput
data: Prisma.XOR<Prisma.DeviceTokenUpdateWithoutTenantInput, Prisma.DeviceTokenUncheckedUpdateWithoutTenantInput>
}
export type DeviceTokenUpdateManyWithWhereWithoutTenantInput = {
where: Prisma.DeviceTokenScalarWhereInput
data: Prisma.XOR<Prisma.DeviceTokenUpdateManyMutationInput, Prisma.DeviceTokenUncheckedUpdateManyWithoutTenantInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
tenant?: boolean | Prisma.DeviceToken$tenantArgs<ExtArgs>
}, ExtArgs["result"]["deviceToken"]>
export type DeviceTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
tenant?: boolean | Prisma.DeviceToken$tenantArgs<ExtArgs>
}, ExtArgs["result"]["deviceToken"]>
export type DeviceTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
tenant?: boolean | Prisma.DeviceToken$tenantArgs<ExtArgs>
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "userId" | "tenantId" | "platform" | "token" | "pushProvider" | "appVersion" | "lastSeenAt" | "revokedAt", ExtArgs["result"]["deviceToken"]>
export type DeviceTokenInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.DeviceToken$tenantArgs<ExtArgs>
}
export type DeviceTokenIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.DeviceToken$tenantArgs<ExtArgs>
}
export type DeviceTokenIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
tenant?: boolean | Prisma.DeviceToken$tenantArgs<ExtArgs>
}
export type $DeviceTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "DeviceToken"
objects: {
user: Prisma.$UserPayload<ExtArgs>
tenant: Prisma.$TenantPayload<ExtArgs> | 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<S extends boolean | null | undefined | DeviceTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload, S>
export type DeviceTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<DeviceTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: DeviceTokenCountAggregateInputType | true
}
export interface DeviceTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends DeviceTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, DeviceTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DeviceTokenClient<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DeviceTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeviceTokenClient<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, DeviceTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__DeviceTokenClient<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DeviceTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeviceTokenClient<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenFindManyArgs>(args?: Prisma.SelectSubset<T, DeviceTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenCreateArgs>(args: Prisma.SelectSubset<T, DeviceTokenCreateArgs<ExtArgs>>): Prisma.Prisma__DeviceTokenClient<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, DeviceTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends DeviceTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DeviceTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenDeleteArgs>(args: Prisma.SelectSubset<T, DeviceTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__DeviceTokenClient<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenUpdateArgs>(args: Prisma.SelectSubset<T, DeviceTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__DeviceTokenClient<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, DeviceTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends DeviceTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, DeviceTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends DeviceTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DeviceTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenUpsertArgs>(args: Prisma.SelectSubset<T, DeviceTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__DeviceTokenClient<runtime.Types.Result.GetResult<Prisma.$DeviceTokenPayload<ExtArgs>, 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<T extends DeviceTokenCountArgs>(
args?: Prisma.Subset<T, DeviceTokenCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], DeviceTokenCountAggregateOutputType>
: 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<T extends DeviceTokenAggregateArgs>(args: Prisma.Subset<T, DeviceTokenAggregateArgs>): Prisma.PrismaPromise<GetDeviceTokenAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: DeviceTokenGroupByArgs['orderBy'] }
: { orderBy?: DeviceTokenGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, DeviceTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDeviceTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
tenant<T extends Prisma.DeviceToken$tenantArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DeviceToken$tenantArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | null
/**
* Filter, which DeviceToken to fetch.
*/
where: Prisma.DeviceTokenWhereUniqueInput
}
/**
* DeviceToken findUniqueOrThrow
*/
export type DeviceTokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | null
/**
* Filter, which DeviceToken to fetch.
*/
where: Prisma.DeviceTokenWhereUniqueInput
}
/**
* DeviceToken findFirst
*/
export type DeviceTokenFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | null
/**
* The data needed to create a DeviceToken.
*/
data: Prisma.XOR<Prisma.DeviceTokenCreateInput, Prisma.DeviceTokenUncheckedCreateInput>
}
/**
* DeviceToken createMany
*/
export type DeviceTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many DeviceTokens.
*/
data: Prisma.DeviceTokenCreateManyInput | Prisma.DeviceTokenCreateManyInput[]
skipDuplicates?: boolean
}
/**
* DeviceToken createManyAndReturn
*/
export type DeviceTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* DeviceToken update
*/
export type DeviceTokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | null
/**
* The data needed to update a DeviceToken.
*/
data: Prisma.XOR<Prisma.DeviceTokenUpdateInput, Prisma.DeviceTokenUncheckedUpdateInput>
/**
* Choose, which DeviceToken to update.
*/
where: Prisma.DeviceTokenWhereUniqueInput
}
/**
* DeviceToken updateMany
*/
export type DeviceTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update DeviceTokens.
*/
data: Prisma.XOR<Prisma.DeviceTokenUpdateManyMutationInput, Prisma.DeviceTokenUncheckedUpdateManyInput>
/**
* Filter which DeviceTokens to update
*/
where?: Prisma.DeviceTokenWhereInput
/**
* Limit how many DeviceTokens to update.
*/
limit?: number
}
/**
* DeviceToken updateManyAndReturn
*/
export type DeviceTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* The data used to update DeviceTokens.
*/
data: Prisma.XOR<Prisma.DeviceTokenUpdateManyMutationInput, Prisma.DeviceTokenUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* DeviceToken upsert
*/
export type DeviceTokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | 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<Prisma.DeviceTokenCreateInput, Prisma.DeviceTokenUncheckedCreateInput>
/**
* In case the DeviceToken was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.DeviceTokenUpdateInput, Prisma.DeviceTokenUncheckedUpdateInput>
}
/**
* DeviceToken delete
*/
export type DeviceTokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | null
/**
* Filter which DeviceToken to delete.
*/
where: Prisma.DeviceTokenWhereUniqueInput
}
/**
* DeviceToken deleteMany
*/
export type DeviceTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which DeviceTokens to delete
*/
where?: Prisma.DeviceTokenWhereInput
/**
* Limit how many DeviceTokens to delete.
*/
limit?: number
}
/**
* DeviceToken.tenant
*/
export type DeviceToken$tenantArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Tenant
*/
select?: Prisma.TenantSelect<ExtArgs> | null
/**
* Omit specific fields from the Tenant
*/
omit?: Prisma.TenantOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TenantInclude<ExtArgs> | null
where?: Prisma.TenantWhereInput
}
/**
* DeviceToken without action
*/
export type DeviceTokenDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the DeviceToken
*/
select?: Prisma.DeviceTokenSelect<ExtArgs> | null
/**
* Omit specific fields from the DeviceToken
*/
omit?: Prisma.DeviceTokenOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.DeviceTokenInclude<ExtArgs> | null
}