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

export type AggregateHours_bank = {
  _count: Hours_bankCountAggregateOutputType | null
  _avg: Hours_bankAvgAggregateOutputType | null
  _sum: Hours_bankSumAggregateOutputType | null
  _min: Hours_bankMinAggregateOutputType | null
  _max: Hours_bankMaxAggregateOutputType | null
}

export type Hours_bankAvgAggregateOutputType = {
  hours: number | null
  created_at: number | null
  updated_at: number | null
}

export type Hours_bankSumAggregateOutputType = {
  hours: number | null
  created_at: bigint | null
  updated_at: bigint | null
}

export type Hours_bankMinAggregateOutputType = {
  id: string | null
  employee_id: string | null
  hours: number | null
  created_at: bigint | null
  updated_at: bigint | null
}

export type Hours_bankMaxAggregateOutputType = {
  id: string | null
  employee_id: string | null
  hours: number | null
  created_at: bigint | null
  updated_at: bigint | null
}

export type Hours_bankCountAggregateOutputType = {
  id: number
  employee_id: number
  hours: number
  created_at: number
  updated_at: number
  _all: number
}


export type Hours_bankAvgAggregateInputType = {
  hours?: true
  created_at?: true
  updated_at?: true
}

export type Hours_bankSumAggregateInputType = {
  hours?: true
  created_at?: true
  updated_at?: true
}

export type Hours_bankMinAggregateInputType = {
  id?: true
  employee_id?: true
  hours?: true
  created_at?: true
  updated_at?: true
}

export type Hours_bankMaxAggregateInputType = {
  id?: true
  employee_id?: true
  hours?: true
  created_at?: true
  updated_at?: true
}

export type Hours_bankCountAggregateInputType = {
  id?: true
  employee_id?: true
  hours?: true
  created_at?: true
  updated_at?: true
  _all?: true
}

export type Hours_bankAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which hours_bank to aggregate.
   */
  where?: Prisma.hours_bankWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of hours_banks to fetch.
   */
  orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.hours_bankWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` hours_banks 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` hours_banks.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned hours_banks
  **/
  _count?: true | Hours_bankCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Hours_bankAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Hours_bankSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Hours_bankMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Hours_bankMaxAggregateInputType
}

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




export type hours_bankGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.hours_bankWhereInput
  orderBy?: Prisma.hours_bankOrderByWithAggregationInput | Prisma.hours_bankOrderByWithAggregationInput[]
  by: Prisma.Hours_bankScalarFieldEnum[] | Prisma.Hours_bankScalarFieldEnum
  having?: Prisma.hours_bankScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Hours_bankCountAggregateInputType | true
  _avg?: Hours_bankAvgAggregateInputType
  _sum?: Hours_bankSumAggregateInputType
  _min?: Hours_bankMinAggregateInputType
  _max?: Hours_bankMaxAggregateInputType
}

export type Hours_bankGroupByOutputType = {
  id: string
  employee_id: string | null
  hours: number | null
  created_at: bigint | null
  updated_at: bigint | null
  _count: Hours_bankCountAggregateOutputType | null
  _avg: Hours_bankAvgAggregateOutputType | null
  _sum: Hours_bankSumAggregateOutputType | null
  _min: Hours_bankMinAggregateOutputType | null
  _max: Hours_bankMaxAggregateOutputType | null
}

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



export type hours_bankWhereInput = {
  AND?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[]
  OR?: Prisma.hours_bankWhereInput[]
  NOT?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[]
  id?: Prisma.UuidFilter<"hours_bank"> | string
  employee_id?: Prisma.StringNullableFilter<"hours_bank"> | string | null
  hours?: Prisma.FloatNullableFilter<"hours_bank"> | number | null
  created_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null
  updated_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null
}

export type hours_bankOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  employee_id?: Prisma.SortOrderInput | Prisma.SortOrder
  hours?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
}

export type hours_bankWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[]
  OR?: Prisma.hours_bankWhereInput[]
  NOT?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[]
  employee_id?: Prisma.StringNullableFilter<"hours_bank"> | string | null
  hours?: Prisma.FloatNullableFilter<"hours_bank"> | number | null
  created_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null
  updated_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null
}, "id">

export type hours_bankOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  employee_id?: Prisma.SortOrderInput | Prisma.SortOrder
  hours?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.hours_bankCountOrderByAggregateInput
  _avg?: Prisma.hours_bankAvgOrderByAggregateInput
  _max?: Prisma.hours_bankMaxOrderByAggregateInput
  _min?: Prisma.hours_bankMinOrderByAggregateInput
  _sum?: Prisma.hours_bankSumOrderByAggregateInput
}

