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

export type AggregateLeaveRequestsArchive = {
  _count: LeaveRequestsArchiveCountAggregateOutputType | null
  _avg: LeaveRequestsArchiveAvgAggregateOutputType | null
  _sum: LeaveRequestsArchiveSumAggregateOutputType | null
  _min: LeaveRequestsArchiveMinAggregateOutputType | null
  _max: LeaveRequestsArchiveMaxAggregateOutputType | null
}

export type LeaveRequestsArchiveAvgAggregateOutputType = {
  id: number | null
  leave_request_id: number | null
  employee_id: number | null
  payable_hours: runtime.Decimal | null
  requested_hours: runtime.Decimal | null
}

export type LeaveRequestsArchiveSumAggregateOutputType = {
  id: number | null
  leave_request_id: number | null
  employee_id: number | null
  payable_hours: runtime.Decimal | null
  requested_hours: runtime.Decimal | null
}

export type LeaveRequestsArchiveMinAggregateOutputType = {
  id: number | null
  leave_request_id: number | null
  archived_at: Date | null
  employee_id: number | null
  leave_type: $Enums.LeaveTypes | null
  comment: string | null
  approval_status: $Enums.LeaveApprovalStatus | null
  date: Date | null
  payable_hours: runtime.Decimal | null
  requested_hours: runtime.Decimal | null
}

export type LeaveRequestsArchiveMaxAggregateOutputType = {
  id: number | null
  leave_request_id: number | null
  archived_at: Date | null
  employee_id: number | null
  leave_type: $Enums.LeaveTypes | null
  comment: string | null
  approval_status: $Enums.LeaveApprovalStatus | null
  date: Date | null
  payable_hours: runtime.Decimal | null
  requested_hours: runtime.Decimal | null
}

export type LeaveRequestsArchiveCountAggregateOutputType = {
  id: number
  leave_request_id: number
  archived_at: number
  employee_id: number
  leave_type: number
  comment: number
  approval_status: number
  date: number
  payable_hours: number
  requested_hours: number
  _all: number
}


export type LeaveRequestsArchiveAvgAggregateInputType = {
  id?: true
  leave_request_id?: true
  employee_id?: true
  payable_hours?: true
  requested_hours?: true
}

export type LeaveRequestsArchiveSumAggregateInputType = {
  id?: true
  leave_request_id?: true
  employee_id?: true
  payable_hours?: true
  requested_hours?: true
}

export type LeaveRequestsArchiveMinAggregateInputType = {
  id?: true
  leave_request_id?: true
  archived_at?: true
  employee_id?: true
  leave_type?: true
  comment?: true
  approval_status?: true
  date?: true
  payable_hours?: true
  requested_hours?: true
}

export type LeaveRequestsArchiveMaxAggregateInputType = {
  id?: true
  leave_request_id?: true
  archived_at?: true
  employee_id?: true
  leave_type?: true
  comment?: true
  approval_status?: true
  date?: true
  payable_hours?: true
  requested_hours?: true
}

export type LeaveRequestsArchiveCountAggregateInputType = {
  id?: true
  leave_request_id?: true
  archived_at?: true
  employee_id?: true
  leave_type?: true
  comment?: true
  approval_status?: true
  date?: true
  payable_hours?: true
  requested_hours?: true
  _all?: true
}

export type LeaveRequestsArchiveAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which LeaveRequestsArchive to aggregate.
   */
  where?: Prisma.LeaveRequestsArchiveWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of LeaveRequestsArchives to fetch.
   */
  orderBy?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput | Prisma.LeaveRequestsArchiveOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.LeaveRequestsArchiveWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` LeaveRequestsArchives 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` LeaveRequestsArchives.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned LeaveRequestsArchives
  **/
  _count?: true | LeaveRequestsArchiveCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: LeaveRequestsArchiveAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: LeaveRequestsArchiveSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: LeaveRequestsArchiveMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: LeaveRequestsArchiveMaxAggregateInputType
}

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




export type LeaveRequestsArchiveGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.LeaveRequestsArchiveWhereInput
  orderBy?: Prisma.LeaveRequestsArchiveOrderByWithAggregationInput | Prisma.LeaveRequestsArchiveOrderByWithAggregationInput[]
  by: Prisma.LeaveRequestsArchiveScalarFieldEnum[] | Prisma.LeaveRequestsArchiveScalarFieldEnum
  having?: Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: LeaveRequestsArchiveCountAggregateInputType | true
  _avg?: LeaveRequestsArchiveAvgAggregateInputType
  _sum?: LeaveRequestsArchiveSumAggregateInputType
  _min?: LeaveRequestsArchiveMinAggregateInputType
  _max?: LeaveRequestsArchiveMaxAggregateInputType
}

export type LeaveRequestsArchiveGroupByOutputType = {
  id: number
  leave_request_id: number
  archived_at: Date
  employee_id: number
  leave_type: $Enums.LeaveTypes
  comment: string
  approval_status: $Enums.LeaveApprovalStatus
  date: Date
  payable_hours: runtime.Decimal | null
  requested_hours: runtime.Decimal | null
  _count: LeaveRequestsArchiveCountAggregateOutputType | null
  _avg: LeaveRequestsArchiveAvgAggregateOutputType | null
  _sum: LeaveRequestsArchiveSumAggregateOutputType | null
  _min: LeaveRequestsArchiveMinAggregateOutputType | null
  _max: LeaveRequestsArchiveMaxAggregateOutputType | null
}

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



export type LeaveRequestsArchiveWhereInput = {
  AND?: Prisma.LeaveRequestsArchiveWhereInput | Prisma.LeaveRequestsArchiveWhereInput[]
  OR?: Prisma.LeaveRequestsArchiveWhereInput[]
  NOT?: Prisma.LeaveRequestsArchiveWhereInput | Prisma.LeaveRequestsArchiveWhereInput[]
  id?: Prisma.IntFilter<"LeaveRequestsArchive"> | number
  leave_request_id?: Prisma.IntFilter<"LeaveRequestsArchive"> | number
  archived_at?: Prisma.DateTimeFilter<"LeaveRequestsArchive"> | Date | string
  employee_id?: Prisma.IntFilter<"LeaveRequestsArchive"> | number
  leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequestsArchive"> | $Enums.LeaveTypes
  comment?: Prisma.StringFilter<"LeaveRequestsArchive"> | string
  approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequestsArchive"> | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeFilter<"LeaveRequestsArchive"> | Date | string
  payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  leave_request?: Prisma.XOR<Prisma.LeaveRequestsScalarRelationFilter, Prisma.LeaveRequestsWhereInput>
}

export type LeaveRequestsArchiveOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  leave_request_id?: Prisma.SortOrder
  archived_at?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  leave_type?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  approval_status?: Prisma.SortOrder
  date?: Prisma.SortOrder
  payable_hours?: Prisma.SortOrderInput | Prisma.SortOrder
  requested_hours?: Prisma.SortOrderInput | Prisma.SortOrder
  leave_request?: Prisma.LeaveRequestsOrderByWithRelationInput
}

export type LeaveRequestsArchiveWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  leave_request_id?: number
  AND?: Prisma.LeaveRequestsArchiveWhereInput | Prisma.LeaveRequestsArchiveWhereInput[]
  OR?: Prisma.LeaveRequestsArchiveWhereInput[]
  NOT?: Prisma.LeaveRequestsArchiveWhereInput | Prisma.LeaveRequestsArchiveWhereInput[]
  archived_at?: Prisma.DateTimeFilter<"LeaveRequestsArchive"> | Date | string
  employee_id?: Prisma.IntFilter<"LeaveRequestsArchive"> | number
  leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequestsArchive"> | $Enums.LeaveTypes
  comment?: Prisma.StringFilter<"LeaveRequestsArchive"> | string
  approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequestsArchive"> | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeFilter<"LeaveRequestsArchive"> | Date | string
  payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  leave_request?: Prisma.XOR<Prisma.LeaveRequestsScalarRelationFilter, Prisma.LeaveRequestsWhereInput>
}, "id" | "leave_request_id">

export type LeaveRequestsArchiveOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  leave_request_id?: Prisma.SortOrder
  archived_at?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  leave_type?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  approval_status?: Prisma.SortOrder
  date?: Prisma.SortOrder
  payable_hours?: Prisma.SortOrderInput | Prisma.SortOrder
  requested_hours?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.LeaveRequestsArchiveCountOrderByAggregateInput
  _avg?: Prisma.LeaveRequestsArchiveAvgOrderByAggregateInput
  _max?: Prisma.LeaveRequestsArchiveMaxOrderByAggregateInput
  _min?: Prisma.LeaveRequestsArchiveMinOrderByAggregateInput
  _sum?: Prisma.LeaveRequestsArchiveSumOrderByAggregateInput
}

export type LeaveRequestsArchiveScalarWhereWithAggregatesInput = {
  AND?: Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput | Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput[]
  OR?: Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput[]
  NOT?: Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput | Prisma.LeaveRequestsArchiveScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"LeaveRequestsArchive"> | number
  leave_request_id?: Prisma.IntWithAggregatesFilter<"LeaveRequestsArchive"> | number
  archived_at?: Prisma.DateTimeWithAggregatesFilter<"LeaveRequestsArchive"> | Date | string
  employee_id?: Prisma.IntWithAggregatesFilter<"LeaveRequestsArchive"> | number
  leave_type?: Prisma.EnumLeaveTypesWithAggregatesFilter<"LeaveRequestsArchive"> | $Enums.LeaveTypes
  comment?: Prisma.StringWithAggregatesFilter<"LeaveRequestsArchive"> | string
  approval_status?: Prisma.EnumLeaveApprovalStatusWithAggregatesFilter<"LeaveRequestsArchive"> | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeWithAggregatesFilter<"LeaveRequestsArchive"> | Date | string
  payable_hours?: Prisma.DecimalNullableWithAggregatesFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.DecimalNullableWithAggregatesFilter<"LeaveRequestsArchive"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveCreateInput = {
  archived_at?: Date | string
  employee_id: number
  leave_type: $Enums.LeaveTypes
  comment: string
  approval_status: $Enums.LeaveApprovalStatus
  date: Date | string
  payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
  leave_request: Prisma.LeaveRequestsCreateNestedOneWithoutArchiveInput
}

export type LeaveRequestsArchiveUncheckedCreateInput = {
  id?: number
  leave_request_id: number
  archived_at?: Date | string
  employee_id: number
  leave_type: $Enums.LeaveTypes
  comment: string
  approval_status: $Enums.LeaveApprovalStatus
  date: Date | string
  payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveUpdateInput = {
  archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  employee_id?: Prisma.IntFieldUpdateOperationsInput | number
  leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  leave_request?: Prisma.LeaveRequestsUpdateOneRequiredWithoutArchiveNestedInput
}

export type LeaveRequestsArchiveUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  leave_request_id?: Prisma.IntFieldUpdateOperationsInput | number
  archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  employee_id?: Prisma.IntFieldUpdateOperationsInput | number
  leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveCreateManyInput = {
  id?: number
  leave_request_id: number
  archived_at?: Date | string
  employee_id: number
  leave_type: $Enums.LeaveTypes
  comment: string
  approval_status: $Enums.LeaveApprovalStatus
  date: Date | string
  payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveUpdateManyMutationInput = {
  archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  employee_id?: Prisma.IntFieldUpdateOperationsInput | number
  leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  leave_request_id?: Prisma.IntFieldUpdateOperationsInput | number
  archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  employee_id?: Prisma.IntFieldUpdateOperationsInput | number
  leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveNullableScalarRelationFilter = {
  is?: Prisma.LeaveRequestsArchiveWhereInput | null
  isNot?: Prisma.LeaveRequestsArchiveWhereInput | null
}

export type LeaveRequestsArchiveCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  leave_request_id?: Prisma.SortOrder
  archived_at?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  leave_type?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  approval_status?: Prisma.SortOrder
  date?: Prisma.SortOrder
  payable_hours?: Prisma.SortOrder
  requested_hours?: Prisma.SortOrder
}

export type LeaveRequestsArchiveAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  leave_request_id?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  payable_hours?: Prisma.SortOrder
  requested_hours?: Prisma.SortOrder
}

export type LeaveRequestsArchiveMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  leave_request_id?: Prisma.SortOrder
  archived_at?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  leave_type?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  approval_status?: Prisma.SortOrder
  date?: Prisma.SortOrder
  payable_hours?: Prisma.SortOrder
  requested_hours?: Prisma.SortOrder
}

export type LeaveRequestsArchiveMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  leave_request_id?: Prisma.SortOrder
  archived_at?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  leave_type?: Prisma.SortOrder
  comment?: Prisma.SortOrder
  approval_status?: Prisma.SortOrder
  date?: Prisma.SortOrder
  payable_hours?: Prisma.SortOrder
  requested_hours?: Prisma.SortOrder
}

export type LeaveRequestsArchiveSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  leave_request_id?: Prisma.SortOrder
  employee_id?: Prisma.SortOrder
  payable_hours?: Prisma.SortOrder
  requested_hours?: Prisma.SortOrder
}

export type LeaveRequestsArchiveCreateNestedOneWithoutLeave_requestInput = {
  create?: Prisma.XOR<Prisma.LeaveRequestsArchiveCreateWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUncheckedCreateWithoutLeave_requestInput>
  connectOrCreate?: Prisma.LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput
  connect?: Prisma.LeaveRequestsArchiveWhereUniqueInput
}

export type LeaveRequestsArchiveUncheckedCreateNestedOneWithoutLeave_requestInput = {
  create?: Prisma.XOR<Prisma.LeaveRequestsArchiveCreateWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUncheckedCreateWithoutLeave_requestInput>
  connectOrCreate?: Prisma.LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput
  connect?: Prisma.LeaveRequestsArchiveWhereUniqueInput
}

export type LeaveRequestsArchiveUpdateOneWithoutLeave_requestNestedInput = {
  create?: Prisma.XOR<Prisma.LeaveRequestsArchiveCreateWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUncheckedCreateWithoutLeave_requestInput>
  connectOrCreate?: Prisma.LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput
  upsert?: Prisma.LeaveRequestsArchiveUpsertWithoutLeave_requestInput
  disconnect?: Prisma.LeaveRequestsArchiveWhereInput | boolean
  delete?: Prisma.LeaveRequestsArchiveWhereInput | boolean
  connect?: Prisma.LeaveRequestsArchiveWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.LeaveRequestsArchiveUpdateToOneWithWhereWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUpdateWithoutLeave_requestInput>, Prisma.LeaveRequestsArchiveUncheckedUpdateWithoutLeave_requestInput>
}

export type LeaveRequestsArchiveUncheckedUpdateOneWithoutLeave_requestNestedInput = {
  create?: Prisma.XOR<Prisma.LeaveRequestsArchiveCreateWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUncheckedCreateWithoutLeave_requestInput>
  connectOrCreate?: Prisma.LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput
  upsert?: Prisma.LeaveRequestsArchiveUpsertWithoutLeave_requestInput
  disconnect?: Prisma.LeaveRequestsArchiveWhereInput | boolean
  delete?: Prisma.LeaveRequestsArchiveWhereInput | boolean
  connect?: Prisma.LeaveRequestsArchiveWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.LeaveRequestsArchiveUpdateToOneWithWhereWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUpdateWithoutLeave_requestInput>, Prisma.LeaveRequestsArchiveUncheckedUpdateWithoutLeave_requestInput>
}

