/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `customers` 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 customers * */ export type customersModel = runtime.Types.Result.DefaultSelection export type AggregateCustomers = { _count: CustomersCountAggregateOutputType | null _avg: CustomersAvgAggregateOutputType | null _sum: CustomersSumAggregateOutputType | null _min: CustomersMinAggregateOutputType | null _max: CustomersMaxAggregateOutputType | null } export type CustomersAvgAggregateOutputType = { created_at: number | null updated_at: number | null } export type CustomersSumAggregateOutputType = { created_at: bigint | null updated_at: bigint | null } export type CustomersMinAggregateOutputType = { id: string | null user_id: string | null email: string | null first_name: string | null last_name: string | null phone_number: string | null address: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null } export type CustomersMaxAggregateOutputType = { id: string | null user_id: string | null email: string | null first_name: string | null last_name: string | null phone_number: string | null address: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null } export type CustomersCountAggregateOutputType = { id: number user_id: number email: number first_name: number last_name: number phone_number: number address: number created_at: number updated_at: number created_by: number _all: number } export type CustomersAvgAggregateInputType = { created_at?: true updated_at?: true } export type CustomersSumAggregateInputType = { created_at?: true updated_at?: true } export type CustomersMinAggregateInputType = { id?: true user_id?: true email?: true first_name?: true last_name?: true phone_number?: true address?: true created_at?: true updated_at?: true created_by?: true } export type CustomersMaxAggregateInputType = { id?: true user_id?: true email?: true first_name?: true last_name?: true phone_number?: true address?: true created_at?: true updated_at?: true created_by?: true } export type CustomersCountAggregateInputType = { id?: true user_id?: true email?: true first_name?: true last_name?: true phone_number?: true address?: true created_at?: true updated_at?: true created_by?: true _all?: true } export type CustomersAggregateArgs = { /** * Filter which customers to aggregate. */ where?: Prisma.customersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of customers to fetch. */ orderBy?: Prisma.customersOrderByWithRelationInput | Prisma.customersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.customersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` customers 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` customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned customers **/ _count?: true | CustomersCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: CustomersAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: CustomersSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: CustomersMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: CustomersMaxAggregateInputType } export type GetCustomersAggregateType = { [P in keyof T & keyof AggregateCustomers]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type customersGroupByArgs = { where?: Prisma.customersWhereInput orderBy?: Prisma.customersOrderByWithAggregationInput | Prisma.customersOrderByWithAggregationInput[] by: Prisma.CustomersScalarFieldEnum[] | Prisma.CustomersScalarFieldEnum having?: Prisma.customersScalarWhereWithAggregatesInput take?: number skip?: number _count?: CustomersCountAggregateInputType | true _avg?: CustomersAvgAggregateInputType _sum?: CustomersSumAggregateInputType _min?: CustomersMinAggregateInputType _max?: CustomersMaxAggregateInputType } export type CustomersGroupByOutputType = { id: string user_id: string | null email: string | null first_name: string | null last_name: string | null phone_number: string | null address: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null _count: CustomersCountAggregateOutputType | null _avg: CustomersAvgAggregateOutputType | null _sum: CustomersSumAggregateOutputType | null _min: CustomersMinAggregateOutputType | null _max: CustomersMaxAggregateOutputType | null } type GetCustomersGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof CustomersGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type customersWhereInput = { AND?: Prisma.customersWhereInput | Prisma.customersWhereInput[] OR?: Prisma.customersWhereInput[] NOT?: Prisma.customersWhereInput | Prisma.customersWhereInput[] id?: Prisma.UuidFilter<"customers"> | string user_id?: Prisma.StringNullableFilter<"customers"> | string | null email?: Prisma.StringNullableFilter<"customers"> | string | null first_name?: Prisma.StringNullableFilter<"customers"> | string | null last_name?: Prisma.StringNullableFilter<"customers"> | string | null phone_number?: Prisma.StringNullableFilter<"customers"> | string | null address?: Prisma.StringNullableFilter<"customers"> | string | null created_at?: Prisma.BigIntNullableFilter<"customers"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"customers"> | bigint | number | null created_by?: Prisma.StringNullableFilter<"customers"> | string | null } export type customersOrderByWithRelationInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrderInput | Prisma.SortOrder email?: Prisma.SortOrderInput | Prisma.SortOrder first_name?: Prisma.SortOrderInput | Prisma.SortOrder last_name?: Prisma.SortOrderInput | Prisma.SortOrder phone_number?: Prisma.SortOrderInput | Prisma.SortOrder address?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder created_by?: Prisma.SortOrderInput | Prisma.SortOrder } export type customersWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.customersWhereInput | Prisma.customersWhereInput[] OR?: Prisma.customersWhereInput[] NOT?: Prisma.customersWhereInput | Prisma.customersWhereInput[] user_id?: Prisma.StringNullableFilter<"customers"> | string | null email?: Prisma.StringNullableFilter<"customers"> | string | null first_name?: Prisma.StringNullableFilter<"customers"> | string | null last_name?: Prisma.StringNullableFilter<"customers"> | string | null phone_number?: Prisma.StringNullableFilter<"customers"> | string | null address?: Prisma.StringNullableFilter<"customers"> | string | null created_at?: Prisma.BigIntNullableFilter<"customers"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"customers"> | bigint | number | null created_by?: Prisma.StringNullableFilter<"customers"> | string | null }, "id"> export type customersOrderByWithAggregationInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrderInput | Prisma.SortOrder email?: Prisma.SortOrderInput | Prisma.SortOrder first_name?: Prisma.SortOrderInput | Prisma.SortOrder last_name?: Prisma.SortOrderInput | Prisma.SortOrder phone_number?: Prisma.SortOrderInput | Prisma.SortOrder address?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder created_by?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.customersCountOrderByAggregateInput _avg?: Prisma.customersAvgOrderByAggregateInput _max?: Prisma.customersMaxOrderByAggregateInput _min?: Prisma.customersMinOrderByAggregateInput _sum?: Prisma.customersSumOrderByAggregateInput } export type customersScalarWhereWithAggregatesInput = { AND?: Prisma.customersScalarWhereWithAggregatesInput | Prisma.customersScalarWhereWithAggregatesInput[] OR?: Prisma.customersScalarWhereWithAggregatesInput[] NOT?: Prisma.customersScalarWhereWithAggregatesInput | Prisma.customersScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"customers"> | string user_id?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null email?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null first_name?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null last_name?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null phone_number?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null address?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null created_at?: Prisma.BigIntNullableWithAggregatesFilter<"customers"> | bigint | number | null updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"customers"> | bigint | number | null created_by?: Prisma.StringNullableWithAggregatesFilter<"customers"> | string | null } export type customersCreateInput = { id: string user_id?: string | null email?: string | null first_name?: string | null last_name?: string | null phone_number?: string | null address?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by?: string | null } export type customersUncheckedCreateInput = { id: string user_id?: string | null email?: string | null first_name?: string | null last_name?: string | null phone_number?: string | null address?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by?: string | null } export type customersUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type customersUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type customersCreateManyInput = { id: string user_id?: string | null email?: string | null first_name?: string | null last_name?: string | null phone_number?: string | null address?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by?: string | null } export type customersUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type customersUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string user_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null phone_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type customersCountOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder email?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder phone_number?: Prisma.SortOrder address?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder } export type customersAvgOrderByAggregateInput = { created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type customersMaxOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder email?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder phone_number?: Prisma.SortOrder address?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder } export type customersMinOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder email?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder phone_number?: Prisma.SortOrder address?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder } export type customersSumOrderByAggregateInput = { created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type NullableBigIntFieldUpdateOperationsInput = { set?: bigint | number | null increment?: bigint | number decrement?: bigint | number multiply?: bigint | number divide?: bigint | number } export type customersSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean email?: boolean first_name?: boolean last_name?: boolean phone_number?: boolean address?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean }, ExtArgs["result"]["customers"]> export type customersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean email?: boolean first_name?: boolean last_name?: boolean phone_number?: boolean address?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean }, ExtArgs["result"]["customers"]> export type customersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean email?: boolean first_name?: boolean last_name?: boolean phone_number?: boolean address?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean }, ExtArgs["result"]["customers"]> export type customersSelectScalar = { id?: boolean user_id?: boolean email?: boolean first_name?: boolean last_name?: boolean phone_number?: boolean address?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean } export type customersOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "email" | "first_name" | "last_name" | "phone_number" | "address" | "created_at" | "updated_at" | "created_by", ExtArgs["result"]["customers"]> export type $customersPayload = { name: "customers" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string user_id: string | null email: string | null first_name: string | null last_name: string | null phone_number: string | null address: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null }, ExtArgs["result"]["customers"]> composites: {} } export type customersGetPayload = runtime.Types.Result.GetResult export type customersCountArgs = Omit & { select?: CustomersCountAggregateInputType | true } export interface customersDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['customers'], meta: { name: 'customers' } } /** * Find zero or one Customers that matches the filter. * @param {customersFindUniqueArgs} args - Arguments to find a Customers * @example * // Get one Customers * const customers = await prisma.customers.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Customers that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {customersFindUniqueOrThrowArgs} args - Arguments to find a Customers * @example * // Get one Customers * const customers = await prisma.customers.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Customers 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 {customersFindFirstArgs} args - Arguments to find a Customers * @example * // Get one Customers * const customers = await prisma.customers.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Customers 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 {customersFindFirstOrThrowArgs} args - Arguments to find a Customers * @example * // Get one Customers * const customers = await prisma.customers.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Customers 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 {customersFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Customers * const customers = await prisma.customers.findMany() * * // Get first 10 Customers * const customers = await prisma.customers.findMany({ take: 10 }) * * // Only select the `id` * const customersWithIdOnly = await prisma.customers.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Customers. * @param {customersCreateArgs} args - Arguments to create a Customers. * @example * // Create one Customers * const Customers = await prisma.customers.create({ * data: { * // ... data to create a Customers * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Customers. * @param {customersCreateManyArgs} args - Arguments to create many Customers. * @example * // Create many Customers * const customers = await prisma.customers.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Customers and returns the data saved in the database. * @param {customersCreateManyAndReturnArgs} args - Arguments to create many Customers. * @example * // Create many Customers * const customers = await prisma.customers.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Customers and only return the `id` * const customersWithIdOnly = await prisma.customers.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 Customers. * @param {customersDeleteArgs} args - Arguments to delete one Customers. * @example * // Delete one Customers * const Customers = await prisma.customers.delete({ * where: { * // ... filter to delete one Customers * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Customers. * @param {customersUpdateArgs} args - Arguments to update one Customers. * @example * // Update one Customers * const customers = await prisma.customers.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Customers. * @param {customersDeleteManyArgs} args - Arguments to filter Customers to delete. * @example * // Delete a few Customers * const { count } = await prisma.customers.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Customers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {customersUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Customers * const customers = await prisma.customers.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Customers and returns the data updated in the database. * @param {customersUpdateManyAndReturnArgs} args - Arguments to update many Customers. * @example * // Update many Customers * const customers = await prisma.customers.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Customers and only return the `id` * const customersWithIdOnly = await prisma.customers.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 Customers. * @param {customersUpsertArgs} args - Arguments to update or create a Customers. * @example * // Update or create a Customers * const customers = await prisma.customers.upsert({ * create: { * // ... data to create a Customers * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Customers we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__customersClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Customers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {customersCountArgs} args - Arguments to filter Customers to count. * @example * // Count the number of Customers * const count = await prisma.customers.count({ * where: { * // ... the filter for the Customers 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 Customers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {CustomersAggregateArgs} 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 Customers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {customersGroupByArgs} 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 customersGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: customersGroupByArgs['orderBy'] } : { orderBy?: customersGroupByArgs['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 ? GetCustomersGroupByPayload : Prisma.PrismaPromise /** * Fields of the customers model */ readonly fields: customersFieldRefs; } /** * The delegate class that acts as a "Promise-like" for customers. * 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__customersClient 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 customers model */ export interface customersFieldRefs { readonly id: Prisma.FieldRef<"customers", 'String'> readonly user_id: Prisma.FieldRef<"customers", 'String'> readonly email: Prisma.FieldRef<"customers", 'String'> readonly first_name: Prisma.FieldRef<"customers", 'String'> readonly last_name: Prisma.FieldRef<"customers", 'String'> readonly phone_number: Prisma.FieldRef<"customers", 'String'> readonly address: Prisma.FieldRef<"customers", 'String'> readonly created_at: Prisma.FieldRef<"customers", 'BigInt'> readonly updated_at: Prisma.FieldRef<"customers", 'BigInt'> readonly created_by: Prisma.FieldRef<"customers", 'String'> } // Custom InputTypes /** * customers findUnique */ export type customersFindUniqueArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * Filter, which customers to fetch. */ where: Prisma.customersWhereUniqueInput } /** * customers findUniqueOrThrow */ export type customersFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * Filter, which customers to fetch. */ where: Prisma.customersWhereUniqueInput } /** * customers findFirst */ export type customersFindFirstArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * Filter, which customers to fetch. */ where?: Prisma.customersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of customers to fetch. */ orderBy?: Prisma.customersOrderByWithRelationInput | Prisma.customersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for customers. */ cursor?: Prisma.customersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` customers 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` customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of customers. */ distinct?: Prisma.CustomersScalarFieldEnum | Prisma.CustomersScalarFieldEnum[] } /** * customers findFirstOrThrow */ export type customersFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * Filter, which customers to fetch. */ where?: Prisma.customersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of customers to fetch. */ orderBy?: Prisma.customersOrderByWithRelationInput | Prisma.customersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for customers. */ cursor?: Prisma.customersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` customers 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` customers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of customers. */ distinct?: Prisma.CustomersScalarFieldEnum | Prisma.CustomersScalarFieldEnum[] } /** * customers findMany */ export type customersFindManyArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * Filter, which customers to fetch. */ where?: Prisma.customersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of customers to fetch. */ orderBy?: Prisma.customersOrderByWithRelationInput | Prisma.customersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing customers. */ cursor?: Prisma.customersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` customers 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` customers. */ skip?: number distinct?: Prisma.CustomersScalarFieldEnum | Prisma.CustomersScalarFieldEnum[] } /** * customers create */ export type customersCreateArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * The data needed to create a customers. */ data: Prisma.XOR } /** * customers createMany */ export type customersCreateManyArgs = { /** * The data used to create many customers. */ data: Prisma.customersCreateManyInput | Prisma.customersCreateManyInput[] skipDuplicates?: boolean } /** * customers createManyAndReturn */ export type customersCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelectCreateManyAndReturn | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * The data used to create many customers. */ data: Prisma.customersCreateManyInput | Prisma.customersCreateManyInput[] skipDuplicates?: boolean } /** * customers update */ export type customersUpdateArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * The data needed to update a customers. */ data: Prisma.XOR /** * Choose, which customers to update. */ where: Prisma.customersWhereUniqueInput } /** * customers updateMany */ export type customersUpdateManyArgs = { /** * The data used to update customers. */ data: Prisma.XOR /** * Filter which customers to update */ where?: Prisma.customersWhereInput /** * Limit how many customers to update. */ limit?: number } /** * customers updateManyAndReturn */ export type customersUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelectUpdateManyAndReturn | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * The data used to update customers. */ data: Prisma.XOR /** * Filter which customers to update */ where?: Prisma.customersWhereInput /** * Limit how many customers to update. */ limit?: number } /** * customers upsert */ export type customersUpsertArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * The filter to search for the customers to update in case it exists. */ where: Prisma.customersWhereUniqueInput /** * In case the customers found by the `where` argument doesn't exist, create a new customers with this data. */ create: Prisma.XOR /** * In case the customers was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * customers delete */ export type customersDeleteArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null /** * Filter which customers to delete. */ where: Prisma.customersWhereUniqueInput } /** * customers deleteMany */ export type customersDeleteManyArgs = { /** * Filter which customers to delete */ where?: Prisma.customersWhereInput /** * Limit how many customers to delete. */ limit?: number } /** * customers without action */ export type customersDefaultArgs = { /** * Select specific fields to fetch from the customers */ select?: Prisma.customersSelect | null /** * Omit specific fields from the customers */ omit?: Prisma.customersOmit | null }