/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateInventaire_log]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type inventaire_logGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Inventaire_logGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "prod_tag" | "staff_id" | "action" | "qte" | "timestamp", ExtArgs["result"]["inventaire_log"]> export type $inventaire_logPayload = { 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 = runtime.Types.Result.GetResult export type inventaire_logCountArgs = Omit & { select?: Inventaire_logCountAggregateInputType | true } export interface inventaire_logDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__inventaire_logClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: inventaire_logGroupByArgs['orderBy'] } : { orderBy?: inventaire_logGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetInventaire_logGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | null /** * Filter, which inventaire_log to fetch. */ where: Prisma.inventaire_logWhereUniqueInput } /** * inventaire_log findUniqueOrThrow */ export type inventaire_logFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | null /** * Filter, which inventaire_log to fetch. */ where: Prisma.inventaire_logWhereUniqueInput } /** * inventaire_log findFirst */ export type inventaire_logFindFirstArgs = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | 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 = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | 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 = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | 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 = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | null /** * The data needed to create a inventaire_log. */ data: Prisma.XOR } /** * inventaire_log createMany */ export type inventaire_logCreateManyArgs = { /** * The data used to create many inventaire_logs. */ data: Prisma.inventaire_logCreateManyInput | Prisma.inventaire_logCreateManyInput[] skipDuplicates?: boolean } /** * inventaire_log update */ export type inventaire_logUpdateArgs = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | null /** * The data needed to update a inventaire_log. */ data: Prisma.XOR /** * Choose, which inventaire_log to update. */ where: Prisma.inventaire_logWhereUniqueInput } /** * inventaire_log updateMany */ export type inventaire_logUpdateManyArgs = { /** * The data used to update inventaire_logs. */ data: Prisma.XOR /** * 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 = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | 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 /** * In case the inventaire_log was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * inventaire_log delete */ export type inventaire_logDeleteArgs = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | null /** * Filter which inventaire_log to delete. */ where: Prisma.inventaire_logWhereUniqueInput } /** * inventaire_log deleteMany */ export type inventaire_logDeleteManyArgs = { /** * 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 = { /** * Select specific fields to fetch from the inventaire_log */ select?: Prisma.inventaire_logSelect | null /** * Omit specific fields from the inventaire_log */ omit?: Prisma.inventaire_logOmit | null }