
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `banque_heure_staff` 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 banque_heure_staff
 * 
 */
export type banque_heure_staffModel = runtime.Types.Result.DefaultSelection<Prisma.$banque_heure_staffPayload>

export type AggregateBanque_heure_staff = {
  _count: Banque_heure_staffCountAggregateOutputType | null
  _avg: Banque_heure_staffAvgAggregateOutputType | null
  _sum: Banque_heure_staffSumAggregateOutputType | null
  _min: Banque_heure_staffMinAggregateOutputType | null
  _max: Banque_heure_staffMaxAggregateOutputType | null
}

export type Banque_heure_staffAvgAggregateOutputType = {
  id: number | null
  staff_id: number | null
  week: number | null
  year: number | null
  heure: number | null
}

export type Banque_heure_staffSumAggregateOutputType = {
  id: number | null
  staff_id: number | null
  week: number | null
  year: number | null
  heure: number | null
}

export type Banque_heure_staffMinAggregateOutputType = {
  id: number | null
  staff_id: number | null
  week: number | null
  year: number | null
  sunday: string | null
  heure: number | null
}

export type Banque_heure_staffMaxAggregateOutputType = {
  id: number | null
  staff_id: number | null
  week: number | null
  year: number | null
  sunday: string | null
  heure: number | null
}

export type Banque_heure_staffCountAggregateOutputType = {
  id: number
  staff_id: number
  week: number
  year: number
  sunday: number
  heure: number
  _all: number
}


export type Banque_heure_staffAvgAggregateInputType = {
  id?: true
  staff_id?: true
  week?: true
  year?: true
  heure?: true
}

export type Banque_heure_staffSumAggregateInputType = {
  id?: true
  staff_id?: true
  week?: true
  year?: true
  heure?: true
}

export type Banque_heure_staffMinAggregateInputType = {
  id?: true
  staff_id?: true
  week?: true
  year?: true
  sunday?: true
  heure?: true
}

export type Banque_heure_staffMaxAggregateInputType = {
  id?: true
  staff_id?: true
  week?: true
  year?: true
  sunday?: true
  heure?: true
}

export type Banque_heure_staffCountAggregateInputType = {
  id?: true
  staff_id?: true
  week?: true
  year?: true
  sunday?: true
  heure?: true
  _all?: true
}

export type Banque_heure_staffAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which banque_heure_staff to aggregate.
   */
  where?: Prisma.banque_heure_staffWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of banque_heure_staffs to fetch.
   */
  orderBy?: Prisma.banque_heure_staffOrderByWithRelationInput | Prisma.banque_heure_staffOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.banque_heure_staffWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` banque_heure_staffs 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` banque_heure_staffs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned banque_heure_staffs
  **/
  _count?: true | Banque_heure_staffCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Banque_heure_staffAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Banque_heure_staffSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Banque_heure_staffMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Banque_heure_staffMaxAggregateInputType
}

export type GetBanque_heure_staffAggregateType<T extends Banque_heure_staffAggregateArgs> = {
      [P in keyof T & keyof AggregateBanque_heure_staff]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateBanque_heure_staff[P]>
    : Prisma.GetScalarType<T[P], AggregateBanque_heure_staff[P]>
}




export type banque_heure_staffGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.banque_heure_staffWhereInput
  orderBy?: Prisma.banque_heure_staffOrderByWithAggregationInput | Prisma.banque_heure_staffOrderByWithAggregationInput[]
  by: Prisma.Banque_heure_staffScalarFieldEnum[] | Prisma.Banque_heure_staffScalarFieldEnum
  having?: Prisma.banque_heure_staffScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Banque_heure_staffCountAggregateInputType | true
  _avg?: Banque_heure_staffAvgAggregateInputType
  _sum?: Banque_heure_staffSumAggregateInputType
  _min?: Banque_heure_staffMinAggregateInputType
  _max?: Banque_heure_staffMaxAggregateInputType
}

