1106 lines
37 KiB
TypeScript
1106 lines
37 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 `Inventory` 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.js"
|
||
|
|
import type * as Prisma from "../internal/prismaNamespace.js"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Model Inventory
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
export type InventoryModel = runtime.Types.Result.DefaultSelection<Prisma.$InventoryPayload>
|
||
|
|
|
||
|
|
export type AggregateInventory = {
|
||
|
|
_count: InventoryCountAggregateOutputType | null
|
||
|
|
_avg: InventoryAvgAggregateOutputType | null
|
||
|
|
_sum: InventorySumAggregateOutputType | null
|
||
|
|
_min: InventoryMinAggregateOutputType | null
|
||
|
|
_max: InventoryMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryAvgAggregateOutputType = {
|
||
|
|
id: number | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventorySumAggregateOutputType = {
|
||
|
|
id: number | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryMinAggregateOutputType = {
|
||
|
|
id: number | null
|
||
|
|
name: string | null
|
||
|
|
location: string | null
|
||
|
|
isActive: boolean | null
|
||
|
|
createdAt: Date | null
|
||
|
|
updatedAt: Date | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryMaxAggregateOutputType = {
|
||
|
|
id: number | null
|
||
|
|
name: string | null
|
||
|
|
location: string | null
|
||
|
|
isActive: boolean | null
|
||
|
|
createdAt: Date | null
|
||
|
|
updatedAt: Date | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryCountAggregateOutputType = {
|
||
|
|
id: number
|
||
|
|
name: number
|
||
|
|
location: number
|
||
|
|
isActive: number
|
||
|
|
createdAt: number
|
||
|
|
updatedAt: number
|
||
|
|
_all: number
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type InventoryAvgAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventorySumAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryMinAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
name?: true
|
||
|
|
location?: true
|
||
|
|
isActive?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryMaxAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
name?: true
|
||
|
|
location?: true
|
||
|
|
isActive?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryCountAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
name?: true
|
||
|
|
location?: true
|
||
|
|
isActive?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
_all?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Filter which Inventory to aggregate.
|
||
|
|
*/
|
||
|
|
where?: Prisma.InventoryWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of Inventories to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the start position
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.InventoryWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` Inventories 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` Inventories.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Count returned Inventories
|
||
|
|
**/
|
||
|
|
_count?: true | InventoryCountAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to average
|
||
|
|
**/
|
||
|
|
_avg?: InventoryAvgAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to sum
|
||
|
|
**/
|
||
|
|
_sum?: InventorySumAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to find the minimum value
|
||
|
|
**/
|
||
|
|
_min?: InventoryMinAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to find the maximum value
|
||
|
|
**/
|
||
|
|
_max?: InventoryMaxAggregateInputType
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GetInventoryAggregateType<T extends InventoryAggregateArgs> = {
|
||
|
|
[P in keyof T & keyof AggregateInventory]: P extends '_count' | 'count'
|
||
|
|
? T[P] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateInventory[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateInventory[P]>
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type InventoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
where?: Prisma.InventoryWhereInput
|
||
|
|
orderBy?: Prisma.InventoryOrderByWithAggregationInput | Prisma.InventoryOrderByWithAggregationInput[]
|
||
|
|
by: Prisma.InventoryScalarFieldEnum[] | Prisma.InventoryScalarFieldEnum
|
||
|
|
having?: Prisma.InventoryScalarWhereWithAggregatesInput
|
||
|
|
take?: number
|
||
|
|
skip?: number
|
||
|
|
_count?: InventoryCountAggregateInputType | true
|
||
|
|
_avg?: InventoryAvgAggregateInputType
|
||
|
|
_sum?: InventorySumAggregateInputType
|
||
|
|
_min?: InventoryMinAggregateInputType
|
||
|
|
_max?: InventoryMaxAggregateInputType
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryGroupByOutputType = {
|
||
|
|
id: number
|
||
|
|
name: string
|
||
|
|
location: string | null
|
||
|
|
isActive: boolean
|
||
|
|
createdAt: Date
|
||
|
|
updatedAt: Date
|
||
|
|
_count: InventoryCountAggregateOutputType | null
|
||
|
|
_avg: InventoryAvgAggregateOutputType | null
|
||
|
|
_sum: InventorySumAggregateOutputType | null
|
||
|
|
_min: InventoryMinAggregateOutputType | null
|
||
|
|
_max: InventoryMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
type GetInventoryGroupByPayload<T extends InventoryGroupByArgs> = Prisma.PrismaPromise<
|
||
|
|
Array<
|
||
|
|
Prisma.PickEnumerable<InventoryGroupByOutputType, T['by']> &
|
||
|
|
{
|
||
|
|
[P in ((keyof T) & (keyof InventoryGroupByOutputType))]: P extends '_count'
|
||
|
|
? T[P] extends boolean
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], InventoryGroupByOutputType[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], InventoryGroupByOutputType[P]>
|
||
|
|
}
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type InventoryWhereInput = {
|
||
|
|
AND?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[]
|
||
|
|
OR?: Prisma.InventoryWhereInput[]
|
||
|
|
NOT?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[]
|
||
|
|
id?: Prisma.IntFilter<"Inventory"> | number
|
||
|
|
name?: Prisma.StringFilter<"Inventory"> | string
|
||
|
|
location?: Prisma.StringNullableFilter<"Inventory"> | string | null
|
||
|
|
isActive?: Prisma.BoolFilter<"Inventory"> | boolean
|
||
|
|
createdAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryOrderByWithRelationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
location?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
isActive?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
_relevance?: Prisma.InventoryOrderByRelevanceInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryWhereUniqueInput = Prisma.AtLeast<{
|
||
|
|
id?: number
|
||
|
|
AND?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[]
|
||
|
|
OR?: Prisma.InventoryWhereInput[]
|
||
|
|
NOT?: Prisma.InventoryWhereInput | Prisma.InventoryWhereInput[]
|
||
|
|
name?: Prisma.StringFilter<"Inventory"> | string
|
||
|
|
location?: Prisma.StringNullableFilter<"Inventory"> | string | null
|
||
|
|
isActive?: Prisma.BoolFilter<"Inventory"> | boolean
|
||
|
|
createdAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<"Inventory"> | Date | string
|
||
|
|
}, "id">
|
||
|
|
|
||
|
|
export type InventoryOrderByWithAggregationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
location?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
isActive?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
_count?: Prisma.InventoryCountOrderByAggregateInput
|
||
|
|
_avg?: Prisma.InventoryAvgOrderByAggregateInput
|
||
|
|
_max?: Prisma.InventoryMaxOrderByAggregateInput
|
||
|
|
_min?: Prisma.InventoryMinOrderByAggregateInput
|
||
|
|
_sum?: Prisma.InventorySumOrderByAggregateInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryScalarWhereWithAggregatesInput = {
|
||
|
|
AND?: Prisma.InventoryScalarWhereWithAggregatesInput | Prisma.InventoryScalarWhereWithAggregatesInput[]
|
||
|
|
OR?: Prisma.InventoryScalarWhereWithAggregatesInput[]
|
||
|
|
NOT?: Prisma.InventoryScalarWhereWithAggregatesInput | Prisma.InventoryScalarWhereWithAggregatesInput[]
|
||
|
|
id?: Prisma.IntWithAggregatesFilter<"Inventory"> | number
|
||
|
|
name?: Prisma.StringWithAggregatesFilter<"Inventory"> | string
|
||
|
|
location?: Prisma.StringNullableWithAggregatesFilter<"Inventory"> | string | null
|
||
|
|
isActive?: Prisma.BoolWithAggregatesFilter<"Inventory"> | boolean
|
||
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Inventory"> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Inventory"> | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryCreateInput = {
|
||
|
|
name: string
|
||
|
|
location?: string | null
|
||
|
|
isActive?: boolean
|
||
|
|
createdAt: Date | string
|
||
|
|
updatedAt: Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryUncheckedCreateInput = {
|
||
|
|
id?: number
|
||
|
|
name: string
|
||
|
|
location?: string | null
|
||
|
|
isActive?: boolean
|
||
|
|
createdAt: Date | string
|
||
|
|
updatedAt: Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryUpdateInput = {
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryUncheckedUpdateInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryCreateManyInput = {
|
||
|
|
id?: number
|
||
|
|
name: string
|
||
|
|
location?: string | null
|
||
|
|
isActive?: boolean
|
||
|
|
createdAt: Date | string
|
||
|
|
updatedAt: Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryUpdateManyMutationInput = {
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryUncheckedUpdateManyInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryOrderByRelevanceInput = {
|
||
|
|
fields: Prisma.InventoryOrderByRelevanceFieldEnum | Prisma.InventoryOrderByRelevanceFieldEnum[]
|
||
|
|
sort: Prisma.SortOrder
|
||
|
|
search: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryCountOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
location?: Prisma.SortOrder
|
||
|
|
isActive?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryAvgOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryMaxOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
location?: Prisma.SortOrder
|
||
|
|
isActive?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryMinOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
location?: Prisma.SortOrder
|
||
|
|
isActive?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventorySumOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type InventorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||
|
|
id?: boolean
|
||
|
|
name?: boolean
|
||
|
|
location?: boolean
|
||
|
|
isActive?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
}, ExtArgs["result"]["inventory"]>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type InventorySelectScalar = {
|
||
|
|
id?: boolean
|
||
|
|
name?: boolean
|
||
|
|
location?: boolean
|
||
|
|
isActive?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "location" | "isActive" | "createdAt" | "updatedAt", ExtArgs["result"]["inventory"]>
|
||
|
|
|
||
|
|
export type $InventoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
name: "Inventory"
|
||
|
|
objects: {}
|
||
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||
|
|
id: number
|
||
|
|
name: string
|
||
|
|
location: string | null
|
||
|
|
isActive: boolean
|
||
|
|
createdAt: Date
|
||
|
|
updatedAt: Date
|
||
|
|
}, ExtArgs["result"]["inventory"]>
|
||
|
|
composites: {}
|
||
|
|
}
|
||
|
|
|
||
|
|
export type InventoryGetPayload<S extends boolean | null | undefined | InventoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InventoryPayload, S>
|
||
|
|
|
||
|
|
export type InventoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||
|
|
Omit<InventoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||
|
|
select?: InventoryCountAggregateInputType | true
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface InventoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Inventory'], meta: { name: 'Inventory' } }
|
||
|
|
/**
|
||
|
|
* Find zero or one Inventory that matches the filter.
|
||
|
|
* @param {InventoryFindUniqueArgs} args - Arguments to find a Inventory
|
||
|
|
* @example
|
||
|
|
* // Get one Inventory
|
||
|
|
* const inventory = await prisma.inventory.findUnique({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findUnique<T extends InventoryFindUniqueArgs>(args: Prisma.SelectSubset<T, InventoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find one Inventory that matches the filter or throw an error with `error.code='P2025'`
|
||
|
|
* if no matches were found.
|
||
|
|
* @param {InventoryFindUniqueOrThrowArgs} args - Arguments to find a Inventory
|
||
|
|
* @example
|
||
|
|
* // Get one Inventory
|
||
|
|
* const inventory = await prisma.inventory.findUniqueOrThrow({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findUniqueOrThrow<T extends InventoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InventoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find the first Inventory 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 {InventoryFindFirstArgs} args - Arguments to find a Inventory
|
||
|
|
* @example
|
||
|
|
* // Get one Inventory
|
||
|
|
* const inventory = await prisma.inventory.findFirst({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findFirst<T extends InventoryFindFirstArgs>(args?: Prisma.SelectSubset<T, InventoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find the first Inventory 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 {InventoryFindFirstOrThrowArgs} args - Arguments to find a Inventory
|
||
|
|
* @example
|
||
|
|
* // Get one Inventory
|
||
|
|
* const inventory = await prisma.inventory.findFirstOrThrow({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findFirstOrThrow<T extends InventoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InventoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find zero or more Inventories 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 {InventoryFindManyArgs} args - Arguments to filter and select certain fields only.
|
||
|
|
* @example
|
||
|
|
* // Get all Inventories
|
||
|
|
* const inventories = await prisma.inventory.findMany()
|
||
|
|
*
|
||
|
|
* // Get first 10 Inventories
|
||
|
|
* const inventories = await prisma.inventory.findMany({ take: 10 })
|
||
|
|
*
|
||
|
|
* // Only select the `id`
|
||
|
|
* const inventoryWithIdOnly = await prisma.inventory.findMany({ select: { id: true } })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
findMany<T extends InventoryFindManyArgs>(args?: Prisma.SelectSubset<T, InventoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create a Inventory.
|
||
|
|
* @param {InventoryCreateArgs} args - Arguments to create a Inventory.
|
||
|
|
* @example
|
||
|
|
* // Create one Inventory
|
||
|
|
* const Inventory = await prisma.inventory.create({
|
||
|
|
* data: {
|
||
|
|
* // ... data to create a Inventory
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
create<T extends InventoryCreateArgs>(args: Prisma.SelectSubset<T, InventoryCreateArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create many Inventories.
|
||
|
|
* @param {InventoryCreateManyArgs} args - Arguments to create many Inventories.
|
||
|
|
* @example
|
||
|
|
* // Create many Inventories
|
||
|
|
* const inventory = await prisma.inventory.createMany({
|
||
|
|
* data: [
|
||
|
|
* // ... provide data here
|
||
|
|
* ]
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
createMany<T extends InventoryCreateManyArgs>(args?: Prisma.SelectSubset<T, InventoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Delete a Inventory.
|
||
|
|
* @param {InventoryDeleteArgs} args - Arguments to delete one Inventory.
|
||
|
|
* @example
|
||
|
|
* // Delete one Inventory
|
||
|
|
* const Inventory = await prisma.inventory.delete({
|
||
|
|
* where: {
|
||
|
|
* // ... filter to delete one Inventory
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
delete<T extends InventoryDeleteArgs>(args: Prisma.SelectSubset<T, InventoryDeleteArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update one Inventory.
|
||
|
|
* @param {InventoryUpdateArgs} args - Arguments to update one Inventory.
|
||
|
|
* @example
|
||
|
|
* // Update one Inventory
|
||
|
|
* const inventory = await prisma.inventory.update({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: {
|
||
|
|
* // ... provide data here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
update<T extends InventoryUpdateArgs>(args: Prisma.SelectSubset<T, InventoryUpdateArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Delete zero or more Inventories.
|
||
|
|
* @param {InventoryDeleteManyArgs} args - Arguments to filter Inventories to delete.
|
||
|
|
* @example
|
||
|
|
* // Delete a few Inventories
|
||
|
|
* const { count } = await prisma.inventory.deleteMany({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
deleteMany<T extends InventoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, InventoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update zero or more Inventories.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {InventoryUpdateManyArgs} args - Arguments to update one or more rows.
|
||
|
|
* @example
|
||
|
|
* // Update many Inventories
|
||
|
|
* const inventory = await prisma.inventory.updateMany({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: {
|
||
|
|
* // ... provide data here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
updateMany<T extends InventoryUpdateManyArgs>(args: Prisma.SelectSubset<T, InventoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create or update one Inventory.
|
||
|
|
* @param {InventoryUpsertArgs} args - Arguments to update or create a Inventory.
|
||
|
|
* @example
|
||
|
|
* // Update or create a Inventory
|
||
|
|
* const inventory = await prisma.inventory.upsert({
|
||
|
|
* create: {
|
||
|
|
* // ... data to create a Inventory
|
||
|
|
* },
|
||
|
|
* update: {
|
||
|
|
* // ... in case it already exists, update
|
||
|
|
* },
|
||
|
|
* where: {
|
||
|
|
* // ... the filter for the Inventory we want to update
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
upsert<T extends InventoryUpsertArgs>(args: Prisma.SelectSubset<T, InventoryUpsertArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Count the number of Inventories.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {InventoryCountArgs} args - Arguments to filter Inventories to count.
|
||
|
|
* @example
|
||
|
|
* // Count the number of Inventories
|
||
|
|
* const count = await prisma.inventory.count({
|
||
|
|
* where: {
|
||
|
|
* // ... the filter for the Inventories we want to count
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
**/
|
||
|
|
count<T extends InventoryCountArgs>(
|
||
|
|
args?: Prisma.Subset<T, InventoryCountArgs>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
||
|
|
? T['select'] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T['select'], InventoryCountAggregateOutputType>
|
||
|
|
: number
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Allows you to perform aggregations operations on a Inventory.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {InventoryAggregateArgs} 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 InventoryAggregateArgs>(args: Prisma.Subset<T, InventoryAggregateArgs>): Prisma.PrismaPromise<GetInventoryAggregateType<T>>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Group by Inventory.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {InventoryGroupByArgs} 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 InventoryGroupByArgs,
|
||
|
|
HasSelectOrTake extends Prisma.Or<
|
||
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
||
|
|
>,
|
||
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||
|
|
? { orderBy: InventoryGroupByArgs['orderBy'] }
|
||
|
|
: { orderBy?: InventoryGroupByArgs['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, InventoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInventoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||
|
|
/**
|
||
|
|
* Fields of the Inventory model
|
||
|
|
*/
|
||
|
|
readonly fields: InventoryFieldRefs;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The delegate class that acts as a "Promise-like" for Inventory.
|
||
|
|
* 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__InventoryClient<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 Inventory model
|
||
|
|
*/
|
||
|
|
export interface InventoryFieldRefs {
|
||
|
|
readonly id: Prisma.FieldRef<"Inventory", 'Int'>
|
||
|
|
readonly name: Prisma.FieldRef<"Inventory", 'String'>
|
||
|
|
readonly location: Prisma.FieldRef<"Inventory", 'String'>
|
||
|
|
readonly isActive: Prisma.FieldRef<"Inventory", 'Boolean'>
|
||
|
|
readonly createdAt: Prisma.FieldRef<"Inventory", 'DateTime'>
|
||
|
|
readonly updatedAt: Prisma.FieldRef<"Inventory", 'DateTime'>
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// Custom InputTypes
|
||
|
|
/**
|
||
|
|
* Inventory findUnique
|
||
|
|
*/
|
||
|
|
export type InventoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Inventory to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.InventoryWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory findUniqueOrThrow
|
||
|
|
*/
|
||
|
|
export type InventoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Inventory to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.InventoryWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory findFirst
|
||
|
|
*/
|
||
|
|
export type InventoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Inventory to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.InventoryWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of Inventories to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for searching for Inventories.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.InventoryWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` Inventories 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` Inventories.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of Inventories.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory findFirstOrThrow
|
||
|
|
*/
|
||
|
|
export type InventoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Inventory to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.InventoryWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of Inventories to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for searching for Inventories.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.InventoryWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` Inventories 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` Inventories.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of Inventories.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory findMany
|
||
|
|
*/
|
||
|
|
export type InventoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Inventories to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.InventoryWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of Inventories to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?: Prisma.InventoryOrderByWithRelationInput | Prisma.InventoryOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for listing Inventories.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.InventoryWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` Inventories 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` Inventories.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
distinct?: Prisma.InventoryScalarFieldEnum | Prisma.InventoryScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory create
|
||
|
|
*/
|
||
|
|
export type InventoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to create a Inventory.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.InventoryCreateInput, Prisma.InventoryUncheckedCreateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory createMany
|
||
|
|
*/
|
||
|
|
export type InventoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* The data used to create many Inventories.
|
||
|
|
*/
|
||
|
|
data: Prisma.InventoryCreateManyInput | Prisma.InventoryCreateManyInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory update
|
||
|
|
*/
|
||
|
|
export type InventoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to update a Inventory.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.InventoryUpdateInput, Prisma.InventoryUncheckedUpdateInput>
|
||
|
|
/**
|
||
|
|
* Choose, which Inventory to update.
|
||
|
|
*/
|
||
|
|
where: Prisma.InventoryWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory updateMany
|
||
|
|
*/
|
||
|
|
export type InventoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* The data used to update Inventories.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.InventoryUpdateManyMutationInput, Prisma.InventoryUncheckedUpdateManyInput>
|
||
|
|
/**
|
||
|
|
* Filter which Inventories to update
|
||
|
|
*/
|
||
|
|
where?: Prisma.InventoryWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many Inventories to update.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory upsert
|
||
|
|
*/
|
||
|
|
export type InventoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The filter to search for the Inventory to update in case it exists.
|
||
|
|
*/
|
||
|
|
where: Prisma.InventoryWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* In case the Inventory found by the `where` argument doesn't exist, create a new Inventory with this data.
|
||
|
|
*/
|
||
|
|
create: Prisma.XOR<Prisma.InventoryCreateInput, Prisma.InventoryUncheckedCreateInput>
|
||
|
|
/**
|
||
|
|
* In case the Inventory was found with the provided `where` argument, update it with this data.
|
||
|
|
*/
|
||
|
|
update: Prisma.XOR<Prisma.InventoryUpdateInput, Prisma.InventoryUncheckedUpdateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory delete
|
||
|
|
*/
|
||
|
|
export type InventoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter which Inventory to delete.
|
||
|
|
*/
|
||
|
|
where: Prisma.InventoryWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory deleteMany
|
||
|
|
*/
|
||
|
|
export type InventoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Filter which Inventories to delete
|
||
|
|
*/
|
||
|
|
where?: Prisma.InventoryWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many Inventories to delete.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Inventory without action
|
||
|
|
*/
|
||
|
|
export type InventoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Inventory
|
||
|
|
*/
|
||
|
|
select?: Prisma.InventorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Inventory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||
|
|
}
|