/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `LeaveRequests` 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 LeaveRequests * */ export type LeaveRequestsModel = runtime.Types.Result.DefaultSelection export type AggregateLeaveRequests = { _count: LeaveRequestsCountAggregateOutputType | null _avg: LeaveRequestsAvgAggregateOutputType | null _sum: LeaveRequestsSumAggregateOutputType | null _min: LeaveRequestsMinAggregateOutputType | null _max: LeaveRequestsMaxAggregateOutputType | null } export type LeaveRequestsAvgAggregateOutputType = { id: number | null employee_id: number | null bank_code_id: number | null payable_hours: runtime.Decimal | null requested_hours: runtime.Decimal | null } export type LeaveRequestsSumAggregateOutputType = { id: number | null employee_id: number | null bank_code_id: number | null payable_hours: runtime.Decimal | null requested_hours: runtime.Decimal | null } export type LeaveRequestsMinAggregateOutputType = { id: number | null employee_id: number | null leave_type: $Enums.LeaveTypes | null comment: string | null approval_status: $Enums.LeaveApprovalStatus | null bank_code_id: number | null payable_hours: runtime.Decimal | null requested_hours: runtime.Decimal | null } export type LeaveRequestsMaxAggregateOutputType = { id: number | null employee_id: number | null leave_type: $Enums.LeaveTypes | null comment: string | null approval_status: $Enums.LeaveApprovalStatus | null bank_code_id: number | null payable_hours: runtime.Decimal | null requested_hours: runtime.Decimal | null } export type LeaveRequestsCountAggregateOutputType = { id: number employee_id: number leave_type: number comment: number approval_status: number bank_code_id: number payable_hours: number requested_hours: number dates: number _all: number } export type LeaveRequestsAvgAggregateInputType = { id?: true employee_id?: true bank_code_id?: true payable_hours?: true requested_hours?: true } export type LeaveRequestsSumAggregateInputType = { id?: true employee_id?: true bank_code_id?: true payable_hours?: true requested_hours?: true } export type LeaveRequestsMinAggregateInputType = { id?: true employee_id?: true leave_type?: true comment?: true approval_status?: true bank_code_id?: true payable_hours?: true requested_hours?: true } export type LeaveRequestsMaxAggregateInputType = { id?: true employee_id?: true leave_type?: true comment?: true approval_status?: true bank_code_id?: true payable_hours?: true requested_hours?: true } export type LeaveRequestsCountAggregateInputType = { id?: true employee_id?: true leave_type?: true comment?: true approval_status?: true bank_code_id?: true payable_hours?: true requested_hours?: true dates?: true _all?: true } export type LeaveRequestsAggregateArgs = { /** * Filter which LeaveRequests to aggregate. */ where?: Prisma.LeaveRequestsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LeaveRequests to fetch. */ orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.LeaveRequestsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LeaveRequests 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` LeaveRequests. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned LeaveRequests **/ _count?: true | LeaveRequestsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: LeaveRequestsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: LeaveRequestsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: LeaveRequestsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: LeaveRequestsMaxAggregateInputType } export type GetLeaveRequestsAggregateType = { [P in keyof T & keyof AggregateLeaveRequests]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type LeaveRequestsGroupByArgs = { where?: Prisma.LeaveRequestsWhereInput orderBy?: Prisma.LeaveRequestsOrderByWithAggregationInput | Prisma.LeaveRequestsOrderByWithAggregationInput[] by: Prisma.LeaveRequestsScalarFieldEnum[] | Prisma.LeaveRequestsScalarFieldEnum having?: Prisma.LeaveRequestsScalarWhereWithAggregatesInput take?: number skip?: number _count?: LeaveRequestsCountAggregateInputType | true _avg?: LeaveRequestsAvgAggregateInputType _sum?: LeaveRequestsSumAggregateInputType _min?: LeaveRequestsMinAggregateInputType _max?: LeaveRequestsMaxAggregateInputType } export type LeaveRequestsGroupByOutputType = { id: number employee_id: number leave_type: $Enums.LeaveTypes comment: string approval_status: $Enums.LeaveApprovalStatus bank_code_id: number payable_hours: runtime.Decimal | null requested_hours: runtime.Decimal | null dates: Date[] _count: LeaveRequestsCountAggregateOutputType | null _avg: LeaveRequestsAvgAggregateOutputType | null _sum: LeaveRequestsSumAggregateOutputType | null _min: LeaveRequestsMinAggregateOutputType | null _max: LeaveRequestsMaxAggregateOutputType | null } type GetLeaveRequestsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof LeaveRequestsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type LeaveRequestsWhereInput = { AND?: Prisma.LeaveRequestsWhereInput | Prisma.LeaveRequestsWhereInput[] OR?: Prisma.LeaveRequestsWhereInput[] NOT?: Prisma.LeaveRequestsWhereInput | Prisma.LeaveRequestsWhereInput[] id?: Prisma.IntFilter<"LeaveRequests"> | number employee_id?: Prisma.IntFilter<"LeaveRequests"> | number leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequests"> | $Enums.LeaveTypes comment?: Prisma.StringFilter<"LeaveRequests"> | string approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequests"> | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntFilter<"LeaveRequests"> | number payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.DateTimeNullableListFilter<"LeaveRequests"> bank_code?: Prisma.XOR employee?: Prisma.XOR archive?: Prisma.XOR | null } export type LeaveRequestsOrderByWithRelationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder leave_type?: Prisma.SortOrder comment?: Prisma.SortOrder approval_status?: Prisma.SortOrder bank_code_id?: Prisma.SortOrder payable_hours?: Prisma.SortOrderInput | Prisma.SortOrder requested_hours?: Prisma.SortOrderInput | Prisma.SortOrder dates?: Prisma.SortOrder bank_code?: Prisma.BankCodesOrderByWithRelationInput employee?: Prisma.EmployeesOrderByWithRelationInput archive?: Prisma.LeaveRequestsArchiveOrderByWithRelationInput } export type LeaveRequestsWhereUniqueInput = Prisma.AtLeast<{ id?: number leave_per_employee_date?: Prisma.LeaveRequestsLeave_per_employee_dateCompoundUniqueInput AND?: Prisma.LeaveRequestsWhereInput | Prisma.LeaveRequestsWhereInput[] OR?: Prisma.LeaveRequestsWhereInput[] NOT?: Prisma.LeaveRequestsWhereInput | Prisma.LeaveRequestsWhereInput[] employee_id?: Prisma.IntFilter<"LeaveRequests"> | number leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequests"> | $Enums.LeaveTypes comment?: Prisma.StringFilter<"LeaveRequests"> | string approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequests"> | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntFilter<"LeaveRequests"> | number payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.DateTimeNullableListFilter<"LeaveRequests"> bank_code?: Prisma.XOR employee?: Prisma.XOR archive?: Prisma.XOR | null }, "id" | "leave_per_employee_date"> export type LeaveRequestsOrderByWithAggregationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder leave_type?: Prisma.SortOrder comment?: Prisma.SortOrder approval_status?: Prisma.SortOrder bank_code_id?: Prisma.SortOrder payable_hours?: Prisma.SortOrderInput | Prisma.SortOrder requested_hours?: Prisma.SortOrderInput | Prisma.SortOrder dates?: Prisma.SortOrder _count?: Prisma.LeaveRequestsCountOrderByAggregateInput _avg?: Prisma.LeaveRequestsAvgOrderByAggregateInput _max?: Prisma.LeaveRequestsMaxOrderByAggregateInput _min?: Prisma.LeaveRequestsMinOrderByAggregateInput _sum?: Prisma.LeaveRequestsSumOrderByAggregateInput } export type LeaveRequestsScalarWhereWithAggregatesInput = { AND?: Prisma.LeaveRequestsScalarWhereWithAggregatesInput | Prisma.LeaveRequestsScalarWhereWithAggregatesInput[] OR?: Prisma.LeaveRequestsScalarWhereWithAggregatesInput[] NOT?: Prisma.LeaveRequestsScalarWhereWithAggregatesInput | Prisma.LeaveRequestsScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"LeaveRequests"> | number employee_id?: Prisma.IntWithAggregatesFilter<"LeaveRequests"> | number leave_type?: Prisma.EnumLeaveTypesWithAggregatesFilter<"LeaveRequests"> | $Enums.LeaveTypes comment?: Prisma.StringWithAggregatesFilter<"LeaveRequests"> | string approval_status?: Prisma.EnumLeaveApprovalStatusWithAggregatesFilter<"LeaveRequests"> | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntWithAggregatesFilter<"LeaveRequests"> | number payable_hours?: Prisma.DecimalNullableWithAggregatesFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.DecimalNullableWithAggregatesFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.DateTimeNullableListFilter<"LeaveRequests"> } export type LeaveRequestsCreateInput = { leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] bank_code: Prisma.BankCodesCreateNestedOneWithoutLeaveRequestsInput employee: Prisma.EmployeesCreateNestedOneWithoutLeave_requestInput archive?: Prisma.LeaveRequestsArchiveCreateNestedOneWithoutLeave_requestInput } export type LeaveRequestsUncheckedCreateInput = { id?: number employee_id: number leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus bank_code_id: number payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] archive?: Prisma.LeaveRequestsArchiveUncheckedCreateNestedOneWithoutLeave_requestInput } export type LeaveRequestsUpdateInput = { leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutLeaveRequestsNestedInput employee?: Prisma.EmployeesUpdateOneRequiredWithoutLeave_requestNestedInput archive?: Prisma.LeaveRequestsArchiveUpdateOneWithoutLeave_requestNestedInput } export type LeaveRequestsUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] archive?: Prisma.LeaveRequestsArchiveUncheckedUpdateOneWithoutLeave_requestNestedInput } export type LeaveRequestsCreateManyInput = { id?: number employee_id: number leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus bank_code_id: number payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] } export type LeaveRequestsUpdateManyMutationInput = { leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] } export type LeaveRequestsUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] } export type LeaveRequestsListRelationFilter = { every?: Prisma.LeaveRequestsWhereInput some?: Prisma.LeaveRequestsWhereInput none?: Prisma.LeaveRequestsWhereInput } export type LeaveRequestsOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type DateTimeNullableListFilter<$PrismaModel = never> = { equals?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null has?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null hasEvery?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> hasSome?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> isEmpty?: boolean } export type LeaveRequestsLeave_per_employee_dateCompoundUniqueInput = { employee_id: number leave_type: $Enums.LeaveTypes dates: Date[] | string[] } export type LeaveRequestsCountOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder leave_type?: Prisma.SortOrder comment?: Prisma.SortOrder approval_status?: Prisma.SortOrder bank_code_id?: Prisma.SortOrder payable_hours?: Prisma.SortOrder requested_hours?: Prisma.SortOrder dates?: Prisma.SortOrder } export type LeaveRequestsAvgOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder bank_code_id?: Prisma.SortOrder payable_hours?: Prisma.SortOrder requested_hours?: Prisma.SortOrder } export type LeaveRequestsMaxOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder leave_type?: Prisma.SortOrder comment?: Prisma.SortOrder approval_status?: Prisma.SortOrder bank_code_id?: Prisma.SortOrder payable_hours?: Prisma.SortOrder requested_hours?: Prisma.SortOrder } export type LeaveRequestsMinOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder leave_type?: Prisma.SortOrder comment?: Prisma.SortOrder approval_status?: Prisma.SortOrder bank_code_id?: Prisma.SortOrder payable_hours?: Prisma.SortOrder requested_hours?: Prisma.SortOrder } export type LeaveRequestsSumOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder bank_code_id?: Prisma.SortOrder payable_hours?: Prisma.SortOrder requested_hours?: Prisma.SortOrder } export type LeaveRequestsScalarRelationFilter = { is?: Prisma.LeaveRequestsWhereInput isNot?: Prisma.LeaveRequestsWhereInput } export type LeaveRequestsCreateNestedManyWithoutEmployeeInput = { create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutEmployeeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput[] connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput | Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput[] createMany?: Prisma.LeaveRequestsCreateManyEmployeeInputEnvelope connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] } export type LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput = { create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutEmployeeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput[] connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput | Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput[] createMany?: Prisma.LeaveRequestsCreateManyEmployeeInputEnvelope connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] } export type LeaveRequestsUpdateManyWithoutEmployeeNestedInput = { create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutEmployeeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput[] connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput | Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput[] upsert?: Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput | Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput[] createMany?: Prisma.LeaveRequestsCreateManyEmployeeInputEnvelope set?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] disconnect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] delete?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] update?: Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput | Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput[] updateMany?: Prisma.LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput | Prisma.LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput[] deleteMany?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] } export type LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput = { create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutEmployeeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput[] connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput | Prisma.LeaveRequestsCreateOrConnectWithoutEmployeeInput[] upsert?: Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput | Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput[] createMany?: Prisma.LeaveRequestsCreateManyEmployeeInputEnvelope set?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] disconnect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] delete?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] update?: Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput | Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput[] updateMany?: Prisma.LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput | Prisma.LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput[] deleteMany?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] } export type LeaveRequestsCreatedatesInput = { set: Date[] | string[] } export type EnumLeaveTypesFieldUpdateOperationsInput = { set?: $Enums.LeaveTypes } export type EnumLeaveApprovalStatusFieldUpdateOperationsInput = { set?: $Enums.LeaveApprovalStatus } export type NullableDecimalFieldUpdateOperationsInput = { set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null increment?: runtime.Decimal | runtime.DecimalJsLike | number | string decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string divide?: runtime.Decimal | runtime.DecimalJsLike | number | string } export type LeaveRequestsUpdatedatesInput = { set?: Date[] | string[] push?: Date | string | Date[] | string[] } export type LeaveRequestsCreateNestedOneWithoutArchiveInput = { create?: Prisma.XOR connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutArchiveInput connect?: Prisma.LeaveRequestsWhereUniqueInput } export type LeaveRequestsUpdateOneRequiredWithoutArchiveNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutArchiveInput upsert?: Prisma.LeaveRequestsUpsertWithoutArchiveInput connect?: Prisma.LeaveRequestsWhereUniqueInput update?: Prisma.XOR, Prisma.LeaveRequestsUncheckedUpdateWithoutArchiveInput> } export type LeaveRequestsCreateNestedManyWithoutBank_codeInput = { create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutBank_codeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput[] connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput | Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput[] createMany?: Prisma.LeaveRequestsCreateManyBank_codeInputEnvelope connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] } export type LeaveRequestsUncheckedCreateNestedManyWithoutBank_codeInput = { create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutBank_codeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput[] connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput | Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput[] createMany?: Prisma.LeaveRequestsCreateManyBank_codeInputEnvelope connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] } export type LeaveRequestsUpdateManyWithoutBank_codeNestedInput = { create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutBank_codeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput[] connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput | Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput[] upsert?: Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput[] createMany?: Prisma.LeaveRequestsCreateManyBank_codeInputEnvelope set?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] disconnect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] delete?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] update?: Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput[] updateMany?: Prisma.LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput | Prisma.LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput[] deleteMany?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] } export type LeaveRequestsUncheckedUpdateManyWithoutBank_codeNestedInput = { create?: Prisma.XOR | Prisma.LeaveRequestsCreateWithoutBank_codeInput[] | Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput[] connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput | Prisma.LeaveRequestsCreateOrConnectWithoutBank_codeInput[] upsert?: Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput[] createMany?: Prisma.LeaveRequestsCreateManyBank_codeInputEnvelope set?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] disconnect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] delete?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] connect?: Prisma.LeaveRequestsWhereUniqueInput | Prisma.LeaveRequestsWhereUniqueInput[] update?: Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput[] updateMany?: Prisma.LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput | Prisma.LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput[] deleteMany?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] } export type LeaveRequestsCreateWithoutEmployeeInput = { leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] bank_code: Prisma.BankCodesCreateNestedOneWithoutLeaveRequestsInput archive?: Prisma.LeaveRequestsArchiveCreateNestedOneWithoutLeave_requestInput } export type LeaveRequestsUncheckedCreateWithoutEmployeeInput = { id?: number leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus bank_code_id: number payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] archive?: Prisma.LeaveRequestsArchiveUncheckedCreateNestedOneWithoutLeave_requestInput } export type LeaveRequestsCreateOrConnectWithoutEmployeeInput = { where: Prisma.LeaveRequestsWhereUniqueInput create: Prisma.XOR } export type LeaveRequestsCreateManyEmployeeInputEnvelope = { data: Prisma.LeaveRequestsCreateManyEmployeeInput | Prisma.LeaveRequestsCreateManyEmployeeInput[] skipDuplicates?: boolean } export type LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput = { where: Prisma.LeaveRequestsWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput = { where: Prisma.LeaveRequestsWhereUniqueInput data: Prisma.XOR } export type LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput = { where: Prisma.LeaveRequestsScalarWhereInput data: Prisma.XOR } export type LeaveRequestsScalarWhereInput = { AND?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] OR?: Prisma.LeaveRequestsScalarWhereInput[] NOT?: Prisma.LeaveRequestsScalarWhereInput | Prisma.LeaveRequestsScalarWhereInput[] id?: Prisma.IntFilter<"LeaveRequests"> | number employee_id?: Prisma.IntFilter<"LeaveRequests"> | number leave_type?: Prisma.EnumLeaveTypesFilter<"LeaveRequests"> | $Enums.LeaveTypes comment?: Prisma.StringFilter<"LeaveRequests"> | string approval_status?: Prisma.EnumLeaveApprovalStatusFilter<"LeaveRequests"> | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntFilter<"LeaveRequests"> | number payable_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.DecimalNullableFilter<"LeaveRequests"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.DateTimeNullableListFilter<"LeaveRequests"> } export type LeaveRequestsCreateWithoutArchiveInput = { leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] bank_code: Prisma.BankCodesCreateNestedOneWithoutLeaveRequestsInput employee: Prisma.EmployeesCreateNestedOneWithoutLeave_requestInput } export type LeaveRequestsUncheckedCreateWithoutArchiveInput = { id?: number employee_id: number leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus bank_code_id: number payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] } export type LeaveRequestsCreateOrConnectWithoutArchiveInput = { where: Prisma.LeaveRequestsWhereUniqueInput create: Prisma.XOR } export type LeaveRequestsUpsertWithoutArchiveInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.LeaveRequestsWhereInput } export type LeaveRequestsUpdateToOneWithWhereWithoutArchiveInput = { where?: Prisma.LeaveRequestsWhereInput data: Prisma.XOR } export type LeaveRequestsUpdateWithoutArchiveInput = { leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutLeaveRequestsNestedInput employee?: Prisma.EmployeesUpdateOneRequiredWithoutLeave_requestNestedInput } export type LeaveRequestsUncheckedUpdateWithoutArchiveInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] } export type LeaveRequestsCreateWithoutBank_codeInput = { leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] employee: Prisma.EmployeesCreateNestedOneWithoutLeave_requestInput archive?: Prisma.LeaveRequestsArchiveCreateNestedOneWithoutLeave_requestInput } export type LeaveRequestsUncheckedCreateWithoutBank_codeInput = { id?: number employee_id: number leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] archive?: Prisma.LeaveRequestsArchiveUncheckedCreateNestedOneWithoutLeave_requestInput } export type LeaveRequestsCreateOrConnectWithoutBank_codeInput = { where: Prisma.LeaveRequestsWhereUniqueInput create: Prisma.XOR } export type LeaveRequestsCreateManyBank_codeInputEnvelope = { data: Prisma.LeaveRequestsCreateManyBank_codeInput | Prisma.LeaveRequestsCreateManyBank_codeInput[] skipDuplicates?: boolean } export type LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput = { where: Prisma.LeaveRequestsWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput = { where: Prisma.LeaveRequestsWhereUniqueInput data: Prisma.XOR } export type LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput = { where: Prisma.LeaveRequestsScalarWhereInput data: Prisma.XOR } export type LeaveRequestsCreateManyEmployeeInput = { id?: number leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus bank_code_id: number payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] } export type LeaveRequestsUpdateWithoutEmployeeInput = { leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutLeaveRequestsNestedInput archive?: Prisma.LeaveRequestsArchiveUpdateOneWithoutLeave_requestNestedInput } export type LeaveRequestsUncheckedUpdateWithoutEmployeeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] archive?: Prisma.LeaveRequestsArchiveUncheckedUpdateOneWithoutLeave_requestNestedInput } export type LeaveRequestsUncheckedUpdateManyWithoutEmployeeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] } export type LeaveRequestsCreateManyBank_codeInput = { id?: number employee_id: number leave_type: $Enums.LeaveTypes comment: string approval_status?: $Enums.LeaveApprovalStatus payable_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsCreatedatesInput | Date[] | string[] } export type LeaveRequestsUpdateWithoutBank_codeInput = { leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] employee?: Prisma.EmployeesUpdateOneRequiredWithoutLeave_requestNestedInput archive?: Prisma.LeaveRequestsArchiveUpdateOneWithoutLeave_requestNestedInput } export type LeaveRequestsUncheckedUpdateWithoutBank_codeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] archive?: Prisma.LeaveRequestsArchiveUncheckedUpdateOneWithoutLeave_requestNestedInput } export type LeaveRequestsUncheckedUpdateManyWithoutBank_codeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number leave_type?: Prisma.EnumLeaveTypesFieldUpdateOperationsInput | $Enums.LeaveTypes comment?: Prisma.StringFieldUpdateOperationsInput | string approval_status?: Prisma.EnumLeaveApprovalStatusFieldUpdateOperationsInput | $Enums.LeaveApprovalStatus payable_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null requested_hours?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null dates?: Prisma.LeaveRequestsUpdatedatesInput | Date[] | string[] } export type LeaveRequestsSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean leave_type?: boolean comment?: boolean approval_status?: boolean bank_code_id?: boolean payable_hours?: boolean requested_hours?: boolean dates?: boolean bank_code?: boolean | Prisma.BankCodesDefaultArgs employee?: boolean | Prisma.EmployeesDefaultArgs archive?: boolean | Prisma.LeaveRequests$archiveArgs }, ExtArgs["result"]["leaveRequests"]> export type LeaveRequestsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean leave_type?: boolean comment?: boolean approval_status?: boolean bank_code_id?: boolean payable_hours?: boolean requested_hours?: boolean dates?: boolean bank_code?: boolean | Prisma.BankCodesDefaultArgs employee?: boolean | Prisma.EmployeesDefaultArgs }, ExtArgs["result"]["leaveRequests"]> export type LeaveRequestsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean leave_type?: boolean comment?: boolean approval_status?: boolean bank_code_id?: boolean payable_hours?: boolean requested_hours?: boolean dates?: boolean bank_code?: boolean | Prisma.BankCodesDefaultArgs employee?: boolean | Prisma.EmployeesDefaultArgs }, ExtArgs["result"]["leaveRequests"]> export type LeaveRequestsSelectScalar = { id?: boolean employee_id?: boolean leave_type?: boolean comment?: boolean approval_status?: boolean bank_code_id?: boolean payable_hours?: boolean requested_hours?: boolean dates?: boolean } export type LeaveRequestsOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "leave_type" | "comment" | "approval_status" | "bank_code_id" | "payable_hours" | "requested_hours" | "dates", ExtArgs["result"]["leaveRequests"]> export type LeaveRequestsInclude = { bank_code?: boolean | Prisma.BankCodesDefaultArgs employee?: boolean | Prisma.EmployeesDefaultArgs archive?: boolean | Prisma.LeaveRequests$archiveArgs } export type LeaveRequestsIncludeCreateManyAndReturn = { bank_code?: boolean | Prisma.BankCodesDefaultArgs employee?: boolean | Prisma.EmployeesDefaultArgs } export type LeaveRequestsIncludeUpdateManyAndReturn = { bank_code?: boolean | Prisma.BankCodesDefaultArgs employee?: boolean | Prisma.EmployeesDefaultArgs } export type $LeaveRequestsPayload = { name: "LeaveRequests" objects: { bank_code: Prisma.$BankCodesPayload employee: Prisma.$EmployeesPayload archive: Prisma.$LeaveRequestsArchivePayload | null } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number employee_id: number leave_type: $Enums.LeaveTypes comment: string approval_status: $Enums.LeaveApprovalStatus bank_code_id: number payable_hours: runtime.Decimal | null requested_hours: runtime.Decimal | null dates: Date[] }, ExtArgs["result"]["leaveRequests"]> composites: {} } export type LeaveRequestsGetPayload = runtime.Types.Result.GetResult export type LeaveRequestsCountArgs = Omit & { select?: LeaveRequestsCountAggregateInputType | true } export interface LeaveRequestsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['LeaveRequests'], meta: { name: 'LeaveRequests' } } /** * Find zero or one LeaveRequests that matches the filter. * @param {LeaveRequestsFindUniqueArgs} args - Arguments to find a LeaveRequests * @example * // Get one LeaveRequests * const leaveRequests = await prisma.leaveRequests.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one LeaveRequests that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {LeaveRequestsFindUniqueOrThrowArgs} args - Arguments to find a LeaveRequests * @example * // Get one LeaveRequests * const leaveRequests = await prisma.leaveRequests.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first LeaveRequests 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 {LeaveRequestsFindFirstArgs} args - Arguments to find a LeaveRequests * @example * // Get one LeaveRequests * const leaveRequests = await prisma.leaveRequests.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first LeaveRequests 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 {LeaveRequestsFindFirstOrThrowArgs} args - Arguments to find a LeaveRequests * @example * // Get one LeaveRequests * const leaveRequests = await prisma.leaveRequests.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more LeaveRequests 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 {LeaveRequestsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all LeaveRequests * const leaveRequests = await prisma.leaveRequests.findMany() * * // Get first 10 LeaveRequests * const leaveRequests = await prisma.leaveRequests.findMany({ take: 10 }) * * // Only select the `id` * const leaveRequestsWithIdOnly = await prisma.leaveRequests.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a LeaveRequests. * @param {LeaveRequestsCreateArgs} args - Arguments to create a LeaveRequests. * @example * // Create one LeaveRequests * const LeaveRequests = await prisma.leaveRequests.create({ * data: { * // ... data to create a LeaveRequests * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many LeaveRequests. * @param {LeaveRequestsCreateManyArgs} args - Arguments to create many LeaveRequests. * @example * // Create many LeaveRequests * const leaveRequests = await prisma.leaveRequests.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many LeaveRequests and returns the data saved in the database. * @param {LeaveRequestsCreateManyAndReturnArgs} args - Arguments to create many LeaveRequests. * @example * // Create many LeaveRequests * const leaveRequests = await prisma.leaveRequests.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many LeaveRequests and only return the `id` * const leaveRequestsWithIdOnly = await prisma.leaveRequests.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a LeaveRequests. * @param {LeaveRequestsDeleteArgs} args - Arguments to delete one LeaveRequests. * @example * // Delete one LeaveRequests * const LeaveRequests = await prisma.leaveRequests.delete({ * where: { * // ... filter to delete one LeaveRequests * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one LeaveRequests. * @param {LeaveRequestsUpdateArgs} args - Arguments to update one LeaveRequests. * @example * // Update one LeaveRequests * const leaveRequests = await prisma.leaveRequests.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more LeaveRequests. * @param {LeaveRequestsDeleteManyArgs} args - Arguments to filter LeaveRequests to delete. * @example * // Delete a few LeaveRequests * const { count } = await prisma.leaveRequests.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LeaveRequests. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LeaveRequestsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many LeaveRequests * const leaveRequests = await prisma.leaveRequests.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more LeaveRequests and returns the data updated in the database. * @param {LeaveRequestsUpdateManyAndReturnArgs} args - Arguments to update many LeaveRequests. * @example * // Update many LeaveRequests * const leaveRequests = await prisma.leaveRequests.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more LeaveRequests and only return the `id` * const leaveRequestsWithIdOnly = await prisma.leaveRequests.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one LeaveRequests. * @param {LeaveRequestsUpsertArgs} args - Arguments to update or create a LeaveRequests. * @example * // Update or create a LeaveRequests * const leaveRequests = await prisma.leaveRequests.upsert({ * create: { * // ... data to create a LeaveRequests * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the LeaveRequests we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__LeaveRequestsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of LeaveRequests. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LeaveRequestsCountArgs} args - Arguments to filter LeaveRequests to count. * @example * // Count the number of LeaveRequests * const count = await prisma.leaveRequests.count({ * where: { * // ... the filter for the LeaveRequests we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a LeaveRequests. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LeaveRequestsAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by LeaveRequests. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {LeaveRequestsGroupByArgs} 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 LeaveRequestsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: LeaveRequestsGroupByArgs['orderBy'] } : { orderBy?: LeaveRequestsGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetLeaveRequestsGroupByPayload : Prisma.PrismaPromise /** * Fields of the LeaveRequests model */ readonly fields: LeaveRequestsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for LeaveRequests. * 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__LeaveRequestsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" bank_code = {}>(args?: Prisma.Subset>): Prisma.Prisma__BankCodesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> employee = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmployeesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> archive = {}>(args?: Prisma.Subset>): Prisma.Prisma__LeaveRequestsArchiveClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the LeaveRequests model */ export interface LeaveRequestsFieldRefs { readonly id: Prisma.FieldRef<"LeaveRequests", 'Int'> readonly employee_id: Prisma.FieldRef<"LeaveRequests", 'Int'> readonly leave_type: Prisma.FieldRef<"LeaveRequests", 'LeaveTypes'> readonly comment: Prisma.FieldRef<"LeaveRequests", 'String'> readonly approval_status: Prisma.FieldRef<"LeaveRequests", 'LeaveApprovalStatus'> readonly bank_code_id: Prisma.FieldRef<"LeaveRequests", 'Int'> readonly payable_hours: Prisma.FieldRef<"LeaveRequests", 'Decimal'> readonly requested_hours: Prisma.FieldRef<"LeaveRequests", 'Decimal'> readonly dates: Prisma.FieldRef<"LeaveRequests", 'DateTime[]'> } // Custom InputTypes /** * LeaveRequests findUnique */ export type LeaveRequestsFindUniqueArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * Filter, which LeaveRequests to fetch. */ where: Prisma.LeaveRequestsWhereUniqueInput } /** * LeaveRequests findUniqueOrThrow */ export type LeaveRequestsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * Filter, which LeaveRequests to fetch. */ where: Prisma.LeaveRequestsWhereUniqueInput } /** * LeaveRequests findFirst */ export type LeaveRequestsFindFirstArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * Filter, which LeaveRequests to fetch. */ where?: Prisma.LeaveRequestsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LeaveRequests to fetch. */ orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LeaveRequests. */ cursor?: Prisma.LeaveRequestsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LeaveRequests 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` LeaveRequests. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LeaveRequests. */ distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[] } /** * LeaveRequests findFirstOrThrow */ export type LeaveRequestsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * Filter, which LeaveRequests to fetch. */ where?: Prisma.LeaveRequestsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LeaveRequests to fetch. */ orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for LeaveRequests. */ cursor?: Prisma.LeaveRequestsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LeaveRequests 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` LeaveRequests. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of LeaveRequests. */ distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[] } /** * LeaveRequests findMany */ export type LeaveRequestsFindManyArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * Filter, which LeaveRequests to fetch. */ where?: Prisma.LeaveRequestsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of LeaveRequests to fetch. */ orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing LeaveRequests. */ cursor?: Prisma.LeaveRequestsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` LeaveRequests 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` LeaveRequests. */ skip?: number distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[] } /** * LeaveRequests create */ export type LeaveRequestsCreateArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * The data needed to create a LeaveRequests. */ data: Prisma.XOR } /** * LeaveRequests createMany */ export type LeaveRequestsCreateManyArgs = { /** * The data used to create many LeaveRequests. */ data: Prisma.LeaveRequestsCreateManyInput | Prisma.LeaveRequestsCreateManyInput[] skipDuplicates?: boolean } /** * LeaveRequests createManyAndReturn */ export type LeaveRequestsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelectCreateManyAndReturn | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * The data used to create many LeaveRequests. */ data: Prisma.LeaveRequestsCreateManyInput | Prisma.LeaveRequestsCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsIncludeCreateManyAndReturn | null } /** * LeaveRequests update */ export type LeaveRequestsUpdateArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * The data needed to update a LeaveRequests. */ data: Prisma.XOR /** * Choose, which LeaveRequests to update. */ where: Prisma.LeaveRequestsWhereUniqueInput } /** * LeaveRequests updateMany */ export type LeaveRequestsUpdateManyArgs = { /** * The data used to update LeaveRequests. */ data: Prisma.XOR /** * Filter which LeaveRequests to update */ where?: Prisma.LeaveRequestsWhereInput /** * Limit how many LeaveRequests to update. */ limit?: number } /** * LeaveRequests updateManyAndReturn */ export type LeaveRequestsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelectUpdateManyAndReturn | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * The data used to update LeaveRequests. */ data: Prisma.XOR /** * Filter which LeaveRequests to update */ where?: Prisma.LeaveRequestsWhereInput /** * Limit how many LeaveRequests to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsIncludeUpdateManyAndReturn | null } /** * LeaveRequests upsert */ export type LeaveRequestsUpsertArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * The filter to search for the LeaveRequests to update in case it exists. */ where: Prisma.LeaveRequestsWhereUniqueInput /** * In case the LeaveRequests found by the `where` argument doesn't exist, create a new LeaveRequests with this data. */ create: Prisma.XOR /** * In case the LeaveRequests was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * LeaveRequests delete */ export type LeaveRequestsDeleteArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null /** * Filter which LeaveRequests to delete. */ where: Prisma.LeaveRequestsWhereUniqueInput } /** * LeaveRequests deleteMany */ export type LeaveRequestsDeleteManyArgs = { /** * Filter which LeaveRequests to delete */ where?: Prisma.LeaveRequestsWhereInput /** * Limit how many LeaveRequests to delete. */ limit?: number } /** * LeaveRequests.archive */ export type LeaveRequests$archiveArgs = { /** * Select specific fields to fetch from the LeaveRequestsArchive */ select?: Prisma.LeaveRequestsArchiveSelect | null /** * Omit specific fields from the LeaveRequestsArchive */ omit?: Prisma.LeaveRequestsArchiveOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsArchiveInclude | null where?: Prisma.LeaveRequestsArchiveWhereInput } /** * LeaveRequests without action */ export type LeaveRequestsDefaultArgs = { /** * Select specific fields to fetch from the LeaveRequests */ select?: Prisma.LeaveRequestsSelect | null /** * Omit specific fields from the LeaveRequests */ omit?: Prisma.LeaveRequestsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.LeaveRequestsInclude | null }