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

export type AggregateEmployees = {
  _count: EmployeesCountAggregateOutputType | null
  _avg: EmployeesAvgAggregateOutputType | null
  _sum: EmployeesSumAggregateOutputType | null
  _min: EmployeesMinAggregateOutputType | null
  _max: EmployeesMaxAggregateOutputType | null
}

export type EmployeesAvgAggregateOutputType = {
  id: number | null
  external_payroll_id: number | null
  company_code: number | null
  daily_expected_hours: number | null
  supervisor_id: number | null
  schedule_preset_id: number | null
}

export type EmployeesSumAggregateOutputType = {
  id: number | null
  external_payroll_id: number | null
  company_code: number | null
  daily_expected_hours: number | null
  supervisor_id: number | null
  schedule_preset_id: number | null
}

export type EmployeesMinAggregateOutputType = {
  id: number | null
  user_id: string | null
  external_payroll_id: number | null
  company_code: number | null
  daily_expected_hours: number | null
  first_work_day: Date | null
  last_work_day: Date | null
  supervisor_id: number | null
  job_title: string | null
  is_supervisor: boolean | null
  schedule_preset_id: number | null
}

export type EmployeesMaxAggregateOutputType = {
  id: number | null
  user_id: string | null
  external_payroll_id: number | null
  company_code: number | null
  daily_expected_hours: number | null
  first_work_day: Date | null
  last_work_day: Date | null
  supervisor_id: number | null
  job_title: string | null
  is_supervisor: boolean | null
  schedule_preset_id: number | null
}

export type EmployeesCountAggregateOutputType = {
  id: number
  user_id: number
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: number
  last_work_day: number
  supervisor_id: number
  job_title: number
  is_supervisor: number
  schedule_preset_id: number
  _all: number
}


export type EmployeesAvgAggregateInputType = {
  id?: true
  external_payroll_id?: true
  company_code?: true
  daily_expected_hours?: true
  supervisor_id?: true
  schedule_preset_id?: true
}

export type EmployeesSumAggregateInputType = {
  id?: true
  external_payroll_id?: true
  company_code?: true
  daily_expected_hours?: true
  supervisor_id?: true
  schedule_preset_id?: true
}

export type EmployeesMinAggregateInputType = {
  id?: true
  user_id?: true
  external_payroll_id?: true
  company_code?: true
  daily_expected_hours?: true
  first_work_day?: true
  last_work_day?: true
  supervisor_id?: true
  job_title?: true
  is_supervisor?: true
  schedule_preset_id?: true
}

export type EmployeesMaxAggregateInputType = {
  id?: true
  user_id?: true
  external_payroll_id?: true
  company_code?: true
  daily_expected_hours?: true
  first_work_day?: true
  last_work_day?: true
  supervisor_id?: true
  job_title?: true
  is_supervisor?: true
  schedule_preset_id?: true
}

export type EmployeesCountAggregateInputType = {
  id?: true
  user_id?: true
  external_payroll_id?: true
  company_code?: true
  daily_expected_hours?: true
  first_work_day?: true
  last_work_day?: true
  supervisor_id?: true
  job_title?: true
  is_supervisor?: true
  schedule_preset_id?: true
  _all?: true
}

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

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




export type EmployeesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.EmployeesWhereInput
  orderBy?: Prisma.EmployeesOrderByWithAggregationInput | Prisma.EmployeesOrderByWithAggregationInput[]
  by: Prisma.EmployeesScalarFieldEnum[] | Prisma.EmployeesScalarFieldEnum
  having?: Prisma.EmployeesScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: EmployeesCountAggregateInputType | true
  _avg?: EmployeesAvgAggregateInputType
  _sum?: EmployeesSumAggregateInputType
  _min?: EmployeesMinAggregateInputType
  _max?: EmployeesMaxAggregateInputType
}

export type EmployeesGroupByOutputType = {
  id: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date
  last_work_day: Date | null
  supervisor_id: number | null
  job_title: string | null
  is_supervisor: boolean
  schedule_preset_id: number | null
  _count: EmployeesCountAggregateOutputType | null
  _avg: EmployeesAvgAggregateOutputType | null
  _sum: EmployeesSumAggregateOutputType | null
  _min: EmployeesMinAggregateOutputType | null
  _max: EmployeesMaxAggregateOutputType | null
}

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



export type EmployeesWhereInput = {
  AND?: Prisma.EmployeesWhereInput | Prisma.EmployeesWhereInput[]
  OR?: Prisma.EmployeesWhereInput[]
  NOT?: Prisma.EmployeesWhereInput | Prisma.EmployeesWhereInput[]
  id?: Prisma.IntFilter<"Employees"> | number
  user_id?: Prisma.UuidFilter<"Employees"> | string
  external_payroll_id?: Prisma.IntFilter<"Employees"> | number
  company_code?: Prisma.IntFilter<"Employees"> | number
  daily_expected_hours?: Prisma.IntFilter<"Employees"> | number
  first_work_day?: Prisma.DateTimeFilter<"Employees"> | Date | string
  last_work_day?: Prisma.DateTimeNullableFilter<"Employees"> | Date | string | null
  supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null
  job_title?: Prisma.StringNullableFilter<"Employees"> | string | null
  is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean
  schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null
  schedule_preset?: Prisma.XOR<Prisma.SchedulePresetsNullableScalarRelationFilter, Prisma.SchedulePresetsWhereInput> | null
  supervisor?: Prisma.XOR<Prisma.EmployeesNullableScalarRelationFilter, Prisma.EmployeesWhereInput> | null
  crew?: Prisma.EmployeesListRelationFilter
  user?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
  leave_request?: Prisma.LeaveRequestsListRelationFilter
  timesheet?: Prisma.TimesheetsListRelationFilter
  paid_time_off?: Prisma.XOR<Prisma.PaidTimeOffNullableScalarRelationFilter, Prisma.PaidTimeOffWhereInput> | null
}