export type Banque_heure_staffGroupByOutputType = {
  id: number
  staff_id: number
  week: number
  year: number
  sunday: string | null
  heure: number
  _count: Banque_heure_staffCountAggregateOutputType | null
  _avg: Banque_heure_staffAvgAggregateOutputType | null
  _sum: Banque_heure_staffSumAggregateOutputType | null
  _min: Banque_heure_staffMinAggregateOutputType | null
  _max: Banque_heure_staffMaxAggregateOutputType | null
}

type GetBanque_heure_staffGroupByPayload<T extends banque_heure_staffGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<Banque_heure_staffGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof Banque_heure_staffGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], Banque_heure_staffGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], Banque_heure_staffGroupByOutputType[P]>
      }
    >
  >



export type banque_heure_staffWhereInput = {
  AND?: Prisma.banque_heure_staffWhereInput | Prisma.banque_heure_staffWhereInput[]
  OR?: Prisma.banque_heure_staffWhereInput[]
  NOT?: Prisma.banque_heure_staffWhereInput | Prisma.banque_heure_staffWhereInput[]
  id?: Prisma.IntFilter<"banque_heure_staff"> | number
  staff_id?: Prisma.IntFilter<"banque_heure_staff"> | number
  week?: Prisma.IntFilter<"banque_heure_staff"> | number
  year?: Prisma.IntFilter<"banque_heure_staff"> | number
  sunday?: Prisma.StringNullableFilter<"banque_heure_staff"> | string | null
  heure?: Prisma.FloatFilter<"banque_heure_staff"> | number
}

export type banque_heure_staffOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  week?: Prisma.SortOrder
  year?: Prisma.SortOrder
  sunday?: Prisma.SortOrderInput | Prisma.SortOrder
  heure?: Prisma.SortOrder
  _relevance?: Prisma.banque_heure_staffOrderByRelevanceInput
}

export type banque_heure_staffWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.banque_heure_staffWhereInput | Prisma.banque_heure_staffWhereInput[]
  OR?: Prisma.banque_heure_staffWhereInput[]
  NOT?: Prisma.banque_heure_staffWhereInput | Prisma.banque_heure_staffWhereInput[]
  staff_id?: Prisma.IntFilter<"banque_heure_staff"> | number
  week?: Prisma.IntFilter<"banque_heure_staff"> | number
  year?: Prisma.IntFilter<"banque_heure_staff"> | number
  sunday?: Prisma.StringNullableFilter<"banque_heure_staff"> | string | null
  heure?: Prisma.FloatFilter<"banque_heure_staff"> | number
}, "id">

export type banque_heure_staffOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  week?: Prisma.SortOrder
  year?: Prisma.SortOrder
  sunday?: Prisma.SortOrderInput | Prisma.SortOrder
  heure?: Prisma.SortOrder
  _count?: Prisma.banque_heure_staffCountOrderByAggregateInput
  _avg?: Prisma.banque_heure_staffAvgOrderByAggregateInput
  _max?: Prisma.banque_heure_staffMaxOrderByAggregateInput
  _min?: Prisma.banque_heure_staffMinOrderByAggregateInput
  _sum?: Prisma.banque_heure_staffSumOrderByAggregateInput
}

export type banque_heure_staffScalarWhereWithAggregatesInput = {
  AND?: Prisma.banque_heure_staffScalarWhereWithAggregatesInput | Prisma.banque_heure_staffScalarWhereWithAggregatesInput[]
  OR?: Prisma.banque_heure_staffScalarWhereWithAggregatesInput[]
  NOT?: Prisma.banque_heure_staffScalarWhereWithAggregatesInput | Prisma.banque_heure_staffScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"banque_heure_staff"> | number
  staff_id?: Prisma.IntWithAggregatesFilter<"banque_heure_staff"> | number
  week?: Prisma.IntWithAggregatesFilter<"banque_heure_staff"> | number
  year?: Prisma.IntWithAggregatesFilter<"banque_heure_staff"> | number
  sunday?: Prisma.StringNullableWithAggregatesFilter<"banque_heure_staff"> | string | null
  heure?: Prisma.FloatWithAggregatesFilter<"banque_heure_staff"> | number
}

