1839 lines
79 KiB
TypeScript
1839 lines
79 KiB
TypeScript
|
|
/* !!! 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<Prisma.$LeaveRequestsPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends LeaveRequestsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateLeaveRequests]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateLeaveRequests[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateLeaveRequests[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type LeaveRequestsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends LeaveRequestsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<LeaveRequestsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof LeaveRequestsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], LeaveRequestsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], LeaveRequestsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
|
|
employee?: Prisma.XOR<Prisma.EmployeesScalarRelationFilter, Prisma.EmployeesWhereInput>
|
|
archive?: Prisma.XOR<Prisma.LeaveRequestsArchiveNullableScalarRelationFilter, Prisma.LeaveRequestsArchiveWhereInput> | 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<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
|
|
employee?: Prisma.XOR<Prisma.EmployeesScalarRelationFilter, Prisma.EmployeesWhereInput>
|
|
archive?: Prisma.XOR<Prisma.LeaveRequestsArchiveNullableScalarRelationFilter, Prisma.LeaveRequestsArchiveWhereInput> | 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> | 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> | 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> | 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> | 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<Prisma.LeaveRequestsCreateWithoutArchiveInput, Prisma.LeaveRequestsUncheckedCreateWithoutArchiveInput>
|
|
connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutArchiveInput
|
|
connect?: Prisma.LeaveRequestsWhereUniqueInput
|
|
}
|
|
|
|
export type LeaveRequestsUpdateOneRequiredWithoutArchiveNestedInput = {
|
|
create?: Prisma.XOR<Prisma.LeaveRequestsCreateWithoutArchiveInput, Prisma.LeaveRequestsUncheckedCreateWithoutArchiveInput>
|
|
connectOrCreate?: Prisma.LeaveRequestsCreateOrConnectWithoutArchiveInput
|
|
upsert?: Prisma.LeaveRequestsUpsertWithoutArchiveInput
|
|
connect?: Prisma.LeaveRequestsWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.LeaveRequestsUpdateToOneWithWhereWithoutArchiveInput, Prisma.LeaveRequestsUpdateWithoutArchiveInput>, Prisma.LeaveRequestsUncheckedUpdateWithoutArchiveInput>
|
|
}
|
|
|
|
export type LeaveRequestsCreateNestedManyWithoutBank_codeInput = {
|
|
create?: Prisma.XOR<Prisma.LeaveRequestsCreateWithoutBank_codeInput, Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput> | 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> | 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> | 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> | 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<Prisma.LeaveRequestsCreateWithoutEmployeeInput, Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput>
|
|
}
|
|
|
|
export type LeaveRequestsCreateManyEmployeeInputEnvelope = {
|
|
data: Prisma.LeaveRequestsCreateManyEmployeeInput | Prisma.LeaveRequestsCreateManyEmployeeInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type LeaveRequestsUpsertWithWhereUniqueWithoutEmployeeInput = {
|
|
where: Prisma.LeaveRequestsWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.LeaveRequestsUpdateWithoutEmployeeInput, Prisma.LeaveRequestsUncheckedUpdateWithoutEmployeeInput>
|
|
create: Prisma.XOR<Prisma.LeaveRequestsCreateWithoutEmployeeInput, Prisma.LeaveRequestsUncheckedCreateWithoutEmployeeInput>
|
|
}
|
|
|
|
export type LeaveRequestsUpdateWithWhereUniqueWithoutEmployeeInput = {
|
|
where: Prisma.LeaveRequestsWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.LeaveRequestsUpdateWithoutEmployeeInput, Prisma.LeaveRequestsUncheckedUpdateWithoutEmployeeInput>
|
|
}
|
|
|
|
export type LeaveRequestsUpdateManyWithWhereWithoutEmployeeInput = {
|
|
where: Prisma.LeaveRequestsScalarWhereInput
|
|
data: Prisma.XOR<Prisma.LeaveRequestsUpdateManyMutationInput, Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeInput>
|
|
}
|
|
|
|
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<Prisma.LeaveRequestsCreateWithoutArchiveInput, Prisma.LeaveRequestsUncheckedCreateWithoutArchiveInput>
|
|
}
|
|
|
|
export type LeaveRequestsUpsertWithoutArchiveInput = {
|
|
update: Prisma.XOR<Prisma.LeaveRequestsUpdateWithoutArchiveInput, Prisma.LeaveRequestsUncheckedUpdateWithoutArchiveInput>
|
|
create: Prisma.XOR<Prisma.LeaveRequestsCreateWithoutArchiveInput, Prisma.LeaveRequestsUncheckedCreateWithoutArchiveInput>
|
|
where?: Prisma.LeaveRequestsWhereInput
|
|
}
|
|
|
|
export type LeaveRequestsUpdateToOneWithWhereWithoutArchiveInput = {
|
|
where?: Prisma.LeaveRequestsWhereInput
|
|
data: Prisma.XOR<Prisma.LeaveRequestsUpdateWithoutArchiveInput, Prisma.LeaveRequestsUncheckedUpdateWithoutArchiveInput>
|
|
}
|
|
|
|
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<Prisma.LeaveRequestsCreateWithoutBank_codeInput, Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput>
|
|
}
|
|
|
|
export type LeaveRequestsCreateManyBank_codeInputEnvelope = {
|
|
data: Prisma.LeaveRequestsCreateManyBank_codeInput | Prisma.LeaveRequestsCreateManyBank_codeInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type LeaveRequestsUpsertWithWhereUniqueWithoutBank_codeInput = {
|
|
where: Prisma.LeaveRequestsWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.LeaveRequestsUpdateWithoutBank_codeInput, Prisma.LeaveRequestsUncheckedUpdateWithoutBank_codeInput>
|
|
create: Prisma.XOR<Prisma.LeaveRequestsCreateWithoutBank_codeInput, Prisma.LeaveRequestsUncheckedCreateWithoutBank_codeInput>
|
|
}
|
|
|
|
export type LeaveRequestsUpdateWithWhereUniqueWithoutBank_codeInput = {
|
|
where: Prisma.LeaveRequestsWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.LeaveRequestsUpdateWithoutBank_codeInput, Prisma.LeaveRequestsUncheckedUpdateWithoutBank_codeInput>
|
|
}
|
|
|
|
export type LeaveRequestsUpdateManyWithWhereWithoutBank_codeInput = {
|
|
where: Prisma.LeaveRequestsScalarWhereInput
|
|
data: Prisma.XOR<Prisma.LeaveRequestsUpdateManyMutationInput, Prisma.LeaveRequestsUncheckedUpdateManyWithoutBank_codeInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
|
|
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
|
|
archive?: boolean | Prisma.LeaveRequests$archiveArgs<ExtArgs>
|
|
}, ExtArgs["result"]["leaveRequests"]>
|
|
|
|
export type LeaveRequestsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
|
|
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["leaveRequests"]>
|
|
|
|
export type LeaveRequestsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
|
|
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
|
|
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
|
|
archive?: boolean | Prisma.LeaveRequests$archiveArgs<ExtArgs>
|
|
}
|
|
export type LeaveRequestsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
|
|
}
|
|
export type LeaveRequestsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $LeaveRequestsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "LeaveRequests"
|
|
objects: {
|
|
bank_code: Prisma.$BankCodesPayload<ExtArgs>
|
|
employee: Prisma.$EmployeesPayload<ExtArgs>
|
|
archive: Prisma.$LeaveRequestsArchivePayload<ExtArgs> | 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<S extends boolean | null | undefined | LeaveRequestsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload, S>
|
|
|
|
export type LeaveRequestsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<LeaveRequestsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: LeaveRequestsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface LeaveRequestsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends LeaveRequestsFindUniqueArgs>(args: Prisma.SelectSubset<T, LeaveRequestsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LeaveRequestsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsFindFirstArgs>(args?: Prisma.SelectSubset<T, LeaveRequestsFindFirstArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LeaveRequestsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsFindManyArgs>(args?: Prisma.SelectSubset<T, LeaveRequestsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsCreateArgs>(args: Prisma.SelectSubset<T, LeaveRequestsCreateArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsCreateManyArgs>(args?: Prisma.SelectSubset<T, LeaveRequestsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends LeaveRequestsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LeaveRequestsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsDeleteArgs>(args: Prisma.SelectSubset<T, LeaveRequestsDeleteArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsUpdateArgs>(args: Prisma.SelectSubset<T, LeaveRequestsUpdateArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsDeleteManyArgs>(args?: Prisma.SelectSubset<T, LeaveRequestsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends LeaveRequestsUpdateManyArgs>(args: Prisma.SelectSubset<T, LeaveRequestsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends LeaveRequestsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LeaveRequestsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsUpsertArgs>(args: Prisma.SelectSubset<T, LeaveRequestsUpsertArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, 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<T extends LeaveRequestsCountArgs>(
|
|
args?: Prisma.Subset<T, LeaveRequestsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], LeaveRequestsCountAggregateOutputType>
|
|
: 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<T extends LeaveRequestsAggregateArgs>(args: Prisma.Subset<T, LeaveRequestsAggregateArgs>): Prisma.PrismaPromise<GetLeaveRequestsAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: LeaveRequestsGroupByArgs['orderBy'] }
|
|
: { orderBy?: LeaveRequestsGroupByArgs['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, LeaveRequestsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLeaveRequestsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
bank_code<T extends Prisma.BankCodesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankCodesDefaultArgs<ExtArgs>>): Prisma.Prisma__BankCodesClient<runtime.Types.Result.GetResult<Prisma.$BankCodesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
employee<T extends Prisma.EmployeesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EmployeesDefaultArgs<ExtArgs>>): Prisma.Prisma__EmployeesClient<runtime.Types.Result.GetResult<Prisma.$EmployeesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
archive<T extends Prisma.LeaveRequests$archiveArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.LeaveRequests$archiveArgs<ExtArgs>>): Prisma.Prisma__LeaveRequestsArchiveClient<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsArchivePayload<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 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LeaveRequests to fetch.
|
|
*/
|
|
where: Prisma.LeaveRequestsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests findUniqueOrThrow
|
|
*/
|
|
export type LeaveRequestsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which LeaveRequests to fetch.
|
|
*/
|
|
where: Prisma.LeaveRequestsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests findFirst
|
|
*/
|
|
export type LeaveRequestsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a LeaveRequests.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LeaveRequestsCreateInput, Prisma.LeaveRequestsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests createMany
|
|
*/
|
|
export type LeaveRequestsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many LeaveRequests.
|
|
*/
|
|
data: Prisma.LeaveRequestsCreateManyInput | Prisma.LeaveRequestsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests createManyAndReturn
|
|
*/
|
|
export type LeaveRequestsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests update
|
|
*/
|
|
export type LeaveRequestsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a LeaveRequests.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LeaveRequestsUpdateInput, Prisma.LeaveRequestsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which LeaveRequests to update.
|
|
*/
|
|
where: Prisma.LeaveRequestsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests updateMany
|
|
*/
|
|
export type LeaveRequestsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update LeaveRequests.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LeaveRequestsUpdateManyMutationInput, Prisma.LeaveRequestsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which LeaveRequests to update
|
|
*/
|
|
where?: Prisma.LeaveRequestsWhereInput
|
|
/**
|
|
* Limit how many LeaveRequests to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests updateManyAndReturn
|
|
*/
|
|
export type LeaveRequestsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update LeaveRequests.
|
|
*/
|
|
data: Prisma.XOR<Prisma.LeaveRequestsUpdateManyMutationInput, Prisma.LeaveRequestsUncheckedUpdateManyInput>
|
|
/**
|
|
* 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<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests upsert
|
|
*/
|
|
export type LeaveRequestsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | 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<Prisma.LeaveRequestsCreateInput, Prisma.LeaveRequestsUncheckedCreateInput>
|
|
/**
|
|
* In case the LeaveRequests was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.LeaveRequestsUpdateInput, Prisma.LeaveRequestsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests delete
|
|
*/
|
|
export type LeaveRequestsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which LeaveRequests to delete.
|
|
*/
|
|
where: Prisma.LeaveRequestsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests deleteMany
|
|
*/
|
|
export type LeaveRequestsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which LeaveRequests to delete
|
|
*/
|
|
where?: Prisma.LeaveRequestsWhereInput
|
|
/**
|
|
* Limit how many LeaveRequests to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests.archive
|
|
*/
|
|
export type LeaveRequests$archiveArgs<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
|
|
where?: Prisma.LeaveRequestsArchiveWhereInput
|
|
}
|
|
|
|
/**
|
|
* LeaveRequests without action
|
|
*/
|
|
export type LeaveRequestsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the LeaveRequests
|
|
*/
|
|
select?: Prisma.LeaveRequestsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the LeaveRequests
|
|
*/
|
|
omit?: Prisma.LeaveRequestsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LeaveRequestsInclude<ExtArgs> | null
|
|
}
|