/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `delivery_history` 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 delivery_history * */ export type delivery_historyModel = runtime.Types.Result.DefaultSelection export type AggregateDelivery_history = { _count: Delivery_historyCountAggregateOutputType | null _avg: Delivery_historyAvgAggregateOutputType | null _sum: Delivery_historySumAggregateOutputType | null _min: Delivery_historyMinAggregateOutputType | null _max: Delivery_historyMaxAggregateOutputType | null } export type Delivery_historyAvgAggregateOutputType = { id: number | null account_id: number | null date_orig: number | null } export type Delivery_historySumAggregateOutputType = { id: number | null account_id: number | null date_orig: bigint | null } export type Delivery_historyMinAggregateOutputType = { id: number | null account_id: number | null date_orig: bigint | null address1: string | null address2: string | null city: string | null state: string | null zip: string | null } export type Delivery_historyMaxAggregateOutputType = { id: number | null account_id: number | null date_orig: bigint | null address1: string | null address2: string | null city: string | null state: string | null zip: string | null } export type Delivery_historyCountAggregateOutputType = { id: number account_id: number date_orig: number address1: number address2: number city: number state: number zip: number _all: number } export type Delivery_historyAvgAggregateInputType = { id?: true account_id?: true date_orig?: true } export type Delivery_historySumAggregateInputType = { id?: true account_id?: true date_orig?: true } export type Delivery_historyMinAggregateInputType = { id?: true account_id?: true date_orig?: true address1?: true address2?: true city?: true state?: true zip?: true } export type Delivery_historyMaxAggregateInputType = { id?: true account_id?: true date_orig?: true address1?: true address2?: true city?: true state?: true zip?: true } export type Delivery_historyCountAggregateInputType = { id?: true account_id?: true date_orig?: true address1?: true address2?: true city?: true state?: true zip?: true _all?: true } export type Delivery_historyAggregateArgs = { /** * Filter which delivery_history to aggregate. */ where?: Prisma.delivery_historyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of delivery_histories to fetch. */ orderBy?: Prisma.delivery_historyOrderByWithRelationInput | Prisma.delivery_historyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.delivery_historyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` delivery_histories 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` delivery_histories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned delivery_histories **/ _count?: true | Delivery_historyCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Delivery_historyAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Delivery_historySumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Delivery_historyMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Delivery_historyMaxAggregateInputType } export type GetDelivery_historyAggregateType = { [P in keyof T & keyof AggregateDelivery_history]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type delivery_historyGroupByArgs = { where?: Prisma.delivery_historyWhereInput orderBy?: Prisma.delivery_historyOrderByWithAggregationInput | Prisma.delivery_historyOrderByWithAggregationInput[] by: Prisma.Delivery_historyScalarFieldEnum[] | Prisma.Delivery_historyScalarFieldEnum having?: Prisma.delivery_historyScalarWhereWithAggregatesInput take?: number skip?: number _count?: Delivery_historyCountAggregateInputType | true _avg?: Delivery_historyAvgAggregateInputType _sum?: Delivery_historySumAggregateInputType _min?: Delivery_historyMinAggregateInputType _max?: Delivery_historyMaxAggregateInputType } export type Delivery_historyGroupByOutputType = { id: number account_id: number date_orig: bigint address1: string address2: string city: string state: string zip: string _count: Delivery_historyCountAggregateOutputType | null _avg: Delivery_historyAvgAggregateOutputType | null _sum: Delivery_historySumAggregateOutputType | null _min: Delivery_historyMinAggregateOutputType | null _max: Delivery_historyMaxAggregateOutputType | null } type GetDelivery_historyGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Delivery_historyGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type delivery_historyWhereInput = { AND?: Prisma.delivery_historyWhereInput | Prisma.delivery_historyWhereInput[] OR?: Prisma.delivery_historyWhereInput[] NOT?: Prisma.delivery_historyWhereInput | Prisma.delivery_historyWhereInput[] id?: Prisma.IntFilter<"delivery_history"> | number account_id?: Prisma.IntFilter<"delivery_history"> | number date_orig?: Prisma.BigIntFilter<"delivery_history"> | bigint | number address1?: Prisma.StringFilter<"delivery_history"> | string address2?: Prisma.StringFilter<"delivery_history"> | string city?: Prisma.StringFilter<"delivery_history"> | string state?: Prisma.StringFilter<"delivery_history"> | string zip?: Prisma.StringFilter<"delivery_history"> | string } export type delivery_historyOrderByWithRelationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder address1?: Prisma.SortOrder address2?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder zip?: Prisma.SortOrder _relevance?: Prisma.delivery_historyOrderByRelevanceInput } export type delivery_historyWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.delivery_historyWhereInput | Prisma.delivery_historyWhereInput[] OR?: Prisma.delivery_historyWhereInput[] NOT?: Prisma.delivery_historyWhereInput | Prisma.delivery_historyWhereInput[] account_id?: Prisma.IntFilter<"delivery_history"> | number date_orig?: Prisma.BigIntFilter<"delivery_history"> | bigint | number address1?: Prisma.StringFilter<"delivery_history"> | string address2?: Prisma.StringFilter<"delivery_history"> | string city?: Prisma.StringFilter<"delivery_history"> | string state?: Prisma.StringFilter<"delivery_history"> | string zip?: Prisma.StringFilter<"delivery_history"> | string }, "id"> export type delivery_historyOrderByWithAggregationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder address1?: Prisma.SortOrder address2?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder zip?: Prisma.SortOrder _count?: Prisma.delivery_historyCountOrderByAggregateInput _avg?: Prisma.delivery_historyAvgOrderByAggregateInput _max?: Prisma.delivery_historyMaxOrderByAggregateInput _min?: Prisma.delivery_historyMinOrderByAggregateInput _sum?: Prisma.delivery_historySumOrderByAggregateInput } export type delivery_historyScalarWhereWithAggregatesInput = { AND?: Prisma.delivery_historyScalarWhereWithAggregatesInput | Prisma.delivery_historyScalarWhereWithAggregatesInput[] OR?: Prisma.delivery_historyScalarWhereWithAggregatesInput[] NOT?: Prisma.delivery_historyScalarWhereWithAggregatesInput | Prisma.delivery_historyScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"delivery_history"> | number account_id?: Prisma.IntWithAggregatesFilter<"delivery_history"> | number date_orig?: Prisma.BigIntWithAggregatesFilter<"delivery_history"> | bigint | number address1?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string address2?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string city?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string state?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string zip?: Prisma.StringWithAggregatesFilter<"delivery_history"> | string } export type delivery_historyCreateInput = { account_id: number date_orig: bigint | number address1: string address2: string city: string state: string zip: string } export type delivery_historyUncheckedCreateInput = { id?: number account_id: number date_orig: bigint | number address1: string address2: string city: string state: string zip: string } export type delivery_historyUpdateInput = { account_id?: Prisma.IntFieldUpdateOperationsInput | number date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number address1?: Prisma.StringFieldUpdateOperationsInput | string address2?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string zip?: Prisma.StringFieldUpdateOperationsInput | string } export type delivery_historyUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number account_id?: Prisma.IntFieldUpdateOperationsInput | number date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number address1?: Prisma.StringFieldUpdateOperationsInput | string address2?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string zip?: Prisma.StringFieldUpdateOperationsInput | string } export type delivery_historyCreateManyInput = { id?: number account_id: number date_orig: bigint | number address1: string address2: string city: string state: string zip: string } export type delivery_historyUpdateManyMutationInput = { account_id?: Prisma.IntFieldUpdateOperationsInput | number date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number address1?: Prisma.StringFieldUpdateOperationsInput | string address2?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string zip?: Prisma.StringFieldUpdateOperationsInput | string } export type delivery_historyUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number account_id?: Prisma.IntFieldUpdateOperationsInput | number date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number address1?: Prisma.StringFieldUpdateOperationsInput | string address2?: Prisma.StringFieldUpdateOperationsInput | string city?: Prisma.StringFieldUpdateOperationsInput | string state?: Prisma.StringFieldUpdateOperationsInput | string zip?: Prisma.StringFieldUpdateOperationsInput | string } export type delivery_historyOrderByRelevanceInput = { fields: Prisma.delivery_historyOrderByRelevanceFieldEnum | Prisma.delivery_historyOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type delivery_historyCountOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder address1?: Prisma.SortOrder address2?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder zip?: Prisma.SortOrder } export type delivery_historyAvgOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder } export type delivery_historyMaxOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder address1?: Prisma.SortOrder address2?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder zip?: Prisma.SortOrder } export type delivery_historyMinOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder address1?: Prisma.SortOrder address2?: Prisma.SortOrder city?: Prisma.SortOrder state?: Prisma.SortOrder zip?: Prisma.SortOrder } export type delivery_historySumOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder } export type delivery_historySelect = runtime.Types.Extensions.GetSelect<{ id?: boolean account_id?: boolean date_orig?: boolean address1?: boolean address2?: boolean city?: boolean state?: boolean zip?: boolean }, ExtArgs["result"]["delivery_history"]> export type delivery_historySelectScalar = { id?: boolean account_id?: boolean date_orig?: boolean address1?: boolean address2?: boolean city?: boolean state?: boolean zip?: boolean } export type delivery_historyOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date_orig" | "address1" | "address2" | "city" | "state" | "zip", ExtArgs["result"]["delivery_history"]> export type $delivery_historyPayload = { name: "delivery_history" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number account_id: number date_orig: bigint address1: string address2: string city: string state: string zip: string }, ExtArgs["result"]["delivery_history"]> composites: {} } export type delivery_historyGetPayload = runtime.Types.Result.GetResult export type delivery_historyCountArgs = Omit & { select?: Delivery_historyCountAggregateInputType | true } export interface delivery_historyDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['delivery_history'], meta: { name: 'delivery_history' } } /** * Find zero or one Delivery_history that matches the filter. * @param {delivery_historyFindUniqueArgs} args - Arguments to find a Delivery_history * @example * // Get one Delivery_history * const delivery_history = await prisma.delivery_history.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Delivery_history that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {delivery_historyFindUniqueOrThrowArgs} args - Arguments to find a Delivery_history * @example * // Get one Delivery_history * const delivery_history = await prisma.delivery_history.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Delivery_history 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 {delivery_historyFindFirstArgs} args - Arguments to find a Delivery_history * @example * // Get one Delivery_history * const delivery_history = await prisma.delivery_history.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Delivery_history 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 {delivery_historyFindFirstOrThrowArgs} args - Arguments to find a Delivery_history * @example * // Get one Delivery_history * const delivery_history = await prisma.delivery_history.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Delivery_histories 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 {delivery_historyFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Delivery_histories * const delivery_histories = await prisma.delivery_history.findMany() * * // Get first 10 Delivery_histories * const delivery_histories = await prisma.delivery_history.findMany({ take: 10 }) * * // Only select the `id` * const delivery_historyWithIdOnly = await prisma.delivery_history.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Delivery_history. * @param {delivery_historyCreateArgs} args - Arguments to create a Delivery_history. * @example * // Create one Delivery_history * const Delivery_history = await prisma.delivery_history.create({ * data: { * // ... data to create a Delivery_history * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Delivery_histories. * @param {delivery_historyCreateManyArgs} args - Arguments to create many Delivery_histories. * @example * // Create many Delivery_histories * const delivery_history = await prisma.delivery_history.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Delivery_history. * @param {delivery_historyDeleteArgs} args - Arguments to delete one Delivery_history. * @example * // Delete one Delivery_history * const Delivery_history = await prisma.delivery_history.delete({ * where: { * // ... filter to delete one Delivery_history * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Delivery_history. * @param {delivery_historyUpdateArgs} args - Arguments to update one Delivery_history. * @example * // Update one Delivery_history * const delivery_history = await prisma.delivery_history.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Delivery_histories. * @param {delivery_historyDeleteManyArgs} args - Arguments to filter Delivery_histories to delete. * @example * // Delete a few Delivery_histories * const { count } = await prisma.delivery_history.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Delivery_histories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {delivery_historyUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Delivery_histories * const delivery_history = await prisma.delivery_history.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Delivery_history. * @param {delivery_historyUpsertArgs} args - Arguments to update or create a Delivery_history. * @example * // Update or create a Delivery_history * const delivery_history = await prisma.delivery_history.upsert({ * create: { * // ... data to create a Delivery_history * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Delivery_history we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__delivery_historyClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Delivery_histories. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {delivery_historyCountArgs} args - Arguments to filter Delivery_histories to count. * @example * // Count the number of Delivery_histories * const count = await prisma.delivery_history.count({ * where: { * // ... the filter for the Delivery_histories 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 Delivery_history. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Delivery_historyAggregateArgs} 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 Delivery_history. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {delivery_historyGroupByArgs} 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 delivery_historyGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: delivery_historyGroupByArgs['orderBy'] } : { orderBy?: delivery_historyGroupByArgs['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 ? GetDelivery_historyGroupByPayload : Prisma.PrismaPromise /** * Fields of the delivery_history model */ readonly fields: delivery_historyFieldRefs; } /** * The delegate class that acts as a "Promise-like" for delivery_history. * 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__delivery_historyClient 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 delivery_history model */ export interface delivery_historyFieldRefs { readonly id: Prisma.FieldRef<"delivery_history", 'Int'> readonly account_id: Prisma.FieldRef<"delivery_history", 'Int'> readonly date_orig: Prisma.FieldRef<"delivery_history", 'BigInt'> readonly address1: Prisma.FieldRef<"delivery_history", 'String'> readonly address2: Prisma.FieldRef<"delivery_history", 'String'> readonly city: Prisma.FieldRef<"delivery_history", 'String'> readonly state: Prisma.FieldRef<"delivery_history", 'String'> readonly zip: Prisma.FieldRef<"delivery_history", 'String'> } // Custom InputTypes /** * delivery_history findUnique */ export type delivery_historyFindUniqueArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * Filter, which delivery_history to fetch. */ where: Prisma.delivery_historyWhereUniqueInput } /** * delivery_history findUniqueOrThrow */ export type delivery_historyFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * Filter, which delivery_history to fetch. */ where: Prisma.delivery_historyWhereUniqueInput } /** * delivery_history findFirst */ export type delivery_historyFindFirstArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * Filter, which delivery_history to fetch. */ where?: Prisma.delivery_historyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of delivery_histories to fetch. */ orderBy?: Prisma.delivery_historyOrderByWithRelationInput | Prisma.delivery_historyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for delivery_histories. */ cursor?: Prisma.delivery_historyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` delivery_histories 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` delivery_histories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of delivery_histories. */ distinct?: Prisma.Delivery_historyScalarFieldEnum | Prisma.Delivery_historyScalarFieldEnum[] } /** * delivery_history findFirstOrThrow */ export type delivery_historyFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * Filter, which delivery_history to fetch. */ where?: Prisma.delivery_historyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of delivery_histories to fetch. */ orderBy?: Prisma.delivery_historyOrderByWithRelationInput | Prisma.delivery_historyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for delivery_histories. */ cursor?: Prisma.delivery_historyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` delivery_histories 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` delivery_histories. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of delivery_histories. */ distinct?: Prisma.Delivery_historyScalarFieldEnum | Prisma.Delivery_historyScalarFieldEnum[] } /** * delivery_history findMany */ export type delivery_historyFindManyArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * Filter, which delivery_histories to fetch. */ where?: Prisma.delivery_historyWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of delivery_histories to fetch. */ orderBy?: Prisma.delivery_historyOrderByWithRelationInput | Prisma.delivery_historyOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing delivery_histories. */ cursor?: Prisma.delivery_historyWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` delivery_histories 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` delivery_histories. */ skip?: number distinct?: Prisma.Delivery_historyScalarFieldEnum | Prisma.Delivery_historyScalarFieldEnum[] } /** * delivery_history create */ export type delivery_historyCreateArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * The data needed to create a delivery_history. */ data: Prisma.XOR } /** * delivery_history createMany */ export type delivery_historyCreateManyArgs = { /** * The data used to create many delivery_histories. */ data: Prisma.delivery_historyCreateManyInput | Prisma.delivery_historyCreateManyInput[] skipDuplicates?: boolean } /** * delivery_history update */ export type delivery_historyUpdateArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * The data needed to update a delivery_history. */ data: Prisma.XOR /** * Choose, which delivery_history to update. */ where: Prisma.delivery_historyWhereUniqueInput } /** * delivery_history updateMany */ export type delivery_historyUpdateManyArgs = { /** * The data used to update delivery_histories. */ data: Prisma.XOR /** * Filter which delivery_histories to update */ where?: Prisma.delivery_historyWhereInput /** * Limit how many delivery_histories to update. */ limit?: number } /** * delivery_history upsert */ export type delivery_historyUpsertArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * The filter to search for the delivery_history to update in case it exists. */ where: Prisma.delivery_historyWhereUniqueInput /** * In case the delivery_history found by the `where` argument doesn't exist, create a new delivery_history with this data. */ create: Prisma.XOR /** * In case the delivery_history was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * delivery_history delete */ export type delivery_historyDeleteArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null /** * Filter which delivery_history to delete. */ where: Prisma.delivery_historyWhereUniqueInput } /** * delivery_history deleteMany */ export type delivery_historyDeleteManyArgs = { /** * Filter which delivery_histories to delete */ where?: Prisma.delivery_historyWhereInput /** * Limit how many delivery_histories to delete. */ limit?: number } /** * delivery_history without action */ export type delivery_historyDefaultArgs = { /** * Select specific fields to fetch from the delivery_history */ select?: Prisma.delivery_historySelect | null /** * Omit specific fields from the delivery_history */ omit?: Prisma.delivery_historyOmit | null }