export type EmployeesOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  external_payroll_id?: Prisma.SortOrder
  company_code?: Prisma.SortOrder
  daily_expected_hours?: Prisma.SortOrder
  first_work_day?: Prisma.SortOrder
  last_work_day?: Prisma.SortOrderInput | Prisma.SortOrder
  supervisor_id?: Prisma.SortOrderInput | Prisma.SortOrder
  job_title?: Prisma.SortOrderInput | Prisma.SortOrder
  is_supervisor?: Prisma.SortOrder
  schedule_preset_id?: Prisma.SortOrderInput | Prisma.SortOrder
  schedule_preset?: Prisma.SchedulePresetsOrderByWithRelationInput
  supervisor?: Prisma.EmployeesOrderByWithRelationInput
  crew?: Prisma.EmployeesOrderByRelationAggregateInput
  user?: Prisma.UsersOrderByWithRelationInput
  leave_request?: Prisma.LeaveRequestsOrderByRelationAggregateInput
  timesheet?: Prisma.TimesheetsOrderByRelationAggregateInput
  paid_time_off?: Prisma.PaidTimeOffOrderByWithRelationInput
}

export type EmployeesWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  user_id?: string
  AND?: Prisma.EmployeesWhereInput | Prisma.EmployeesWhereInput[]
  OR?: Prisma.EmployeesWhereInput[]
  NOT?: Prisma.EmployeesWhereInput | Prisma.EmployeesWhereInput[]
  external_payroll_id?: Prisma.IntFilter<"Employees"> | number
  company_code?: Prisma.IntFilter<"Employees"> | number
  daily_expected_hours?: Prisma.IntFilter<"Employees"> | number
  first_work_day?: Prisma.DateTimeFilter<"Employees"> | Date | string
  last_work_day?: Prisma.DateTimeNullableFilter<"Employees"> | Date | string | null
  supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null
  job_title?: Prisma.StringNullableFilter<"Employees"> | string | null
  is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean
  schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null
  schedule_preset?: Prisma.XOR<Prisma.SchedulePresetsNullableScalarRelationFilter, Prisma.SchedulePresetsWhereInput> | null
  supervisor?: Prisma.XOR<Prisma.EmployeesNullableScalarRelationFilter, Prisma.EmployeesWhereInput> | null
  crew?: Prisma.EmployeesListRelationFilter
  user?: Prisma.XOR<Prisma.UsersScalarRelationFilter, Prisma.UsersWhereInput>
  leave_request?: Prisma.LeaveRequestsListRelationFilter
  timesheet?: Prisma.TimesheetsListRelationFilter
  paid_time_off?: Prisma.XOR<Prisma.PaidTimeOffNullableScalarRelationFilter, Prisma.PaidTimeOffWhereInput> | null
}, "id" | "user_id">

export type EmployeesOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  external_payroll_id?: Prisma.SortOrder
  company_code?: Prisma.SortOrder
  daily_expected_hours?: Prisma.SortOrder
  first_work_day?: Prisma.SortOrder
  last_work_day?: Prisma.SortOrderInput | Prisma.SortOrder
  supervisor_id?: Prisma.SortOrderInput | Prisma.SortOrder
  job_title?: Prisma.SortOrderInput | Prisma.SortOrder
  is_supervisor?: Prisma.SortOrder
  schedule_preset_id?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.EmployeesCountOrderByAggregateInput
  _avg?: Prisma.EmployeesAvgOrderByAggregateInput
  _max?: Prisma.EmployeesMaxOrderByAggregateInput
  _min?: Prisma.EmployeesMinOrderByAggregateInput
  _sum?: Prisma.EmployeesSumOrderByAggregateInput
}

export type EmployeesScalarWhereWithAggregatesInput = {
  AND?: Prisma.EmployeesScalarWhereWithAggregatesInput | Prisma.EmployeesScalarWhereWithAggregatesInput[]
  OR?: Prisma.EmployeesScalarWhereWithAggregatesInput[]
  NOT?: Prisma.EmployeesScalarWhereWithAggregatesInput | Prisma.EmployeesScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"Employees"> | number
  user_id?: Prisma.UuidWithAggregatesFilter<"Employees"> | string
  external_payroll_id?: Prisma.IntWithAggregatesFilter<"Employees"> | number
  company_code?: Prisma.IntWithAggregatesFilter<"Employees"> | number
  daily_expected_hours?: Prisma.IntWithAggregatesFilter<"Employees"> | number
  first_work_day?: Prisma.DateTimeWithAggregatesFilter<"Employees"> | Date | string
  last_work_day?: Prisma.DateTimeNullableWithAggregatesFilter<"Employees"> | Date | string | null
  supervisor_id?: Prisma.IntNullableWithAggregatesFilter<"Employees"> | number | null
  job_title?: Prisma.StringNullableWithAggregatesFilter<"Employees"> | string | null
  is_supervisor?: Prisma.BoolWithAggregatesFilter<"Employees"> | boolean
  schedule_preset_id?: Prisma.IntNullableWithAggregatesFilter<"Employees"> | number | null
}

export type EmployeesCreateInput = {
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
  supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
  crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
  user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
  leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput
}

export type EmployeesUncheckedCreateInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
  crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
  leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput
}

export type EmployeesUpdateInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
  supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
  crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
  user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
  leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
  leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesCreateManyInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
}

export type EmployeesUpdateManyMutationInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type EmployeesUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type EmployeesNullableScalarRelationFilter = {
  is?: Prisma.EmployeesWhereInput | null
  isNot?: Prisma.EmployeesWhereInput | null
}

export type EmployeesListRelationFilter = {
  every?: Prisma.EmployeesWhereInput
  some?: Prisma.EmployeesWhereInput
  none?: Prisma.EmployeesWhereInput
}

export type EmployeesOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type EmployeesCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  external_payroll_id?: Prisma.SortOrder
  company_code?: Prisma.SortOrder
  daily_expected_hours?: Prisma.SortOrder
  first_work_day?: Prisma.SortOrder
  last_work_day?: Prisma.SortOrder
  supervisor_id?: Prisma.SortOrder
  job_title?: Prisma.SortOrder
  is_supervisor?: Prisma.SortOrder
  schedule_preset_id?: Prisma.SortOrder
}

export type EmployeesAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  external_payroll_id?: Prisma.SortOrder
  company_code?: Prisma.SortOrder
  daily_expected_hours?: Prisma.SortOrder
  supervisor_id?: Prisma.SortOrder
  schedule_preset_id?: Prisma.SortOrder
}

export type EmployeesMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  external_payroll_id?: Prisma.SortOrder
  company_code?: Prisma.SortOrder
  daily_expected_hours?: Prisma.SortOrder
  first_work_day?: Prisma.SortOrder
  last_work_day?: Prisma.SortOrder
  supervisor_id?: Prisma.SortOrder
  job_title?: Prisma.SortOrder
  is_supervisor?: Prisma.SortOrder
  schedule_preset_id?: Prisma.SortOrder
}