export type banque_heure_staffCreateInput = {
  staff_id: number
  week: number
  year: number
  sunday?: string | null
  heure: number
}

export type banque_heure_staffUncheckedCreateInput = {
  id?: number
  staff_id: number
  week: number
  year: number
  sunday?: string | null
  heure: number
}

export type banque_heure_staffUpdateInput = {
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
  week?: Prisma.IntFieldUpdateOperationsInput | number
  year?: Prisma.IntFieldUpdateOperationsInput | number
  sunday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  heure?: Prisma.FloatFieldUpdateOperationsInput | number
}

export type banque_heure_staffUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
  week?: Prisma.IntFieldUpdateOperationsInput | number
  year?: Prisma.IntFieldUpdateOperationsInput | number
  sunday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  heure?: Prisma.FloatFieldUpdateOperationsInput | number
}

export type banque_heure_staffCreateManyInput = {
  id?: number
  staff_id: number
  week: number
  year: number
  sunday?: string | null
  heure: number
}

export type banque_heure_staffUpdateManyMutationInput = {
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
  week?: Prisma.IntFieldUpdateOperationsInput | number
  year?: Prisma.IntFieldUpdateOperationsInput | number
  sunday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  heure?: Prisma.FloatFieldUpdateOperationsInput | number
}

export type banque_heure_staffUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  staff_id?: Prisma.IntFieldUpdateOperationsInput | number
  week?: Prisma.IntFieldUpdateOperationsInput | number
  year?: Prisma.IntFieldUpdateOperationsInput | number
  sunday?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  heure?: Prisma.FloatFieldUpdateOperationsInput | number
}

export type banque_heure_staffOrderByRelevanceInput = {
  fields: Prisma.banque_heure_staffOrderByRelevanceFieldEnum | Prisma.banque_heure_staffOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type banque_heure_staffCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  week?: Prisma.SortOrder
  year?: Prisma.SortOrder
  sunday?: Prisma.SortOrder
  heure?: Prisma.SortOrder
}

export type banque_heure_staffAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  week?: Prisma.SortOrder
  year?: Prisma.SortOrder
  heure?: Prisma.SortOrder
}

export type banque_heure_staffMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  week?: Prisma.SortOrder
  year?: Prisma.SortOrder
  sunday?: Prisma.SortOrder
  heure?: Prisma.SortOrder
}

export type banque_heure_staffMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  week?: Prisma.SortOrder
  year?: Prisma.SortOrder
  sunday?: Prisma.SortOrder
  heure?: Prisma.SortOrder
}

export type banque_heure_staffSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  week?: Prisma.SortOrder
  year?: Prisma.SortOrder
  heure?: Prisma.SortOrder
}



export type banque_heure_staffSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  staff_id?: boolean
  week?: boolean
  year?: boolean
  sunday?: boolean
  heure?: boolean
}, ExtArgs["result"]["banque_heure_staff"]>



export type banque_heure_staffSelectScalar = {
  id?: boolean
  staff_id?: boolean
  week?: boolean
  year?: boolean
  sunday?: boolean
  heure?: boolean
}

export type banque_heure_staffOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "staff_id" | "week" | "year" | "sunday" | "heure", ExtArgs["result"]["banque_heure_staff"]>

export type $banque_heure_staffPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "banque_heure_staff"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    staff_id: number
    week: number
    year: number
    sunday: string | null
    heure: number
  }, ExtArgs["result"]["banque_heure_staff"]>
  composites: {}
}

export type banque_heure_staffGetPayload<S extends boolean | null | undefined | banque_heure_staffDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload, S>

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

