
/* !!! 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_dispo` 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_dispo
 * 
 */
export type staff_dispoModel = runtime.Types.Result.DefaultSelection<Prisma.$staff_dispoPayload>

export type AggregateStaff_dispo = {
  _count: Staff_dispoCountAggregateOutputType | null
  _avg: Staff_dispoAvgAggregateOutputType | null
  _sum: Staff_dispoSumAggregateOutputType | null
  _min: Staff_dispoMinAggregateOutputType | null
  _max: Staff_dispoMaxAggregateOutputType | null
}

export type Staff_dispoAvgAggregateOutputType = {
  id: number | null
  day_num: number | null
  staff_id: number | null
}

export type Staff_dispoSumAggregateOutputType = {
  id: number | null
  day_num: number | null
  staff_id: number | null
}

export type Staff_dispoMinAggregateOutputType = {
  id: number | null
  day_num: number | null
  staff_id: number | null
}

export type Staff_dispoMaxAggregateOutputType = {
  id: number | null
  day_num: number | null
  staff_id: number | null
}

export type Staff_dispoCountAggregateOutputType = {
  id: number
  day_num: number
  staff_id: number
  _all: number
}


export type Staff_dispoAvgAggregateInputType = {
  id?: true
  day_num?: true
  staff_id?: true
}

export type Staff_dispoSumAggregateInputType = {
  id?: true
  day_num?: true
  staff_id?: true
}

export type Staff_dispoMinAggregateInputType = {
  id?: true
  day_num?: true
  staff_id?: true
}

export type Staff_dispoMaxAggregateInputType = {
  id?: true
  day_num?: true
  staff_id?: true
}

export type Staff_dispoCountAggregateInputType = {
  id?: true
  day_num?: true
  staff_id?: true
  _all?: true
}