export type LeaveRequestsArchiveCreateWithoutLeave_requestInput = {
  archived_at?: Date | string
  employee_id: number
  leave_type: $Enums.LeaveTypes
  comment: string
  approval_status: $Enums.LeaveApprovalStatus
  date: Date | string
  payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveUncheckedCreateWithoutLeave_requestInput = {
  id?: number
  archived_at?: Date | string
  employee_id: number
  leave_type: $Enums.LeaveTypes
  comment: string
  approval_status: $Enums.LeaveApprovalStatus
  date: Date | string
  payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveCreateOrConnectWithoutLeave_requestInput = {
  where: Prisma.LeaveRequestsArchiveWhereUniqueInput
  create: Prisma.XOR<Prisma.LeaveRequestsArchiveCreateWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUncheckedCreateWithoutLeave_requestInput>
}

export type LeaveRequestsArchiveUpsertWithoutLeave_requestInput = {
  update: Prisma.XOR<Prisma.LeaveRequestsArchiveUpdateWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUncheckedUpdateWithoutLeave_requestInput>
  create: Prisma.XOR<Prisma.LeaveRequestsArchiveCreateWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUncheckedCreateWithoutLeave_requestInput>
  where?: Prisma.LeaveRequestsArchiveWhereInput
}

export type LeaveRequestsArchiveUpdateToOneWithWhereWithoutLeave_requestInput = {
  where?: Prisma.LeaveRequestsArchiveWhereInput
  data: Prisma.XOR<Prisma.LeaveRequestsArchiveUpdateWithoutLeave_requestInput, Prisma.LeaveRequestsArchiveUncheckedUpdateWithoutLeave_requestInput>
}

export type LeaveRequestsArchiveUpdateWithoutLeave_requestInput = {
  archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  employee_id?: Prisma.IntFieldUpdateOperationsInput | number
  leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}

export type LeaveRequestsArchiveUncheckedUpdateWithoutLeave_requestInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  archived_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  employee_id?: Prisma.IntFieldUpdateOperationsInput | number
  leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes
  comment?: Prisma.StringFieldUpdateOperationsInput | string
  approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
  requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}



export type LeaveRequestsArchiveSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  leave_request_id?: boolean
  archived_at?: boolean
  employee_id?: boolean
  leave_type?: boolean
  comment?: boolean
  approval_status?: boolean
  date?: boolean
  payable_hours?: boolean
  requested_hours?: boolean
  leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["leaveRequestsArchive"]>

export type LeaveRequestsArchiveSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  leave_request_id?: boolean
  archived_at?: boolean
  employee_id?: boolean
  leave_type?: boolean
  comment?: boolean
  approval_status?: boolean
  date?: boolean
  payable_hours?: boolean
  requested_hours?: boolean
  leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["leaveRequestsArchive"]>

export type LeaveRequestsArchiveSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  leave_request_id?: boolean
  archived_at?: boolean
  employee_id?: boolean
  leave_type?: boolean
  comment?: boolean
  approval_status?: boolean
  date?: boolean
  payable_hours?: boolean
  requested_hours?: boolean
  leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["leaveRequestsArchive"]>

export type LeaveRequestsArchiveSelectScalar = {
  id?: boolean
  leave_request_id?: boolean
  archived_at?: boolean
  employee_id?: boolean
  leave_type?: boolean
  comment?: boolean
  approval_status?: boolean
  date?: boolean
  payable_hours?: boolean
  requested_hours?: boolean
}

export type LeaveRequestsArchiveOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "leave_request_id" | "archived_at" | "employee_id" | "leave_type" | "comment" | "approval_status" | "date" | "payable_hours" | "requested_hours", ExtArgs["result"]["leaveRequestsArchive"]>
export type LeaveRequestsArchiveInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs<ExtArgs>
}
export type LeaveRequestsArchiveIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs<ExtArgs>
}
export type LeaveRequestsArchiveIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  leave_request?: boolean | Prisma.LeaveRequestsDefaultArgs<ExtArgs>
}

export type $LeaveRequestsArchivePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "LeaveRequestsArchive"
  objects: {
    leave_request: Prisma.$LeaveRequestsPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    leave_request_id: number
    archived_at: Date
    employee_id: number
    leave_type: $Enums.LeaveTypes
    comment: string
    approval_status: $Enums.LeaveApprovalStatus
    date: Date
    payable_hours: runtime.Decimal | null
    requested_hours: runtime.Decimal | null
  }, ExtArgs["result"]["leaveRequestsArchive"]>
  composites: {}
}

