1170 lines
42 KiB
TypeScript
1170 lines
42 KiB
TypeScript
|
|
/* !!! 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<Prisma.$delivery_historyPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends Delivery_historyAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateDelivery_history]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateDelivery_history[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateDelivery_history[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type delivery_historyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends delivery_historyGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Delivery_historyGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Delivery_historyGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Delivery_historyGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Delivery_historyGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date_orig" | "address1" | "address2" | "city" | "state" | "zip", ExtArgs["result"]["delivery_history"]>
|
|
|
|
export type $delivery_historyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<S extends boolean | null | undefined | delivery_historyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload, S>
|
|
|
|
export type delivery_historyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<delivery_historyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Delivery_historyCountAggregateInputType | true
|
|
}
|
|
|
|
export interface delivery_historyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends delivery_historyFindUniqueArgs>(args: Prisma.SelectSubset<T, delivery_historyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__delivery_historyClient<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, delivery_historyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__delivery_historyClient<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyFindFirstArgs>(args?: Prisma.SelectSubset<T, delivery_historyFindFirstArgs<ExtArgs>>): Prisma.Prisma__delivery_historyClient<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, delivery_historyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__delivery_historyClient<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyFindManyArgs>(args?: Prisma.SelectSubset<T, delivery_historyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyCreateArgs>(args: Prisma.SelectSubset<T, delivery_historyCreateArgs<ExtArgs>>): Prisma.Prisma__delivery_historyClient<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyCreateManyArgs>(args?: Prisma.SelectSubset<T, delivery_historyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends delivery_historyDeleteArgs>(args: Prisma.SelectSubset<T, delivery_historyDeleteArgs<ExtArgs>>): Prisma.Prisma__delivery_historyClient<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyUpdateArgs>(args: Prisma.SelectSubset<T, delivery_historyUpdateArgs<ExtArgs>>): Prisma.Prisma__delivery_historyClient<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyDeleteManyArgs>(args?: Prisma.SelectSubset<T, delivery_historyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends delivery_historyUpdateManyArgs>(args: Prisma.SelectSubset<T, delivery_historyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends delivery_historyUpsertArgs>(args: Prisma.SelectSubset<T, delivery_historyUpsertArgs<ExtArgs>>): Prisma.Prisma__delivery_historyClient<runtime.Types.Result.GetResult<Prisma.$delivery_historyPayload<ExtArgs>, 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<T extends delivery_historyCountArgs>(
|
|
args?: Prisma.Subset<T, delivery_historyCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Delivery_historyCountAggregateOutputType>
|
|
: 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<T extends Delivery_historyAggregateArgs>(args: Prisma.Subset<T, Delivery_historyAggregateArgs>): Prisma.PrismaPromise<GetDelivery_historyAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: delivery_historyGroupByArgs['orderBy'] }
|
|
: { orderBy?: delivery_historyGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
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<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? 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<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? 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<T, delivery_historyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDelivery_historyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* 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<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which delivery_history to fetch.
|
|
*/
|
|
where: Prisma.delivery_historyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* delivery_history findUniqueOrThrow
|
|
*/
|
|
export type delivery_historyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which delivery_history to fetch.
|
|
*/
|
|
where: Prisma.delivery_historyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* delivery_history findFirst
|
|
*/
|
|
export type delivery_historyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a delivery_history.
|
|
*/
|
|
data: Prisma.XOR<Prisma.delivery_historyCreateInput, Prisma.delivery_historyUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* delivery_history createMany
|
|
*/
|
|
export type delivery_historyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many delivery_histories.
|
|
*/
|
|
data: Prisma.delivery_historyCreateManyInput | Prisma.delivery_historyCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* delivery_history update
|
|
*/
|
|
export type delivery_historyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a delivery_history.
|
|
*/
|
|
data: Prisma.XOR<Prisma.delivery_historyUpdateInput, Prisma.delivery_historyUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which delivery_history to update.
|
|
*/
|
|
where: Prisma.delivery_historyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* delivery_history updateMany
|
|
*/
|
|
export type delivery_historyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update delivery_histories.
|
|
*/
|
|
data: Prisma.XOR<Prisma.delivery_historyUpdateManyMutationInput, Prisma.delivery_historyUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | 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<Prisma.delivery_historyCreateInput, Prisma.delivery_historyUncheckedCreateInput>
|
|
/**
|
|
* In case the delivery_history was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.delivery_historyUpdateInput, Prisma.delivery_historyUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* delivery_history delete
|
|
*/
|
|
export type delivery_historyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which delivery_history to delete.
|
|
*/
|
|
where: Prisma.delivery_historyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* delivery_history deleteMany
|
|
*/
|
|
export type delivery_historyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the delivery_history
|
|
*/
|
|
select?: Prisma.delivery_historySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the delivery_history
|
|
*/
|
|
omit?: Prisma.delivery_historyOmit<ExtArgs> | null
|
|
}
|