export interface banque_heure_staffDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['banque_heure_staff'], meta: { name: 'banque_heure_staff' } }
  /**
   * Find zero or one Banque_heure_staff that matches the filter.
   * @param {banque_heure_staffFindUniqueArgs} args - Arguments to find a Banque_heure_staff
   * @example
   * // Get one Banque_heure_staff
   * const banque_heure_staff = await prisma.banque_heure_staff.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends banque_heure_staffFindUniqueArgs>(args: Prisma.SelectSubset<T, banque_heure_staffFindUniqueArgs<ExtArgs>>): Prisma.Prisma__banque_heure_staffClient<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one Banque_heure_staff that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {banque_heure_staffFindUniqueOrThrowArgs} args - Arguments to find a Banque_heure_staff
   * @example
   * // Get one Banque_heure_staff
   * const banque_heure_staff = await prisma.banque_heure_staff.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends banque_heure_staffFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, banque_heure_staffFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__banque_heure_staffClient<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Banque_heure_staff 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 {banque_heure_staffFindFirstArgs} args - Arguments to find a Banque_heure_staff
   * @example
   * // Get one Banque_heure_staff
   * const banque_heure_staff = await prisma.banque_heure_staff.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends banque_heure_staffFindFirstArgs>(args?: Prisma.SelectSubset<T, banque_heure_staffFindFirstArgs<ExtArgs>>): Prisma.Prisma__banque_heure_staffClient<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Banque_heure_staff 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 {banque_heure_staffFindFirstOrThrowArgs} args - Arguments to find a Banque_heure_staff
   * @example
   * // Get one Banque_heure_staff
   * const banque_heure_staff = await prisma.banque_heure_staff.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends banque_heure_staffFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, banque_heure_staffFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__banque_heure_staffClient<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more Banque_heure_staffs 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 {banque_heure_staffFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Banque_heure_staffs
   * const banque_heure_staffs = await prisma.banque_heure_staff.findMany()
   * 
   * // Get first 10 Banque_heure_staffs
   * const banque_heure_staffs = await prisma.banque_heure_staff.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const banque_heure_staffWithIdOnly = await prisma.banque_heure_staff.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends banque_heure_staffFindManyArgs>(args?: Prisma.SelectSubset<T, banque_heure_staffFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a Banque_heure_staff.
   * @param {banque_heure_staffCreateArgs} args - Arguments to create a Banque_heure_staff.
   * @example
   * // Create one Banque_heure_staff
   * const Banque_heure_staff = await prisma.banque_heure_staff.create({
   *   data: {
   *     // ... data to create a Banque_heure_staff
   *   }
   * })
   * 
   */
  create<T extends banque_heure_staffCreateArgs>(args: Prisma.SelectSubset<T, banque_heure_staffCreateArgs<ExtArgs>>): Prisma.Prisma__banque_heure_staffClient<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many Banque_heure_staffs.
   * @param {banque_heure_staffCreateManyArgs} args - Arguments to create many Banque_heure_staffs.
   * @example
   * // Create many Banque_heure_staffs
   * const banque_heure_staff = await prisma.banque_heure_staff.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends banque_heure_staffCreateManyArgs>(args?: Prisma.SelectSubset<T, banque_heure_staffCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Delete a Banque_heure_staff.
   * @param {banque_heure_staffDeleteArgs} args - Arguments to delete one Banque_heure_staff.
   * @example
   * // Delete one Banque_heure_staff
   * const Banque_heure_staff = await prisma.banque_heure_staff.delete({
   *   where: {
   *     // ... filter to delete one Banque_heure_staff
   *   }
   * })
   * 
   */
  delete<T extends banque_heure_staffDeleteArgs>(args: Prisma.SelectSubset<T, banque_heure_staffDeleteArgs<ExtArgs>>): Prisma.Prisma__banque_heure_staffClient<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one Banque_heure_staff.
   * @param {banque_heure_staffUpdateArgs} args - Arguments to update one Banque_heure_staff.
   * @example
   * // Update one Banque_heure_staff
   * const banque_heure_staff = await prisma.banque_heure_staff.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends banque_heure_staffUpdateArgs>(args: Prisma.SelectSubset<T, banque_heure_staffUpdateArgs<ExtArgs>>): Prisma.Prisma__banque_heure_staffClient<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more Banque_heure_staffs.
   * @param {banque_heure_staffDeleteManyArgs} args - Arguments to filter Banque_heure_staffs to delete.
   * @example
   * // Delete a few Banque_heure_staffs
   * const { count } = await prisma.banque_heure_staff.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends banque_heure_staffDeleteManyArgs>(args?: Prisma.SelectSubset<T, banque_heure_staffDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Banque_heure_staffs.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {banque_heure_staffUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Banque_heure_staffs
   * const banque_heure_staff = await prisma.banque_heure_staff.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends banque_heure_staffUpdateManyArgs>(args: Prisma.SelectSubset<T, banque_heure_staffUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create or update one Banque_heure_staff.
   * @param {banque_heure_staffUpsertArgs} args - Arguments to update or create a Banque_heure_staff.
   * @example
   * // Update or create a Banque_heure_staff
   * const banque_heure_staff = await prisma.banque_heure_staff.upsert({
   *   create: {
   *     // ... data to create a Banque_heure_staff
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the Banque_heure_staff we want to update
   *   }
   * })
   */
  upsert<T extends banque_heure_staffUpsertArgs>(args: Prisma.SelectSubset<T, banque_heure_staffUpsertArgs<ExtArgs>>): Prisma.Prisma__banque_heure_staffClient<runtime.Types.Result.GetResult<Prisma.$banque_heure_staffPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of Banque_heure_staffs.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {banque_heure_staffCountArgs} args - Arguments to filter Banque_heure_staffs to count.
   * @example
   * // Count the number of Banque_heure_staffs
   * const count = await prisma.banque_heure_staff.count({
   *   where: {
   *     // ... the filter for the Banque_heure_staffs we want to count
   *   }
   * })
  **/
  count<T extends banque_heure_staffCountArgs>(
    args?: Prisma.Subset<T, banque_heure_staffCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], Banque_heure_staffCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a Banque_heure_staff.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {Banque_heure_staffAggregateArgs} 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 Banque_heure_staffAggregateArgs>(args: Prisma.Subset<T, Banque_heure_staffAggregateArgs>): Prisma.PrismaPromise<GetBanque_heure_staffAggregateType<T>>

  /**
   * Group by Banque_heure_staff.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {banque_heure_staffGroupByArgs} 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 banque_heure_staffGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: banque_heure_staffGroupByArgs['orderBy'] }
      : { orderBy?: banque_heure_staffGroupByArgs['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, banque_heure_staffGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBanque_heure_staffGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the banque_heure_staff model
 */
readonly fields: banque_heure_staffFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for banque_heure_staff.
 * 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__banque_heure_staffClient<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 banque_heure_staff model
 */
export interface banque_heure_staffFieldRefs {
  readonly id: Prisma.FieldRef<"banque_heure_staff", 'Int'>
  readonly staff_id: Prisma.FieldRef<"banque_heure_staff", 'Int'>
  readonly week: Prisma.FieldRef<"banque_heure_staff", 'Int'>
  readonly year: Prisma.FieldRef<"banque_heure_staff", 'Int'>
  readonly sunday: Prisma.FieldRef<"banque_heure_staff", 'String'>
  readonly heure: Prisma.FieldRef<"banque_heure_staff", 'Float'>
}
    

// Custom InputTypes
/**
 * banque_heure_staff findUnique
 */
export type banque_heure_staffFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * Filter, which banque_heure_staff to fetch.
   */
  where: Prisma.banque_heure_staffWhereUniqueInput
}

/**
 * banque_heure_staff findUniqueOrThrow
 */
export type banque_heure_staffFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * Filter, which banque_heure_staff to fetch.
   */
  where: Prisma.banque_heure_staffWhereUniqueInput
}

/**
 * banque_heure_staff findFirst
 */
export type banque_heure_staffFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * Filter, which banque_heure_staff to fetch.
   */
  where?: Prisma.banque_heure_staffWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of banque_heure_staffs to fetch.
   */
  orderBy?: Prisma.banque_heure_staffOrderByWithRelationInput | Prisma.banque_heure_staffOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for banque_heure_staffs.
   */
  cursor?: Prisma.banque_heure_staffWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` banque_heure_staffs 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` banque_heure_staffs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of banque_heure_staffs.
   */
  distinct?: Prisma.Banque_heure_staffScalarFieldEnum | Prisma.Banque_heure_staffScalarFieldEnum[]
}

/**
 * banque_heure_staff findFirstOrThrow
 */
export type banque_heure_staffFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * Filter, which banque_heure_staff to fetch.
   */
  where?: Prisma.banque_heure_staffWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of banque_heure_staffs to fetch.
   */
  orderBy?: Prisma.banque_heure_staffOrderByWithRelationInput | Prisma.banque_heure_staffOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for banque_heure_staffs.
   */
  cursor?: Prisma.banque_heure_staffWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` banque_heure_staffs 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` banque_heure_staffs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of banque_heure_staffs.
   */
  distinct?: Prisma.Banque_heure_staffScalarFieldEnum | Prisma.Banque_heure_staffScalarFieldEnum[]
}

