/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateUserDevices]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type UserDevicesGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UserDevicesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = 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 = { 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 = runtime.Types.Result.GetResult export type UserDevicesCountArgs = Omit & { select?: UserDevicesCountAggregateInputType | true } export interface UserDevicesDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__UserDevicesClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserDevicesClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UserDevicesClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__UserDevicesClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserDevicesClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserDevicesClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserDevicesClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__UserDevicesClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: UserDevicesGroupByArgs['orderBy'] } : { orderBy?: UserDevicesGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserDevicesGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | null /** * Filter, which UserDevices to fetch. */ where: Prisma.UserDevicesWhereUniqueInput } /** * UserDevices findUniqueOrThrow */ export type UserDevicesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | null /** * Filter, which UserDevices to fetch. */ where: Prisma.UserDevicesWhereUniqueInput } /** * UserDevices findFirst */ export type UserDevicesFindFirstArgs = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | 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 = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | 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 = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | 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 = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | null /** * The data needed to create a UserDevices. */ data: Prisma.XOR } /** * UserDevices createMany */ export type UserDevicesCreateManyArgs = { /** * The data used to create many UserDevices. */ data: Prisma.UserDevicesCreateManyInput | Prisma.UserDevicesCreateManyInput[] skipDuplicates?: boolean } /** * UserDevices update */ export type UserDevicesUpdateArgs = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | null /** * The data needed to update a UserDevices. */ data: Prisma.XOR /** * Choose, which UserDevices to update. */ where: Prisma.UserDevicesWhereUniqueInput } /** * UserDevices updateMany */ export type UserDevicesUpdateManyArgs = { /** * The data used to update UserDevices. */ data: Prisma.XOR /** * Filter which UserDevices to update */ where?: Prisma.UserDevicesWhereInput /** * Limit how many UserDevices to update. */ limit?: number } /** * UserDevices upsert */ export type UserDevicesUpsertArgs = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | 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 /** * In case the UserDevices was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * UserDevices delete */ export type UserDevicesDeleteArgs = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | null /** * Filter which UserDevices to delete. */ where: Prisma.UserDevicesWhereUniqueInput } /** * UserDevices deleteMany */ export type UserDevicesDeleteManyArgs = { /** * Filter which UserDevices to delete */ where?: Prisma.UserDevicesWhereInput /** * Limit how many UserDevices to delete. */ limit?: number } /** * UserDevices without action */ export type UserDevicesDefaultArgs = { /** * Select specific fields to fetch from the UserDevices */ select?: Prisma.UserDevicesSelect | null /** * Omit specific fields from the UserDevices */ omit?: Prisma.UserDevicesOmit | null }