export type Staff_dispoAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which staff_dispo to aggregate.
   */
  where?: Prisma.staff_dispoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of staff_dispos to fetch.
   */
  orderBy?: Prisma.staff_dispoOrderByWithRelationInput | Prisma.staff_dispoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.staff_dispoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` staff_dispos 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_dispos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned staff_dispos
  **/
  _count?: true | Staff_dispoCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Staff_dispoAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Staff_dispoSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Staff_dispoMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Staff_dispoMaxAggregateInputType
}

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




export type staff_dispoGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.staff_dispoWhereInput
  orderBy?: Prisma.staff_dispoOrderByWithAggregationInput | Prisma.staff_dispoOrderByWithAggregationInput[]
  by: Prisma.Staff_dispoScalarFieldEnum[] | Prisma.Staff_dispoScalarFieldEnum
  having?: Prisma.staff_dispoScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Staff_dispoCountAggregateInputType | true
  _avg?: Staff_dispoAvgAggregateInputType
  _sum?: Staff_dispoSumAggregateInputType
  _min?: Staff_dispoMinAggregateInputType
  _max?: Staff_dispoMaxAggregateInputType
}

export type Staff_dispoGroupByOutputType = {
  id: number
  day_num: number
  staff_id: number | null
  _count: Staff_dispoCountAggregateOutputType | null
  _avg: Staff_dispoAvgAggregateOutputType | null
  _sum: Staff_dispoSumAggregateOutputType | null
  _min: Staff_dispoMinAggregateOutputType | null
  _max: Staff_dispoMaxAggregateOutputType | null
}

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



export type staff_dispoWhereInput = {
  AND?: Prisma.staff_dispoWhereInput | Prisma.staff_dispoWhereInput[]
  OR?: Prisma.staff_dispoWhereInput[]
  NOT?: Prisma.staff_dispoWhereInput | Prisma.staff_dispoWhereInput[]
  id?: Prisma.IntFilter<"staff_dispo"> | number
  day_num?: Prisma.IntFilter<"staff_dispo"> | number
  staff_id?: Prisma.IntNullableFilter<"staff_dispo"> | number | null
}

export type staff_dispoOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  day_num?: Prisma.SortOrder
  staff_id?: Prisma.SortOrderInput | Prisma.SortOrder
}

export type staff_dispoWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.staff_dispoWhereInput | Prisma.staff_dispoWhereInput[]
  OR?: Prisma.staff_dispoWhereInput[]
  NOT?: Prisma.staff_dispoWhereInput | Prisma.staff_dispoWhereInput[]
  day_num?: Prisma.IntFilter<"staff_dispo"> | number
  staff_id?: Prisma.IntNullableFilter<"staff_dispo"> | number | null
}, "id">

export type staff_dispoOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  day_num?: Prisma.SortOrder
  staff_id?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.staff_dispoCountOrderByAggregateInput
  _avg?: Prisma.staff_dispoAvgOrderByAggregateInput
  _max?: Prisma.staff_dispoMaxOrderByAggregateInput
  _min?: Prisma.staff_dispoMinOrderByAggregateInput
  _sum?: Prisma.staff_dispoSumOrderByAggregateInput
}

export type staff_dispoScalarWhereWithAggregatesInput = {
  AND?: Prisma.staff_dispoScalarWhereWithAggregatesInput | Prisma.staff_dispoScalarWhereWithAggregatesInput[]
  OR?: Prisma.staff_dispoScalarWhereWithAggregatesInput[]
  NOT?: Prisma.staff_dispoScalarWhereWithAggregatesInput | Prisma.staff_dispoScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"staff_dispo"> | number
  day_num?: Prisma.IntWithAggregatesFilter<"staff_dispo"> | number
  staff_id?: Prisma.IntNullableWithAggregatesFilter<"staff_dispo"> | number | null
}

export type staff_dispoCreateInput = {
  day_num: number
  staff_id?: number | null
}

export type staff_dispoUncheckedCreateInput = {
  id?: number
  day_num: number
  staff_id?: number | null
}

export type staff_dispoUpdateInput = {
  day_num?: Prisma.IntFieldUpdateOperationsInput | number
  staff_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type staff_dispoUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  day_num?: Prisma.IntFieldUpdateOperationsInput | number
  staff_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type staff_dispoCreateManyInput = {
  id?: number
  day_num: number
  staff_id?: number | null
}

export type staff_dispoUpdateManyMutationInput = {
  day_num?: Prisma.IntFieldUpdateOperationsInput | number
  staff_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type staff_dispoUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  day_num?: Prisma.IntFieldUpdateOperationsInput | number
  staff_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type staff_dispoCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  day_num?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type staff_dispoAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  day_num?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type staff_dispoMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  day_num?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type staff_dispoMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  day_num?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}

export type staff_dispoSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  day_num?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
}



export type staff_dispoSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  day_num?: boolean
  staff_id?: boolean
}, ExtArgs["result"]["staff_dispo"]>



export type staff_dispoSelectScalar = {
  id?: boolean
  day_num?: boolean
  staff_id?: boolean
}

export type staff_dispoOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "day_num" | "staff_id", ExtArgs["result"]["staff_dispo"]>

export type $staff_dispoPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "staff_dispo"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    day_num: number
    staff_id: number | null
  }, ExtArgs["result"]["staff_dispo"]>
  composites: {}
}

export type staff_dispoGetPayload<S extends boolean | null | undefined | staff_dispoDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$staff_dispoPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for staff_dispo.
 * 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_dispoClient<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_dispo model
 */
export interface staff_dispoFieldRefs {
  readonly id: Prisma.FieldRef<"staff_dispo", 'Int'>
  readonly day_num: Prisma.FieldRef<"staff_dispo", 'Int'>
  readonly staff_id: Prisma.FieldRef<"staff_dispo", 'Int'>
}
    

// Custom InputTypes
/**
 * staff_dispo findUnique
 */
export type staff_dispoFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_dispo
   */
  select?: Prisma.staff_dispoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_dispo
   */
  omit?: Prisma.staff_dispoOmit<ExtArgs> | null
  /**
   * Filter, which staff_dispo to fetch.
   */
  where: Prisma.staff_dispoWhereUniqueInput
}

/**
 * staff_dispo findUniqueOrThrow
 */
export type staff_dispoFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_dispo
   */
  select?: Prisma.staff_dispoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_dispo
   */
  omit?: Prisma.staff_dispoOmit<ExtArgs> | null
  /**
   * Filter, which staff_dispo to fetch.
   */
  where: Prisma.staff_dispoWhereUniqueInput
}

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

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

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

/**
 * staff_dispo create
 */
export type staff_dispoCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_dispo
   */
  select?: Prisma.staff_dispoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_dispo
   */
  omit?: Prisma.staff_dispoOmit<ExtArgs> | null
  /**
   * The data needed to create a staff_dispo.
   */
  data: Prisma.XOR<Prisma.staff_dispoCreateInput, Prisma.staff_dispoUncheckedCreateInput>
}

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

/**
 * staff_dispo update
 */
export type staff_dispoUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_dispo
   */
  select?: Prisma.staff_dispoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_dispo
   */
  omit?: Prisma.staff_dispoOmit<ExtArgs> | null
  /**
   * The data needed to update a staff_dispo.
   */
  data: Prisma.XOR<Prisma.staff_dispoUpdateInput, Prisma.staff_dispoUncheckedUpdateInput>
  /**
   * Choose, which staff_dispo to update.
   */
  where: Prisma.staff_dispoWhereUniqueInput
}

/**
 * staff_dispo updateMany
 */
export type staff_dispoUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update staff_dispos.
   */
  data: Prisma.XOR<Prisma.staff_dispoUpdateManyMutationInput, Prisma.staff_dispoUncheckedUpdateManyInput>
  /**
   * Filter which staff_dispos to update
   */
  where?: Prisma.staff_dispoWhereInput
  /**
   * Limit how many staff_dispos to update.
   */
  limit?: number
}

/**
 * staff_dispo upsert
 */
export type staff_dispoUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_dispo
   */
  select?: Prisma.staff_dispoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_dispo
   */
  omit?: Prisma.staff_dispoOmit<ExtArgs> | null
  /**
   * The filter to search for the staff_dispo to update in case it exists.
   */
  where: Prisma.staff_dispoWhereUniqueInput
  /**
   * In case the staff_dispo found by the `where` argument doesn't exist, create a new staff_dispo with this data.
   */
  create: Prisma.XOR<Prisma.staff_dispoCreateInput, Prisma.staff_dispoUncheckedCreateInput>
  /**
   * In case the staff_dispo was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.staff_dispoUpdateInput, Prisma.staff_dispoUncheckedUpdateInput>
}

/**
 * staff_dispo delete
 */
export type staff_dispoDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the staff_dispo
   */
  select?: Prisma.staff_dispoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the staff_dispo
   */
  omit?: Prisma.staff_dispoOmit<ExtArgs> | null
  /**
   * Filter which staff_dispo to delete.
   */
  where: Prisma.staff_dispoWhereUniqueInput
}

/**
 * staff_dispo deleteMany
 */
export type staff_dispoDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which staff_dispos to delete
   */
  where?: Prisma.staff_dispoWhereInput
  /**
   * Limit how many staff_dispos to delete.
   */
  limit?: number
}

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