/**
 * banque_heure_staff findMany
 */
export type banque_heure_staffFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * Filter, which banque_heure_staffs to fetch.
   */
  where?: Prisma.banque_heure_staffWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of banque_heure_staffs to fetch.
   */
  orderBy?: Prisma.banque_heure_staffOrderByWithRelationInput | Prisma.banque_heure_staffOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing banque_heure_staffs.
   */
  cursor?: Prisma.banque_heure_staffWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` banque_heure_staffs 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` banque_heure_staffs.
   */
  skip?: number
  distinct?: Prisma.Banque_heure_staffScalarFieldEnum | Prisma.Banque_heure_staffScalarFieldEnum[]
}

/**
 * banque_heure_staff create
 */
export type banque_heure_staffCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * The data needed to create a banque_heure_staff.
   */
  data: Prisma.XOR<Prisma.banque_heure_staffCreateInput, Prisma.banque_heure_staffUncheckedCreateInput>
}

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

/**
 * banque_heure_staff update
 */
export type banque_heure_staffUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * The data needed to update a banque_heure_staff.
   */
  data: Prisma.XOR<Prisma.banque_heure_staffUpdateInput, Prisma.banque_heure_staffUncheckedUpdateInput>
  /**
   * Choose, which banque_heure_staff to update.
   */
  where: Prisma.banque_heure_staffWhereUniqueInput
}