export type EmployeesMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  user_id?: Prisma.SortOrder
  external_payroll_id?: Prisma.SortOrder
  company_code?: Prisma.SortOrder
  daily_expected_hours?: Prisma.SortOrder
  first_work_day?: Prisma.SortOrder
  last_work_day?: Prisma.SortOrder
  supervisor_id?: Prisma.SortOrder
  job_title?: Prisma.SortOrder
  is_supervisor?: Prisma.SortOrder
  schedule_preset_id?: Prisma.SortOrder
}

export type EmployeesSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  external_payroll_id?: Prisma.SortOrder
  company_code?: Prisma.SortOrder
  daily_expected_hours?: Prisma.SortOrder
  supervisor_id?: Prisma.SortOrder
  schedule_preset_id?: Prisma.SortOrder
}

export type EmployeesScalarRelationFilter = {
  is?: Prisma.EmployeesWhereInput
  isNot?: Prisma.EmployeesWhereInput
}

export type EmployeesCreateNestedOneWithoutUserInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutUserInput, Prisma.EmployeesUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutUserInput
  connect?: Prisma.EmployeesWhereUniqueInput
}

export type EmployeesUncheckedCreateNestedOneWithoutUserInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutUserInput, Prisma.EmployeesUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutUserInput
  connect?: Prisma.EmployeesWhereUniqueInput
}

export type EmployeesUpdateOneWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutUserInput, Prisma.EmployeesUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutUserInput
  upsert?: Prisma.EmployeesUpsertWithoutUserInput
  disconnect?: Prisma.EmployeesWhereInput | boolean
  delete?: Prisma.EmployeesWhereInput | boolean
  connect?: Prisma.EmployeesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.EmployeesUpdateToOneWithWhereWithoutUserInput, Prisma.EmployeesUpdateWithoutUserInput>, Prisma.EmployeesUncheckedUpdateWithoutUserInput>
}

export type EmployeesUncheckedUpdateOneWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutUserInput, Prisma.EmployeesUncheckedCreateWithoutUserInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutUserInput
  upsert?: Prisma.EmployeesUpsertWithoutUserInput
  disconnect?: Prisma.EmployeesWhereInput | boolean
  delete?: Prisma.EmployeesWhereInput | boolean
  connect?: Prisma.EmployeesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.EmployeesUpdateToOneWithWhereWithoutUserInput, Prisma.EmployeesUpdateWithoutUserInput>, Prisma.EmployeesUncheckedUpdateWithoutUserInput>
}

export type EmployeesCreateNestedOneWithoutCrewInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutCrewInput, Prisma.EmployeesUncheckedCreateWithoutCrewInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutCrewInput
  connect?: Prisma.EmployeesWhereUniqueInput
}

export type EmployeesCreateNestedManyWithoutSupervisorInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutSupervisorInput, Prisma.EmployeesUncheckedCreateWithoutSupervisorInput> | Prisma.EmployeesCreateWithoutSupervisorInput[] | Prisma.EmployeesUncheckedCreateWithoutSupervisorInput[]
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSupervisorInput | Prisma.EmployeesCreateOrConnectWithoutSupervisorInput[]
  createMany?: Prisma.EmployeesCreateManySupervisorInputEnvelope
  connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
}

export type EmployeesUncheckedCreateNestedManyWithoutSupervisorInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutSupervisorInput, Prisma.EmployeesUncheckedCreateWithoutSupervisorInput> | Prisma.EmployeesCreateWithoutSupervisorInput[] | Prisma.EmployeesUncheckedCreateWithoutSupervisorInput[]
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSupervisorInput | Prisma.EmployeesCreateOrConnectWithoutSupervisorInput[]
  createMany?: Prisma.EmployeesCreateManySupervisorInputEnvelope
  connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
}

export type DateTimeFieldUpdateOperationsInput = {
  set?: Date | string
}

export type NullableDateTimeFieldUpdateOperationsInput = {
  set?: Date | string | null
}

export type EmployeesUpdateOneWithoutCrewNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutCrewInput, Prisma.EmployeesUncheckedCreateWithoutCrewInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutCrewInput
  upsert?: Prisma.EmployeesUpsertWithoutCrewInput
  disconnect?: Prisma.EmployeesWhereInput | boolean
  delete?: Prisma.EmployeesWhereInput | boolean
  connect?: Prisma.EmployeesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.EmployeesUpdateToOneWithWhereWithoutCrewInput, Prisma.EmployeesUpdateWithoutCrewInput>, Prisma.EmployeesUncheckedUpdateWithoutCrewInput>
}

export type EmployeesUpdateManyWithoutSupervisorNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutSupervisorInput, Prisma.EmployeesUncheckedCreateWithoutSupervisorInput> | Prisma.EmployeesCreateWithoutSupervisorInput[] | Prisma.EmployeesUncheckedCreateWithoutSupervisorInput[]
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSupervisorInput | Prisma.EmployeesCreateOrConnectWithoutSupervisorInput[]
  upsert?: Prisma.EmployeesUpsertWithWhereUniqueWithoutSupervisorInput | Prisma.EmployeesUpsertWithWhereUniqueWithoutSupervisorInput[]
  createMany?: Prisma.EmployeesCreateManySupervisorInputEnvelope
  set?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  disconnect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  delete?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  update?: Prisma.EmployeesUpdateWithWhereUniqueWithoutSupervisorInput | Prisma.EmployeesUpdateWithWhereUniqueWithoutSupervisorInput[]
  updateMany?: Prisma.EmployeesUpdateManyWithWhereWithoutSupervisorInput | Prisma.EmployeesUpdateManyWithWhereWithoutSupervisorInput[]
  deleteMany?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[]
}