export type hours_bankScalarWhereWithAggregatesInput = {
  AND?: Prisma.hours_bankScalarWhereWithAggregatesInput | Prisma.hours_bankScalarWhereWithAggregatesInput[]
  OR?: Prisma.hours_bankScalarWhereWithAggregatesInput[]
  NOT?: Prisma.hours_bankScalarWhereWithAggregatesInput | Prisma.hours_bankScalarWhereWithAggregatesInput[]
  id?: Prisma.UuidWithAggregatesFilter<"hours_bank"> | string
  employee_id?: Prisma.StringNullableWithAggregatesFilter<"hours_bank"> | string | null
  hours?: Prisma.FloatNullableWithAggregatesFilter<"hours_bank"> | number | null
  created_at?: Prisma.BigIntNullableWithAggregatesFilter<"hours_bank"> | bigint | number | null
  updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"hours_bank"> | bigint | number | null
}

export type hours_bankCreateInput = {
  id: string
  employee_id?: string | null
  hours?: number | null
  created_at?: bigint | number | null
  updated_at?: bigint | number | null
}

export type hours_bankUncheckedCreateInput = {
  id: string
  employee_id?: string | null
  hours?: number | null
  created_at?: bigint | number | null
  updated_at?: bigint | number | null
}

export type hours_bankUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}

export type hours_bankUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}

export type hours_bankCreateManyInput = {
  id: string
  employee_id?: string | null
  hours?: number | null
  created_at?: bigint | number | null
  updated_at?: bigint | number | null
}

export type hours_bankUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}

export type hours_bankUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}

export type hours_bankCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  hours?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type hours_bankAvgOrderByAggregateInput = {
  hours?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type hours_bankMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  hours?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type hours_bankMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  hours?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}

export type hours_bankSumOrderByAggregateInput = {
  hours?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
  updated_at?: Prisma.SortOrder
}



export type hours_bankSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  employee_id?: boolean
  hours?: boolean
  created_at?: boolean
  updated_at?: boolean
}, ExtArgs["result"]["hours_bank"]>

export type hours_bankSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  employee_id?: boolean
  hours?: boolean
  created_at?: boolean
  updated_at?: boolean
}, ExtArgs["result"]["hours_bank"]>

export type hours_bankSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  employee_id?: boolean
  hours?: boolean
  created_at?: boolean
  updated_at?: boolean
}, ExtArgs["result"]["hours_bank"]>

export type hours_bankSelectScalar = {
  id?: boolean
  employee_id?: boolean
  hours?: boolean
  created_at?: boolean
  updated_at?: boolean
}

export type hours_bankOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "hours" | "created_at" | "updated_at", ExtArgs["result"]["hours_bank"]>

export type $hours_bankPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "hours_bank"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    employee_id: string | null
    hours: number | null
    created_at: bigint | null
    updated_at: bigint | null
  }, ExtArgs["result"]["hours_bank"]>
  composites: {}
}

export type hours_bankGetPayload<S extends boolean | null | undefined | hours_bankDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$hours_bankPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many Hours_banks and returns the data saved in the database.
   * @param {hours_bankCreateManyAndReturnArgs} args - Arguments to create many Hours_banks.
   * @example
   * // Create many Hours_banks
   * const hours_bank = await prisma.hours_bank.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Hours_banks and only return the `id`
   * const hours_bankWithIdOnly = await prisma.hours_bank.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends hours_bankCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, hours_bankCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$hours_bankPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more Hours_banks and returns the data updated in the database.
   * @param {hours_bankUpdateManyAndReturnArgs} args - Arguments to update many Hours_banks.
   * @example
   * // Update many Hours_banks
   * const hours_bank = await prisma.hours_bank.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Hours_banks and only return the `id`
   * const hours_bankWithIdOnly = await prisma.hours_bank.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends hours_bankUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, hours_bankUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$hours_bankPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for hours_bank.
 * 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__hours_bankClient<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 hours_bank model
 */
export interface hours_bankFieldRefs {
  readonly id: Prisma.FieldRef<"hours_bank", 'String'>
  readonly employee_id: Prisma.FieldRef<"hours_bank", 'String'>
  readonly hours: Prisma.FieldRef<"hours_bank", 'Float'>
  readonly created_at: Prisma.FieldRef<"hours_bank", 'BigInt'>
  readonly updated_at: Prisma.FieldRef<"hours_bank", 'BigInt'>
}
    

