/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `dealers` 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 dealers * */ export type dealersModel = runtime.Types.Result.DefaultSelection export type AggregateDealers = { _count: DealersCountAggregateOutputType | null _avg: DealersAvgAggregateOutputType | null _sum: DealersSumAggregateOutputType | null _min: DealersMinAggregateOutputType | null _max: DealersMaxAggregateOutputType | null } export type DealersAvgAggregateOutputType = { created_at: number | null updated_at: number | null } export type DealersSumAggregateOutputType = { created_at: bigint | null updated_at: bigint | null } export type DealersMinAggregateOutputType = { id: string | null user_id: string | null email: string | null first_name: string | null last_name: string | null phone_number: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null } export type DealersMaxAggregateOutputType = { id: string | null user_id: string | null email: string | null first_name: string | null last_name: string | null phone_number: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null } export type DealersCountAggregateOutputType = { id: number user_id: number email: number first_name: number last_name: number phone_number: number created_at: number updated_at: number created_by: number _all: number } export type DealersAvgAggregateInputType = { created_at?: true updated_at?: true } export type DealersSumAggregateInputType = { created_at?: true updated_at?: true } export type DealersMinAggregateInputType = { id?: true user_id?: true email?: true first_name?: true last_name?: true phone_number?: true created_at?: true updated_at?: true created_by?: true } export type DealersMaxAggregateInputType = { id?: true user_id?: true email?: true first_name?: true last_name?: true phone_number?: true created_at?: true updated_at?: true created_by?: true } export type DealersCountAggregateInputType = { id?: true user_id?: true email?: true first_name?: true last_name?: true phone_number?: true created_at?: true updated_at?: true created_by?: true _all?: true } export type DealersAggregateArgs = { /** * Filter which dealers to aggregate. */ where?: Prisma.dealersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of dealers to fetch. */ orderBy?: Prisma.dealersOrderByWithRelationInput | Prisma.dealersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.dealersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` dealers 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` dealers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned dealers **/ _count?: true | DealersCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: DealersAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: DealersSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: DealersMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: DealersMaxAggregateInputType } export type GetDealersAggregateType = { [P in keyof T & keyof AggregateDealers]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type dealersGroupByArgs = { where?: Prisma.dealersWhereInput orderBy?: Prisma.dealersOrderByWithAggregationInput | Prisma.dealersOrderByWithAggregationInput[] by: Prisma.DealersScalarFieldEnum[] | Prisma.DealersScalarFieldEnum having?: Prisma.dealersScalarWhereWithAggregatesInput take?: number skip?: number _count?: DealersCountAggregateInputType | true _avg?: DealersAvgAggregateInputType _sum?: DealersSumAggregateInputType _min?: DealersMinAggregateInputType _max?: DealersMaxAggregateInputType } export type DealersGroupByOutputType = { id: string user_id: string | null email: string | null first_name: string | null last_name: string | null phone_number: string | null created_at: bigint | null updated_at: bigint | null created_by: string | null _count: DealersCountAggregateOutputType | null _avg: DealersAvgAggregateOutputType | null _sum: DealersSumAggregateOutputType | null _min: DealersMinAggregateOutputType | null _max: DealersMaxAggregateOutputType | null } type GetDealersGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof DealersGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type dealersWhereInput = { AND?: Prisma.dealersWhereInput | Prisma.dealersWhereInput[] OR?: Prisma.dealersWhereInput[] NOT?: Prisma.dealersWhereInput | Prisma.dealersWhereInput[] id?: Prisma.UuidFilter<"dealers"> | string user_id?: Prisma.StringNullableFilter<"dealers"> | string | null email?: Prisma.StringNullableFilter<"dealers"> | string | null first_name?: Prisma.StringNullableFilter<"dealers"> | string | null last_name?: Prisma.StringNullableFilter<"dealers"> | string | null phone_number?: Prisma.StringNullableFilter<"dealers"> | string | null created_at?: Prisma.BigIntNullableFilter<"dealers"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"dealers"> | bigint | number | null created_by?: Prisma.StringNullableFilter<"dealers"> | string | null } export type dealersOrderByWithRelationInput = { 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 created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder created_by?: Prisma.SortOrderInput | Prisma.SortOrder } export type dealersWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.dealersWhereInput | Prisma.dealersWhereInput[] OR?: Prisma.dealersWhereInput[] NOT?: Prisma.dealersWhereInput | Prisma.dealersWhereInput[] user_id?: Prisma.StringNullableFilter<"dealers"> | string | null email?: Prisma.StringNullableFilter<"dealers"> | string | null first_name?: Prisma.StringNullableFilter<"dealers"> | string | null last_name?: Prisma.StringNullableFilter<"dealers"> | string | null phone_number?: Prisma.StringNullableFilter<"dealers"> | string | null created_at?: Prisma.BigIntNullableFilter<"dealers"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"dealers"> | bigint | number | null created_by?: Prisma.StringNullableFilter<"dealers"> | string | null }, "id"> export type dealersOrderByWithAggregationInput = { 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 created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder created_by?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.dealersCountOrderByAggregateInput _avg?: Prisma.dealersAvgOrderByAggregateInput _max?: Prisma.dealersMaxOrderByAggregateInput _min?: Prisma.dealersMinOrderByAggregateInput _sum?: Prisma.dealersSumOrderByAggregateInput } export type dealersScalarWhereWithAggregatesInput = { AND?: Prisma.dealersScalarWhereWithAggregatesInput | Prisma.dealersScalarWhereWithAggregatesInput[] OR?: Prisma.dealersScalarWhereWithAggregatesInput[] NOT?: Prisma.dealersScalarWhereWithAggregatesInput | Prisma.dealersScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"dealers"> | string user_id?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null email?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null first_name?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null last_name?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null phone_number?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null created_at?: Prisma.BigIntNullableWithAggregatesFilter<"dealers"> | bigint | number | null updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"dealers"> | bigint | number | null created_by?: Prisma.StringNullableWithAggregatesFilter<"dealers"> | string | null } export type dealersCreateInput = { id: string user_id?: string | null email?: string | null first_name?: string | null last_name?: string | null phone_number?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by?: string | null } export type dealersUncheckedCreateInput = { id: string user_id?: string | null email?: string | null first_name?: string | null last_name?: string | null phone_number?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by?: string | null } export type dealersUpdateInput = { 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 created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type dealersUncheckedUpdateInput = { 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 created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type dealersCreateManyInput = { id: string user_id?: string | null email?: string | null first_name?: string | null last_name?: string | null phone_number?: string | null created_at?: bigint | number | null updated_at?: bigint | number | null created_by?: string | null } export type dealersUpdateManyMutationInput = { 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 created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type dealersUncheckedUpdateManyInput = { 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 created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null created_by?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type dealersCountOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder email?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder phone_number?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder } export type dealersAvgOrderByAggregateInput = { created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type dealersMaxOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder email?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder phone_number?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder } export type dealersMinOrderByAggregateInput = { id?: Prisma.SortOrder user_id?: Prisma.SortOrder email?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder phone_number?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder created_by?: Prisma.SortOrder } export type dealersSumOrderByAggregateInput = { created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type dealersSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean email?: boolean first_name?: boolean last_name?: boolean phone_number?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean }, ExtArgs["result"]["dealers"]> export type dealersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean email?: boolean first_name?: boolean last_name?: boolean phone_number?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean }, ExtArgs["result"]["dealers"]> export type dealersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean user_id?: boolean email?: boolean first_name?: boolean last_name?: boolean phone_number?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean }, ExtArgs["result"]["dealers"]> export type dealersSelectScalar = { id?: boolean user_id?: boolean email?: boolean first_name?: boolean last_name?: boolean phone_number?: boolean created_at?: boolean updated_at?: boolean created_by?: boolean } export type dealersOmit = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "email" | "first_name" | "last_name" | "phone_number" | "created_at" | "updated_at" | "created_by", ExtArgs["result"]["dealers"]> export type $dealersPayload = { name: "dealers" 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 created_at: bigint | null updated_at: bigint | null created_by: string | null }, ExtArgs["result"]["dealers"]> composites: {} } export type dealersGetPayload = runtime.Types.Result.GetResult export type dealersCountArgs = Omit & { select?: DealersCountAggregateInputType | true } export interface dealersDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['dealers'], meta: { name: 'dealers' } } /** * Find zero or one Dealers that matches the filter. * @param {dealersFindUniqueArgs} args - Arguments to find a Dealers * @example * // Get one Dealers * const dealers = await prisma.dealers.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Dealers that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {dealersFindUniqueOrThrowArgs} args - Arguments to find a Dealers * @example * // Get one Dealers * const dealers = await prisma.dealers.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Dealers 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 {dealersFindFirstArgs} args - Arguments to find a Dealers * @example * // Get one Dealers * const dealers = await prisma.dealers.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Dealers 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 {dealersFindFirstOrThrowArgs} args - Arguments to find a Dealers * @example * // Get one Dealers * const dealers = await prisma.dealers.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Dealers 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 {dealersFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Dealers * const dealers = await prisma.dealers.findMany() * * // Get first 10 Dealers * const dealers = await prisma.dealers.findMany({ take: 10 }) * * // Only select the `id` * const dealersWithIdOnly = await prisma.dealers.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Dealers. * @param {dealersCreateArgs} args - Arguments to create a Dealers. * @example * // Create one Dealers * const Dealers = await prisma.dealers.create({ * data: { * // ... data to create a Dealers * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Dealers. * @param {dealersCreateManyArgs} args - Arguments to create many Dealers. * @example * // Create many Dealers * const dealers = await prisma.dealers.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Dealers and returns the data saved in the database. * @param {dealersCreateManyAndReturnArgs} args - Arguments to create many Dealers. * @example * // Create many Dealers * const dealers = await prisma.dealers.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Dealers and only return the `id` * const dealersWithIdOnly = await prisma.dealers.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 Dealers. * @param {dealersDeleteArgs} args - Arguments to delete one Dealers. * @example * // Delete one Dealers * const Dealers = await prisma.dealers.delete({ * where: { * // ... filter to delete one Dealers * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Dealers. * @param {dealersUpdateArgs} args - Arguments to update one Dealers. * @example * // Update one Dealers * const dealers = await prisma.dealers.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Dealers. * @param {dealersDeleteManyArgs} args - Arguments to filter Dealers to delete. * @example * // Delete a few Dealers * const { count } = await prisma.dealers.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Dealers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {dealersUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Dealers * const dealers = await prisma.dealers.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Dealers and returns the data updated in the database. * @param {dealersUpdateManyAndReturnArgs} args - Arguments to update many Dealers. * @example * // Update many Dealers * const dealers = await prisma.dealers.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Dealers and only return the `id` * const dealersWithIdOnly = await prisma.dealers.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 Dealers. * @param {dealersUpsertArgs} args - Arguments to update or create a Dealers. * @example * // Update or create a Dealers * const dealers = await prisma.dealers.upsert({ * create: { * // ... data to create a Dealers * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Dealers we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__dealersClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Dealers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {dealersCountArgs} args - Arguments to filter Dealers to count. * @example * // Count the number of Dealers * const count = await prisma.dealers.count({ * where: { * // ... the filter for the Dealers 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 Dealers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {DealersAggregateArgs} 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 Dealers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {dealersGroupByArgs} 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 dealersGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: dealersGroupByArgs['orderBy'] } : { orderBy?: dealersGroupByArgs['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 ? GetDealersGroupByPayload : Prisma.PrismaPromise /** * Fields of the dealers model */ readonly fields: dealersFieldRefs; } /** * The delegate class that acts as a "Promise-like" for dealers. * 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__dealersClient 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 dealers model */ export interface dealersFieldRefs { readonly id: Prisma.FieldRef<"dealers", 'String'> readonly user_id: Prisma.FieldRef<"dealers", 'String'> readonly email: Prisma.FieldRef<"dealers", 'String'> readonly first_name: Prisma.FieldRef<"dealers", 'String'> readonly last_name: Prisma.FieldRef<"dealers", 'String'> readonly phone_number: Prisma.FieldRef<"dealers", 'String'> readonly created_at: Prisma.FieldRef<"dealers", 'BigInt'> readonly updated_at: Prisma.FieldRef<"dealers", 'BigInt'> readonly created_by: Prisma.FieldRef<"dealers", 'String'> } // Custom InputTypes /** * dealers findUnique */ export type dealersFindUniqueArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * Filter, which dealers to fetch. */ where: Prisma.dealersWhereUniqueInput } /** * dealers findUniqueOrThrow */ export type dealersFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * Filter, which dealers to fetch. */ where: Prisma.dealersWhereUniqueInput } /** * dealers findFirst */ export type dealersFindFirstArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * Filter, which dealers to fetch. */ where?: Prisma.dealersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of dealers to fetch. */ orderBy?: Prisma.dealersOrderByWithRelationInput | Prisma.dealersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for dealers. */ cursor?: Prisma.dealersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` dealers 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` dealers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of dealers. */ distinct?: Prisma.DealersScalarFieldEnum | Prisma.DealersScalarFieldEnum[] } /** * dealers findFirstOrThrow */ export type dealersFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * Filter, which dealers to fetch. */ where?: Prisma.dealersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of dealers to fetch. */ orderBy?: Prisma.dealersOrderByWithRelationInput | Prisma.dealersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for dealers. */ cursor?: Prisma.dealersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` dealers 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` dealers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of dealers. */ distinct?: Prisma.DealersScalarFieldEnum | Prisma.DealersScalarFieldEnum[] } /** * dealers findMany */ export type dealersFindManyArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * Filter, which dealers to fetch. */ where?: Prisma.dealersWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of dealers to fetch. */ orderBy?: Prisma.dealersOrderByWithRelationInput | Prisma.dealersOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing dealers. */ cursor?: Prisma.dealersWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` dealers 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` dealers. */ skip?: number distinct?: Prisma.DealersScalarFieldEnum | Prisma.DealersScalarFieldEnum[] } /** * dealers create */ export type dealersCreateArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * The data needed to create a dealers. */ data: Prisma.XOR } /** * dealers createMany */ export type dealersCreateManyArgs = { /** * The data used to create many dealers. */ data: Prisma.dealersCreateManyInput | Prisma.dealersCreateManyInput[] skipDuplicates?: boolean } /** * dealers createManyAndReturn */ export type dealersCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelectCreateManyAndReturn | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * The data used to create many dealers. */ data: Prisma.dealersCreateManyInput | Prisma.dealersCreateManyInput[] skipDuplicates?: boolean } /** * dealers update */ export type dealersUpdateArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * The data needed to update a dealers. */ data: Prisma.XOR /** * Choose, which dealers to update. */ where: Prisma.dealersWhereUniqueInput } /** * dealers updateMany */ export type dealersUpdateManyArgs = { /** * The data used to update dealers. */ data: Prisma.XOR /** * Filter which dealers to update */ where?: Prisma.dealersWhereInput /** * Limit how many dealers to update. */ limit?: number } /** * dealers updateManyAndReturn */ export type dealersUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelectUpdateManyAndReturn | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * The data used to update dealers. */ data: Prisma.XOR /** * Filter which dealers to update */ where?: Prisma.dealersWhereInput /** * Limit how many dealers to update. */ limit?: number } /** * dealers upsert */ export type dealersUpsertArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * The filter to search for the dealers to update in case it exists. */ where: Prisma.dealersWhereUniqueInput /** * In case the dealers found by the `where` argument doesn't exist, create a new dealers with this data. */ create: Prisma.XOR /** * In case the dealers was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * dealers delete */ export type dealersDeleteArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null /** * Filter which dealers to delete. */ where: Prisma.dealersWhereUniqueInput } /** * dealers deleteMany */ export type dealersDeleteManyArgs = { /** * Filter which dealers to delete */ where?: Prisma.dealersWhereInput /** * Limit how many dealers to delete. */ limit?: number } /** * dealers without action */ export type dealersDefaultArgs = { /** * Select specific fields to fetch from the dealers */ select?: Prisma.dealersSelect | null /** * Omit specific fields from the dealers */ omit?: Prisma.dealersOmit | null }