export type NullableIntFieldUpdateOperationsInput = {
  set?: number | null
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutSupervisorInput, Prisma.EmployeesUncheckedCreateWithoutSupervisorInput> | Prisma.EmployeesCreateWithoutSupervisorInput[] | Prisma.EmployeesUncheckedCreateWithoutSupervisorInput[]
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSupervisorInput | Prisma.EmployeesCreateOrConnectWithoutSupervisorInput[]
  upsert?: Prisma.EmployeesUpsertWithWhereUniqueWithoutSupervisorInput | Prisma.EmployeesUpsertWithWhereUniqueWithoutSupervisorInput[]
  createMany?: Prisma.EmployeesCreateManySupervisorInputEnvelope
  set?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  disconnect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  delete?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  update?: Prisma.EmployeesUpdateWithWhereUniqueWithoutSupervisorInput | Prisma.EmployeesUpdateWithWhereUniqueWithoutSupervisorInput[]
  updateMany?: Prisma.EmployeesUpdateManyWithWhereWithoutSupervisorInput | Prisma.EmployeesUpdateManyWithWhereWithoutSupervisorInput[]
  deleteMany?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[]
}

export type EmployeesCreateNestedOneWithoutLeave_requestInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutLeave_requestInput, Prisma.EmployeesUncheckedCreateWithoutLeave_requestInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutLeave_requestInput
  connect?: Prisma.EmployeesWhereUniqueInput
}

export type EmployeesUpdateOneRequiredWithoutLeave_requestNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutLeave_requestInput, Prisma.EmployeesUncheckedCreateWithoutLeave_requestInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutLeave_requestInput
  upsert?: Prisma.EmployeesUpsertWithoutLeave_requestInput
  connect?: Prisma.EmployeesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.EmployeesUpdateToOneWithWhereWithoutLeave_requestInput, Prisma.EmployeesUpdateWithoutLeave_requestInput>, Prisma.EmployeesUncheckedUpdateWithoutLeave_requestInput>
}

export type EmployeesCreateNestedOneWithoutTimesheetInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutTimesheetInput, Prisma.EmployeesUncheckedCreateWithoutTimesheetInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutTimesheetInput
  connect?: Prisma.EmployeesWhereUniqueInput
}

export type EmployeesUpdateOneRequiredWithoutTimesheetNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutTimesheetInput, Prisma.EmployeesUncheckedCreateWithoutTimesheetInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutTimesheetInput
  upsert?: Prisma.EmployeesUpsertWithoutTimesheetInput
  connect?: Prisma.EmployeesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.EmployeesUpdateToOneWithWhereWithoutTimesheetInput, Prisma.EmployeesUpdateWithoutTimesheetInput>, Prisma.EmployeesUncheckedUpdateWithoutTimesheetInput>
}

export type EmployeesCreateNestedManyWithoutSchedule_presetInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutSchedule_presetInput, Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput> | Prisma.EmployeesCreateWithoutSchedule_presetInput[] | Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput[]
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput | Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput[]
  createMany?: Prisma.EmployeesCreateManySchedule_presetInputEnvelope
  connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
}

export type EmployeesUncheckedCreateNestedManyWithoutSchedule_presetInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutSchedule_presetInput, Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput> | Prisma.EmployeesCreateWithoutSchedule_presetInput[] | Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput[]
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput | Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput[]
  createMany?: Prisma.EmployeesCreateManySchedule_presetInputEnvelope
  connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
}

export type EmployeesUpdateManyWithoutSchedule_presetNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutSchedule_presetInput, Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput> | Prisma.EmployeesCreateWithoutSchedule_presetInput[] | Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput[]
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput | Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput[]
  upsert?: Prisma.EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput | Prisma.EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput[]
  createMany?: Prisma.EmployeesCreateManySchedule_presetInputEnvelope
  set?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  disconnect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  delete?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  update?: Prisma.EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput | Prisma.EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput[]
  updateMany?: Prisma.EmployeesUpdateManyWithWhereWithoutSchedule_presetInput | Prisma.EmployeesUpdateManyWithWhereWithoutSchedule_presetInput[]
  deleteMany?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[]
}

export type EmployeesUncheckedUpdateManyWithoutSchedule_presetNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutSchedule_presetInput, Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput> | Prisma.EmployeesCreateWithoutSchedule_presetInput[] | Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput[]
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput | Prisma.EmployeesCreateOrConnectWithoutSchedule_presetInput[]
  upsert?: Prisma.EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput | Prisma.EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput[]
  createMany?: Prisma.EmployeesCreateManySchedule_presetInputEnvelope
  set?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  disconnect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  delete?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  connect?: Prisma.EmployeesWhereUniqueInput | Prisma.EmployeesWhereUniqueInput[]
  update?: Prisma.EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput | Prisma.EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput[]
  updateMany?: Prisma.EmployeesUpdateManyWithWhereWithoutSchedule_presetInput | Prisma.EmployeesUpdateManyWithWhereWithoutSchedule_presetInput[]
  deleteMany?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[]
}

export type EmployeesCreateNestedOneWithoutPaid_time_offInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutPaid_time_offInput, Prisma.EmployeesUncheckedCreateWithoutPaid_time_offInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutPaid_time_offInput
  connect?: Prisma.EmployeesWhereUniqueInput
}

export type EmployeesUpdateOneRequiredWithoutPaid_time_offNestedInput = {
  create?: Prisma.XOR<Prisma.EmployeesCreateWithoutPaid_time_offInput, Prisma.EmployeesUncheckedCreateWithoutPaid_time_offInput>
  connectOrCreate?: Prisma.EmployeesCreateOrConnectWithoutPaid_time_offInput
  upsert?: Prisma.EmployeesUpsertWithoutPaid_time_offInput
  connect?: Prisma.EmployeesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.EmployeesUpdateToOneWithWhereWithoutPaid_time_offInput, Prisma.EmployeesUpdateWithoutPaid_time_offInput>, Prisma.EmployeesUncheckedUpdateWithoutPaid_time_offInput>
}

export type EmployeesCreateWithoutUserInput = {
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
  supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
  crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
  leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput
}

export type EmployeesUncheckedCreateWithoutUserInput = {
  id?: number
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
  crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
  leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput
}

export type EmployeesCreateOrConnectWithoutUserInput = {
  where: Prisma.EmployeesWhereUniqueInput
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutUserInput, Prisma.EmployeesUncheckedCreateWithoutUserInput>
}

export type EmployeesUpsertWithoutUserInput = {
  update: Prisma.XOR<Prisma.EmployeesUpdateWithoutUserInput, Prisma.EmployeesUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutUserInput, Prisma.EmployeesUncheckedCreateWithoutUserInput>
  where?: Prisma.EmployeesWhereInput
}

