iboard/generated/prisma/models/Econ_SowInventory.ts

1091 lines
40 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 `Econ_SowInventory` 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.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model Econ_SowInventory
*
*/
export type Econ_SowInventoryModel = runtime.Types.Result.DefaultSelection<Prisma.$Econ_SowInventoryPayload>
export type AggregateEcon_SowInventory = {
_count: Econ_SowInventoryCountAggregateOutputType | null
_avg: Econ_SowInventoryAvgAggregateOutputType | null
_sum: Econ_SowInventorySumAggregateOutputType | null
_min: Econ_SowInventoryMinAggregateOutputType | null
_max: Econ_SowInventoryMaxAggregateOutputType | null
}
export type Econ_SowInventoryAvgAggregateOutputType = {
id: number | null
inventory: number | null
}
export type Econ_SowInventorySumAggregateOutputType = {
id: number | null
inventory: number | null
}
export type Econ_SowInventoryMinAggregateOutputType = {
id: number | null
month: string | null
inventory: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type Econ_SowInventoryMaxAggregateOutputType = {
id: number | null
month: string | null
inventory: number | null
createdAt: Date | null
updatedAt: Date | null
}
export type Econ_SowInventoryCountAggregateOutputType = {
id: number
month: number
inventory: number
createdAt: number
updatedAt: number
_all: number
}
export type Econ_SowInventoryAvgAggregateInputType = {
id?: true
inventory?: true
}
export type Econ_SowInventorySumAggregateInputType = {
id?: true
inventory?: true
}
export type Econ_SowInventoryMinAggregateInputType = {
id?: true
month?: true
inventory?: true
createdAt?: true
updatedAt?: true
}
export type Econ_SowInventoryMaxAggregateInputType = {
id?: true
month?: true
inventory?: true
createdAt?: true
updatedAt?: true
}
export type Econ_SowInventoryCountAggregateInputType = {
id?: true
month?: true
inventory?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type Econ_SowInventoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Econ_SowInventory to aggregate.
*/
where?: Prisma.Econ_SowInventoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Econ_SowInventories to fetch.
*/
orderBy?: Prisma.Econ_SowInventoryOrderByWithRelationInput | Prisma.Econ_SowInventoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.Econ_SowInventoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Econ_SowInventories 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` Econ_SowInventories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Econ_SowInventories
**/
_count?: true | Econ_SowInventoryCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Econ_SowInventoryAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Econ_SowInventorySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Econ_SowInventoryMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Econ_SowInventoryMaxAggregateInputType
}
export type GetEcon_SowInventoryAggregateType<T extends Econ_SowInventoryAggregateArgs> = {
[P in keyof T & keyof AggregateEcon_SowInventory]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateEcon_SowInventory[P]>
: Prisma.GetScalarType<T[P], AggregateEcon_SowInventory[P]>
}
export type Econ_SowInventoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.Econ_SowInventoryWhereInput
orderBy?: Prisma.Econ_SowInventoryOrderByWithAggregationInput | Prisma.Econ_SowInventoryOrderByWithAggregationInput[]
by: Prisma.Econ_SowInventoryScalarFieldEnum[] | Prisma.Econ_SowInventoryScalarFieldEnum
having?: Prisma.Econ_SowInventoryScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Econ_SowInventoryCountAggregateInputType | true
_avg?: Econ_SowInventoryAvgAggregateInputType
_sum?: Econ_SowInventorySumAggregateInputType
_min?: Econ_SowInventoryMinAggregateInputType
_max?: Econ_SowInventoryMaxAggregateInputType
}
export type Econ_SowInventoryGroupByOutputType = {
id: number
month: string
inventory: number
createdAt: Date
updatedAt: Date
_count: Econ_SowInventoryCountAggregateOutputType | null
_avg: Econ_SowInventoryAvgAggregateOutputType | null
_sum: Econ_SowInventorySumAggregateOutputType | null
_min: Econ_SowInventoryMinAggregateOutputType | null
_max: Econ_SowInventoryMaxAggregateOutputType | null
}
export type GetEcon_SowInventoryGroupByPayload<T extends Econ_SowInventoryGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Econ_SowInventoryGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Econ_SowInventoryGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Econ_SowInventoryGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Econ_SowInventoryGroupByOutputType[P]>
}
>
>
export type Econ_SowInventoryWhereInput = {
AND?: Prisma.Econ_SowInventoryWhereInput | Prisma.Econ_SowInventoryWhereInput[]
OR?: Prisma.Econ_SowInventoryWhereInput[]
NOT?: Prisma.Econ_SowInventoryWhereInput | Prisma.Econ_SowInventoryWhereInput[]
id?: Prisma.IntFilter<"Econ_SowInventory"> | number
month?: Prisma.StringFilter<"Econ_SowInventory"> | string
inventory?: Prisma.IntFilter<"Econ_SowInventory"> | number
createdAt?: Prisma.DateTimeFilter<"Econ_SowInventory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Econ_SowInventory"> | Date | string
}
export type Econ_SowInventoryOrderByWithRelationInput = {
id?: Prisma.SortOrder
month?: Prisma.SortOrder
inventory?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_relevance?: Prisma.Econ_SowInventoryOrderByRelevanceInput
}
export type Econ_SowInventoryWhereUniqueInput = Prisma.AtLeast<{
id?: number
month?: string
AND?: Prisma.Econ_SowInventoryWhereInput | Prisma.Econ_SowInventoryWhereInput[]
OR?: Prisma.Econ_SowInventoryWhereInput[]
NOT?: Prisma.Econ_SowInventoryWhereInput | Prisma.Econ_SowInventoryWhereInput[]
inventory?: Prisma.IntFilter<"Econ_SowInventory"> | number
createdAt?: Prisma.DateTimeFilter<"Econ_SowInventory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Econ_SowInventory"> | Date | string
}, "id" | "month">
export type Econ_SowInventoryOrderByWithAggregationInput = {
id?: Prisma.SortOrder
month?: Prisma.SortOrder
inventory?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.Econ_SowInventoryCountOrderByAggregateInput
_avg?: Prisma.Econ_SowInventoryAvgOrderByAggregateInput
_max?: Prisma.Econ_SowInventoryMaxOrderByAggregateInput
_min?: Prisma.Econ_SowInventoryMinOrderByAggregateInput
_sum?: Prisma.Econ_SowInventorySumOrderByAggregateInput
}
export type Econ_SowInventoryScalarWhereWithAggregatesInput = {
AND?: Prisma.Econ_SowInventoryScalarWhereWithAggregatesInput | Prisma.Econ_SowInventoryScalarWhereWithAggregatesInput[]
OR?: Prisma.Econ_SowInventoryScalarWhereWithAggregatesInput[]
NOT?: Prisma.Econ_SowInventoryScalarWhereWithAggregatesInput | Prisma.Econ_SowInventoryScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"Econ_SowInventory"> | number
month?: Prisma.StringWithAggregatesFilter<"Econ_SowInventory"> | string
inventory?: Prisma.IntWithAggregatesFilter<"Econ_SowInventory"> | number
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Econ_SowInventory"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Econ_SowInventory"> | Date | string
}
export type Econ_SowInventoryCreateInput = {
month: string
inventory: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type Econ_SowInventoryUncheckedCreateInput = {
id?: number
month: string
inventory: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type Econ_SowInventoryUpdateInput = {
month?: Prisma.StringFieldUpdateOperationsInput | string
inventory?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type Econ_SowInventoryUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
month?: Prisma.StringFieldUpdateOperationsInput | string
inventory?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type Econ_SowInventoryCreateManyInput = {
id?: number
month: string
inventory: number
createdAt?: Date | string
updatedAt?: Date | string
}
export type Econ_SowInventoryUpdateManyMutationInput = {
month?: Prisma.StringFieldUpdateOperationsInput | string
inventory?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type Econ_SowInventoryUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
month?: Prisma.StringFieldUpdateOperationsInput | string
inventory?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type Econ_SowInventoryOrderByRelevanceInput = {
fields: Prisma.Econ_SowInventoryOrderByRelevanceFieldEnum | Prisma.Econ_SowInventoryOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type Econ_SowInventoryCountOrderByAggregateInput = {
id?: Prisma.SortOrder
month?: Prisma.SortOrder
inventory?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type Econ_SowInventoryAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
inventory?: Prisma.SortOrder
}
export type Econ_SowInventoryMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
month?: Prisma.SortOrder
inventory?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type Econ_SowInventoryMinOrderByAggregateInput = {
id?: Prisma.SortOrder
month?: Prisma.SortOrder
inventory?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type Econ_SowInventorySumOrderByAggregateInput = {
id?: Prisma.SortOrder
inventory?: Prisma.SortOrder
}
export type Econ_SowInventorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
month?: boolean
inventory?: boolean
createdAt?: boolean
updatedAt?: boolean
}, ExtArgs["result"]["econ_SowInventory"]>
export type Econ_SowInventorySelectScalar = {
id?: boolean
month?: boolean
inventory?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type Econ_SowInventoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "month" | "inventory" | "createdAt" | "updatedAt", ExtArgs["result"]["econ_SowInventory"]>
export type $Econ_SowInventoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Econ_SowInventory"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
month: string
inventory: number
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["econ_SowInventory"]>
composites: {}
}
export type Econ_SowInventoryGetPayload<S extends boolean | null | undefined | Econ_SowInventoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload, S>
export type Econ_SowInventoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<Econ_SowInventoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Econ_SowInventoryCountAggregateInputType | true
}
export interface Econ_SowInventoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Econ_SowInventory'], meta: { name: 'Econ_SowInventory' } }
/**
* Find zero or one Econ_SowInventory that matches the filter.
* @param {Econ_SowInventoryFindUniqueArgs} args - Arguments to find a Econ_SowInventory
* @example
* // Get one Econ_SowInventory
* const econ_SowInventory = await prisma.econ_SowInventory.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends Econ_SowInventoryFindUniqueArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__Econ_SowInventoryClient<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Econ_SowInventory that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {Econ_SowInventoryFindUniqueOrThrowArgs} args - Arguments to find a Econ_SowInventory
* @example
* // Get one Econ_SowInventory
* const econ_SowInventory = await prisma.econ_SowInventory.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends Econ_SowInventoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__Econ_SowInventoryClient<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Econ_SowInventory 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 {Econ_SowInventoryFindFirstArgs} args - Arguments to find a Econ_SowInventory
* @example
* // Get one Econ_SowInventory
* const econ_SowInventory = await prisma.econ_SowInventory.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends Econ_SowInventoryFindFirstArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__Econ_SowInventoryClient<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Econ_SowInventory 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 {Econ_SowInventoryFindFirstOrThrowArgs} args - Arguments to find a Econ_SowInventory
* @example
* // Get one Econ_SowInventory
* const econ_SowInventory = await prisma.econ_SowInventory.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends Econ_SowInventoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__Econ_SowInventoryClient<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Econ_SowInventories 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 {Econ_SowInventoryFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Econ_SowInventories
* const econ_SowInventories = await prisma.econ_SowInventory.findMany()
*
* // Get first 10 Econ_SowInventories
* const econ_SowInventories = await prisma.econ_SowInventory.findMany({ take: 10 })
*
* // Only select the `id`
* const econ_SowInventoryWithIdOnly = await prisma.econ_SowInventory.findMany({ select: { id: true } })
*
*/
findMany<T extends Econ_SowInventoryFindManyArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Econ_SowInventory.
* @param {Econ_SowInventoryCreateArgs} args - Arguments to create a Econ_SowInventory.
* @example
* // Create one Econ_SowInventory
* const Econ_SowInventory = await prisma.econ_SowInventory.create({
* data: {
* // ... data to create a Econ_SowInventory
* }
* })
*
*/
create<T extends Econ_SowInventoryCreateArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryCreateArgs<ExtArgs>>): Prisma.Prisma__Econ_SowInventoryClient<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Econ_SowInventories.
* @param {Econ_SowInventoryCreateManyArgs} args - Arguments to create many Econ_SowInventories.
* @example
* // Create many Econ_SowInventories
* const econ_SowInventory = await prisma.econ_SowInventory.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends Econ_SowInventoryCreateManyArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Econ_SowInventory.
* @param {Econ_SowInventoryDeleteArgs} args - Arguments to delete one Econ_SowInventory.
* @example
* // Delete one Econ_SowInventory
* const Econ_SowInventory = await prisma.econ_SowInventory.delete({
* where: {
* // ... filter to delete one Econ_SowInventory
* }
* })
*
*/
delete<T extends Econ_SowInventoryDeleteArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryDeleteArgs<ExtArgs>>): Prisma.Prisma__Econ_SowInventoryClient<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Econ_SowInventory.
* @param {Econ_SowInventoryUpdateArgs} args - Arguments to update one Econ_SowInventory.
* @example
* // Update one Econ_SowInventory
* const econ_SowInventory = await prisma.econ_SowInventory.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends Econ_SowInventoryUpdateArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryUpdateArgs<ExtArgs>>): Prisma.Prisma__Econ_SowInventoryClient<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Econ_SowInventories.
* @param {Econ_SowInventoryDeleteManyArgs} args - Arguments to filter Econ_SowInventories to delete.
* @example
* // Delete a few Econ_SowInventories
* const { count } = await prisma.econ_SowInventory.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends Econ_SowInventoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Econ_SowInventories.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Econ_SowInventoryUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Econ_SowInventories
* const econ_SowInventory = await prisma.econ_SowInventory.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends Econ_SowInventoryUpdateManyArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Econ_SowInventory.
* @param {Econ_SowInventoryUpsertArgs} args - Arguments to update or create a Econ_SowInventory.
* @example
* // Update or create a Econ_SowInventory
* const econ_SowInventory = await prisma.econ_SowInventory.upsert({
* create: {
* // ... data to create a Econ_SowInventory
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Econ_SowInventory we want to update
* }
* })
*/
upsert<T extends Econ_SowInventoryUpsertArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryUpsertArgs<ExtArgs>>): Prisma.Prisma__Econ_SowInventoryClient<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Econ_SowInventories.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Econ_SowInventoryCountArgs} args - Arguments to filter Econ_SowInventories to count.
* @example
* // Count the number of Econ_SowInventories
* const count = await prisma.econ_SowInventory.count({
* where: {
* // ... the filter for the Econ_SowInventories we want to count
* }
* })
**/
count<T extends Econ_SowInventoryCountArgs>(
args?: Prisma.Subset<T, Econ_SowInventoryCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Econ_SowInventoryCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Econ_SowInventory.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Econ_SowInventoryAggregateArgs} 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 Econ_SowInventoryAggregateArgs>(args: Prisma.Subset<T, Econ_SowInventoryAggregateArgs>): Prisma.PrismaPromise<GetEcon_SowInventoryAggregateType<T>>
/**
* Group by Econ_SowInventory.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Econ_SowInventoryGroupByArgs} 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 Econ_SowInventoryGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: Econ_SowInventoryGroupByArgs['orderBy'] }
: { orderBy?: Econ_SowInventoryGroupByArgs['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, Econ_SowInventoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEcon_SowInventoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Econ_SowInventory model
*/
readonly fields: Econ_SowInventoryFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Econ_SowInventory.
* 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__Econ_SowInventoryClient<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 Econ_SowInventory model
*/
export interface Econ_SowInventoryFieldRefs {
readonly id: Prisma.FieldRef<"Econ_SowInventory", 'Int'>
readonly month: Prisma.FieldRef<"Econ_SowInventory", 'String'>
readonly inventory: Prisma.FieldRef<"Econ_SowInventory", 'Int'>
readonly createdAt: Prisma.FieldRef<"Econ_SowInventory", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Econ_SowInventory", 'DateTime'>
}
// Custom InputTypes
/**
* Econ_SowInventory findUnique
*/
export type Econ_SowInventoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* Filter, which Econ_SowInventory to fetch.
*/
where: Prisma.Econ_SowInventoryWhereUniqueInput
}
/**
* Econ_SowInventory findUniqueOrThrow
*/
export type Econ_SowInventoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* Filter, which Econ_SowInventory to fetch.
*/
where: Prisma.Econ_SowInventoryWhereUniqueInput
}
/**
* Econ_SowInventory findFirst
*/
export type Econ_SowInventoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* Filter, which Econ_SowInventory to fetch.
*/
where?: Prisma.Econ_SowInventoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Econ_SowInventories to fetch.
*/
orderBy?: Prisma.Econ_SowInventoryOrderByWithRelationInput | Prisma.Econ_SowInventoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Econ_SowInventories.
*/
cursor?: Prisma.Econ_SowInventoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Econ_SowInventories 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` Econ_SowInventories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Econ_SowInventories.
*/
distinct?: Prisma.Econ_SowInventoryScalarFieldEnum | Prisma.Econ_SowInventoryScalarFieldEnum[]
}
/**
* Econ_SowInventory findFirstOrThrow
*/
export type Econ_SowInventoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* Filter, which Econ_SowInventory to fetch.
*/
where?: Prisma.Econ_SowInventoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Econ_SowInventories to fetch.
*/
orderBy?: Prisma.Econ_SowInventoryOrderByWithRelationInput | Prisma.Econ_SowInventoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Econ_SowInventories.
*/
cursor?: Prisma.Econ_SowInventoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Econ_SowInventories 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` Econ_SowInventories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Econ_SowInventories.
*/
distinct?: Prisma.Econ_SowInventoryScalarFieldEnum | Prisma.Econ_SowInventoryScalarFieldEnum[]
}
/**
* Econ_SowInventory findMany
*/
export type Econ_SowInventoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* Filter, which Econ_SowInventories to fetch.
*/
where?: Prisma.Econ_SowInventoryWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Econ_SowInventories to fetch.
*/
orderBy?: Prisma.Econ_SowInventoryOrderByWithRelationInput | Prisma.Econ_SowInventoryOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Econ_SowInventories.
*/
cursor?: Prisma.Econ_SowInventoryWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Econ_SowInventories 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` Econ_SowInventories.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Econ_SowInventories.
*/
distinct?: Prisma.Econ_SowInventoryScalarFieldEnum | Prisma.Econ_SowInventoryScalarFieldEnum[]
}
/**
* Econ_SowInventory create
*/
export type Econ_SowInventoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* The data needed to create a Econ_SowInventory.
*/
data: Prisma.XOR<Prisma.Econ_SowInventoryCreateInput, Prisma.Econ_SowInventoryUncheckedCreateInput>
}
/**
* Econ_SowInventory createMany
*/
export type Econ_SowInventoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Econ_SowInventories.
*/
data: Prisma.Econ_SowInventoryCreateManyInput | Prisma.Econ_SowInventoryCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Econ_SowInventory update
*/
export type Econ_SowInventoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* The data needed to update a Econ_SowInventory.
*/
data: Prisma.XOR<Prisma.Econ_SowInventoryUpdateInput, Prisma.Econ_SowInventoryUncheckedUpdateInput>
/**
* Choose, which Econ_SowInventory to update.
*/
where: Prisma.Econ_SowInventoryWhereUniqueInput
}
/**
* Econ_SowInventory updateMany
*/
export type Econ_SowInventoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Econ_SowInventories.
*/
data: Prisma.XOR<Prisma.Econ_SowInventoryUpdateManyMutationInput, Prisma.Econ_SowInventoryUncheckedUpdateManyInput>
/**
* Filter which Econ_SowInventories to update
*/
where?: Prisma.Econ_SowInventoryWhereInput
/**
* Limit how many Econ_SowInventories to update.
*/
limit?: number
}
/**
* Econ_SowInventory upsert
*/
export type Econ_SowInventoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* The filter to search for the Econ_SowInventory to update in case it exists.
*/
where: Prisma.Econ_SowInventoryWhereUniqueInput
/**
* In case the Econ_SowInventory found by the `where` argument doesn't exist, create a new Econ_SowInventory with this data.
*/
create: Prisma.XOR<Prisma.Econ_SowInventoryCreateInput, Prisma.Econ_SowInventoryUncheckedCreateInput>
/**
* In case the Econ_SowInventory was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.Econ_SowInventoryUpdateInput, Prisma.Econ_SowInventoryUncheckedUpdateInput>
}
/**
* Econ_SowInventory delete
*/
export type Econ_SowInventoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
/**
* Filter which Econ_SowInventory to delete.
*/
where: Prisma.Econ_SowInventoryWhereUniqueInput
}
/**
* Econ_SowInventory deleteMany
*/
export type Econ_SowInventoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Econ_SowInventories to delete
*/
where?: Prisma.Econ_SowInventoryWhereInput
/**
* Limit how many Econ_SowInventories to delete.
*/
limit?: number
}
/**
* Econ_SowInventory without action
*/
export type Econ_SowInventoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Econ_SowInventory
*/
select?: Prisma.Econ_SowInventorySelect<ExtArgs> | null
/**
* Omit specific fields from the Econ_SowInventory
*/
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
}