/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `users` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model users * */ export type usersModel = runtime.Types.Result.DefaultSelection export type AggregateUsers = { _count: UsersCountAggregateOutputType | null _avg: UsersAvgAggregateOutputType | null _sum: UsersSumAggregateOutputType | null _min: UsersMinAggregateOutputType | null _max: UsersMaxAggregateOutputType | null } export type UsersAvgAggregateOutputType = { created_at: number | null updated_at: number | null last_login: number | null } export type UsersSumAggregateOutputType = { created_at: bigint | null updated_at: bigint | null last_login: bigint | null } export type UsersMinAggregateOutputType = { id: string | null email: string | null password: string | null type: string | null role: string | null is_verified: boolean | null verification_token: string | null otp_token: string | null refresh_token: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null last_login: bigint | null } export type UsersMaxAggregateOutputType = { id: string | null email: string | null password: string | null type: string | null role: string | null is_verified: boolean | null verification_token: string | null otp_token: string | null refresh_token: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null last_login: bigint | null } export type UsersCountAggregateOutputType = { id: number email: number password: number type: number role: number is_verified: number verification_token: number otp_token: number refresh_token: number created_at: number updated_at: number created_by: number last_login: number _all: number } export type UsersAvgAggregateInputType = { created_at?: true updated_at?: true last_login?: true } export type UsersSumAggregateInputType = { created_at?: true updated_at?: true last_login?: true } export type UsersMinAggregateInputType = { id?: true email?: true password?: true type?: true role?: true is_verified?: true verification_token?: true otp_token?: true refresh_token?: true created_at?: true updated_at?: true created_by?: true last_login?: true } export type UsersMaxAggregateInputType = { id?: true email?: true password?: true type?: true role?: true is_verified?: true verification_token?: true otp_token?: true refresh_token?: true created_at?: true updated_at?: true created_by?: true last_login?: true } export type UsersCountAggregateInputType = { id?: true email?: true password?: true type?: true role?: true is_verified?: true verification_token?: true otp_token?: true refresh_token?: true created_at?: true updated_at?: true created_by?: true last_login?: true _all?: true } export type UsersAggregateArgs = { /** * Filter which users to aggregate. */ where?: Prisma.usersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of users to fetch. */ orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.usersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` users 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` users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned users **/ _count?: true | UsersCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: UsersAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: UsersSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UsersMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UsersMaxAggregateInputType } export type GetUsersAggregateType = { [P in keyof T & keyof AggregateUsers]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type usersGroupByArgs = { where?: Prisma.usersWhereInput orderBy?: Prisma.usersOrderByWithAggregationInput | Prisma.usersOrderByWithAggregationInput[] by: Prisma.UsersScalarFieldEnum[] | Prisma.UsersScalarFieldEnum having?: Prisma.usersScalarWhereWithAggregatesInput take?: number skip?: number _count?: UsersCountAggregateInputType | true _avg?: UsersAvgAggregateInputType _sum?: UsersSumAggregateInputType _min?: UsersMinAggregateInputType _max?: UsersMaxAggregateInputType } export type UsersGroupByOutputType = { id: string email: string password: string type: string role: string is_verified: boolean | null verification_token: string | null otp_token: string | null refresh_token: string | null created_at: bigint | null updated_at: bigint | null created_by: string last_login: bigint _count: UsersCountAggregateOutputType | null _avg: UsersAvgAggregateOutputType | null _sum: UsersSumAggregateOutputType | null _min: UsersMinAggregateOutputType | null _max: UsersMaxAggregateOutputType | null } type GetUsersGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UsersGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type usersWhereInput = { AND?: Prisma.usersWhereInput | Prisma.usersWhereInput[] OR?: Prisma.usersWhereInput[] NOT?: Prisma.usersWhereInput | Prisma.usersWhereInput[] id?: Prisma.StringFilter<"users"> | string email?: Prisma.StringFilter<"users"> | string password?: Prisma.StringFilter<"users"> | string type?: Prisma.StringFilter<"users"> | string role?: Prisma.StringFilter<"users"> | string is_verified?: Prisma.BoolNullableFilter<"users"> | boolean | null verification_token?: Prisma.StringNullableFilter<"users"> | string | null otp_token?: Prisma.StringNullableFilter<"users"> | string | null refresh_token?: Prisma.StringNullableFilter<"users"> | string | null created_at?: Prisma.BigIntNullableFilter<"users"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"users"> | bigint | number | null created_by?: Prisma.StringFilter<"users"> | string last_login?: Prisma.BigIntFilter<"users"> | bigint | number } export type usersOrderByWithRelationInput = { id?: Prisma.SortOrder email?: Prisma.SortOrder password?: Prisma.SortOrder type?: Prisma.SortOrder role?: Prisma.SortOrder is_verified?: Prisma.SortOrderInput | Prisma.SortOrder verification_token?: Prisma.SortOrderInput | Prisma.SortOrder otp_token?: Prisma.SortOrderInput | Prisma.SortOrder refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder created_by?: Prisma.SortOrder last_login?: Prisma.SortOrder } export type usersWhereUniqueInput = Prisma.AtLeast<{ id?: string email?: string AND?: Prisma.usersWhereInput | Prisma.usersWhereInput[] OR?: Prisma.usersWhereInput[] NOT?: Prisma.usersWhereInput | Prisma.usersWhereInput[] password?: Prisma.StringFilter<"users"> | string type?: Prisma.StringFilter<"users"> | string role?: Prisma.StringFilter<"users"> | string is_verified?: Prisma.BoolNullableFilter<"users"> | boolean | null verification_token?: Prisma.StringNullableFilter<"users"> | string | null otp_token?: Prisma.StringNullableFilter<"users"> | string | null refresh_token?: Prisma.StringNullableFilter<"users"> | string | null created_at?: Prisma.BigIntNullableFilter<"users"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"users"> | bigint | number | null created_by?: Prisma.StringFilter<"users"> | string last_login?: Prisma.BigIntFilter<"users"> | bigint | number }, "id" | "email"> export type usersOrderByWithAggregationInput = { id?: Prisma.SortOrder email?: Prisma.SortOrder password?: Prisma.SortOrder type?: Prisma.SortOrder role?: Prisma.SortOrder is_verified?: Prisma.SortOrderInput | Prisma.SortOrder verification_token?: Prisma.SortOrderInput | Prisma.SortOrder otp_token?: Prisma.SortOrderInput | Prisma.SortOrder refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder created_by?: Prisma.SortOrder last_login?: Prisma.SortOrder _count?: Prisma.usersCountOrderByAggregateInput _avg?: Prisma.usersAvgOrderByAggregateInput _max?: Prisma.usersMaxOrderByAggregateInput _min?: Prisma.usersMinOrderByAggregateInput _sum?: Prisma.usersSumOrderByAggregateInput } export type usersScalarWhereWithAggregatesInput = { AND?: Prisma.usersScalarWhereWithAggregatesInput | Prisma.usersScalarWhereWithAggregatesInput[] OR?: Prisma.usersScalarWhereWithAggregatesInput[] NOT?: Prisma.usersScalarWhereWithAggregatesInput | Prisma.usersScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"users"> | string email?: Prisma.StringWithAggregatesFilter<"users"> | string password?: Prisma.StringWithAggregatesFilter<"users"> | string type?: Prisma.StringWithAggregatesFilter<"users"> | string role?: Prisma.StringWithAggregatesFilter<"users"> | string is_verified?: Prisma.BoolNullableWithAggregatesFilter<"users"> | boolean | null verification_token?: Prisma.StringNullableWithAggregatesFilter<"users"> | string | null otp_token?: Prisma.StringNullableWithAggregatesFilter<"users"> | string | null refresh_token?: Prisma.StringNullableWithAggregatesFilter<"users"> | string | null created_at?: Prisma.BigIntNullableWithAggregatesFilter<"users"> | bigint | number | null updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"users"> | bigint | number | null created_by?: Prisma.StringWithAggregatesFilter<"users"> | string last_login?: Prisma.BigIntWithAggregatesFilter<"users"> | bigint | number } export type usersCreateInput = { id: string email: string password: string type: string role: string is_verified?: boolean | null verification_token?: string | null otp_token?: string | null refresh_token?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by: string last_login: bigint | number } export type usersUncheckedCreateInput = { id: string email: string password: string type: string role: string is_verified?: boolean | null verification_token?: string | null otp_token?: string | null refresh_token?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by: string last_login: bigint | number } export type usersUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.StringFieldUpdateOperationsInput | string is_verified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null verification_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null otp_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.StringFieldUpdateOperationsInput | string last_login?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type usersUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.StringFieldUpdateOperationsInput | string is_verified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null verification_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null otp_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.StringFieldUpdateOperationsInput | string last_login?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type usersCreateManyInput = { id: string email: string password: string type: string role: string is_verified?: boolean | null verification_token?: string | null otp_token?: string | null refresh_token?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by: string last_login: bigint | number } export type usersUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.StringFieldUpdateOperationsInput | string is_verified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null verification_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null otp_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.StringFieldUpdateOperationsInput | string last_login?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type usersUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string password?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string role?: Prisma.StringFieldUpdateOperationsInput | string is_verified?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null verification_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null otp_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.StringFieldUpdateOperationsInput | string last_login?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number } export type usersCountOrderByAggregateInput = { id?: Prisma.SortOrder email?: Prisma.SortOrder password?: Prisma.SortOrder type?: Prisma.SortOrder role?: Prisma.SortOrder is_verified?: Prisma.SortOrder verification_token?: Prisma.SortOrder otp_token?: Prisma.SortOrder refresh_token?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder last_login?: Prisma.SortOrder } export type usersAvgOrderByAggregateInput = { created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder last_login?: Prisma.SortOrder } export type usersMaxOrderByAggregateInput = { id?: Prisma.SortOrder email?: Prisma.SortOrder password?: Prisma.SortOrder type?: Prisma.SortOrder role?: Prisma.SortOrder is_verified?: Prisma.SortOrder verification_token?: Prisma.SortOrder otp_token?: Prisma.SortOrder refresh_token?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder last_login?: Prisma.SortOrder } export type usersMinOrderByAggregateInput = { id?: Prisma.SortOrder email?: Prisma.SortOrder password?: Prisma.SortOrder type?: Prisma.SortOrder role?: Prisma.SortOrder is_verified?: Prisma.SortOrder verification_token?: Prisma.SortOrder otp_token?: Prisma.SortOrder refresh_token?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder last_login?: Prisma.SortOrder } export type usersSumOrderByAggregateInput = { created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder last_login?: Prisma.SortOrder } export type usersSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean email?: boolean password?: boolean type?: boolean role?: boolean is_verified?: boolean verification_token?: boolean otp_token?: boolean refresh_token?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean last_login?: boolean }, ExtArgs["result"]["users"]> export type usersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean email?: boolean password?: boolean type?: boolean role?: boolean is_verified?: boolean verification_token?: boolean otp_token?: boolean refresh_token?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean last_login?: boolean }, ExtArgs["result"]["users"]> export type usersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean email?: boolean password?: boolean type?: boolean role?: boolean is_verified?: boolean verification_token?: boolean otp_token?: boolean refresh_token?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean last_login?: boolean }, ExtArgs["result"]["users"]> export type usersSelectScalar = { id?: boolean email?: boolean password?: boolean type?: boolean role?: boolean is_verified?: boolean verification_token?: boolean otp_token?: boolean refresh_token?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean last_login?: boolean } export type usersOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "password" | "type" | "role" | "is_verified" | "verification_token" | "otp_token" | "refresh_token" | "created_at" | "updated_at" | "created_by" | "last_login", ExtArgs["result"]["users"]> export type $usersPayload = { name: "users" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string email: string password: string type: string role: string is_verified: boolean | null verification_token: string | null otp_token: string | null refresh_token: string | null created_at: bigint | null updated_at: bigint | null created_by: string last_login: bigint }, ExtArgs["result"]["users"]> composites: {} } export type usersGetPayload = runtime.Types.Result.GetResult export type usersCountArgs = Omit & { select?: UsersCountAggregateInputType | true } export interface usersDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['users'], meta: { name: 'users' } } /** * Find zero or one Users that matches the filter. * @param {usersFindUniqueArgs} args - Arguments to find a Users * @example * // Get one Users * const users = await prisma.users.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Users that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {usersFindUniqueOrThrowArgs} args - Arguments to find a Users * @example * // Get one Users * const users = await prisma.users.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Users 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 {usersFindFirstArgs} args - Arguments to find a Users * @example * // Get one Users * const users = await prisma.users.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Users 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 {usersFindFirstOrThrowArgs} args - Arguments to find a Users * @example * // Get one Users * const users = await prisma.users.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Users 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 {usersFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.users.findMany() * * // Get first 10 Users * const users = await prisma.users.findMany({ take: 10 }) * * // Only select the `id` * const usersWithIdOnly = await prisma.users.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Users. * @param {usersCreateArgs} args - Arguments to create a Users. * @example * // Create one Users * const Users = await prisma.users.create({ * data: { * // ... data to create a Users * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Users. * @param {usersCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const users = await prisma.users.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Users and returns the data saved in the database. * @param {usersCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const users = await prisma.users.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const usersWithIdOnly = await prisma.users.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Users. * @param {usersDeleteArgs} args - Arguments to delete one Users. * @example * // Delete one Users * const Users = await prisma.users.delete({ * where: { * // ... filter to delete one Users * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Users. * @param {usersUpdateArgs} args - Arguments to update one Users. * @example * // Update one Users * const users = await prisma.users.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Users. * @param {usersDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.users.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {usersUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const users = await prisma.users.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Users and returns the data updated in the database. * @param {usersUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const users = await prisma.users.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const usersWithIdOnly = await prisma.users.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Users. * @param {usersUpsertArgs} args - Arguments to update or create a Users. * @example * // Update or create a Users * const users = await prisma.users.upsert({ * create: { * // ... data to create a Users * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Users we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__usersClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {usersCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.users.count({ * where: { * // ... the filter for the Users 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 Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UsersAggregateArgs} 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 Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {usersGroupByArgs} 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 usersGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: usersGroupByArgs['orderBy'] } : { orderBy?: usersGroupByArgs['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 ? GetUsersGroupByPayload : Prisma.PrismaPromise /** * Fields of the users model */ readonly fields: usersFieldRefs; } /** * The delegate class that acts as a "Promise-like" for users. * 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__usersClient 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 users model */ export interface usersFieldRefs { readonly id: Prisma.FieldRef<"users", 'String'> readonly email: Prisma.FieldRef<"users", 'String'> readonly password: Prisma.FieldRef<"users", 'String'> readonly type: Prisma.FieldRef<"users", 'String'> readonly role: Prisma.FieldRef<"users", 'String'> readonly is_verified: Prisma.FieldRef<"users", 'Boolean'> readonly verification_token: Prisma.FieldRef<"users", 'String'> readonly otp_token: Prisma.FieldRef<"users", 'String'> readonly refresh_token: Prisma.FieldRef<"users", 'String'> readonly created_at: Prisma.FieldRef<"users", 'BigInt'> readonly updated_at: Prisma.FieldRef<"users", 'BigInt'> readonly created_by: Prisma.FieldRef<"users", 'String'> readonly last_login: Prisma.FieldRef<"users", 'BigInt'> } // Custom InputTypes /** * users findUnique */ export type usersFindUniqueArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * Filter, which users to fetch. */ where: Prisma.usersWhereUniqueInput } /** * users findUniqueOrThrow */ export type usersFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * Filter, which users to fetch. */ where: Prisma.usersWhereUniqueInput } /** * users findFirst */ export type usersFindFirstArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * Filter, which users to fetch. */ where?: Prisma.usersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of users to fetch. */ orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for users. */ cursor?: Prisma.usersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` users 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` users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of users. */ distinct?: Prisma.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] } /** * users findFirstOrThrow */ export type usersFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * Filter, which users to fetch. */ where?: Prisma.usersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of users to fetch. */ orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for users. */ cursor?: Prisma.usersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` users 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` users. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of users. */ distinct?: Prisma.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] } /** * users findMany */ export type usersFindManyArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * Filter, which users to fetch. */ where?: Prisma.usersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of users to fetch. */ orderBy?: Prisma.usersOrderByWithRelationInput | Prisma.usersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing users. */ cursor?: Prisma.usersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` users 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` users. */ skip?: number distinct?: Prisma.UsersScalarFieldEnum | Prisma.UsersScalarFieldEnum[] } /** * users create */ export type usersCreateArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * The data needed to create a users. */ data: Prisma.XOR } /** * users createMany */ export type usersCreateManyArgs = { /** * The data used to create many users. */ data: Prisma.usersCreateManyInput | Prisma.usersCreateManyInput[] skipDuplicates?: boolean } /** * users createManyAndReturn */ export type usersCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelectCreateManyAndReturn | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * The data used to create many users. */ data: Prisma.usersCreateManyInput | Prisma.usersCreateManyInput[] skipDuplicates?: boolean } /** * users update */ export type usersUpdateArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * The data needed to update a users. */ data: Prisma.XOR /** * Choose, which users to update. */ where: Prisma.usersWhereUniqueInput } /** * users updateMany */ export type usersUpdateManyArgs = { /** * The data used to update users. */ data: Prisma.XOR /** * Filter which users to update */ where?: Prisma.usersWhereInput /** * Limit how many users to update. */ limit?: number } /** * users updateManyAndReturn */ export type usersUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelectUpdateManyAndReturn | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * The data used to update users. */ data: Prisma.XOR /** * Filter which users to update */ where?: Prisma.usersWhereInput /** * Limit how many users to update. */ limit?: number } /** * users upsert */ export type usersUpsertArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * The filter to search for the users to update in case it exists. */ where: Prisma.usersWhereUniqueInput /** * In case the users found by the `where` argument doesn't exist, create a new users with this data. */ create: Prisma.XOR /** * In case the users was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * users delete */ export type usersDeleteArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null /** * Filter which users to delete. */ where: Prisma.usersWhereUniqueInput } /** * users deleteMany */ export type usersDeleteManyArgs = { /** * Filter which users to delete */ where?: Prisma.usersWhereInput /** * Limit how many users to delete. */ limit?: number } /** * users without action */ export type usersDefaultArgs = { /** * Select specific fields to fetch from the users */ select?: Prisma.usersSelect | null /** * Omit specific fields from the users */ omit?: Prisma.usersOmit | null }