export type EmployeesUpdateToOneWithWhereWithoutUserInput = {
  where?: Prisma.EmployeesWhereInput
  data: Prisma.XOR<Prisma.EmployeesUpdateWithoutUserInput, Prisma.EmployeesUncheckedUpdateWithoutUserInput>
}

export type EmployeesUpdateWithoutUserInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
  supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
  crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
  leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateWithoutUserInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
  leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesCreateWithoutCrewInput = {
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
  supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
  user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
  leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput
}

export type EmployeesUncheckedCreateWithoutCrewInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
  leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput
}

export type EmployeesCreateOrConnectWithoutCrewInput = {
  where: Prisma.EmployeesWhereUniqueInput
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutCrewInput, Prisma.EmployeesUncheckedCreateWithoutCrewInput>
}

export type EmployeesCreateWithoutSupervisorInput = {
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
  crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
  user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
  leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput
}

export type EmployeesUncheckedCreateWithoutSupervisorInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
  crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
  leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput
}

export type EmployeesCreateOrConnectWithoutSupervisorInput = {
  where: Prisma.EmployeesWhereUniqueInput
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutSupervisorInput, Prisma.EmployeesUncheckedCreateWithoutSupervisorInput>
}

export type EmployeesCreateManySupervisorInputEnvelope = {
  data: Prisma.EmployeesCreateManySupervisorInput | Prisma.EmployeesCreateManySupervisorInput[]
  skipDuplicates?: boolean
}

export type EmployeesUpsertWithoutCrewInput = {
  update: Prisma.XOR<Prisma.EmployeesUpdateWithoutCrewInput, Prisma.EmployeesUncheckedUpdateWithoutCrewInput>
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutCrewInput, Prisma.EmployeesUncheckedCreateWithoutCrewInput>
  where?: Prisma.EmployeesWhereInput
}

export type EmployeesUpdateToOneWithWhereWithoutCrewInput = {
  where?: Prisma.EmployeesWhereInput
  data: Prisma.XOR<Prisma.EmployeesUpdateWithoutCrewInput, Prisma.EmployeesUncheckedUpdateWithoutCrewInput>
}

export type EmployeesUpdateWithoutCrewInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
  supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
  user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
  leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateWithoutCrewInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUpsertWithWhereUniqueWithoutSupervisorInput = {
  where: Prisma.EmployeesWhereUniqueInput
  update: Prisma.XOR<Prisma.EmployeesUpdateWithoutSupervisorInput, Prisma.EmployeesUncheckedUpdateWithoutSupervisorInput>
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutSupervisorInput, Prisma.EmployeesUncheckedCreateWithoutSupervisorInput>
}

export type EmployeesUpdateWithWhereUniqueWithoutSupervisorInput = {
  where: Prisma.EmployeesWhereUniqueInput
  data: Prisma.XOR<Prisma.EmployeesUpdateWithoutSupervisorInput, Prisma.EmployeesUncheckedUpdateWithoutSupervisorInput>
}

export type EmployeesUpdateManyWithWhereWithoutSupervisorInput = {
  where: Prisma.EmployeesScalarWhereInput
  data: Prisma.XOR<Prisma.EmployeesUpdateManyMutationInput, Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorInput>
}

export type EmployeesScalarWhereInput = {
  AND?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[]
  OR?: Prisma.EmployeesScalarWhereInput[]
  NOT?: Prisma.EmployeesScalarWhereInput | Prisma.EmployeesScalarWhereInput[]
  id?: Prisma.IntFilter<"Employees"> | number
  user_id?: Prisma.UuidFilter<"Employees"> | string
  external_payroll_id?: Prisma.IntFilter<"Employees"> | number
  company_code?: Prisma.IntFilter<"Employees"> | number
  daily_expected_hours?: Prisma.IntFilter<"Employees"> | number
  first_work_day?: Prisma.DateTimeFilter<"Employees"> | Date | string
  last_work_day?: Prisma.DateTimeNullableFilter<"Employees"> | Date | string | null
  supervisor_id?: Prisma.IntNullableFilter<"Employees"> | number | null
  job_title?: Prisma.StringNullableFilter<"Employees"> | string | null
  is_supervisor?: Prisma.BoolFilter<"Employees"> | boolean
  schedule_preset_id?: Prisma.IntNullableFilter<"Employees"> | number | null
}

export type EmployeesCreateWithoutLeave_requestInput = {
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
  supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
  crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
  user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput
}

export type EmployeesUncheckedCreateWithoutLeave_requestInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
  crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
  timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput
}

export type EmployeesCreateOrConnectWithoutLeave_requestInput = {
  where: Prisma.EmployeesWhereUniqueInput
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutLeave_requestInput, Prisma.EmployeesUncheckedCreateWithoutLeave_requestInput>
}

export type EmployeesUpsertWithoutLeave_requestInput = {
  update: Prisma.XOR<Prisma.EmployeesUpdateWithoutLeave_requestInput, Prisma.EmployeesUncheckedUpdateWithoutLeave_requestInput>
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutLeave_requestInput, Prisma.EmployeesUncheckedCreateWithoutLeave_requestInput>
  where?: Prisma.EmployeesWhereInput
}

export type EmployeesUpdateToOneWithWhereWithoutLeave_requestInput = {
  where?: Prisma.EmployeesWhereInput
  data: Prisma.XOR<Prisma.EmployeesUpdateWithoutLeave_requestInput, Prisma.EmployeesUncheckedUpdateWithoutLeave_requestInput>
}

export type EmployeesUpdateWithoutLeave_requestInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
  supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
  crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
  user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateWithoutLeave_requestInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
  timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesCreateWithoutTimesheetInput = {
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
  supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
  crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
  user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
  leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput
}

export type EmployeesUncheckedCreateWithoutTimesheetInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
  crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
  leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput
}

export type EmployeesCreateOrConnectWithoutTimesheetInput = {
  where: Prisma.EmployeesWhereUniqueInput
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutTimesheetInput, Prisma.EmployeesUncheckedCreateWithoutTimesheetInput>
}

export type EmployeesUpsertWithoutTimesheetInput = {
  update: Prisma.XOR<Prisma.EmployeesUpdateWithoutTimesheetInput, Prisma.EmployeesUncheckedUpdateWithoutTimesheetInput>
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutTimesheetInput, Prisma.EmployeesUncheckedCreateWithoutTimesheetInput>
  where?: Prisma.EmployeesWhereInput
}