/**
 * banque_heure_staff updateMany
 */
export type banque_heure_staffUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update banque_heure_staffs.
   */
  data: Prisma.XOR<Prisma.banque_heure_staffUpdateManyMutationInput, Prisma.banque_heure_staffUncheckedUpdateManyInput>
  /**
   * Filter which banque_heure_staffs to update
   */
  where?: Prisma.banque_heure_staffWhereInput
  /**
   * Limit how many banque_heure_staffs to update.
   */
  limit?: number
}

/**
 * banque_heure_staff upsert
 */
export type banque_heure_staffUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * The filter to search for the banque_heure_staff to update in case it exists.
   */
  where: Prisma.banque_heure_staffWhereUniqueInput
  /**
   * In case the banque_heure_staff found by the `where` argument doesn't exist, create a new banque_heure_staff with this data.
   */
  create: Prisma.XOR<Prisma.banque_heure_staffCreateInput, Prisma.banque_heure_staffUncheckedCreateInput>
  /**
   * In case the banque_heure_staff was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.banque_heure_staffUpdateInput, Prisma.banque_heure_staffUncheckedUpdateInput>
}

/**
 * banque_heure_staff delete
 */
export type banque_heure_staffDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
  /**
   * Filter which banque_heure_staff to delete.
   */
  where: Prisma.banque_heure_staffWhereUniqueInput
}

/**
 * banque_heure_staff deleteMany
 */
export type banque_heure_staffDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which banque_heure_staffs to delete
   */
  where?: Prisma.banque_heure_staffWhereInput
  /**
   * Limit how many banque_heure_staffs to delete.
   */
  limit?: number
}

/**
 * banque_heure_staff without action
 */
export type banque_heure_staffDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the banque_heure_staff
   */
  select?: Prisma.banque_heure_staffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the banque_heure_staff
   */
  omit?: Prisma.banque_heure_staffOmit<ExtArgs> | null
}