export type LeaveRequestsArchiveGetPayload<S extends boolean | null | undefined | LeaveRequestsArchiveDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LeaveRequestsArchivePayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many LeaveRequestsArchives and returns the data saved in the database.
   * @param {LeaveRequestsArchiveCreateManyAndReturnArgs} args - Arguments to create many LeaveRequestsArchives.
   * @example
   * // Create many LeaveRequestsArchives
   * const leaveRequestsArchive = await prisma.leaveRequestsArchive.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many LeaveRequestsArchives and only return the `id`
   * const leaveRequestsArchiveWithIdOnly = await prisma.leaveRequestsArchive.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 LeaveRequestsArchiveCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LeaveRequestsArchiveCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsArchivePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more LeaveRequestsArchives and returns the data updated in the database.
   * @param {LeaveRequestsArchiveUpdateManyAndReturnArgs} args - Arguments to update many LeaveRequestsArchives.
   * @example
   * // Update many LeaveRequestsArchives
   * const leaveRequestsArchive = await prisma.leaveRequestsArchive.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more LeaveRequestsArchives and only return the `id`
   * const leaveRequestsArchiveWithIdOnly = await prisma.leaveRequestsArchive.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 LeaveRequestsArchiveUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LeaveRequestsArchiveUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsArchivePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for LeaveRequestsArchive.
 * 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__LeaveRequestsArchiveClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  leave_request<T extends Prisma.LeaveRequestsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LeaveRequestsDefaultArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  /**
   * 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 LeaveRequestsArchive model
 */
export interface LeaveRequestsArchiveFieldRefs {
  readonly id: Prisma.FieldRef<"LeaveRequestsArchive", 'Int'>
  readonly leave_request_id: Prisma.FieldRef<"LeaveRequestsArchive", 'Int'>
  readonly archived_at: Prisma.FieldRef<"LeaveRequestsArchive", 'DateTime'>
  readonly employee_id: Prisma.FieldRef<"LeaveRequestsArchive", 'Int'>
  readonly leave_type: Prisma.FieldRef<"LeaveRequestsArchive", 'LeaveTypes'>
  readonly comment: Prisma.FieldRef<"LeaveRequestsArchive", 'String'>
  readonly approval_status: Prisma.FieldRef<"LeaveRequestsArchive", 'LeaveApprovalStatus'>
  readonly date: Prisma.FieldRef<"LeaveRequestsArchive", 'DateTime'>
  readonly payable_hours: Prisma.FieldRef<"LeaveRequestsArchive", 'Decimal'>
  readonly requested_hours: Prisma.FieldRef<"LeaveRequestsArchive", 'Decimal'>
}
    

// Custom InputTypes
/**
 * LeaveRequestsArchive findUnique
 */
export type LeaveRequestsArchiveFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * Filter, which LeaveRequestsArchive to fetch.
   */
  where: Prisma.LeaveRequestsArchiveWhereUniqueInput
}

/**
 * LeaveRequestsArchive findUniqueOrThrow
 */
export type LeaveRequestsArchiveFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * Filter, which LeaveRequestsArchive to fetch.
   */
  where: Prisma.LeaveRequestsArchiveWhereUniqueInput
}

/**
 * LeaveRequestsArchive findFirst
 */
export type LeaveRequestsArchiveFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * Filter, which LeaveRequestsArchive to fetch.
   */
  where?: Prisma.LeaveRequestsArchiveWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of LeaveRequestsArchives to fetch.
   */
  orderBy?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput | Prisma.LeaveRequestsArchiveOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for LeaveRequestsArchives.
   */
  cursor?: Prisma.LeaveRequestsArchiveWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` LeaveRequestsArchives 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` LeaveRequestsArchives.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of LeaveRequestsArchives.
   */
  distinct?: Prisma.LeaveRequestsArchiveScalarFieldEnum | Prisma.LeaveRequestsArchiveScalarFieldEnum[]
}

/**
 * LeaveRequestsArchive findFirstOrThrow
 */
export type LeaveRequestsArchiveFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * Filter, which LeaveRequestsArchive to fetch.
   */
  where?: Prisma.LeaveRequestsArchiveWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of LeaveRequestsArchives to fetch.
   */
  orderBy?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput | Prisma.LeaveRequestsArchiveOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for LeaveRequestsArchives.
   */
  cursor?: Prisma.LeaveRequestsArchiveWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` LeaveRequestsArchives 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` LeaveRequestsArchives.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of LeaveRequestsArchives.
   */
  distinct?: Prisma.LeaveRequestsArchiveScalarFieldEnum | Prisma.LeaveRequestsArchiveScalarFieldEnum[]
}

/**
 * LeaveRequestsArchive findMany
 */
export type LeaveRequestsArchiveFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * Filter, which LeaveRequestsArchives to fetch.
   */
  where?: Prisma.LeaveRequestsArchiveWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of LeaveRequestsArchives to fetch.
   */
  orderBy?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput | Prisma.LeaveRequestsArchiveOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing LeaveRequestsArchives.
   */
  cursor?: Prisma.LeaveRequestsArchiveWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` LeaveRequestsArchives 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` LeaveRequestsArchives.
   */
  skip?: number
  distinct?: Prisma.LeaveRequestsArchiveScalarFieldEnum | Prisma.LeaveRequestsArchiveScalarFieldEnum[]
}

/**
 * LeaveRequestsArchive create
 */
export type LeaveRequestsArchiveCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * The data needed to create a LeaveRequestsArchive.
   */
  data: Prisma.XOR<Prisma.LeaveRequestsArchiveCreateInput, Prisma.LeaveRequestsArchiveUncheckedCreateInput>
}

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

/**
 * LeaveRequestsArchive createManyAndReturn
 */
export type LeaveRequestsArchiveCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * The data used to create many LeaveRequestsArchives.
   */
  data: Prisma.LeaveRequestsArchiveCreateManyInput | Prisma.LeaveRequestsArchiveCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * LeaveRequestsArchive update
 */
export type LeaveRequestsArchiveUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * The data needed to update a LeaveRequestsArchive.
   */
  data: Prisma.XOR<Prisma.LeaveRequestsArchiveUpdateInput, Prisma.LeaveRequestsArchiveUncheckedUpdateInput>
  /**
   * Choose, which LeaveRequestsArchive to update.
   */
  where: Prisma.LeaveRequestsArchiveWhereUniqueInput
}

/**
 * LeaveRequestsArchive updateMany
 */
export type LeaveRequestsArchiveUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update LeaveRequestsArchives.
   */
  data: Prisma.XOR<Prisma.LeaveRequestsArchiveUpdateManyMutationInput, Prisma.LeaveRequestsArchiveUncheckedUpdateManyInput>
  /**
   * Filter which LeaveRequestsArchives to update
   */
  where?: Prisma.LeaveRequestsArchiveWhereInput
  /**
   * Limit how many LeaveRequestsArchives to update.
   */
  limit?: number
}

/**
 * LeaveRequestsArchive updateManyAndReturn
 */
export type LeaveRequestsArchiveUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * The data used to update LeaveRequestsArchives.
   */
  data: Prisma.XOR<Prisma.LeaveRequestsArchiveUpdateManyMutationInput, Prisma.LeaveRequestsArchiveUncheckedUpdateManyInput>
  /**
   * Filter which LeaveRequestsArchives to update
   */
  where?: Prisma.LeaveRequestsArchiveWhereInput
  /**
   * Limit how many LeaveRequestsArchives to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * LeaveRequestsArchive upsert
 */
export type LeaveRequestsArchiveUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * The filter to search for the LeaveRequestsArchive to update in case it exists.
   */
  where: Prisma.LeaveRequestsArchiveWhereUniqueInput
  /**
   * In case the LeaveRequestsArchive found by the `where` argument doesn't exist, create a new LeaveRequestsArchive with this data.
   */
  create: Prisma.XOR<Prisma.LeaveRequestsArchiveCreateInput, Prisma.LeaveRequestsArchiveUncheckedCreateInput>
  /**
   * In case the LeaveRequestsArchive was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.LeaveRequestsArchiveUpdateInput, Prisma.LeaveRequestsArchiveUncheckedUpdateInput>
}

/**
 * LeaveRequestsArchive delete
 */
export type LeaveRequestsArchiveDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
  /**
   * Filter which LeaveRequestsArchive to delete.
   */
  where: Prisma.LeaveRequestsArchiveWhereUniqueInput
}

/**
 * LeaveRequestsArchive deleteMany
 */
export type LeaveRequestsArchiveDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which LeaveRequestsArchives to delete
   */
  where?: Prisma.LeaveRequestsArchiveWhereInput
  /**
   * Limit how many LeaveRequestsArchives to delete.
   */
  limit?: number
}

/**
 * LeaveRequestsArchive without action
 */
export type LeaveRequestsArchiveDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the LeaveRequestsArchive
   */
  select?: Prisma.LeaveRequestsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the LeaveRequestsArchive
   */
  omit?: Prisma.LeaveRequestsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.LeaveRequestsArchiveInclude<ExtArgs> | null
}