export type EmployeesUpdateToOneWithWhereWithoutTimesheetInput = {
  where?: Prisma.EmployeesWhereInput
  data: Prisma.XOR<Prisma.EmployeesUpdateWithoutTimesheetInput, Prisma.EmployeesUncheckedUpdateWithoutTimesheetInput>
}

export type EmployeesUpdateWithoutTimesheetInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
  supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
  crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
  user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
  leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateWithoutTimesheetInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
  leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesCreateWithoutSchedule_presetInput = {
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
  crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
  user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
  leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffCreateNestedOneWithoutEmployeeInput
}

export type EmployeesUncheckedCreateWithoutSchedule_presetInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
  crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
  leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedCreateNestedOneWithoutEmployeeInput
}

export type EmployeesCreateOrConnectWithoutSchedule_presetInput = {
  where: Prisma.EmployeesWhereUniqueInput
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutSchedule_presetInput, Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput>
}

export type EmployeesCreateManySchedule_presetInputEnvelope = {
  data: Prisma.EmployeesCreateManySchedule_presetInput | Prisma.EmployeesCreateManySchedule_presetInput[]
  skipDuplicates?: boolean
}

export type EmployeesUpsertWithWhereUniqueWithoutSchedule_presetInput = {
  where: Prisma.EmployeesWhereUniqueInput
  update: Prisma.XOR<Prisma.EmployeesUpdateWithoutSchedule_presetInput, Prisma.EmployeesUncheckedUpdateWithoutSchedule_presetInput>
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutSchedule_presetInput, Prisma.EmployeesUncheckedCreateWithoutSchedule_presetInput>
}

export type EmployeesUpdateWithWhereUniqueWithoutSchedule_presetInput = {
  where: Prisma.EmployeesWhereUniqueInput
  data: Prisma.XOR<Prisma.EmployeesUpdateWithoutSchedule_presetInput, Prisma.EmployeesUncheckedUpdateWithoutSchedule_presetInput>
}

export type EmployeesUpdateManyWithWhereWithoutSchedule_presetInput = {
  where: Prisma.EmployeesScalarWhereInput
  data: Prisma.XOR<Prisma.EmployeesUpdateManyMutationInput, Prisma.EmployeesUncheckedUpdateManyWithoutSchedule_presetInput>
}

export type EmployeesCreateWithoutPaid_time_offInput = {
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset?: Prisma.SchedulePresetsCreateNestedOneWithoutEmployeesInput
  supervisor?: Prisma.EmployeesCreateNestedOneWithoutCrewInput
  crew?: Prisma.EmployeesCreateNestedManyWithoutSupervisorInput
  user: Prisma.UsersCreateNestedOneWithoutEmployeeInput
  leave_request?: Prisma.LeaveRequestsCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsCreateNestedManyWithoutEmployeeInput
}

export type EmployeesUncheckedCreateWithoutPaid_time_offInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
  crew?: Prisma.EmployeesUncheckedCreateNestedManyWithoutSupervisorInput
  leave_request?: Prisma.LeaveRequestsUncheckedCreateNestedManyWithoutEmployeeInput
  timesheet?: Prisma.TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput
}

export type EmployeesCreateOrConnectWithoutPaid_time_offInput = {
  where: Prisma.EmployeesWhereUniqueInput
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutPaid_time_offInput, Prisma.EmployeesUncheckedCreateWithoutPaid_time_offInput>
}

export type EmployeesUpsertWithoutPaid_time_offInput = {
  update: Prisma.XOR<Prisma.EmployeesUpdateWithoutPaid_time_offInput, Prisma.EmployeesUncheckedUpdateWithoutPaid_time_offInput>
  create: Prisma.XOR<Prisma.EmployeesCreateWithoutPaid_time_offInput, Prisma.EmployeesUncheckedCreateWithoutPaid_time_offInput>
  where?: Prisma.EmployeesWhereInput
}

export type EmployeesUpdateToOneWithWhereWithoutPaid_time_offInput = {
  where?: Prisma.EmployeesWhereInput
  data: Prisma.XOR<Prisma.EmployeesUpdateWithoutPaid_time_offInput, Prisma.EmployeesUncheckedUpdateWithoutPaid_time_offInput>
}

export type EmployeesUpdateWithoutPaid_time_offInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
  supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
  crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
  user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
  leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateWithoutPaid_time_offInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
  leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
}

export type EmployeesCreateManySupervisorInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  job_title?: string | null
  is_supervisor?: boolean
  schedule_preset_id?: number | null
}

export type EmployeesUpdateWithoutSupervisorInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset?: Prisma.SchedulePresetsUpdateOneWithoutEmployeesNestedInput
  crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
  user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
  leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateWithoutSupervisorInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
  leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateManyWithoutSupervisorInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  schedule_preset_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}

export type EmployeesCreateManySchedule_presetInput = {
  id?: number
  user_id: string
  external_payroll_id: number
  company_code: number
  daily_expected_hours: number
  first_work_day: Date | string
  last_work_day?: Date | string | null
  supervisor_id?: number | null
  job_title?: string | null
  is_supervisor?: boolean
}

export type EmployeesUpdateWithoutSchedule_presetInput = {
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  supervisor?: Prisma.EmployeesUpdateOneWithoutCrewNestedInput
  crew?: Prisma.EmployeesUpdateManyWithoutSupervisorNestedInput
  user?: Prisma.UsersUpdateOneRequiredWithoutEmployeeNestedInput
  leave_request?: Prisma.LeaveRequestsUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateWithoutSchedule_presetInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
  crew?: Prisma.EmployeesUncheckedUpdateManyWithoutSupervisorNestedInput
  leave_request?: Prisma.LeaveRequestsUncheckedUpdateManyWithoutEmployeeNestedInput
  timesheet?: Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput
  paid_time_off?: Prisma.PaidTimeOffUncheckedUpdateOneWithoutEmployeeNestedInput
}

export type EmployeesUncheckedUpdateManyWithoutSchedule_presetInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  user_id?: Prisma.StringFieldUpdateOperationsInput | string
  external_payroll_id?: Prisma.IntFieldUpdateOperationsInput | number
  company_code?: Prisma.IntFieldUpdateOperationsInput | number
  daily_expected_hours?: Prisma.IntFieldUpdateOperationsInput | number
  first_work_day?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  last_work_day?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  supervisor_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  job_title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  is_supervisor?: Prisma.BoolFieldUpdateOperationsInput | boolean
}


