
/* !!! 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<Prisma.$bon_travailPayload>

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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * 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<T extends Bon_travailAggregateArgs> = {
      [P in keyof T & keyof AggregateBon_travail]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateBon_travail[P]>
    : Prisma.GetScalarType<T[P], AggregateBon_travail[P]>
}




export type bon_travailGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  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<T extends bon_travailGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<Bon_travailGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof Bon_travailGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], Bon_travailGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], Bon_travailGroupByOutputType[P]>
      }
    >
  >



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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  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<S extends boolean | null | undefined | bon_travailDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$bon_travailPayload, S>

export type bon_travailCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<bon_travailFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Bon_travailCountAggregateInputType | true
  }

export interface bon_travailDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends bon_travailFindUniqueArgs>(args: Prisma.SelectSubset<T, bon_travailFindUniqueArgs<ExtArgs>>): Prisma.Prisma__bon_travailClient<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, bon_travailFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__bon_travailClient<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailFindFirstArgs>(args?: Prisma.SelectSubset<T, bon_travailFindFirstArgs<ExtArgs>>): Prisma.Prisma__bon_travailClient<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, bon_travailFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__bon_travailClient<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailFindManyArgs>(args?: Prisma.SelectSubset<T, bon_travailFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailCreateArgs>(args: Prisma.SelectSubset<T, bon_travailCreateArgs<ExtArgs>>): Prisma.Prisma__bon_travailClient<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailCreateManyArgs>(args?: Prisma.SelectSubset<T, bon_travailCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * 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<T extends bon_travailDeleteArgs>(args: Prisma.SelectSubset<T, bon_travailDeleteArgs<ExtArgs>>): Prisma.Prisma__bon_travailClient<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailUpdateArgs>(args: Prisma.SelectSubset<T, bon_travailUpdateArgs<ExtArgs>>): Prisma.Prisma__bon_travailClient<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailDeleteManyArgs>(args?: Prisma.SelectSubset<T, bon_travailDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * 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<T extends bon_travailUpdateManyArgs>(args: Prisma.SelectSubset<T, bon_travailUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * 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<T extends bon_travailUpsertArgs>(args: Prisma.SelectSubset<T, bon_travailUpsertArgs<ExtArgs>>): Prisma.Prisma__bon_travailClient<runtime.Types.Result.GetResult<Prisma.$bon_travailPayload<ExtArgs>, 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<T extends bon_travailCountArgs>(
    args?: Prisma.Subset<T, bon_travailCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], Bon_travailCountAggregateOutputType>
      : 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<T extends Bon_travailAggregateArgs>(args: Prisma.Subset<T, Bon_travailAggregateArgs>): Prisma.PrismaPromise<GetBon_travailAggregateType<T>>

  /**
   * 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<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: bon_travailGroupByArgs['orderBy'] }
      : { orderBy?: bon_travailGroupByArgs['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, bon_travailGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBon_travailGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * 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<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 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | null
  /**
   * Filter, which bon_travail to fetch.
   */
  where: Prisma.bon_travailWhereUniqueInput
}

/**
 * bon_travail findUniqueOrThrow
 */
export type bon_travailFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | null
  /**
   * Filter, which bon_travail to fetch.
   */
  where: Prisma.bon_travailWhereUniqueInput
}

/**
 * bon_travail findFirst
 */
export type bon_travailFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | null
  /**
   * The data needed to create a bon_travail.
   */
  data: Prisma.XOR<Prisma.bon_travailCreateInput, Prisma.bon_travailUncheckedCreateInput>
}

/**
 * bon_travail createMany
 */
export type bon_travailCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many bon_travails.
   */
  data: Prisma.bon_travailCreateManyInput | Prisma.bon_travailCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * bon_travail update
 */
export type bon_travailUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | null
  /**
   * The data needed to update a bon_travail.
   */
  data: Prisma.XOR<Prisma.bon_travailUpdateInput, Prisma.bon_travailUncheckedUpdateInput>
  /**
   * Choose, which bon_travail to update.
   */
  where: Prisma.bon_travailWhereUniqueInput
}

/**
 * bon_travail updateMany
 */
export type bon_travailUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update bon_travails.
   */
  data: Prisma.XOR<Prisma.bon_travailUpdateManyMutationInput, Prisma.bon_travailUncheckedUpdateManyInput>
  /**
   * 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | 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<Prisma.bon_travailCreateInput, Prisma.bon_travailUncheckedCreateInput>
  /**
   * In case the bon_travail was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.bon_travailUpdateInput, Prisma.bon_travailUncheckedUpdateInput>
}

/**
 * bon_travail delete
 */
export type bon_travailDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | null
  /**
   * Filter which bon_travail to delete.
   */
  where: Prisma.bon_travailWhereUniqueInput
}

/**
 * bon_travail deleteMany
 */
export type bon_travailDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bon_travail
   */
  select?: Prisma.bon_travailSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bon_travail
   */
  omit?: Prisma.bon_travailOmit<ExtArgs> | null
}
