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

export type AggregateStaff_supp = {
  _count: Staff_suppCountAggregateOutputType | null
  _avg: Staff_suppAvgAggregateOutputType | null
  _sum: Staff_suppSumAggregateOutputType | null
  _min: Staff_suppMinAggregateOutputType | null
  _max: Staff_suppMaxAggregateOutputType | null
}

export type Staff_suppAvgAggregateOutputType = {
  id: number | null
}

export type Staff_suppSumAggregateOutputType = {
  id: number | null
}

export type Staff_suppMinAggregateOutputType = {
  id: number | null
  nom: string | null
  staff_ids: string | null
}

export type Staff_suppMaxAggregateOutputType = {
  id: number | null
  nom: string | null
  staff_ids: string | null
}

export type Staff_suppCountAggregateOutputType = {
  id: number
  nom: number
  staff_ids: number
  _all: number
}


export type Staff_suppAvgAggregateInputType = {
  id?: true
}

export type Staff_suppSumAggregateInputType = {
  id?: true
}

export type Staff_suppMinAggregateInputType = {
  id?: true
  nom?: true
  staff_ids?: true
}

export type Staff_suppMaxAggregateInputType = {
  id?: true
  nom?: true
  staff_ids?: true
}

export type Staff_suppCountAggregateInputType = {
  id?: true
  nom?: true
  staff_ids?: true
  _all?: true
}

export type Staff_suppAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which staff_supp to aggregate.
   */
  where?: Prisma.staff_suppWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of staff_supps to fetch.
   */
  orderBy?: Prisma.staff_suppOrderByWithRelationInput | Prisma.staff_suppOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.staff_suppWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` staff_supps 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` staff_supps.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned staff_supps
  **/
  _count?: true | Staff_suppCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Staff_suppAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Staff_suppSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Staff_suppMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Staff_suppMaxAggregateInputType
}

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




export type staff_suppGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.staff_suppWhereInput
  orderBy?: Prisma.staff_suppOrderByWithAggregationInput | Prisma.staff_suppOrderByWithAggregationInput[]
  by: Prisma.Staff_suppScalarFieldEnum[] | Prisma.Staff_suppScalarFieldEnum
  having?: Prisma.staff_suppScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Staff_suppCountAggregateInputType | true
  _avg?: Staff_suppAvgAggregateInputType
  _sum?: Staff_suppSumAggregateInputType
  _min?: Staff_suppMinAggregateInputType
  _max?: Staff_suppMaxAggregateInputType
}

export type Staff_suppGroupByOutputType = {
  id: number
  nom: string
  staff_ids: string
  _count: Staff_suppCountAggregateOutputType | null
  _avg: Staff_suppAvgAggregateOutputType | null
  _sum: Staff_suppSumAggregateOutputType | null
  _min: Staff_suppMinAggregateOutputType | null
  _max: Staff_suppMaxAggregateOutputType | null
}

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



export type staff_suppWhereInput = {
  AND?: Prisma.staff_suppWhereInput | Prisma.staff_suppWhereInput[]
  OR?: Prisma.staff_suppWhereInput[]
  NOT?: Prisma.staff_suppWhereInput | Prisma.staff_suppWhereInput[]
  id?: Prisma.IntFilter<"staff_supp"> | number
  nom?: Prisma.StringFilter<"staff_supp"> | string
  staff_ids?: Prisma.StringFilter<"staff_supp"> | string
}

export type staff_suppOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
  staff_ids?: Prisma.SortOrder
  _relevance?: Prisma.staff_suppOrderByRelevanceInput
}

export type staff_suppWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.staff_suppWhereInput | Prisma.staff_suppWhereInput[]
  OR?: Prisma.staff_suppWhereInput[]
  NOT?: Prisma.staff_suppWhereInput | Prisma.staff_suppWhereInput[]
  nom?: Prisma.StringFilter<"staff_supp"> | string
  staff_ids?: Prisma.StringFilter<"staff_supp"> | string
}, "id">

export type staff_suppOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
  staff_ids?: Prisma.SortOrder
  _count?: Prisma.staff_suppCountOrderByAggregateInput
  _avg?: Prisma.staff_suppAvgOrderByAggregateInput
  _max?: Prisma.staff_suppMaxOrderByAggregateInput
  _min?: Prisma.staff_suppMinOrderByAggregateInput
  _sum?: Prisma.staff_suppSumOrderByAggregateInput
}

export type staff_suppScalarWhereWithAggregatesInput = {
  AND?: Prisma.staff_suppScalarWhereWithAggregatesInput | Prisma.staff_suppScalarWhereWithAggregatesInput[]
  OR?: Prisma.staff_suppScalarWhereWithAggregatesInput[]
  NOT?: Prisma.staff_suppScalarWhereWithAggregatesInput | Prisma.staff_suppScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"staff_supp"> | number
  nom?: Prisma.StringWithAggregatesFilter<"staff_supp"> | string
  staff_ids?: Prisma.StringWithAggregatesFilter<"staff_supp"> | string
}

export type staff_suppCreateInput = {
  nom: string
  staff_ids: string
}

export type staff_suppUncheckedCreateInput = {
  id?: number
  nom: string
  staff_ids: string
}

export type staff_suppUpdateInput = {
  nom?: Prisma.StringFieldUpdateOperationsInput | string
  staff_ids?: Prisma.StringFieldUpdateOperationsInput | string
}

