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

1118 lines
39 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 `inventaire_log` 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 inventaire_log
*
*/
export type inventaire_logModel = runtime.Types.Result.DefaultSelection<Prisma.$inventaire_logPayload>
export type AggregateInventaire_log = {
_count: Inventaire_logCountAggregateOutputType | null
_avg: Inventaire_logAvgAggregateOutputType | null
_sum: Inventaire_logSumAggregateOutputType | null
_min: Inventaire_logMinAggregateOutputType | null
_max: Inventaire_logMaxAggregateOutputType | null
}
export type Inventaire_logAvgAggregateOutputType = {
id: number | null
staff_id: number | null
qte: number | null
}
export type Inventaire_logSumAggregateOutputType = {
id: number | null
staff_id: number | null
qte: number | null
}
export type Inventaire_logMinAggregateOutputType = {
id: number | null
prod_tag: string | null
staff_id: number | null
action: string | null
qte: number | null
timestamp: string | null
}
export type Inventaire_logMaxAggregateOutputType = {
id: number | null
prod_tag: string | null
staff_id: number | null
action: string | null
qte: number | null
timestamp: string | null
}
export type Inventaire_logCountAggregateOutputType = {
id: number
prod_tag: number
staff_id: number
action: number
qte: number
timestamp: number
_all: number
}
export type Inventaire_logAvgAggregateInputType = {
id?: true
staff_id?: true
qte?: true
}
export type Inventaire_logSumAggregateInputType = {
id?: true
staff_id?: true
qte?: true
}
export type Inventaire_logMinAggregateInputType = {
id?: true
prod_tag?: true
staff_id?: true
action?: true
qte?: true
timestamp?: true
}
export type Inventaire_logMaxAggregateInputType = {
id?: true
prod_tag?: true
staff_id?: true
action?: true
qte?: true
timestamp?: true
}
export type Inventaire_logCountAggregateInputType = {
id?: true
prod_tag?: true
staff_id?: true
action?: true
qte?: true
timestamp?: true
_all?: true
}
export type Inventaire_logAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which inventaire_log to aggregate.
*/
where?: Prisma.inventaire_logWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of inventaire_logs to fetch.
*/
orderBy?: Prisma.inventaire_logOrderByWithRelationInput | Prisma.inventaire_logOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.inventaire_logWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` inventaire_logs 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` inventaire_logs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned inventaire_logs
**/
_count?: true | Inventaire_logCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Inventaire_logAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Inventaire_logSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Inventaire_logMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Inventaire_logMaxAggregateInputType
}
export type GetInventaire_logAggregateType<T extends Inventaire_logAggregateArgs> = {
[P in keyof T & keyof AggregateInventaire_log]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateInventaire_log[P]>
: Prisma.GetScalarType<T[P], AggregateInventaire_log[P]>
}
export type inventaire_logGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.inventaire_logWhereInput
orderBy?: Prisma.inventaire_logOrderByWithAggregationInput | Prisma.inventaire_logOrderByWithAggregationInput[]
by: Prisma.Inventaire_logScalarFieldEnum[] | Prisma.Inventaire_logScalarFieldEnum
having?: Prisma.inventaire_logScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Inventaire_logCountAggregateInputType | true
_avg?: Inventaire_logAvgAggregateInputType
_sum?: Inventaire_logSumAggregateInputType
_min?: Inventaire_logMinAggregateInputType
_max?: Inventaire_logMaxAggregateInputType
}
export type Inventaire_logGroupByOutputType = {
id: number
prod_tag: string
staff_id: number
action: string
qte: number
timestamp: string
_count: Inventaire_logCountAggregateOutputType | null
_avg: Inventaire_logAvgAggregateOutputType | null
_sum: Inventaire_logSumAggregateOutputType | null
_min: Inventaire_logMinAggregateOutputType | null
_max: Inventaire_logMaxAggregateOutputType | null
}
type GetInventaire_logGroupByPayload<T extends inventaire_logGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Inventaire_logGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Inventaire_logGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Inventaire_logGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Inventaire_logGroupByOutputType[P]>
}
>
>
export type inventaire_logWhereInput = {
AND?: Prisma.inventaire_logWhereInput | Prisma.inventaire_logWhereInput[]
OR?: Prisma.inventaire_logWhereInput[]
NOT?: Prisma.inventaire_logWhereInput | Prisma.inventaire_logWhereInput[]
id?: Prisma.IntFilter<"inventaire_log"> | number
prod_tag?: Prisma.StringFilter<"inventaire_log"> | string
staff_id?: Prisma.IntFilter<"inventaire_log"> | number
action?: Prisma.StringFilter<"inventaire_log"> | string
qte?: Prisma.IntFilter<"inventaire_log"> | number
timestamp?: Prisma.StringFilter<"inventaire_log"> | string
}
export type inventaire_logOrderByWithRelationInput = {
id?: Prisma.SortOrder
prod_tag?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
action?: Prisma.SortOrder
qte?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
_relevance?: Prisma.inventaire_logOrderByRelevanceInput
}
export type inventaire_logWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.inventaire_logWhereInput | Prisma.inventaire_logWhereInput[]
OR?: Prisma.inventaire_logWhereInput[]
NOT?: Prisma.inventaire_logWhereInput | Prisma.inventaire_logWhereInput[]
prod_tag?: Prisma.StringFilter<"inventaire_log"> | string
staff_id?: Prisma.IntFilter<"inventaire_log"> | number
action?: Prisma.StringFilter<"inventaire_log"> | string
qte?: Prisma.IntFilter<"inventaire_log"> | number
timestamp?: Prisma.StringFilter<"inventaire_log"> | string
}, "id">
export type inventaire_logOrderByWithAggregationInput = {
id?: Prisma.SortOrder
prod_tag?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
action?: Prisma.SortOrder
qte?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
_count?: Prisma.inventaire_logCountOrderByAggregateInput
_avg?: Prisma.inventaire_logAvgOrderByAggregateInput
_max?: Prisma.inventaire_logMaxOrderByAggregateInput
_min?: Prisma.inventaire_logMinOrderByAggregateInput
_sum?: Prisma.inventaire_logSumOrderByAggregateInput
}
export type inventaire_logScalarWhereWithAggregatesInput = {
AND?: Prisma.inventaire_logScalarWhereWithAggregatesInput | Prisma.inventaire_logScalarWhereWithAggregatesInput[]
OR?: Prisma.inventaire_logScalarWhereWithAggregatesInput[]
NOT?: Prisma.inventaire_logScalarWhereWithAggregatesInput | Prisma.inventaire_logScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"inventaire_log"> | number
prod_tag?: Prisma.StringWithAggregatesFilter<"inventaire_log"> | string
staff_id?: Prisma.IntWithAggregatesFilter<"inventaire_log"> | number
action?: Prisma.StringWithAggregatesFilter<"inventaire_log"> | string
qte?: Prisma.IntWithAggregatesFilter<"inventaire_log"> | number
timestamp?: Prisma.StringWithAggregatesFilter<"inventaire_log"> | string
}
export type inventaire_logCreateInput = {
prod_tag: string
staff_id: number
action: string
qte: number
timestamp: string
}
export type inventaire_logUncheckedCreateInput = {
id?: number
prod_tag: string
staff_id: number
action: string
qte: number
timestamp: string
}
export type inventaire_logUpdateInput = {
prod_tag?: Prisma.StringFieldUpdateOperationsInput | string
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
action?: Prisma.StringFieldUpdateOperationsInput | string
qte?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.StringFieldUpdateOperationsInput | string
}
export type inventaire_logUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
prod_tag?: Prisma.StringFieldUpdateOperationsInput | string
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
action?: Prisma.StringFieldUpdateOperationsInput | string
qte?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.StringFieldUpdateOperationsInput | string
}
export type inventaire_logCreateManyInput = {
id?: number
prod_tag: string
staff_id: number
action: string
qte: number
timestamp: string
}
export type inventaire_logUpdateManyMutationInput = {
prod_tag?: Prisma.StringFieldUpdateOperationsInput | string
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
action?: Prisma.StringFieldUpdateOperationsInput | string
qte?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.StringFieldUpdateOperationsInput | string
}
export type inventaire_logUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
prod_tag?: Prisma.StringFieldUpdateOperationsInput | string
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
action?: Prisma.StringFieldUpdateOperationsInput | string
qte?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.StringFieldUpdateOperationsInput | string
}
export type inventaire_logOrderByRelevanceInput = {
fields: Prisma.inventaire_logOrderByRelevanceFieldEnum | Prisma.inventaire_logOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type inventaire_logCountOrderByAggregateInput = {
id?: Prisma.SortOrder
prod_tag?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
action?: Prisma.SortOrder
qte?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
}
export type inventaire_logAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
qte?: Prisma.SortOrder
}
export type inventaire_logMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
prod_tag?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
action?: Prisma.SortOrder
qte?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
}
export type inventaire_logMinOrderByAggregateInput = {
id?: Prisma.SortOrder
prod_tag?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
action?: Prisma.SortOrder
qte?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
}
export type inventaire_logSumOrderByAggregateInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
qte?: Prisma.SortOrder
}
export type inventaire_logSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
prod_tag?: boolean
staff_id?: boolean
action?: boolean
qte?: boolean
timestamp?: boolean
}, ExtArgs["result"]["inventaire_log"]>
export type inventaire_logSelectScalar = {
id?: boolean
prod_tag?: boolean
staff_id?: boolean
action?: boolean
qte?: boolean
timestamp?: boolean
}
export type inventaire_logOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "prod_tag" | "staff_id" | "action" | "qte" | "timestamp", ExtArgs["result"]["inventaire_log"]>
export type $inventaire_logPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "inventaire_log"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
prod_tag: string
staff_id: number
action: string
qte: number
timestamp: string
}, ExtArgs["result"]["inventaire_log"]>
composites: {}
}
export type inventaire_logGetPayload<S extends boolean | null | undefined | inventaire_logDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload, S>
export type inventaire_logCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<inventaire_logFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Inventaire_logCountAggregateInputType | true
}
export interface inventaire_logDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['inventaire_log'], meta: { name: 'inventaire_log' } }
/**
* Find zero or one Inventaire_log that matches the filter.
* @param {inventaire_logFindUniqueArgs} args - Arguments to find a Inventaire_log
* @example
* // Get one Inventaire_log
* const inventaire_log = await prisma.inventaire_log.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends inventaire_logFindUniqueArgs>(args: Prisma.SelectSubset<T, inventaire_logFindUniqueArgs<ExtArgs>>): Prisma.Prisma__inventaire_logClient<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Inventaire_log that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {inventaire_logFindUniqueOrThrowArgs} args - Arguments to find a Inventaire_log
* @example
* // Get one Inventaire_log
* const inventaire_log = await prisma.inventaire_log.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends inventaire_logFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, inventaire_logFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__inventaire_logClient<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Inventaire_log 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 {inventaire_logFindFirstArgs} args - Arguments to find a Inventaire_log
* @example
* // Get one Inventaire_log
* const inventaire_log = await prisma.inventaire_log.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends inventaire_logFindFirstArgs>(args?: Prisma.SelectSubset<T, inventaire_logFindFirstArgs<ExtArgs>>): Prisma.Prisma__inventaire_logClient<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Inventaire_log 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 {inventaire_logFindFirstOrThrowArgs} args - Arguments to find a Inventaire_log
* @example
* // Get one Inventaire_log
* const inventaire_log = await prisma.inventaire_log.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends inventaire_logFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, inventaire_logFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__inventaire_logClient<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Inventaire_logs 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 {inventaire_logFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Inventaire_logs
* const inventaire_logs = await prisma.inventaire_log.findMany()
*
* // Get first 10 Inventaire_logs
* const inventaire_logs = await prisma.inventaire_log.findMany({ take: 10 })
*
* // Only select the `id`
* const inventaire_logWithIdOnly = await prisma.inventaire_log.findMany({ select: { id: true } })
*
*/
findMany<T extends inventaire_logFindManyArgs>(args?: Prisma.SelectSubset<T, inventaire_logFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Inventaire_log.
* @param {inventaire_logCreateArgs} args - Arguments to create a Inventaire_log.
* @example
* // Create one Inventaire_log
* const Inventaire_log = await prisma.inventaire_log.create({
* data: {
* // ... data to create a Inventaire_log
* }
* })
*
*/
create<T extends inventaire_logCreateArgs>(args: Prisma.SelectSubset<T, inventaire_logCreateArgs<ExtArgs>>): Prisma.Prisma__inventaire_logClient<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Inventaire_logs.
* @param {inventaire_logCreateManyArgs} args - Arguments to create many Inventaire_logs.
* @example
* // Create many Inventaire_logs
* const inventaire_log = await prisma.inventaire_log.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends inventaire_logCreateManyArgs>(args?: Prisma.SelectSubset<T, inventaire_logCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Inventaire_log.
* @param {inventaire_logDeleteArgs} args - Arguments to delete one Inventaire_log.
* @example
* // Delete one Inventaire_log
* const Inventaire_log = await prisma.inventaire_log.delete({
* where: {
* // ... filter to delete one Inventaire_log
* }
* })
*
*/
delete<T extends inventaire_logDeleteArgs>(args: Prisma.SelectSubset<T, inventaire_logDeleteArgs<ExtArgs>>): Prisma.Prisma__inventaire_logClient<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Inventaire_log.
* @param {inventaire_logUpdateArgs} args - Arguments to update one Inventaire_log.
* @example
* // Update one Inventaire_log
* const inventaire_log = await prisma.inventaire_log.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends inventaire_logUpdateArgs>(args: Prisma.SelectSubset<T, inventaire_logUpdateArgs<ExtArgs>>): Prisma.Prisma__inventaire_logClient<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Inventaire_logs.
* @param {inventaire_logDeleteManyArgs} args - Arguments to filter Inventaire_logs to delete.
* @example
* // Delete a few Inventaire_logs
* const { count } = await prisma.inventaire_log.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends inventaire_logDeleteManyArgs>(args?: Prisma.SelectSubset<T, inventaire_logDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Inventaire_logs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {inventaire_logUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Inventaire_logs
* const inventaire_log = await prisma.inventaire_log.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends inventaire_logUpdateManyArgs>(args: Prisma.SelectSubset<T, inventaire_logUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Inventaire_log.
* @param {inventaire_logUpsertArgs} args - Arguments to update or create a Inventaire_log.
* @example
* // Update or create a Inventaire_log
* const inventaire_log = await prisma.inventaire_log.upsert({
* create: {
* // ... data to create a Inventaire_log
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Inventaire_log we want to update
* }
* })
*/
upsert<T extends inventaire_logUpsertArgs>(args: Prisma.SelectSubset<T, inventaire_logUpsertArgs<ExtArgs>>): Prisma.Prisma__inventaire_logClient<runtime.Types.Result.GetResult<Prisma.$inventaire_logPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Inventaire_logs.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {inventaire_logCountArgs} args - Arguments to filter Inventaire_logs to count.
* @example
* // Count the number of Inventaire_logs
* const count = await prisma.inventaire_log.count({
* where: {
* // ... the filter for the Inventaire_logs we want to count
* }
* })
**/
count<T extends inventaire_logCountArgs>(
args?: Prisma.Subset<T, inventaire_logCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Inventaire_logCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Inventaire_log.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Inventaire_logAggregateArgs} 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 Inventaire_logAggregateArgs>(args: Prisma.Subset<T, Inventaire_logAggregateArgs>): Prisma.PrismaPromise<GetInventaire_logAggregateType<T>>
/**
* Group by Inventaire_log.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {inventaire_logGroupByArgs} 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 inventaire_logGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: inventaire_logGroupByArgs['orderBy'] }
: { orderBy?: inventaire_logGroupByArgs['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, inventaire_logGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInventaire_logGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the inventaire_log model
*/
readonly fields: inventaire_logFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for inventaire_log.
* 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__inventaire_logClient<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 inventaire_log model
*/
export interface inventaire_logFieldRefs {
readonly id: Prisma.FieldRef<"inventaire_log", 'Int'>
readonly prod_tag: Prisma.FieldRef<"inventaire_log", 'String'>
readonly staff_id: Prisma.FieldRef<"inventaire_log", 'Int'>
readonly action: Prisma.FieldRef<"inventaire_log", 'String'>
readonly qte: Prisma.FieldRef<"inventaire_log", 'Int'>
readonly timestamp: Prisma.FieldRef<"inventaire_log", 'String'>
}
// Custom InputTypes
/**
* inventaire_log findUnique
*/
export type inventaire_logFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* Filter, which inventaire_log to fetch.
*/
where: Prisma.inventaire_logWhereUniqueInput
}
/**
* inventaire_log findUniqueOrThrow
*/
export type inventaire_logFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* Filter, which inventaire_log to fetch.
*/
where: Prisma.inventaire_logWhereUniqueInput
}
/**
* inventaire_log findFirst
*/
export type inventaire_logFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* Filter, which inventaire_log to fetch.
*/
where?: Prisma.inventaire_logWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of inventaire_logs to fetch.
*/
orderBy?: Prisma.inventaire_logOrderByWithRelationInput | Prisma.inventaire_logOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for inventaire_logs.
*/
cursor?: Prisma.inventaire_logWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` inventaire_logs 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` inventaire_logs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of inventaire_logs.
*/
distinct?: Prisma.Inventaire_logScalarFieldEnum | Prisma.Inventaire_logScalarFieldEnum[]
}
/**
* inventaire_log findFirstOrThrow
*/
export type inventaire_logFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* Filter, which inventaire_log to fetch.
*/
where?: Prisma.inventaire_logWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of inventaire_logs to fetch.
*/
orderBy?: Prisma.inventaire_logOrderByWithRelationInput | Prisma.inventaire_logOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for inventaire_logs.
*/
cursor?: Prisma.inventaire_logWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` inventaire_logs 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` inventaire_logs.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of inventaire_logs.
*/
distinct?: Prisma.Inventaire_logScalarFieldEnum | Prisma.Inventaire_logScalarFieldEnum[]
}
/**
* inventaire_log findMany
*/
export type inventaire_logFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* Filter, which inventaire_logs to fetch.
*/
where?: Prisma.inventaire_logWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of inventaire_logs to fetch.
*/
orderBy?: Prisma.inventaire_logOrderByWithRelationInput | Prisma.inventaire_logOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing inventaire_logs.
*/
cursor?: Prisma.inventaire_logWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` inventaire_logs 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` inventaire_logs.
*/
skip?: number
distinct?: Prisma.Inventaire_logScalarFieldEnum | Prisma.Inventaire_logScalarFieldEnum[]
}
/**
* inventaire_log create
*/
export type inventaire_logCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* The data needed to create a inventaire_log.
*/
data: Prisma.XOR<Prisma.inventaire_logCreateInput, Prisma.inventaire_logUncheckedCreateInput>
}
/**
* inventaire_log createMany
*/
export type inventaire_logCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many inventaire_logs.
*/
data: Prisma.inventaire_logCreateManyInput | Prisma.inventaire_logCreateManyInput[]
skipDuplicates?: boolean
}
/**
* inventaire_log update
*/
export type inventaire_logUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* The data needed to update a inventaire_log.
*/
data: Prisma.XOR<Prisma.inventaire_logUpdateInput, Prisma.inventaire_logUncheckedUpdateInput>
/**
* Choose, which inventaire_log to update.
*/
where: Prisma.inventaire_logWhereUniqueInput
}
/**
* inventaire_log updateMany
*/
export type inventaire_logUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update inventaire_logs.
*/
data: Prisma.XOR<Prisma.inventaire_logUpdateManyMutationInput, Prisma.inventaire_logUncheckedUpdateManyInput>
/**
* Filter which inventaire_logs to update
*/
where?: Prisma.inventaire_logWhereInput
/**
* Limit how many inventaire_logs to update.
*/
limit?: number
}
/**
* inventaire_log upsert
*/
export type inventaire_logUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* The filter to search for the inventaire_log to update in case it exists.
*/
where: Prisma.inventaire_logWhereUniqueInput
/**
* In case the inventaire_log found by the `where` argument doesn't exist, create a new inventaire_log with this data.
*/
create: Prisma.XOR<Prisma.inventaire_logCreateInput, Prisma.inventaire_logUncheckedCreateInput>
/**
* In case the inventaire_log was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.inventaire_logUpdateInput, Prisma.inventaire_logUncheckedUpdateInput>
}
/**
* inventaire_log delete
*/
export type inventaire_logDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
/**
* Filter which inventaire_log to delete.
*/
where: Prisma.inventaire_logWhereUniqueInput
}
/**
* inventaire_log deleteMany
*/
export type inventaire_logDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which inventaire_logs to delete
*/
where?: Prisma.inventaire_logWhereInput
/**
* Limit how many inventaire_logs to delete.
*/
limit?: number
}
/**
* inventaire_log without action
*/
export type inventaire_logDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the inventaire_log
*/
select?: Prisma.inventaire_logSelect<ExtArgs> | null
/**
* Omit specific fields from the inventaire_log
*/
omit?: Prisma.inventaire_logOmit<ExtArgs> | null
}