Files
psp_api/src/generated/prisma/models/UserDevices.ts
T

1247 lines
44 KiB
TypeScript
Raw Normal View History

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `UserDevices` 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.js"
import type * as Prisma from "../internal/prismaNamespace.js"
/**
* Model UserDevices
*
*/
export type UserDevicesModel = runtime.Types.Result.DefaultSelection<Prisma.$UserDevicesPayload>
export type AggregateUserDevices = {
_count: UserDevicesCountAggregateOutputType | null
_min: UserDevicesMinAggregateOutputType | null
_max: UserDevicesMaxAggregateOutputType | null
}
export type UserDevicesMinAggregateOutputType = {
account_id: string | null
app_version: string | null
build_number: string | null
uuid: string | null
platform: string | null
brand: string | null
model: string | null
device: string | null
os_version: string | null
sdk_version: string | null
release_number: string | null
browser_name: string | null
fcm_token: string | null
}
export type UserDevicesMaxAggregateOutputType = {
account_id: string | null
app_version: string | null
build_number: string | null
uuid: string | null
platform: string | null
brand: string | null
model: string | null
device: string | null
os_version: string | null
sdk_version: string | null
release_number: string | null
browser_name: string | null
fcm_token: string | null
}
export type UserDevicesCountAggregateOutputType = {
account_id: number
app_version: number
build_number: number
uuid: number
platform: number
brand: number
model: number
device: number
os_version: number
sdk_version: number
release_number: number
browser_name: number
fcm_token: number
_all: number
}
export type UserDevicesMinAggregateInputType = {
account_id?: true
app_version?: true
build_number?: true
uuid?: true
platform?: true
brand?: true
model?: true
device?: true
os_version?: true
sdk_version?: true
release_number?: true
browser_name?: true
fcm_token?: true
}
export type UserDevicesMaxAggregateInputType = {
account_id?: true
app_version?: true
build_number?: true
uuid?: true
platform?: true
brand?: true
model?: true
device?: true
os_version?: true
sdk_version?: true
release_number?: true
browser_name?: true
fcm_token?: true
}
export type UserDevicesCountAggregateInputType = {
account_id?: true
app_version?: true
build_number?: true
uuid?: true
platform?: true
brand?: true
model?: true
device?: true
os_version?: true
sdk_version?: true
release_number?: true
browser_name?: true
fcm_token?: true
_all?: true
}
export type UserDevicesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which UserDevices to aggregate.
*/
where?: Prisma.UserDevicesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserDevices to fetch.
*/
orderBy?: Prisma.UserDevicesOrderByWithRelationInput | Prisma.UserDevicesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.UserDevicesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserDevices 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` UserDevices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned UserDevices
**/
_count?: true | UserDevicesCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: UserDevicesMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: UserDevicesMaxAggregateInputType
}
export type GetUserDevicesAggregateType<T extends UserDevicesAggregateArgs> = {
[P in keyof T & keyof AggregateUserDevices]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateUserDevices[P]>
: Prisma.GetScalarType<T[P], AggregateUserDevices[P]>
}
export type UserDevicesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.UserDevicesWhereInput
orderBy?: Prisma.UserDevicesOrderByWithAggregationInput | Prisma.UserDevicesOrderByWithAggregationInput[]
by: Prisma.UserDevicesScalarFieldEnum[] | Prisma.UserDevicesScalarFieldEnum
having?: Prisma.UserDevicesScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: UserDevicesCountAggregateInputType | true
_min?: UserDevicesMinAggregateInputType
_max?: UserDevicesMaxAggregateInputType
}
export type UserDevicesGroupByOutputType = {
account_id: string | null
app_version: string
build_number: string
uuid: string
platform: string
brand: string
model: string
device: string
os_version: string
sdk_version: string
release_number: string
browser_name: string | null
fcm_token: string | null
_count: UserDevicesCountAggregateOutputType | null
_min: UserDevicesMinAggregateOutputType | null
_max: UserDevicesMaxAggregateOutputType | null
}
type GetUserDevicesGroupByPayload<T extends UserDevicesGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<UserDevicesGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof UserDevicesGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], UserDevicesGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], UserDevicesGroupByOutputType[P]>
}
>
>
export type UserDevicesWhereInput = {
AND?: Prisma.UserDevicesWhereInput | Prisma.UserDevicesWhereInput[]
OR?: Prisma.UserDevicesWhereInput[]
NOT?: Prisma.UserDevicesWhereInput | Prisma.UserDevicesWhereInput[]
account_id?: Prisma.StringNullableFilter<"UserDevices"> | string | null
app_version?: Prisma.StringFilter<"UserDevices"> | string
build_number?: Prisma.StringFilter<"UserDevices"> | string
uuid?: Prisma.StringFilter<"UserDevices"> | string
platform?: Prisma.StringFilter<"UserDevices"> | string
brand?: Prisma.StringFilter<"UserDevices"> | string
model?: Prisma.StringFilter<"UserDevices"> | string
device?: Prisma.StringFilter<"UserDevices"> | string
os_version?: Prisma.StringFilter<"UserDevices"> | string
sdk_version?: Prisma.StringFilter<"UserDevices"> | string
release_number?: Prisma.StringFilter<"UserDevices"> | string
browser_name?: Prisma.StringNullableFilter<"UserDevices"> | string | null
fcm_token?: Prisma.StringNullableFilter<"UserDevices"> | string | null
}
export type UserDevicesOrderByWithRelationInput = {
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
app_version?: Prisma.SortOrder
build_number?: Prisma.SortOrder
uuid?: Prisma.SortOrder
platform?: Prisma.SortOrder
brand?: Prisma.SortOrder
model?: Prisma.SortOrder
device?: Prisma.SortOrder
os_version?: Prisma.SortOrder
sdk_version?: Prisma.SortOrder
release_number?: Prisma.SortOrder
browser_name?: Prisma.SortOrderInput | Prisma.SortOrder
fcm_token?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.UserDevicesOrderByRelevanceInput
}
export type UserDevicesWhereUniqueInput = Prisma.AtLeast<{
uuid?: string
AND?: Prisma.UserDevicesWhereInput | Prisma.UserDevicesWhereInput[]
OR?: Prisma.UserDevicesWhereInput[]
NOT?: Prisma.UserDevicesWhereInput | Prisma.UserDevicesWhereInput[]
account_id?: Prisma.StringNullableFilter<"UserDevices"> | string | null
app_version?: Prisma.StringFilter<"UserDevices"> | string
build_number?: Prisma.StringFilter<"UserDevices"> | string
platform?: Prisma.StringFilter<"UserDevices"> | string
brand?: Prisma.StringFilter<"UserDevices"> | string
model?: Prisma.StringFilter<"UserDevices"> | string
device?: Prisma.StringFilter<"UserDevices"> | string
os_version?: Prisma.StringFilter<"UserDevices"> | string
sdk_version?: Prisma.StringFilter<"UserDevices"> | string
release_number?: Prisma.StringFilter<"UserDevices"> | string
browser_name?: Prisma.StringNullableFilter<"UserDevices"> | string | null
fcm_token?: Prisma.StringNullableFilter<"UserDevices"> | string | null
}, "uuid" | "uuid">
export type UserDevicesOrderByWithAggregationInput = {
account_id?: Prisma.SortOrderInput | Prisma.SortOrder
app_version?: Prisma.SortOrder
build_number?: Prisma.SortOrder
uuid?: Prisma.SortOrder
platform?: Prisma.SortOrder
brand?: Prisma.SortOrder
model?: Prisma.SortOrder
device?: Prisma.SortOrder
os_version?: Prisma.SortOrder
sdk_version?: Prisma.SortOrder
release_number?: Prisma.SortOrder
browser_name?: Prisma.SortOrderInput | Prisma.SortOrder
fcm_token?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.UserDevicesCountOrderByAggregateInput
_max?: Prisma.UserDevicesMaxOrderByAggregateInput
_min?: Prisma.UserDevicesMinOrderByAggregateInput
}
export type UserDevicesScalarWhereWithAggregatesInput = {
AND?: Prisma.UserDevicesScalarWhereWithAggregatesInput | Prisma.UserDevicesScalarWhereWithAggregatesInput[]
OR?: Prisma.UserDevicesScalarWhereWithAggregatesInput[]
NOT?: Prisma.UserDevicesScalarWhereWithAggregatesInput | Prisma.UserDevicesScalarWhereWithAggregatesInput[]
account_id?: Prisma.StringNullableWithAggregatesFilter<"UserDevices"> | string | null
app_version?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
build_number?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
uuid?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
platform?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
brand?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
model?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
device?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
os_version?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
sdk_version?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
release_number?: Prisma.StringWithAggregatesFilter<"UserDevices"> | string
browser_name?: Prisma.StringNullableWithAggregatesFilter<"UserDevices"> | string | null
fcm_token?: Prisma.StringNullableWithAggregatesFilter<"UserDevices"> | string | null
}
export type UserDevicesCreateInput = {
account_id?: string | null
app_version: string
build_number: string
uuid: string
platform: string
brand: string
model: string
device: string
os_version: string
sdk_version: string
release_number: string
browser_name?: string | null
fcm_token?: string | null
}
export type UserDevicesUncheckedCreateInput = {
account_id?: string | null
app_version: string
build_number: string
uuid: string
platform: string
brand: string
model: string
device: string
os_version: string
sdk_version: string
release_number: string
browser_name?: string | null
fcm_token?: string | null
}
export type UserDevicesUpdateInput = {
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
app_version?: Prisma.StringFieldUpdateOperationsInput | string
build_number?: Prisma.StringFieldUpdateOperationsInput | string
uuid?: Prisma.StringFieldUpdateOperationsInput | string
platform?: Prisma.StringFieldUpdateOperationsInput | string
brand?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
device?: Prisma.StringFieldUpdateOperationsInput | string
os_version?: Prisma.StringFieldUpdateOperationsInput | string
sdk_version?: Prisma.StringFieldUpdateOperationsInput | string
release_number?: Prisma.StringFieldUpdateOperationsInput | string
browser_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fcm_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type UserDevicesUncheckedUpdateInput = {
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
app_version?: Prisma.StringFieldUpdateOperationsInput | string
build_number?: Prisma.StringFieldUpdateOperationsInput | string
uuid?: Prisma.StringFieldUpdateOperationsInput | string
platform?: Prisma.StringFieldUpdateOperationsInput | string
brand?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
device?: Prisma.StringFieldUpdateOperationsInput | string
os_version?: Prisma.StringFieldUpdateOperationsInput | string
sdk_version?: Prisma.StringFieldUpdateOperationsInput | string
release_number?: Prisma.StringFieldUpdateOperationsInput | string
browser_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fcm_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type UserDevicesCreateManyInput = {
account_id?: string | null
app_version: string
build_number: string
uuid: string
platform: string
brand: string
model: string
device: string
os_version: string
sdk_version: string
release_number: string
browser_name?: string | null
fcm_token?: string | null
}
export type UserDevicesUpdateManyMutationInput = {
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
app_version?: Prisma.StringFieldUpdateOperationsInput | string
build_number?: Prisma.StringFieldUpdateOperationsInput | string
uuid?: Prisma.StringFieldUpdateOperationsInput | string
platform?: Prisma.StringFieldUpdateOperationsInput | string
brand?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
device?: Prisma.StringFieldUpdateOperationsInput | string
os_version?: Prisma.StringFieldUpdateOperationsInput | string
sdk_version?: Prisma.StringFieldUpdateOperationsInput | string
release_number?: Prisma.StringFieldUpdateOperationsInput | string
browser_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fcm_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type UserDevicesUncheckedUpdateManyInput = {
account_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
app_version?: Prisma.StringFieldUpdateOperationsInput | string
build_number?: Prisma.StringFieldUpdateOperationsInput | string
uuid?: Prisma.StringFieldUpdateOperationsInput | string
platform?: Prisma.StringFieldUpdateOperationsInput | string
brand?: Prisma.StringFieldUpdateOperationsInput | string
model?: Prisma.StringFieldUpdateOperationsInput | string
device?: Prisma.StringFieldUpdateOperationsInput | string
os_version?: Prisma.StringFieldUpdateOperationsInput | string
sdk_version?: Prisma.StringFieldUpdateOperationsInput | string
release_number?: Prisma.StringFieldUpdateOperationsInput | string
browser_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
fcm_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type UserDevicesOrderByRelevanceInput = {
fields: Prisma.UserDevicesOrderByRelevanceFieldEnum | Prisma.UserDevicesOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type UserDevicesCountOrderByAggregateInput = {
account_id?: Prisma.SortOrder
app_version?: Prisma.SortOrder
build_number?: Prisma.SortOrder
uuid?: Prisma.SortOrder
platform?: Prisma.SortOrder
brand?: Prisma.SortOrder
model?: Prisma.SortOrder
device?: Prisma.SortOrder
os_version?: Prisma.SortOrder
sdk_version?: Prisma.SortOrder
release_number?: Prisma.SortOrder
browser_name?: Prisma.SortOrder
fcm_token?: Prisma.SortOrder
}
export type UserDevicesMaxOrderByAggregateInput = {
account_id?: Prisma.SortOrder
app_version?: Prisma.SortOrder
build_number?: Prisma.SortOrder
uuid?: Prisma.SortOrder
platform?: Prisma.SortOrder
brand?: Prisma.SortOrder
model?: Prisma.SortOrder
device?: Prisma.SortOrder
os_version?: Prisma.SortOrder
sdk_version?: Prisma.SortOrder
release_number?: Prisma.SortOrder
browser_name?: Prisma.SortOrder
fcm_token?: Prisma.SortOrder
}
export type UserDevicesMinOrderByAggregateInput = {
account_id?: Prisma.SortOrder
app_version?: Prisma.SortOrder
build_number?: Prisma.SortOrder
uuid?: Prisma.SortOrder
platform?: Prisma.SortOrder
brand?: Prisma.SortOrder
model?: Prisma.SortOrder
device?: Prisma.SortOrder
os_version?: Prisma.SortOrder
sdk_version?: Prisma.SortOrder
release_number?: Prisma.SortOrder
browser_name?: Prisma.SortOrder
fcm_token?: Prisma.SortOrder
}
export type UserDevicesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
account_id?: boolean
app_version?: boolean
build_number?: boolean
uuid?: boolean
platform?: boolean
brand?: boolean
model?: boolean
device?: boolean
os_version?: boolean
sdk_version?: boolean
release_number?: boolean
browser_name?: boolean
fcm_token?: boolean
}, ExtArgs["result"]["userDevices"]>
export type UserDevicesSelectScalar = {
account_id?: boolean
app_version?: boolean
build_number?: boolean
uuid?: boolean
platform?: boolean
brand?: boolean
model?: boolean
device?: boolean
os_version?: boolean
sdk_version?: boolean
release_number?: boolean
browser_name?: boolean
fcm_token?: boolean
}
export type UserDevicesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"account_id" | "app_version" | "build_number" | "uuid" | "platform" | "brand" | "model" | "device" | "os_version" | "sdk_version" | "release_number" | "browser_name" | "fcm_token", ExtArgs["result"]["userDevices"]>
export type $UserDevicesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "UserDevices"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
account_id: string | null
app_version: string
build_number: string
uuid: string
platform: string
brand: string
model: string
device: string
os_version: string
sdk_version: string
release_number: string
browser_name: string | null
fcm_token: string | null
}, ExtArgs["result"]["userDevices"]>
composites: {}
}
export type UserDevicesGetPayload<S extends boolean | null | undefined | UserDevicesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload, S>
export type UserDevicesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<UserDevicesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: UserDevicesCountAggregateInputType | true
}
export interface UserDevicesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserDevices'], meta: { name: 'UserDevices' } }
/**
* Find zero or one UserDevices that matches the filter.
* @param {UserDevicesFindUniqueArgs} args - Arguments to find a UserDevices
* @example
* // Get one UserDevices
* const userDevices = await prisma.userDevices.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends UserDevicesFindUniqueArgs>(args: Prisma.SelectSubset<T, UserDevicesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserDevicesClient<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one UserDevices that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {UserDevicesFindUniqueOrThrowArgs} args - Arguments to find a UserDevices
* @example
* // Get one UserDevices
* const userDevices = await prisma.userDevices.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends UserDevicesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserDevicesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserDevicesClient<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first UserDevices 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 {UserDevicesFindFirstArgs} args - Arguments to find a UserDevices
* @example
* // Get one UserDevices
* const userDevices = await prisma.userDevices.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends UserDevicesFindFirstArgs>(args?: Prisma.SelectSubset<T, UserDevicesFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserDevicesClient<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first UserDevices 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 {UserDevicesFindFirstOrThrowArgs} args - Arguments to find a UserDevices
* @example
* // Get one UserDevices
* const userDevices = await prisma.userDevices.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends UserDevicesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserDevicesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserDevicesClient<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more UserDevices 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 {UserDevicesFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all UserDevices
* const userDevices = await prisma.userDevices.findMany()
*
* // Get first 10 UserDevices
* const userDevices = await prisma.userDevices.findMany({ take: 10 })
*
* // Only select the `account_id`
* const userDevicesWithAccount_idOnly = await prisma.userDevices.findMany({ select: { account_id: true } })
*
*/
findMany<T extends UserDevicesFindManyArgs>(args?: Prisma.SelectSubset<T, UserDevicesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a UserDevices.
* @param {UserDevicesCreateArgs} args - Arguments to create a UserDevices.
* @example
* // Create one UserDevices
* const UserDevices = await prisma.userDevices.create({
* data: {
* // ... data to create a UserDevices
* }
* })
*
*/
create<T extends UserDevicesCreateArgs>(args: Prisma.SelectSubset<T, UserDevicesCreateArgs<ExtArgs>>): Prisma.Prisma__UserDevicesClient<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many UserDevices.
* @param {UserDevicesCreateManyArgs} args - Arguments to create many UserDevices.
* @example
* // Create many UserDevices
* const userDevices = await prisma.userDevices.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends UserDevicesCreateManyArgs>(args?: Prisma.SelectSubset<T, UserDevicesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a UserDevices.
* @param {UserDevicesDeleteArgs} args - Arguments to delete one UserDevices.
* @example
* // Delete one UserDevices
* const UserDevices = await prisma.userDevices.delete({
* where: {
* // ... filter to delete one UserDevices
* }
* })
*
*/
delete<T extends UserDevicesDeleteArgs>(args: Prisma.SelectSubset<T, UserDevicesDeleteArgs<ExtArgs>>): Prisma.Prisma__UserDevicesClient<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one UserDevices.
* @param {UserDevicesUpdateArgs} args - Arguments to update one UserDevices.
* @example
* // Update one UserDevices
* const userDevices = await prisma.userDevices.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends UserDevicesUpdateArgs>(args: Prisma.SelectSubset<T, UserDevicesUpdateArgs<ExtArgs>>): Prisma.Prisma__UserDevicesClient<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more UserDevices.
* @param {UserDevicesDeleteManyArgs} args - Arguments to filter UserDevices to delete.
* @example
* // Delete a few UserDevices
* const { count } = await prisma.userDevices.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends UserDevicesDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDevicesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more UserDevices.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserDevicesUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many UserDevices
* const userDevices = await prisma.userDevices.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends UserDevicesUpdateManyArgs>(args: Prisma.SelectSubset<T, UserDevicesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one UserDevices.
* @param {UserDevicesUpsertArgs} args - Arguments to update or create a UserDevices.
* @example
* // Update or create a UserDevices
* const userDevices = await prisma.userDevices.upsert({
* create: {
* // ... data to create a UserDevices
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the UserDevices we want to update
* }
* })
*/
upsert<T extends UserDevicesUpsertArgs>(args: Prisma.SelectSubset<T, UserDevicesUpsertArgs<ExtArgs>>): Prisma.Prisma__UserDevicesClient<runtime.Types.Result.GetResult<Prisma.$UserDevicesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of UserDevices.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserDevicesCountArgs} args - Arguments to filter UserDevices to count.
* @example
* // Count the number of UserDevices
* const count = await prisma.userDevices.count({
* where: {
* // ... the filter for the UserDevices we want to count
* }
* })
**/
count<T extends UserDevicesCountArgs>(
args?: Prisma.Subset<T, UserDevicesCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], UserDevicesCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a UserDevices.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserDevicesAggregateArgs} 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 UserDevicesAggregateArgs>(args: Prisma.Subset<T, UserDevicesAggregateArgs>): Prisma.PrismaPromise<GetUserDevicesAggregateType<T>>
/**
* Group by UserDevices.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {UserDevicesGroupByArgs} 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 UserDevicesGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: UserDevicesGroupByArgs['orderBy'] }
: { orderBy?: UserDevicesGroupByArgs['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, UserDevicesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserDevicesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the UserDevices model
*/
readonly fields: UserDevicesFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for UserDevices.
* 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__UserDevicesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* 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 UserDevices model
*/
export interface UserDevicesFieldRefs {
readonly account_id: Prisma.FieldRef<"UserDevices", 'String'>
readonly app_version: Prisma.FieldRef<"UserDevices", 'String'>
readonly build_number: Prisma.FieldRef<"UserDevices", 'String'>
readonly uuid: Prisma.FieldRef<"UserDevices", 'String'>
readonly platform: Prisma.FieldRef<"UserDevices", 'String'>
readonly brand: Prisma.FieldRef<"UserDevices", 'String'>
readonly model: Prisma.FieldRef<"UserDevices", 'String'>
readonly device: Prisma.FieldRef<"UserDevices", 'String'>
readonly os_version: Prisma.FieldRef<"UserDevices", 'String'>
readonly sdk_version: Prisma.FieldRef<"UserDevices", 'String'>
readonly release_number: Prisma.FieldRef<"UserDevices", 'String'>
readonly browser_name: Prisma.FieldRef<"UserDevices", 'String'>
readonly fcm_token: Prisma.FieldRef<"UserDevices", 'String'>
}
// Custom InputTypes
/**
* UserDevices findUnique
*/
export type UserDevicesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* Filter, which UserDevices to fetch.
*/
where: Prisma.UserDevicesWhereUniqueInput
}
/**
* UserDevices findUniqueOrThrow
*/
export type UserDevicesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* Filter, which UserDevices to fetch.
*/
where: Prisma.UserDevicesWhereUniqueInput
}
/**
* UserDevices findFirst
*/
export type UserDevicesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* Filter, which UserDevices to fetch.
*/
where?: Prisma.UserDevicesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserDevices to fetch.
*/
orderBy?: Prisma.UserDevicesOrderByWithRelationInput | Prisma.UserDevicesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for UserDevices.
*/
cursor?: Prisma.UserDevicesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserDevices 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` UserDevices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UserDevices.
*/
distinct?: Prisma.UserDevicesScalarFieldEnum | Prisma.UserDevicesScalarFieldEnum[]
}
/**
* UserDevices findFirstOrThrow
*/
export type UserDevicesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* Filter, which UserDevices to fetch.
*/
where?: Prisma.UserDevicesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserDevices to fetch.
*/
orderBy?: Prisma.UserDevicesOrderByWithRelationInput | Prisma.UserDevicesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for UserDevices.
*/
cursor?: Prisma.UserDevicesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserDevices 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` UserDevices.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of UserDevices.
*/
distinct?: Prisma.UserDevicesScalarFieldEnum | Prisma.UserDevicesScalarFieldEnum[]
}
/**
* UserDevices findMany
*/
export type UserDevicesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* Filter, which UserDevices to fetch.
*/
where?: Prisma.UserDevicesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of UserDevices to fetch.
*/
orderBy?: Prisma.UserDevicesOrderByWithRelationInput | Prisma.UserDevicesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing UserDevices.
*/
cursor?: Prisma.UserDevicesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` UserDevices 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` UserDevices.
*/
skip?: number
distinct?: Prisma.UserDevicesScalarFieldEnum | Prisma.UserDevicesScalarFieldEnum[]
}
/**
* UserDevices create
*/
export type UserDevicesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* The data needed to create a UserDevices.
*/
data: Prisma.XOR<Prisma.UserDevicesCreateInput, Prisma.UserDevicesUncheckedCreateInput>
}
/**
* UserDevices createMany
*/
export type UserDevicesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many UserDevices.
*/
data: Prisma.UserDevicesCreateManyInput | Prisma.UserDevicesCreateManyInput[]
skipDuplicates?: boolean
}
/**
* UserDevices update
*/
export type UserDevicesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* The data needed to update a UserDevices.
*/
data: Prisma.XOR<Prisma.UserDevicesUpdateInput, Prisma.UserDevicesUncheckedUpdateInput>
/**
* Choose, which UserDevices to update.
*/
where: Prisma.UserDevicesWhereUniqueInput
}
/**
* UserDevices updateMany
*/
export type UserDevicesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update UserDevices.
*/
data: Prisma.XOR<Prisma.UserDevicesUpdateManyMutationInput, Prisma.UserDevicesUncheckedUpdateManyInput>
/**
* Filter which UserDevices to update
*/
where?: Prisma.UserDevicesWhereInput
/**
* Limit how many UserDevices to update.
*/
limit?: number
}
/**
* UserDevices upsert
*/
export type UserDevicesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* The filter to search for the UserDevices to update in case it exists.
*/
where: Prisma.UserDevicesWhereUniqueInput
/**
* In case the UserDevices found by the `where` argument doesn't exist, create a new UserDevices with this data.
*/
create: Prisma.XOR<Prisma.UserDevicesCreateInput, Prisma.UserDevicesUncheckedCreateInput>
/**
* In case the UserDevices was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.UserDevicesUpdateInput, Prisma.UserDevicesUncheckedUpdateInput>
}
/**
* UserDevices delete
*/
export type UserDevicesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
/**
* Filter which UserDevices to delete.
*/
where: Prisma.UserDevicesWhereUniqueInput
}
/**
* UserDevices deleteMany
*/
export type UserDevicesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which UserDevices to delete
*/
where?: Prisma.UserDevicesWhereInput
/**
* Limit how many UserDevices to delete.
*/
limit?: number
}
/**
* UserDevices without action
*/
export type UserDevicesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the UserDevices
*/
select?: Prisma.UserDevicesSelect<ExtArgs> | null
/**
* Omit specific fields from the UserDevices
*/
omit?: Prisma.UserDevicesOmit<ExtArgs> | null
}