targo-backend/prisma/generated/mariadb/models/product_zone.ts

1037 lines
36 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 `product_zone` 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 product_zone
*
*/
export type product_zoneModel = runtime.Types.Result.DefaultSelection<Prisma.$product_zonePayload>
export type AggregateProduct_zone = {
_count: Product_zoneCountAggregateOutputType | null
_avg: Product_zoneAvgAggregateOutputType | null
_sum: Product_zoneSumAggregateOutputType | null
_min: Product_zoneMinAggregateOutputType | null
_max: Product_zoneMaxAggregateOutputType | null
}
export type Product_zoneAvgAggregateOutputType = {
id: number | null
zoneNumber: number | null
}
export type Product_zoneSumAggregateOutputType = {
id: bigint | null
zoneNumber: number | null
}
export type Product_zoneMinAggregateOutputType = {
id: bigint | null
zoneNumber: number | null
description: string | null
}
export type Product_zoneMaxAggregateOutputType = {
id: bigint | null
zoneNumber: number | null
description: string | null
}
export type Product_zoneCountAggregateOutputType = {
id: number
zoneNumber: number
description: number
_all: number
}
export type Product_zoneAvgAggregateInputType = {
id?: true
zoneNumber?: true
}
export type Product_zoneSumAggregateInputType = {
id?: true
zoneNumber?: true
}
export type Product_zoneMinAggregateInputType = {
id?: true
zoneNumber?: true
description?: true
}
export type Product_zoneMaxAggregateInputType = {
id?: true
zoneNumber?: true
description?: true
}
export type Product_zoneCountAggregateInputType = {
id?: true
zoneNumber?: true
description?: true
_all?: true
}
export type Product_zoneAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which product_zone to aggregate.
*/
where?: Prisma.product_zoneWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of product_zones to fetch.
*/
orderBy?: Prisma.product_zoneOrderByWithRelationInput | Prisma.product_zoneOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.product_zoneWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` product_zones 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` product_zones.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned product_zones
**/
_count?: true | Product_zoneCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Product_zoneAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Product_zoneSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Product_zoneMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Product_zoneMaxAggregateInputType
}
export type GetProduct_zoneAggregateType<T extends Product_zoneAggregateArgs> = {
[P in keyof T & keyof AggregateProduct_zone]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateProduct_zone[P]>
: Prisma.GetScalarType<T[P], AggregateProduct_zone[P]>
}
export type product_zoneGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.product_zoneWhereInput
orderBy?: Prisma.product_zoneOrderByWithAggregationInput | Prisma.product_zoneOrderByWithAggregationInput[]
by: Prisma.Product_zoneScalarFieldEnum[] | Prisma.Product_zoneScalarFieldEnum
having?: Prisma.product_zoneScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Product_zoneCountAggregateInputType | true
_avg?: Product_zoneAvgAggregateInputType
_sum?: Product_zoneSumAggregateInputType
_min?: Product_zoneMinAggregateInputType
_max?: Product_zoneMaxAggregateInputType
}
export type Product_zoneGroupByOutputType = {
id: bigint
zoneNumber: number
description: string | null
_count: Product_zoneCountAggregateOutputType | null
_avg: Product_zoneAvgAggregateOutputType | null
_sum: Product_zoneSumAggregateOutputType | null
_min: Product_zoneMinAggregateOutputType | null
_max: Product_zoneMaxAggregateOutputType | null
}
type GetProduct_zoneGroupByPayload<T extends product_zoneGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Product_zoneGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Product_zoneGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Product_zoneGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Product_zoneGroupByOutputType[P]>
}
>
>
export type product_zoneWhereInput = {
AND?: Prisma.product_zoneWhereInput | Prisma.product_zoneWhereInput[]
OR?: Prisma.product_zoneWhereInput[]
NOT?: Prisma.product_zoneWhereInput | Prisma.product_zoneWhereInput[]
id?: Prisma.BigIntFilter<"product_zone"> | bigint | number
zoneNumber?: Prisma.IntFilter<"product_zone"> | number
description?: Prisma.StringNullableFilter<"product_zone"> | string | null
}
export type product_zoneOrderByWithRelationInput = {
id?: Prisma.SortOrder
zoneNumber?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.product_zoneOrderByRelevanceInput
}
export type product_zoneWhereUniqueInput = Prisma.AtLeast<{
id?: bigint | number
AND?: Prisma.product_zoneWhereInput | Prisma.product_zoneWhereInput[]
OR?: Prisma.product_zoneWhereInput[]
NOT?: Prisma.product_zoneWhereInput | Prisma.product_zoneWhereInput[]
zoneNumber?: Prisma.IntFilter<"product_zone"> | number
description?: Prisma.StringNullableFilter<"product_zone"> | string | null
}, "id">
export type product_zoneOrderByWithAggregationInput = {
id?: Prisma.SortOrder
zoneNumber?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.product_zoneCountOrderByAggregateInput
_avg?: Prisma.product_zoneAvgOrderByAggregateInput
_max?: Prisma.product_zoneMaxOrderByAggregateInput
_min?: Prisma.product_zoneMinOrderByAggregateInput
_sum?: Prisma.product_zoneSumOrderByAggregateInput
}
export type product_zoneScalarWhereWithAggregatesInput = {
AND?: Prisma.product_zoneScalarWhereWithAggregatesInput | Prisma.product_zoneScalarWhereWithAggregatesInput[]
OR?: Prisma.product_zoneScalarWhereWithAggregatesInput[]
NOT?: Prisma.product_zoneScalarWhereWithAggregatesInput | Prisma.product_zoneScalarWhereWithAggregatesInput[]
id?: Prisma.BigIntWithAggregatesFilter<"product_zone"> | bigint | number
zoneNumber?: Prisma.IntWithAggregatesFilter<"product_zone"> | number
description?: Prisma.StringNullableWithAggregatesFilter<"product_zone"> | string | null
}
export type product_zoneCreateInput = {
id?: bigint | number
zoneNumber: number
description?: string | null
}
export type product_zoneUncheckedCreateInput = {
id?: bigint | number
zoneNumber: number
description?: string | null
}
export type product_zoneUpdateInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
zoneNumber?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type product_zoneUncheckedUpdateInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
zoneNumber?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type product_zoneCreateManyInput = {
id?: bigint | number
zoneNumber: number
description?: string | null
}
export type product_zoneUpdateManyMutationInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
zoneNumber?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type product_zoneUncheckedUpdateManyInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
zoneNumber?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type product_zoneOrderByRelevanceInput = {
fields: Prisma.product_zoneOrderByRelevanceFieldEnum | Prisma.product_zoneOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type product_zoneCountOrderByAggregateInput = {
id?: Prisma.SortOrder
zoneNumber?: Prisma.SortOrder
description?: Prisma.SortOrder
}
export type product_zoneAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
zoneNumber?: Prisma.SortOrder
}
export type product_zoneMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
zoneNumber?: Prisma.SortOrder
description?: Prisma.SortOrder
}
export type product_zoneMinOrderByAggregateInput = {
id?: Prisma.SortOrder
zoneNumber?: Prisma.SortOrder
description?: Prisma.SortOrder
}
export type product_zoneSumOrderByAggregateInput = {
id?: Prisma.SortOrder
zoneNumber?: Prisma.SortOrder
}
export type product_zoneSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
zoneNumber?: boolean
description?: boolean
}, ExtArgs["result"]["product_zone"]>
export type product_zoneSelectScalar = {
id?: boolean
zoneNumber?: boolean
description?: boolean
}
export type product_zoneOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "zoneNumber" | "description", ExtArgs["result"]["product_zone"]>
export type $product_zonePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "product_zone"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: bigint
zoneNumber: number
description: string | null
}, ExtArgs["result"]["product_zone"]>
composites: {}
}
export type product_zoneGetPayload<S extends boolean | null | undefined | product_zoneDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$product_zonePayload, S>
export type product_zoneCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<product_zoneFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Product_zoneCountAggregateInputType | true
}
export interface product_zoneDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['product_zone'], meta: { name: 'product_zone' } }
/**
* Find zero or one Product_zone that matches the filter.
* @param {product_zoneFindUniqueArgs} args - Arguments to find a Product_zone
* @example
* // Get one Product_zone
* const product_zone = await prisma.product_zone.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends product_zoneFindUniqueArgs>(args: Prisma.SelectSubset<T, product_zoneFindUniqueArgs<ExtArgs>>): Prisma.Prisma__product_zoneClient<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Product_zone that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {product_zoneFindUniqueOrThrowArgs} args - Arguments to find a Product_zone
* @example
* // Get one Product_zone
* const product_zone = await prisma.product_zone.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends product_zoneFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, product_zoneFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__product_zoneClient<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Product_zone 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 {product_zoneFindFirstArgs} args - Arguments to find a Product_zone
* @example
* // Get one Product_zone
* const product_zone = await prisma.product_zone.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends product_zoneFindFirstArgs>(args?: Prisma.SelectSubset<T, product_zoneFindFirstArgs<ExtArgs>>): Prisma.Prisma__product_zoneClient<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Product_zone 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 {product_zoneFindFirstOrThrowArgs} args - Arguments to find a Product_zone
* @example
* // Get one Product_zone
* const product_zone = await prisma.product_zone.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends product_zoneFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, product_zoneFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__product_zoneClient<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Product_zones 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 {product_zoneFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Product_zones
* const product_zones = await prisma.product_zone.findMany()
*
* // Get first 10 Product_zones
* const product_zones = await prisma.product_zone.findMany({ take: 10 })
*
* // Only select the `id`
* const product_zoneWithIdOnly = await prisma.product_zone.findMany({ select: { id: true } })
*
*/
findMany<T extends product_zoneFindManyArgs>(args?: Prisma.SelectSubset<T, product_zoneFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Product_zone.
* @param {product_zoneCreateArgs} args - Arguments to create a Product_zone.
* @example
* // Create one Product_zone
* const Product_zone = await prisma.product_zone.create({
* data: {
* // ... data to create a Product_zone
* }
* })
*
*/
create<T extends product_zoneCreateArgs>(args: Prisma.SelectSubset<T, product_zoneCreateArgs<ExtArgs>>): Prisma.Prisma__product_zoneClient<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Product_zones.
* @param {product_zoneCreateManyArgs} args - Arguments to create many Product_zones.
* @example
* // Create many Product_zones
* const product_zone = await prisma.product_zone.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends product_zoneCreateManyArgs>(args?: Prisma.SelectSubset<T, product_zoneCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Product_zone.
* @param {product_zoneDeleteArgs} args - Arguments to delete one Product_zone.
* @example
* // Delete one Product_zone
* const Product_zone = await prisma.product_zone.delete({
* where: {
* // ... filter to delete one Product_zone
* }
* })
*
*/
delete<T extends product_zoneDeleteArgs>(args: Prisma.SelectSubset<T, product_zoneDeleteArgs<ExtArgs>>): Prisma.Prisma__product_zoneClient<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Product_zone.
* @param {product_zoneUpdateArgs} args - Arguments to update one Product_zone.
* @example
* // Update one Product_zone
* const product_zone = await prisma.product_zone.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends product_zoneUpdateArgs>(args: Prisma.SelectSubset<T, product_zoneUpdateArgs<ExtArgs>>): Prisma.Prisma__product_zoneClient<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Product_zones.
* @param {product_zoneDeleteManyArgs} args - Arguments to filter Product_zones to delete.
* @example
* // Delete a few Product_zones
* const { count } = await prisma.product_zone.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends product_zoneDeleteManyArgs>(args?: Prisma.SelectSubset<T, product_zoneDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Product_zones.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {product_zoneUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Product_zones
* const product_zone = await prisma.product_zone.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends product_zoneUpdateManyArgs>(args: Prisma.SelectSubset<T, product_zoneUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Product_zone.
* @param {product_zoneUpsertArgs} args - Arguments to update or create a Product_zone.
* @example
* // Update or create a Product_zone
* const product_zone = await prisma.product_zone.upsert({
* create: {
* // ... data to create a Product_zone
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Product_zone we want to update
* }
* })
*/
upsert<T extends product_zoneUpsertArgs>(args: Prisma.SelectSubset<T, product_zoneUpsertArgs<ExtArgs>>): Prisma.Prisma__product_zoneClient<runtime.Types.Result.GetResult<Prisma.$product_zonePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Product_zones.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {product_zoneCountArgs} args - Arguments to filter Product_zones to count.
* @example
* // Count the number of Product_zones
* const count = await prisma.product_zone.count({
* where: {
* // ... the filter for the Product_zones we want to count
* }
* })
**/
count<T extends product_zoneCountArgs>(
args?: Prisma.Subset<T, product_zoneCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Product_zoneCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Product_zone.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Product_zoneAggregateArgs} 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 Product_zoneAggregateArgs>(args: Prisma.Subset<T, Product_zoneAggregateArgs>): Prisma.PrismaPromise<GetProduct_zoneAggregateType<T>>
/**
* Group by Product_zone.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {product_zoneGroupByArgs} 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 product_zoneGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: product_zoneGroupByArgs['orderBy'] }
: { orderBy?: product_zoneGroupByArgs['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, product_zoneGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProduct_zoneGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the product_zone model
*/
readonly fields: product_zoneFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for product_zone.
* 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__product_zoneClient<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 product_zone model
*/
export interface product_zoneFieldRefs {
readonly id: Prisma.FieldRef<"product_zone", 'BigInt'>
readonly zoneNumber: Prisma.FieldRef<"product_zone", 'Int'>
readonly description: Prisma.FieldRef<"product_zone", 'String'>
}
// Custom InputTypes
/**
* product_zone findUnique
*/
export type product_zoneFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* Filter, which product_zone to fetch.
*/
where: Prisma.product_zoneWhereUniqueInput
}
/**
* product_zone findUniqueOrThrow
*/
export type product_zoneFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* Filter, which product_zone to fetch.
*/
where: Prisma.product_zoneWhereUniqueInput
}
/**
* product_zone findFirst
*/
export type product_zoneFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* Filter, which product_zone to fetch.
*/
where?: Prisma.product_zoneWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of product_zones to fetch.
*/
orderBy?: Prisma.product_zoneOrderByWithRelationInput | Prisma.product_zoneOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for product_zones.
*/
cursor?: Prisma.product_zoneWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` product_zones 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` product_zones.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of product_zones.
*/
distinct?: Prisma.Product_zoneScalarFieldEnum | Prisma.Product_zoneScalarFieldEnum[]
}
/**
* product_zone findFirstOrThrow
*/
export type product_zoneFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* Filter, which product_zone to fetch.
*/
where?: Prisma.product_zoneWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of product_zones to fetch.
*/
orderBy?: Prisma.product_zoneOrderByWithRelationInput | Prisma.product_zoneOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for product_zones.
*/
cursor?: Prisma.product_zoneWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` product_zones 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` product_zones.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of product_zones.
*/
distinct?: Prisma.Product_zoneScalarFieldEnum | Prisma.Product_zoneScalarFieldEnum[]
}
/**
* product_zone findMany
*/
export type product_zoneFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* Filter, which product_zones to fetch.
*/
where?: Prisma.product_zoneWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of product_zones to fetch.
*/
orderBy?: Prisma.product_zoneOrderByWithRelationInput | Prisma.product_zoneOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing product_zones.
*/
cursor?: Prisma.product_zoneWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` product_zones 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` product_zones.
*/
skip?: number
distinct?: Prisma.Product_zoneScalarFieldEnum | Prisma.Product_zoneScalarFieldEnum[]
}
/**
* product_zone create
*/
export type product_zoneCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* The data needed to create a product_zone.
*/
data: Prisma.XOR<Prisma.product_zoneCreateInput, Prisma.product_zoneUncheckedCreateInput>
}
/**
* product_zone createMany
*/
export type product_zoneCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many product_zones.
*/
data: Prisma.product_zoneCreateManyInput | Prisma.product_zoneCreateManyInput[]
skipDuplicates?: boolean
}
/**
* product_zone update
*/
export type product_zoneUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* The data needed to update a product_zone.
*/
data: Prisma.XOR<Prisma.product_zoneUpdateInput, Prisma.product_zoneUncheckedUpdateInput>
/**
* Choose, which product_zone to update.
*/
where: Prisma.product_zoneWhereUniqueInput
}
/**
* product_zone updateMany
*/
export type product_zoneUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update product_zones.
*/
data: Prisma.XOR<Prisma.product_zoneUpdateManyMutationInput, Prisma.product_zoneUncheckedUpdateManyInput>
/**
* Filter which product_zones to update
*/
where?: Prisma.product_zoneWhereInput
/**
* Limit how many product_zones to update.
*/
limit?: number
}
/**
* product_zone upsert
*/
export type product_zoneUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* The filter to search for the product_zone to update in case it exists.
*/
where: Prisma.product_zoneWhereUniqueInput
/**
* In case the product_zone found by the `where` argument doesn't exist, create a new product_zone with this data.
*/
create: Prisma.XOR<Prisma.product_zoneCreateInput, Prisma.product_zoneUncheckedCreateInput>
/**
* In case the product_zone was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.product_zoneUpdateInput, Prisma.product_zoneUncheckedUpdateInput>
}
/**
* product_zone delete
*/
export type product_zoneDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
/**
* Filter which product_zone to delete.
*/
where: Prisma.product_zoneWhereUniqueInput
}
/**
* product_zone deleteMany
*/
export type product_zoneDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which product_zones to delete
*/
where?: Prisma.product_zoneWhereInput
/**
* Limit how many product_zones to delete.
*/
limit?: number
}
/**
* product_zone without action
*/
export type product_zoneDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the product_zone
*/
select?: Prisma.product_zoneSelect<ExtArgs> | null
/**
* Omit specific fields from the product_zone
*/
omit?: Prisma.product_zoneOmit<ExtArgs> | null
}