/**
 * Count Type EmployeesCountOutputType
 */

export type EmployeesCountOutputType = {
  crew: number
  leave_request: number
  timesheet: number
}

export type EmployeesCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  crew?: boolean | EmployeesCountOutputTypeCountCrewArgs
  leave_request?: boolean | EmployeesCountOutputTypeCountLeave_requestArgs
  timesheet?: boolean | EmployeesCountOutputTypeCountTimesheetArgs
}

/**
 * EmployeesCountOutputType without action
 */
export type EmployeesCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the EmployeesCountOutputType
   */
  select?: Prisma.EmployeesCountOutputTypeSelect<ExtArgs> | null
}

/**
 * EmployeesCountOutputType without action
 */
export type EmployeesCountOutputTypeCountCrewArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.EmployeesWhereInput
}

/**
 * EmployeesCountOutputType without action
 */
export type EmployeesCountOutputTypeCountLeave_requestArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.LeaveRequestsWhereInput
}

/**
 * EmployeesCountOutputType without action
 */
export type EmployeesCountOutputTypeCountTimesheetArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.TimesheetsWhereInput
}


export type EmployeesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  user_id?: boolean
  external_payroll_id?: boolean
  company_code?: boolean
  daily_expected_hours?: boolean
  first_work_day?: boolean
  last_work_day?: boolean
  supervisor_id?: boolean
  job_title?: boolean
  is_supervisor?: boolean
  schedule_preset_id?: boolean
  schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
  supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
  crew?: boolean | Prisma.Employees$crewArgs<ExtArgs>
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
  leave_request?: boolean | Prisma.Employees$leave_requestArgs<ExtArgs>
  timesheet?: boolean | Prisma.Employees$timesheetArgs<ExtArgs>
  paid_time_off?: boolean | Prisma.Employees$paid_time_offArgs<ExtArgs>
  _count?: boolean | Prisma.EmployeesCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["employees"]>

export type EmployeesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  user_id?: boolean
  external_payroll_id?: boolean
  company_code?: boolean
  daily_expected_hours?: boolean
  first_work_day?: boolean
  last_work_day?: boolean
  supervisor_id?: boolean
  job_title?: boolean
  is_supervisor?: boolean
  schedule_preset_id?: boolean
  schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
  supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["employees"]>

export type EmployeesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  user_id?: boolean
  external_payroll_id?: boolean
  company_code?: boolean
  daily_expected_hours?: boolean
  first_work_day?: boolean
  last_work_day?: boolean
  supervisor_id?: boolean
  job_title?: boolean
  is_supervisor?: boolean
  schedule_preset_id?: boolean
  schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
  supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}, ExtArgs["result"]["employees"]>

export type EmployeesSelectScalar = {
  id?: boolean
  user_id?: boolean
  external_payroll_id?: boolean
  company_code?: boolean
  daily_expected_hours?: boolean
  first_work_day?: boolean
  last_work_day?: boolean
  supervisor_id?: boolean
  job_title?: boolean
  is_supervisor?: boolean
  schedule_preset_id?: boolean
}

export type EmployeesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "external_payroll_id" | "company_code" | "daily_expected_hours" | "first_work_day" | "last_work_day" | "supervisor_id" | "job_title" | "is_supervisor" | "schedule_preset_id", ExtArgs["result"]["employees"]>
export type EmployeesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
  supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
  crew?: boolean | Prisma.Employees$crewArgs<ExtArgs>
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
  leave_request?: boolean | Prisma.Employees$leave_requestArgs<ExtArgs>
  timesheet?: boolean | Prisma.Employees$timesheetArgs<ExtArgs>
  paid_time_off?: boolean | Prisma.Employees$paid_time_offArgs<ExtArgs>
  _count?: boolean | Prisma.EmployeesCountOutputTypeDefaultArgs<ExtArgs>
}
export type EmployeesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
  supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}
export type EmployeesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  schedule_preset?: boolean | Prisma.Employees$schedule_presetArgs<ExtArgs>
  supervisor?: boolean | Prisma.Employees$supervisorArgs<ExtArgs>
  user?: boolean | Prisma.UsersDefaultArgs<ExtArgs>
}

export type $EmployeesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Employees"
  objects: {
    schedule_preset: Prisma.$SchedulePresetsPayload<ExtArgs> | null
    supervisor: Prisma.$EmployeesPayload<ExtArgs> | null
    crew: Prisma.$EmployeesPayload<ExtArgs>[]
    user: Prisma.$UsersPayload<ExtArgs>
    leave_request: Prisma.$LeaveRequestsPayload<ExtArgs>[]
    timesheet: Prisma.$TimesheetsPayload<ExtArgs>[]
    paid_time_off: Prisma.$PaidTimeOffPayload<ExtArgs> | null
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    user_id: string
    external_payroll_id: number
    company_code: number
    daily_expected_hours: number
    first_work_day: Date
    last_work_day: Date | null
    supervisor_id: number | null
    job_title: string | null
    is_supervisor: boolean
    schedule_preset_id: number | null
  }, ExtArgs["result"]["employees"]>
  composites: {}
}

export type EmployeesGetPayload<S extends boolean | null | undefined | EmployeesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EmployeesPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Employees.
 * 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__EmployeesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  schedule_preset<T extends Prisma.Employees$schedule_presetArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Employees$schedule_presetArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  supervisor<T extends Prisma.Employees$supervisorArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Employees$supervisorArgs<ExtArgs>>): Prisma.Prisma__EmployeesClient<runtime.Types.Result.GetResult<Prisma.$EmployeesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  crew<T extends Prisma.Employees$crewArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Employees$crewArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EmployeesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  user<T extends Prisma.UsersDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UsersDefaultArgs<ExtArgs>>): Prisma.Prisma__UsersClient<runtime.Types.Result.GetResult<Prisma.$UsersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  leave_request<T extends Prisma.Employees$leave_requestArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Employees$leave_requestArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LeaveRequestsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  timesheet<T extends Prisma.Employees$timesheetArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Employees$timesheetArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  paid_time_off<T extends Prisma.Employees$paid_time_offArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Employees$paid_time_offArgs<ExtArgs>>): Prisma.Prisma__PaidTimeOffClient<runtime.Types.Result.GetResult<Prisma.$PaidTimeOffPayload<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 Employees model
 */
