/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `bon_travail` 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 bon_travail * */ export type bon_travailModel = runtime.Types.Result.DefaultSelection export type AggregateBon_travail = { _count: Bon_travailCountAggregateOutputType | null _avg: Bon_travailAvgAggregateOutputType | null _sum: Bon_travailSumAggregateOutputType | null _min: Bon_travailMinAggregateOutputType | null _max: Bon_travailMaxAggregateOutputType | null } export type Bon_travailAvgAggregateOutputType = { id: number | null date: number | null account_id: number | null tech1: number | null tech2: number | null subtotal: runtime.Decimal | null tps: runtime.Decimal | null tvq: runtime.Decimal | null total: runtime.Decimal | null } export type Bon_travailSumAggregateOutputType = { id: number | null date: bigint | null account_id: number | null tech1: number | null tech2: number | null subtotal: runtime.Decimal | null tps: runtime.Decimal | null tvq: runtime.Decimal | null total: runtime.Decimal | null } export type Bon_travailMinAggregateOutputType = { id: number | null date: bigint | null account_id: number | null tech1: number | null heure_arrive_t1: string | null heure_depart_t1: string | null tech2: number | null heure_arrive_t2: string | null heure_depart_t2: string | null note: string | null subtotal: runtime.Decimal | null tps: runtime.Decimal | null tvq: runtime.Decimal | null total: runtime.Decimal | null } export type Bon_travailMaxAggregateOutputType = { id: number | null date: bigint | null account_id: number | null tech1: number | null heure_arrive_t1: string | null heure_depart_t1: string | null tech2: number | null heure_arrive_t2: string | null heure_depart_t2: string | null note: string | null subtotal: runtime.Decimal | null tps: runtime.Decimal | null tvq: runtime.Decimal | null total: runtime.Decimal | null } export type Bon_travailCountAggregateOutputType = { id: number date: number account_id: number tech1: number heure_arrive_t1: number heure_depart_t1: number tech2: number heure_arrive_t2: number heure_depart_t2: number note: number subtotal: number tps: number tvq: number total: number _all: number } export type Bon_travailAvgAggregateInputType = { id?: true date?: true account_id?: true tech1?: true tech2?: true subtotal?: true tps?: true tvq?: true total?: true } export type Bon_travailSumAggregateInputType = { id?: true date?: true account_id?: true tech1?: true tech2?: true subtotal?: true tps?: true tvq?: true total?: true } export type Bon_travailMinAggregateInputType = { id?: true date?: true account_id?: true tech1?: true heure_arrive_t1?: true heure_depart_t1?: true tech2?: true heure_arrive_t2?: true heure_depart_t2?: true note?: true subtotal?: true tps?: true tvq?: true total?: true } export type Bon_travailMaxAggregateInputType = { id?: true date?: true account_id?: true tech1?: true heure_arrive_t1?: true heure_depart_t1?: true tech2?: true heure_arrive_t2?: true heure_depart_t2?: true note?: true subtotal?: true tps?: true tvq?: true total?: true } export type Bon_travailCountAggregateInputType = { id?: true date?: true account_id?: true tech1?: true heure_arrive_t1?: true heure_depart_t1?: true tech2?: true heure_arrive_t2?: true heure_depart_t2?: true note?: true subtotal?: true tps?: true tvq?: true total?: true _all?: true } export type Bon_travailAggregateArgs = { /** * Filter which bon_travail to aggregate. */ where?: Prisma.bon_travailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of bon_travails to fetch. */ orderBy?: Prisma.bon_travailOrderByWithRelationInput | Prisma.bon_travailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.bon_travailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` bon_travails 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` bon_travails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned bon_travails **/ _count?: true | Bon_travailCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Bon_travailAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Bon_travailSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Bon_travailMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Bon_travailMaxAggregateInputType } export type GetBon_travailAggregateType = { [P in keyof T & keyof AggregateBon_travail]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type bon_travailGroupByArgs = { where?: Prisma.bon_travailWhereInput orderBy?: Prisma.bon_travailOrderByWithAggregationInput | Prisma.bon_travailOrderByWithAggregationInput[] by: Prisma.Bon_travailScalarFieldEnum[] | Prisma.Bon_travailScalarFieldEnum having?: Prisma.bon_travailScalarWhereWithAggregatesInput take?: number skip?: number _count?: Bon_travailCountAggregateInputType | true _avg?: Bon_travailAvgAggregateInputType _sum?: Bon_travailSumAggregateInputType _min?: Bon_travailMinAggregateInputType _max?: Bon_travailMaxAggregateInputType } export type Bon_travailGroupByOutputType = { id: number date: bigint | null account_id: number tech1: number | null heure_arrive_t1: string | null heure_depart_t1: string | null tech2: number | null heure_arrive_t2: string | null heure_depart_t2: string | null note: string | null subtotal: runtime.Decimal | null tps: runtime.Decimal | null tvq: runtime.Decimal | null total: runtime.Decimal | null _count: Bon_travailCountAggregateOutputType | null _avg: Bon_travailAvgAggregateOutputType | null _sum: Bon_travailSumAggregateOutputType | null _min: Bon_travailMinAggregateOutputType | null _max: Bon_travailMaxAggregateOutputType | null } type GetBon_travailGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Bon_travailGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type bon_travailWhereInput = { AND?: Prisma.bon_travailWhereInput | Prisma.bon_travailWhereInput[] OR?: Prisma.bon_travailWhereInput[] NOT?: Prisma.bon_travailWhereInput | Prisma.bon_travailWhereInput[] id?: Prisma.IntFilter<"bon_travail"> | number date?: Prisma.BigIntNullableFilter<"bon_travail"> | bigint | number | null account_id?: Prisma.IntFilter<"bon_travail"> | number tech1?: Prisma.IntNullableFilter<"bon_travail"> | number | null heure_arrive_t1?: Prisma.StringNullableFilter<"bon_travail"> | string | null heure_depart_t1?: Prisma.StringNullableFilter<"bon_travail"> | string | null tech2?: Prisma.IntNullableFilter<"bon_travail"> | number | null heure_arrive_t2?: Prisma.StringNullableFilter<"bon_travail"> | string | null heure_depart_t2?: Prisma.StringNullableFilter<"bon_travail"> | string | null note?: Prisma.StringNullableFilter<"bon_travail"> | string | null subtotal?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailOrderByWithRelationInput = { id?: Prisma.SortOrder date?: Prisma.SortOrderInput | Prisma.SortOrder account_id?: Prisma.SortOrder tech1?: Prisma.SortOrderInput | Prisma.SortOrder heure_arrive_t1?: Prisma.SortOrderInput | Prisma.SortOrder heure_depart_t1?: Prisma.SortOrderInput | Prisma.SortOrder tech2?: Prisma.SortOrderInput | Prisma.SortOrder heure_arrive_t2?: Prisma.SortOrderInput | Prisma.SortOrder heure_depart_t2?: Prisma.SortOrderInput | Prisma.SortOrder note?: Prisma.SortOrderInput | Prisma.SortOrder subtotal?: Prisma.SortOrderInput | Prisma.SortOrder tps?: Prisma.SortOrderInput | Prisma.SortOrder tvq?: Prisma.SortOrderInput | Prisma.SortOrder total?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.bon_travailOrderByRelevanceInput } export type bon_travailWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.bon_travailWhereInput | Prisma.bon_travailWhereInput[] OR?: Prisma.bon_travailWhereInput[] NOT?: Prisma.bon_travailWhereInput | Prisma.bon_travailWhereInput[] date?: Prisma.BigIntNullableFilter<"bon_travail"> | bigint | number | null account_id?: Prisma.IntFilter<"bon_travail"> | number tech1?: Prisma.IntNullableFilter<"bon_travail"> | number | null heure_arrive_t1?: Prisma.StringNullableFilter<"bon_travail"> | string | null heure_depart_t1?: Prisma.StringNullableFilter<"bon_travail"> | string | null tech2?: Prisma.IntNullableFilter<"bon_travail"> | number | null heure_arrive_t2?: Prisma.StringNullableFilter<"bon_travail"> | string | null heure_depart_t2?: Prisma.StringNullableFilter<"bon_travail"> | string | null note?: Prisma.StringNullableFilter<"bon_travail"> | string | null subtotal?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: Prisma.DecimalNullableFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null }, "id"> export type bon_travailOrderByWithAggregationInput = { id?: Prisma.SortOrder date?: Prisma.SortOrderInput | Prisma.SortOrder account_id?: Prisma.SortOrder tech1?: Prisma.SortOrderInput | Prisma.SortOrder heure_arrive_t1?: Prisma.SortOrderInput | Prisma.SortOrder heure_depart_t1?: Prisma.SortOrderInput | Prisma.SortOrder tech2?: Prisma.SortOrderInput | Prisma.SortOrder heure_arrive_t2?: Prisma.SortOrderInput | Prisma.SortOrder heure_depart_t2?: Prisma.SortOrderInput | Prisma.SortOrder note?: Prisma.SortOrderInput | Prisma.SortOrder subtotal?: Prisma.SortOrderInput | Prisma.SortOrder tps?: Prisma.SortOrderInput | Prisma.SortOrder tvq?: Prisma.SortOrderInput | Prisma.SortOrder total?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.bon_travailCountOrderByAggregateInput _avg?: Prisma.bon_travailAvgOrderByAggregateInput _max?: Prisma.bon_travailMaxOrderByAggregateInput _min?: Prisma.bon_travailMinOrderByAggregateInput _sum?: Prisma.bon_travailSumOrderByAggregateInput } export type bon_travailScalarWhereWithAggregatesInput = { AND?: Prisma.bon_travailScalarWhereWithAggregatesInput | Prisma.bon_travailScalarWhereWithAggregatesInput[] OR?: Prisma.bon_travailScalarWhereWithAggregatesInput[] NOT?: Prisma.bon_travailScalarWhereWithAggregatesInput | Prisma.bon_travailScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"bon_travail"> | number date?: Prisma.BigIntNullableWithAggregatesFilter<"bon_travail"> | bigint | number | null account_id?: Prisma.IntWithAggregatesFilter<"bon_travail"> | number tech1?: Prisma.IntNullableWithAggregatesFilter<"bon_travail"> | number | null heure_arrive_t1?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null heure_depart_t1?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null tech2?: Prisma.IntNullableWithAggregatesFilter<"bon_travail"> | number | null heure_arrive_t2?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null heure_depart_t2?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null note?: Prisma.StringNullableWithAggregatesFilter<"bon_travail"> | string | null subtotal?: Prisma.DecimalNullableWithAggregatesFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: Prisma.DecimalNullableWithAggregatesFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: Prisma.DecimalNullableWithAggregatesFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: Prisma.DecimalNullableWithAggregatesFilter<"bon_travail"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailCreateInput = { date?: bigint | number | null account_id: number tech1?: number | null heure_arrive_t1?: string | null heure_depart_t1?: string | null tech2?: number | null heure_arrive_t2?: string | null heure_depart_t2?: string | null note?: string | null subtotal?: runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailUncheckedCreateInput = { id?: number date?: bigint | number | null account_id: number tech1?: number | null heure_arrive_t1?: string | null heure_depart_t1?: string | null tech2?: number | null heure_arrive_t2?: string | null heure_depart_t2?: string | null note?: string | null subtotal?: runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailUpdateInput = { date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null account_id?: Prisma.IntFieldUpdateOperationsInput | number tech1?: Prisma.NullableIntFieldUpdateOperationsInput | number | null heure_arrive_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null heure_depart_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tech2?: Prisma.NullableIntFieldUpdateOperationsInput | number | null heure_arrive_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null heure_depart_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null subtotal?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null account_id?: Prisma.IntFieldUpdateOperationsInput | number tech1?: Prisma.NullableIntFieldUpdateOperationsInput | number | null heure_arrive_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null heure_depart_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tech2?: Prisma.NullableIntFieldUpdateOperationsInput | number | null heure_arrive_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null heure_depart_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null subtotal?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailCreateManyInput = { id?: number date?: bigint | number | null account_id: number tech1?: number | null heure_arrive_t1?: string | null heure_depart_t1?: string | null tech2?: number | null heure_arrive_t2?: string | null heure_depart_t2?: string | null note?: string | null subtotal?: runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailUpdateManyMutationInput = { date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null account_id?: Prisma.IntFieldUpdateOperationsInput | number tech1?: Prisma.NullableIntFieldUpdateOperationsInput | number | null heure_arrive_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null heure_depart_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tech2?: Prisma.NullableIntFieldUpdateOperationsInput | number | null heure_arrive_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null heure_depart_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null subtotal?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null account_id?: Prisma.IntFieldUpdateOperationsInput | number tech1?: Prisma.NullableIntFieldUpdateOperationsInput | number | null heure_arrive_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null heure_depart_t1?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tech2?: Prisma.NullableIntFieldUpdateOperationsInput | number | null heure_arrive_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null heure_depart_t2?: Prisma.NullableStringFieldUpdateOperationsInput | string | null note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null subtotal?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null tps?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null tvq?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null total?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null } export type bon_travailOrderByRelevanceInput = { fields: Prisma.bon_travailOrderByRelevanceFieldEnum | Prisma.bon_travailOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type bon_travailCountOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder tech1?: Prisma.SortOrder heure_arrive_t1?: Prisma.SortOrder heure_depart_t1?: Prisma.SortOrder tech2?: Prisma.SortOrder heure_arrive_t2?: Prisma.SortOrder heure_depart_t2?: Prisma.SortOrder note?: Prisma.SortOrder subtotal?: Prisma.SortOrder tps?: Prisma.SortOrder tvq?: Prisma.SortOrder total?: Prisma.SortOrder } export type bon_travailAvgOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder tech1?: Prisma.SortOrder tech2?: Prisma.SortOrder subtotal?: Prisma.SortOrder tps?: Prisma.SortOrder tvq?: Prisma.SortOrder total?: Prisma.SortOrder } export type bon_travailMaxOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder tech1?: Prisma.SortOrder heure_arrive_t1?: Prisma.SortOrder heure_depart_t1?: Prisma.SortOrder tech2?: Prisma.SortOrder heure_arrive_t2?: Prisma.SortOrder heure_depart_t2?: Prisma.SortOrder note?: Prisma.SortOrder subtotal?: Prisma.SortOrder tps?: Prisma.SortOrder tvq?: Prisma.SortOrder total?: Prisma.SortOrder } export type bon_travailMinOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder tech1?: Prisma.SortOrder heure_arrive_t1?: Prisma.SortOrder heure_depart_t1?: Prisma.SortOrder tech2?: Prisma.SortOrder heure_arrive_t2?: Prisma.SortOrder heure_depart_t2?: Prisma.SortOrder note?: Prisma.SortOrder subtotal?: Prisma.SortOrder tps?: Prisma.SortOrder tvq?: Prisma.SortOrder total?: Prisma.SortOrder } export type bon_travailSumOrderByAggregateInput = { id?: Prisma.SortOrder date?: Prisma.SortOrder account_id?: Prisma.SortOrder tech1?: Prisma.SortOrder tech2?: Prisma.SortOrder subtotal?: Prisma.SortOrder tps?: Prisma.SortOrder tvq?: Prisma.SortOrder total?: Prisma.SortOrder } export type NullableDecimalFieldUpdateOperationsInput = { set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null increment?: runtime.Decimal | runtime.DecimalJsLike | number | string decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string divide?: runtime.Decimal | runtime.DecimalJsLike | number | string } export type bon_travailSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean date?: boolean account_id?: boolean tech1?: boolean heure_arrive_t1?: boolean heure_depart_t1?: boolean tech2?: boolean heure_arrive_t2?: boolean heure_depart_t2?: boolean note?: boolean subtotal?: boolean tps?: boolean tvq?: boolean total?: boolean }, ExtArgs["result"]["bon_travail"]> export type bon_travailSelectScalar = { id?: boolean date?: boolean account_id?: boolean tech1?: boolean heure_arrive_t1?: boolean heure_depart_t1?: boolean tech2?: boolean heure_arrive_t2?: boolean heure_depart_t2?: boolean note?: boolean subtotal?: boolean tps?: boolean tvq?: boolean total?: boolean } export type bon_travailOmit = runtime.Types.Extensions.GetOmit<"id" | "date" | "account_id" | "tech1" | "heure_arrive_t1" | "heure_depart_t1" | "tech2" | "heure_arrive_t2" | "heure_depart_t2" | "note" | "subtotal" | "tps" | "tvq" | "total", ExtArgs["result"]["bon_travail"]> export type $bon_travailPayload = { name: "bon_travail" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number date: bigint | null account_id: number tech1: number | null heure_arrive_t1: string | null heure_depart_t1: string | null tech2: number | null heure_arrive_t2: string | null heure_depart_t2: string | null note: string | null subtotal: runtime.Decimal | null tps: runtime.Decimal | null tvq: runtime.Decimal | null total: runtime.Decimal | null }, ExtArgs["result"]["bon_travail"]> composites: {} } export type bon_travailGetPayload = runtime.Types.Result.GetResult export type bon_travailCountArgs = Omit & { select?: Bon_travailCountAggregateInputType | true } export interface bon_travailDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['bon_travail'], meta: { name: 'bon_travail' } } /** * Find zero or one Bon_travail that matches the filter. * @param {bon_travailFindUniqueArgs} args - Arguments to find a Bon_travail * @example * // Get one Bon_travail * const bon_travail = await prisma.bon_travail.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Bon_travail that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {bon_travailFindUniqueOrThrowArgs} args - Arguments to find a Bon_travail * @example * // Get one Bon_travail * const bon_travail = await prisma.bon_travail.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Bon_travail 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 {bon_travailFindFirstArgs} args - Arguments to find a Bon_travail * @example * // Get one Bon_travail * const bon_travail = await prisma.bon_travail.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Bon_travail 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 {bon_travailFindFirstOrThrowArgs} args - Arguments to find a Bon_travail * @example * // Get one Bon_travail * const bon_travail = await prisma.bon_travail.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Bon_travails 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 {bon_travailFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Bon_travails * const bon_travails = await prisma.bon_travail.findMany() * * // Get first 10 Bon_travails * const bon_travails = await prisma.bon_travail.findMany({ take: 10 }) * * // Only select the `id` * const bon_travailWithIdOnly = await prisma.bon_travail.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Bon_travail. * @param {bon_travailCreateArgs} args - Arguments to create a Bon_travail. * @example * // Create one Bon_travail * const Bon_travail = await prisma.bon_travail.create({ * data: { * // ... data to create a Bon_travail * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Bon_travails. * @param {bon_travailCreateManyArgs} args - Arguments to create many Bon_travails. * @example * // Create many Bon_travails * const bon_travail = await prisma.bon_travail.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Bon_travail. * @param {bon_travailDeleteArgs} args - Arguments to delete one Bon_travail. * @example * // Delete one Bon_travail * const Bon_travail = await prisma.bon_travail.delete({ * where: { * // ... filter to delete one Bon_travail * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Bon_travail. * @param {bon_travailUpdateArgs} args - Arguments to update one Bon_travail. * @example * // Update one Bon_travail * const bon_travail = await prisma.bon_travail.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Bon_travails. * @param {bon_travailDeleteManyArgs} args - Arguments to filter Bon_travails to delete. * @example * // Delete a few Bon_travails * const { count } = await prisma.bon_travail.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Bon_travails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {bon_travailUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Bon_travails * const bon_travail = await prisma.bon_travail.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Bon_travail. * @param {bon_travailUpsertArgs} args - Arguments to update or create a Bon_travail. * @example * // Update or create a Bon_travail * const bon_travail = await prisma.bon_travail.upsert({ * create: { * // ... data to create a Bon_travail * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Bon_travail we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__bon_travailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Bon_travails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {bon_travailCountArgs} args - Arguments to filter Bon_travails to count. * @example * // Count the number of Bon_travails * const count = await prisma.bon_travail.count({ * where: { * // ... the filter for the Bon_travails 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 Bon_travail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Bon_travailAggregateArgs} 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 Bon_travail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {bon_travailGroupByArgs} 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 bon_travailGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: bon_travailGroupByArgs['orderBy'] } : { orderBy?: bon_travailGroupByArgs['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 ? GetBon_travailGroupByPayload : Prisma.PrismaPromise /** * Fields of the bon_travail model */ readonly fields: bon_travailFieldRefs; } /** * The delegate class that acts as a "Promise-like" for bon_travail. * 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__bon_travailClient 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 bon_travail model */ export interface bon_travailFieldRefs { readonly id: Prisma.FieldRef<"bon_travail", 'Int'> readonly date: Prisma.FieldRef<"bon_travail", 'BigInt'> readonly account_id: Prisma.FieldRef<"bon_travail", 'Int'> readonly tech1: Prisma.FieldRef<"bon_travail", 'Int'> readonly heure_arrive_t1: Prisma.FieldRef<"bon_travail", 'String'> readonly heure_depart_t1: Prisma.FieldRef<"bon_travail", 'String'> readonly tech2: Prisma.FieldRef<"bon_travail", 'Int'> readonly heure_arrive_t2: Prisma.FieldRef<"bon_travail", 'String'> readonly heure_depart_t2: Prisma.FieldRef<"bon_travail", 'String'> readonly note: Prisma.FieldRef<"bon_travail", 'String'> readonly subtotal: Prisma.FieldRef<"bon_travail", 'Decimal'> readonly tps: Prisma.FieldRef<"bon_travail", 'Decimal'> readonly tvq: Prisma.FieldRef<"bon_travail", 'Decimal'> readonly total: Prisma.FieldRef<"bon_travail", 'Decimal'> } // Custom InputTypes /** * bon_travail findUnique */ export type bon_travailFindUniqueArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * Filter, which bon_travail to fetch. */ where: Prisma.bon_travailWhereUniqueInput } /** * bon_travail findUniqueOrThrow */ export type bon_travailFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * Filter, which bon_travail to fetch. */ where: Prisma.bon_travailWhereUniqueInput } /** * bon_travail findFirst */ export type bon_travailFindFirstArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * Filter, which bon_travail to fetch. */ where?: Prisma.bon_travailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of bon_travails to fetch. */ orderBy?: Prisma.bon_travailOrderByWithRelationInput | Prisma.bon_travailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for bon_travails. */ cursor?: Prisma.bon_travailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` bon_travails 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` bon_travails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of bon_travails. */ distinct?: Prisma.Bon_travailScalarFieldEnum | Prisma.Bon_travailScalarFieldEnum[] } /** * bon_travail findFirstOrThrow */ export type bon_travailFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * Filter, which bon_travail to fetch. */ where?: Prisma.bon_travailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of bon_travails to fetch. */ orderBy?: Prisma.bon_travailOrderByWithRelationInput | Prisma.bon_travailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for bon_travails. */ cursor?: Prisma.bon_travailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` bon_travails 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` bon_travails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of bon_travails. */ distinct?: Prisma.Bon_travailScalarFieldEnum | Prisma.Bon_travailScalarFieldEnum[] } /** * bon_travail findMany */ export type bon_travailFindManyArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * Filter, which bon_travails to fetch. */ where?: Prisma.bon_travailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of bon_travails to fetch. */ orderBy?: Prisma.bon_travailOrderByWithRelationInput | Prisma.bon_travailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing bon_travails. */ cursor?: Prisma.bon_travailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` bon_travails 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` bon_travails. */ skip?: number distinct?: Prisma.Bon_travailScalarFieldEnum | Prisma.Bon_travailScalarFieldEnum[] } /** * bon_travail create */ export type bon_travailCreateArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * The data needed to create a bon_travail. */ data: Prisma.XOR } /** * bon_travail createMany */ export type bon_travailCreateManyArgs = { /** * The data used to create many bon_travails. */ data: Prisma.bon_travailCreateManyInput | Prisma.bon_travailCreateManyInput[] skipDuplicates?: boolean } /** * bon_travail update */ export type bon_travailUpdateArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * The data needed to update a bon_travail. */ data: Prisma.XOR /** * Choose, which bon_travail to update. */ where: Prisma.bon_travailWhereUniqueInput } /** * bon_travail updateMany */ export type bon_travailUpdateManyArgs = { /** * The data used to update bon_travails. */ data: Prisma.XOR /** * Filter which bon_travails to update */ where?: Prisma.bon_travailWhereInput /** * Limit how many bon_travails to update. */ limit?: number } /** * bon_travail upsert */ export type bon_travailUpsertArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * The filter to search for the bon_travail to update in case it exists. */ where: Prisma.bon_travailWhereUniqueInput /** * In case the bon_travail found by the `where` argument doesn't exist, create a new bon_travail with this data. */ create: Prisma.XOR /** * In case the bon_travail was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * bon_travail delete */ export type bon_travailDeleteArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null /** * Filter which bon_travail to delete. */ where: Prisma.bon_travailWhereUniqueInput } /** * bon_travail deleteMany */ export type bon_travailDeleteManyArgs = { /** * Filter which bon_travails to delete */ where?: Prisma.bon_travailWhereInput /** * Limit how many bon_travails to delete. */ limit?: number } /** * bon_travail without action */ export type bon_travailDefaultArgs = { /** * Select specific fields to fetch from the bon_travail */ select?: Prisma.bon_travailSelect | null /** * Omit specific fields from the bon_travail */ omit?: Prisma.bon_travailOmit | null }