// Custom InputTypes
/**
 * hours_bank findUnique
 */
export type hours_bankFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the hours_bank
   */
  select?: Prisma.hours_bankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the hours_bank
   */
  omit?: Prisma.hours_bankOmit<ExtArgs> | null
  /**
   * Filter, which hours_bank to fetch.
   */
  where: Prisma.hours_bankWhereUniqueInput
}

/**
 * hours_bank findUniqueOrThrow
 */
export type hours_bankFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the hours_bank
   */
  select?: Prisma.hours_bankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the hours_bank
   */
  omit?: Prisma.hours_bankOmit<ExtArgs> | null
  /**
   * Filter, which hours_bank to fetch.
   */
  where: Prisma.hours_bankWhereUniqueInput
}

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

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

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

/**
 * hours_bank create
 */
export type hours_bankCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the hours_bank
   */
  select?: Prisma.hours_bankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the hours_bank
   */
  omit?: Prisma.hours_bankOmit<ExtArgs> | null
  /**
   * The data needed to create a hours_bank.
   */
  data: Prisma.XOR<Prisma.hours_bankCreateInput, Prisma.hours_bankUncheckedCreateInput>
}

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

/**
 * hours_bank createManyAndReturn
 */
export type hours_bankCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the hours_bank
   */
  select?: Prisma.hours_bankSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the hours_bank
   */
  omit?: Prisma.hours_bankOmit<ExtArgs> | null
  /**
   * The data used to create many hours_banks.
   */
  data: Prisma.hours_bankCreateManyInput | Prisma.hours_bankCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * hours_bank update
 */
export type hours_bankUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the hours_bank
   */
  select?: Prisma.hours_bankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the hours_bank
   */
  omit?: Prisma.hours_bankOmit<ExtArgs> | null
  /**
   * The data needed to update a hours_bank.
   */
  data: Prisma.XOR<Prisma.hours_bankUpdateInput, Prisma.hours_bankUncheckedUpdateInput>
  /**
   * Choose, which hours_bank to update.
   */
  where: Prisma.hours_bankWhereUniqueInput
}

/**
 * hours_bank updateMany
 */
export type hours_bankUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update hours_banks.
   */
  data: Prisma.XOR<Prisma.hours_bankUpdateManyMutationInput, Prisma.hours_bankUncheckedUpdateManyInput>
  /**
   * Filter which hours_banks to update
   */
  where?: Prisma.hours_bankWhereInput
  /**
   * Limit how many hours_banks to update.
   */
  limit?: number
}

/**
 * hours_bank updateManyAndReturn
 */
export type hours_bankUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the hours_bank
   */
  select?: Prisma.hours_bankSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the hours_bank
   */
  omit?: Prisma.hours_bankOmit<ExtArgs> | null
  /**
   * The data used to update hours_banks.
   */
  data: Prisma.XOR<Prisma.hours_bankUpdateManyMutationInput, Prisma.hours_bankUncheckedUpdateManyInput>
  /**
   * Filter which hours_banks to update
   */
  where?: Prisma.hours_bankWhereInput
  /**
   * Limit how many hours_banks to update.
   */
  limit?: number
}

/**
 * hours_bank upsert
 */
export type hours_bankUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the hours_bank
   */
  select?: Prisma.hours_bankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the hours_bank
   */
  omit?: Prisma.hours_bankOmit<ExtArgs> | null
  /**
   * The filter to search for the hours_bank to update in case it exists.
   */
  where: Prisma.hours_bankWhereUniqueInput
  /**
   * In case the hours_bank found by the `where` argument doesn't exist, create a new hours_bank with this data.
   */
  create: Prisma.XOR<Prisma.hours_bankCreateInput, Prisma.hours_bankUncheckedCreateInput>
  /**
   * In case the hours_bank was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.hours_bankUpdateInput, Prisma.hours_bankUncheckedUpdateInput>
}

/**
 * hours_bank delete
 */
export type hours_bankDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the hours_bank
   */
  select?: Prisma.hours_bankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the hours_bank
   */
  omit?: Prisma.hours_bankOmit<ExtArgs> | null
  /**
   * Filter which hours_bank to delete.
   */
  where: Prisma.hours_bankWhereUniqueInput
}

/**
 * hours_bank deleteMany
 */
export type hours_bankDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which hours_banks to delete
   */
  where?: Prisma.hours_bankWhereInput
  /**
   * Limit how many hours_banks to delete.
   */
  limit?: number
}

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