export interface EmployeesFieldRefs {
  readonly id: Prisma.FieldRef<"Employees", 'Int'>
  readonly user_id: Prisma.FieldRef<"Employees", 'String'>
  readonly external_payroll_id: Prisma.FieldRef<"Employees", 'Int'>
  readonly company_code: Prisma.FieldRef<"Employees", 'Int'>
  readonly daily_expected_hours: Prisma.FieldRef<"Employees", 'Int'>
  readonly first_work_day: Prisma.FieldRef<"Employees", 'DateTime'>
  readonly last_work_day: Prisma.FieldRef<"Employees", 'DateTime'>
  readonly supervisor_id: Prisma.FieldRef<"Employees", 'Int'>
  readonly job_title: Prisma.FieldRef<"Employees", 'String'>
  readonly is_supervisor: Prisma.FieldRef<"Employees", 'Boolean'>
  readonly schedule_preset_id: Prisma.FieldRef<"Employees", 'Int'>
}
    

// Custom InputTypes
/**
 * Employees findUnique
 */
export type EmployeesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesInclude<ExtArgs> | null
  /**
   * Filter, which Employees to fetch.
   */
  where: Prisma.EmployeesWhereUniqueInput
}

/**
 * Employees findUniqueOrThrow
 */
export type EmployeesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesInclude<ExtArgs> | null
  /**
   * Filter, which Employees to fetch.
   */
  where: Prisma.EmployeesWhereUniqueInput
}

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

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

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

/**
 * Employees create
 */
export type EmployeesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesInclude<ExtArgs> | null
  /**
   * The data needed to create a Employees.
   */
  data: Prisma.XOR<Prisma.EmployeesCreateInput, Prisma.EmployeesUncheckedCreateInput>
}

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

/**
 * Employees createManyAndReturn
 */
export type EmployeesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * The data used to create many Employees.
   */
  data: Prisma.EmployeesCreateManyInput | Prisma.EmployeesCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Employees update
 */
export type EmployeesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesInclude<ExtArgs> | null
  /**
   * The data needed to update a Employees.
   */
  data: Prisma.XOR<Prisma.EmployeesUpdateInput, Prisma.EmployeesUncheckedUpdateInput>
  /**
   * Choose, which Employees to update.
   */
  where: Prisma.EmployeesWhereUniqueInput
}

/**
 * Employees updateMany
 */
export type EmployeesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Employees.
   */
  data: Prisma.XOR<Prisma.EmployeesUpdateManyMutationInput, Prisma.EmployeesUncheckedUpdateManyInput>
  /**
   * Filter which Employees to update
   */
  where?: Prisma.EmployeesWhereInput
  /**
   * Limit how many Employees to update.
   */
  limit?: number
}

/**
 * Employees updateManyAndReturn
 */
export type EmployeesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * The data used to update Employees.
   */
  data: Prisma.XOR<Prisma.EmployeesUpdateManyMutationInput, Prisma.EmployeesUncheckedUpdateManyInput>
  /**
   * Filter which Employees to update
   */
  where?: Prisma.EmployeesWhereInput
  /**
   * Limit how many Employees to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Employees upsert
 */
export type EmployeesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesInclude<ExtArgs> | null
  /**
   * The filter to search for the Employees to update in case it exists.
   */
  where: Prisma.EmployeesWhereUniqueInput
  /**
   * In case the Employees found by the `where` argument doesn't exist, create a new Employees with this data.
   */
  create: Prisma.XOR<Prisma.EmployeesCreateInput, Prisma.EmployeesUncheckedCreateInput>
  /**
   * In case the Employees was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.EmployeesUpdateInput, Prisma.EmployeesUncheckedUpdateInput>
}

/**
 * Employees delete
 */
export type EmployeesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesInclude<ExtArgs> | null
  /**
   * Filter which Employees to delete.
   */
  where: Prisma.EmployeesWhereUniqueInput
}

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

/**
 * Employees.schedule_preset
 */
export type Employees$schedule_presetArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the SchedulePresets
   */
  select?: Prisma.SchedulePresetsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the SchedulePresets
   */
  omit?: Prisma.SchedulePresetsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SchedulePresetsInclude<ExtArgs> | null
  where?: Prisma.SchedulePresetsWhereInput
}

/**
 * Employees.supervisor
 */
export type Employees$supervisorArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesInclude<ExtArgs> | null
  where?: Prisma.EmployeesWhereInput
}

/**
 * Employees.crew
 */
export type Employees$crewArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Employees
   */
  select?: Prisma.EmployeesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Employees
   */
  omit?: Prisma.EmployeesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EmployeesInclude<ExtArgs> | null
  where?: Prisma.EmployeesWhereInput
  orderBy?: Prisma.EmployeesOrderByWithRelationInput | Prisma.EmployeesOrderByWithRelationInput[]
  cursor?: Prisma.EmployeesWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.EmployeesScalarFieldEnum | Prisma.EmployeesScalarFieldEnum[]
}

/**
 * Employees.leave_request
 */
export type Employees$leave_requestArgs<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
  where?: Prisma.LeaveRequestsWhereInput
  orderBy?: Prisma.LeaveRequestsOrderByWithRelationInput | Prisma.LeaveRequestsOrderByWithRelationInput[]
  cursor?: Prisma.LeaveRequestsWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.LeaveRequestsScalarFieldEnum | Prisma.LeaveRequestsScalarFieldEnum[]
}

/**
 * Employees.timesheet
 */
export type Employees$timesheetArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Timesheets
   */
  select?: Prisma.TimesheetsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Timesheets
   */
  omit?: Prisma.TimesheetsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.TimesheetsInclude<ExtArgs> | null
  where?: Prisma.TimesheetsWhereInput
  orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[]
  cursor?: Prisma.TimesheetsWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.TimesheetsScalarFieldEnum | Prisma.TimesheetsScalarFieldEnum[]
}

/**
 * Employees.paid_time_off
 */
export type Employees$paid_time_offArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the PaidTimeOff
   */
  select?: Prisma.PaidTimeOffSelect<ExtArgs> | null
  /**
   * Omit specific fields from the PaidTimeOff
   */
  omit?: Prisma.PaidTimeOffOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.PaidTimeOffInclude<ExtArgs> | null
  where?: Prisma.PaidTimeOffWhereInput
}

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