export type staff_suppUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  nom?: Prisma.StringFieldUpdateOperationsInput | string
  staff_ids?: Prisma.StringFieldUpdateOperationsInput | string
}

export type staff_suppCreateManyInput = {
  id?: number
  nom: string
  staff_ids: string
}

export type staff_suppUpdateManyMutationInput = {
  nom?: Prisma.StringFieldUpdateOperationsInput | string
  staff_ids?: Prisma.StringFieldUpdateOperationsInput | string
}

export type staff_suppUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  nom?: Prisma.StringFieldUpdateOperationsInput | string
  staff_ids?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type staff_suppCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
  staff_ids?: Prisma.SortOrder
}

export type staff_suppAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type staff_suppMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
  staff_ids?: Prisma.SortOrder
}

export type staff_suppMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  nom?: Prisma.SortOrder
  staff_ids?: Prisma.SortOrder
}

export type staff_suppSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
}



export type staff_suppSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  nom?: boolean
  staff_ids?: boolean
}, ExtArgs["result"]["staff_supp"]>



export type staff_suppSelectScalar = {
  id?: boolean
  nom?: boolean
  staff_ids?: boolean
}

export type staff_suppOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "nom" | "staff_ids", ExtArgs["result"]["staff_supp"]>

export type $staff_suppPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "staff_supp"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    nom: string
    staff_ids: string
  }, ExtArgs["result"]["staff_supp"]>
  composites: {}
}

export type staff_suppGetPayload<S extends boolean | null | undefined | staff_suppDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$staff_suppPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for staff_supp.
 * 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__staff_suppClient<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 staff_supp model
 */
export interface staff_suppFieldRefs {
  readonly id: Prisma.FieldRef<"staff_supp", 'Int'>
  readonly nom: Prisma.FieldRef<"staff_supp", 'String'>
  readonly staff_ids: Prisma.FieldRef<"staff_supp", 'String'>
}
    

// Custom InputTypes
/**
 * staff_supp findUnique
 */
export type staff_suppFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_supp
   */
  select?: Prisma.staff_suppSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_supp
   */
  omit?: Prisma.staff_suppOmit<ExtArgs> | null
  /**
   * Filter, which staff_supp to fetch.
   */
  where: Prisma.staff_suppWhereUniqueInput
}

/**
 * staff_supp findUniqueOrThrow
 */
export type staff_suppFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_supp
   */
  select?: Prisma.staff_suppSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_supp
   */
  omit?: Prisma.staff_suppOmit<ExtArgs> | null
  /**
   * Filter, which staff_supp to fetch.
   */
  where: Prisma.staff_suppWhereUniqueInput
}

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

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

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

/**
 * staff_supp create
 */
export type staff_suppCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_supp
   */
  select?: Prisma.staff_suppSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_supp
   */
  omit?: Prisma.staff_suppOmit<ExtArgs> | null
  /**
   * The data needed to create a staff_supp.
   */
  data: Prisma.XOR<Prisma.staff_suppCreateInput, Prisma.staff_suppUncheckedCreateInput>
}

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

/**
 * staff_supp update
 */
export type staff_suppUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_supp
   */
  select?: Prisma.staff_suppSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_supp
   */
  omit?: Prisma.staff_suppOmit<ExtArgs> | null
  /**
   * The data needed to update a staff_supp.
   */
  data: Prisma.XOR<Prisma.staff_suppUpdateInput, Prisma.staff_suppUncheckedUpdateInput>
  /**
   * Choose, which staff_supp to update.
   */
  where: Prisma.staff_suppWhereUniqueInput
}

/**
 * staff_supp updateMany
 */
export type staff_suppUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update staff_supps.
   */
  data: Prisma.XOR<Prisma.staff_suppUpdateManyMutationInput, Prisma.staff_suppUncheckedUpdateManyInput>
  /**
   * Filter which staff_supps to update
   */
  where?: Prisma.staff_suppWhereInput
  /**
   * Limit how many staff_supps to update.
   */
  limit?: number
}

/**
 * staff_supp upsert
 */
export type staff_suppUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_supp
   */
  select?: Prisma.staff_suppSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_supp
   */
  omit?: Prisma.staff_suppOmit<ExtArgs> | null
  /**
   * The filter to search for the staff_supp to update in case it exists.
   */
  where: Prisma.staff_suppWhereUniqueInput
  /**
   * In case the staff_supp found by the `where` argument doesn't exist, create a new staff_supp with this data.
   */
  create: Prisma.XOR<Prisma.staff_suppCreateInput, Prisma.staff_suppUncheckedCreateInput>
  /**
   * In case the staff_supp was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.staff_suppUpdateInput, Prisma.staff_suppUncheckedUpdateInput>
}

/**
 * staff_supp delete
 */
export type staff_suppDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_supp
   */
  select?: Prisma.staff_suppSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_supp
   */
  omit?: Prisma.staff_suppOmit<ExtArgs> | null
  /**
   * Filter which staff_supp to delete.
   */
  where: Prisma.staff_suppWhereUniqueInput
}

/**
 * staff_supp deleteMany
 */
export type staff_suppDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which staff_supps to delete
   */
  where?: Prisma.staff_suppWhereInput
  /**
   * Limit how many staff_supps to delete.
   */
  limit?: number
}

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