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

export type AggregateShifts = {
  _count: ShiftsCountAggregateOutputType | null
  _avg: ShiftsAvgAggregateOutputType | null
  _sum: ShiftsSumAggregateOutputType | null
  _min: ShiftsMinAggregateOutputType | null
  _max: ShiftsMaxAggregateOutputType | null
}

export type ShiftsAvgAggregateOutputType = {
  id: number | null
  timesheet_id: number | null
  bank_code_id: number | null
}

export type ShiftsSumAggregateOutputType = {
  id: number | null
  timesheet_id: number | null
  bank_code_id: number | null
}

export type ShiftsMinAggregateOutputType = {
  id: number | null
  timesheet_id: number | null
  date: Date | null
  start_time: Date | null
  end_time: Date | null
  bank_code_id: number | null
  is_approved: boolean | null
  is_remote: boolean | null
  comment: string | null
}

export type ShiftsMaxAggregateOutputType = {
  id: number | null
  timesheet_id: number | null
  date: Date | null
  start_time: Date | null
  end_time: Date | null
  bank_code_id: number | null
  is_approved: boolean | null
  is_remote: boolean | null
  comment: string | null
}

export type ShiftsCountAggregateOutputType = {
  id: number
  timesheet_id: number
  date: number
  start_time: number
  end_time: number
  bank_code_id: number
  is_approved: number
  is_remote: number
  comment: number
  _all: number
}


export type ShiftsAvgAggregateInputType = {
  id?: true
  timesheet_id?: true
  bank_code_id?: true
}

export type ShiftsSumAggregateInputType = {
  id?: true
  timesheet_id?: true
  bank_code_id?: true
}

export type ShiftsMinAggregateInputType = {
  id?: true
  timesheet_id?: true
  date?: true
  start_time?: true
  end_time?: true
  bank_code_id?: true
  is_approved?: true
  is_remote?: true
  comment?: true
}

export type ShiftsMaxAggregateInputType = {
  id?: true
  timesheet_id?: true
  date?: true
  start_time?: true
  end_time?: true
  bank_code_id?: true
  is_approved?: true
  is_remote?: true
  comment?: true
}

export type ShiftsCountAggregateInputType = {
  id?: true
  timesheet_id?: true
  date?: true
  start_time?: true
  end_time?: true
  bank_code_id?: true
  is_approved?: true
  is_remote?: true
  comment?: true
  _all?: true
}

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

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




export type ShiftsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ShiftsWhereInput
  orderBy?: Prisma.ShiftsOrderByWithAggregationInput | Prisma.ShiftsOrderByWithAggregationInput[]
  by: Prisma.ShiftsScalarFieldEnum[] | Prisma.ShiftsScalarFieldEnum
  having?: Prisma.ShiftsScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ShiftsCountAggregateInputType | true
  _avg?: ShiftsAvgAggregateInputType
  _sum?: ShiftsSumAggregateInputType
  _min?: ShiftsMinAggregateInputType
  _max?: ShiftsMaxAggregateInputType
}

export type ShiftsGroupByOutputType = {
  id: number
  timesheet_id: number
  date: Date
  start_time: Date
  end_time: Date
  bank_code_id: number
  is_approved: boolean
  is_remote: boolean
  comment: string | null
  _count: ShiftsCountAggregateOutputType | null
  _avg: ShiftsAvgAggregateOutputType | null
  _sum: ShiftsSumAggregateOutputType | null
  _min: ShiftsMinAggregateOutputType | null
  _max: ShiftsMaxAggregateOutputType | null
}

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



export type ShiftsWhereInput = {
  AND?: Prisma.ShiftsWhereInput | Prisma.ShiftsWhereInput[]
  OR?: Prisma.ShiftsWhereInput[]
  NOT?: Prisma.ShiftsWhereInput | Prisma.ShiftsWhereInput[]
  id?: Prisma.IntFilter<"Shifts"> | number
  timesheet_id?: Prisma.IntFilter<"Shifts"> | number
  date?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  start_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  end_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  bank_code_id?: Prisma.IntFilter<"Shifts"> | number
  is_approved?: Prisma.BoolFilter<"Shifts"> | boolean
  is_remote?: Prisma.BoolFilter<"Shifts"> | boolean
  comment?: Prisma.StringNullableFilter<"Shifts"> | string | null
  bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
  timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
  archive?: Prisma.ShiftsArchiveListRelationFilter
}

export type ShiftsOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  timesheet_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
  bank_code_id?: Prisma.SortOrder
  is_approved?: Prisma.SortOrder
  is_remote?: Prisma.SortOrder
  comment?: Prisma.SortOrderInput | Prisma.SortOrder
  bank_code?: Prisma.BankCodesOrderByWithRelationInput
  timesheet?: Prisma.TimesheetsOrderByWithRelationInput
  archive?: Prisma.ShiftsArchiveOrderByRelationAggregateInput
}

export type ShiftsWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.ShiftsWhereInput | Prisma.ShiftsWhereInput[]
  OR?: Prisma.ShiftsWhereInput[]
  NOT?: Prisma.ShiftsWhereInput | Prisma.ShiftsWhereInput[]
  timesheet_id?: Prisma.IntFilter<"Shifts"> | number
  date?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  start_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  end_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  bank_code_id?: Prisma.IntFilter<"Shifts"> | number
  is_approved?: Prisma.BoolFilter<"Shifts"> | boolean
  is_remote?: Prisma.BoolFilter<"Shifts"> | boolean
  comment?: Prisma.StringNullableFilter<"Shifts"> | string | null
  bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
  timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
  archive?: Prisma.ShiftsArchiveListRelationFilter
}, "id">

export type ShiftsOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  timesheet_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
  bank_code_id?: Prisma.SortOrder
  is_approved?: Prisma.SortOrder
  is_remote?: Prisma.SortOrder
  comment?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.ShiftsCountOrderByAggregateInput
  _avg?: Prisma.ShiftsAvgOrderByAggregateInput
  _max?: Prisma.ShiftsMaxOrderByAggregateInput
  _min?: Prisma.ShiftsMinOrderByAggregateInput
  _sum?: Prisma.ShiftsSumOrderByAggregateInput
}

export type ShiftsScalarWhereWithAggregatesInput = {
  AND?: Prisma.ShiftsScalarWhereWithAggregatesInput | Prisma.ShiftsScalarWhereWithAggregatesInput[]
  OR?: Prisma.ShiftsScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ShiftsScalarWhereWithAggregatesInput | Prisma.ShiftsScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"Shifts"> | number
  timesheet_id?: Prisma.IntWithAggregatesFilter<"Shifts"> | number
  date?: Prisma.DateTimeWithAggregatesFilter<"Shifts"> | Date | string
  start_time?: Prisma.DateTimeWithAggregatesFilter<"Shifts"> | Date | string
  end_time?: Prisma.DateTimeWithAggregatesFilter<"Shifts"> | Date | string
  bank_code_id?: Prisma.IntWithAggregatesFilter<"Shifts"> | number
  is_approved?: Prisma.BoolWithAggregatesFilter<"Shifts"> | boolean
  is_remote?: Prisma.BoolWithAggregatesFilter<"Shifts"> | boolean
  comment?: Prisma.StringNullableWithAggregatesFilter<"Shifts"> | string | null
}

export type ShiftsCreateInput = {
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
  bank_code: Prisma.BankCodesCreateNestedOneWithoutShiftsInput
  timesheet: Prisma.TimesheetsCreateNestedOneWithoutShiftInput
  archive?: Prisma.ShiftsArchiveCreateNestedManyWithoutShiftInput
}

export type ShiftsUncheckedCreateInput = {
  id?: number
  timesheet_id: number
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  bank_code_id: number
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
  archive?: Prisma.ShiftsArchiveUncheckedCreateNestedManyWithoutShiftInput
}

export type ShiftsUpdateInput = {
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutShiftsNestedInput
  timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutShiftNestedInput
  archive?: Prisma.ShiftsArchiveUpdateManyWithoutShiftNestedInput
}

export type ShiftsUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  archive?: Prisma.ShiftsArchiveUncheckedUpdateManyWithoutShiftNestedInput
}

export type ShiftsCreateManyInput = {
  id?: number
  timesheet_id: number
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  bank_code_id: number
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
}

export type ShiftsUpdateManyMutationInput = {
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ShiftsUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ShiftsListRelationFilter = {
  every?: Prisma.ShiftsWhereInput
  some?: Prisma.ShiftsWhereInput
  none?: Prisma.ShiftsWhereInput
}

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

export type ShiftsCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  timesheet_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
  bank_code_id?: Prisma.SortOrder
  is_approved?: Prisma.SortOrder
  is_remote?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type ShiftsAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  timesheet_id?: Prisma.SortOrder
  bank_code_id?: Prisma.SortOrder
}

export type ShiftsMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  timesheet_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
  bank_code_id?: Prisma.SortOrder
  is_approved?: Prisma.SortOrder
  is_remote?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type ShiftsMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  timesheet_id?: Prisma.SortOrder
  date?: Prisma.SortOrder
  start_time?: Prisma.SortOrder
  end_time?: Prisma.SortOrder
  bank_code_id?: Prisma.SortOrder
  is_approved?: Prisma.SortOrder
  is_remote?: Prisma.SortOrder
  comment?: Prisma.SortOrder
}

export type ShiftsSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  timesheet_id?: Prisma.SortOrder
  bank_code_id?: Prisma.SortOrder
}

export type ShiftsScalarRelationFilter = {
  is?: Prisma.ShiftsWhereInput
  isNot?: Prisma.ShiftsWhereInput
}

export type ShiftsCreateNestedManyWithoutTimesheetInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutTimesheetInput, Prisma.ShiftsUncheckedCreateWithoutTimesheetInput> | Prisma.ShiftsCreateWithoutTimesheetInput[] | Prisma.ShiftsUncheckedCreateWithoutTimesheetInput[]
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[]
  createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope
  connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
}

export type ShiftsUncheckedCreateNestedManyWithoutTimesheetInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutTimesheetInput, Prisma.ShiftsUncheckedCreateWithoutTimesheetInput> | Prisma.ShiftsCreateWithoutTimesheetInput[] | Prisma.ShiftsUncheckedCreateWithoutTimesheetInput[]
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[]
  createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope
  connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
}

export type ShiftsUpdateManyWithoutTimesheetNestedInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutTimesheetInput, Prisma.ShiftsUncheckedCreateWithoutTimesheetInput> | Prisma.ShiftsCreateWithoutTimesheetInput[] | Prisma.ShiftsUncheckedCreateWithoutTimesheetInput[]
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[]
  upsert?: Prisma.ShiftsUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.ShiftsUpsertWithWhereUniqueWithoutTimesheetInput[]
  createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope
  set?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  disconnect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  delete?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  update?: Prisma.ShiftsUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.ShiftsUpdateWithWhereUniqueWithoutTimesheetInput[]
  updateMany?: Prisma.ShiftsUpdateManyWithWhereWithoutTimesheetInput | Prisma.ShiftsUpdateManyWithWhereWithoutTimesheetInput[]
  deleteMany?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[]
}

export type ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutTimesheetInput, Prisma.ShiftsUncheckedCreateWithoutTimesheetInput> | Prisma.ShiftsCreateWithoutTimesheetInput[] | Prisma.ShiftsUncheckedCreateWithoutTimesheetInput[]
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[]
  upsert?: Prisma.ShiftsUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.ShiftsUpsertWithWhereUniqueWithoutTimesheetInput[]
  createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope
  set?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  disconnect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  delete?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  update?: Prisma.ShiftsUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.ShiftsUpdateWithWhereUniqueWithoutTimesheetInput[]
  updateMany?: Prisma.ShiftsUpdateManyWithWhereWithoutTimesheetInput | Prisma.ShiftsUpdateManyWithWhereWithoutTimesheetInput[]
  deleteMany?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[]
}

export type ShiftsCreateNestedOneWithoutArchiveInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutArchiveInput, Prisma.ShiftsUncheckedCreateWithoutArchiveInput>
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutArchiveInput
  connect?: Prisma.ShiftsWhereUniqueInput
}

export type ShiftsUpdateOneRequiredWithoutArchiveNestedInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutArchiveInput, Prisma.ShiftsUncheckedCreateWithoutArchiveInput>
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutArchiveInput
  upsert?: Prisma.ShiftsUpsertWithoutArchiveInput
  connect?: Prisma.ShiftsWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ShiftsUpdateToOneWithWhereWithoutArchiveInput, Prisma.ShiftsUpdateWithoutArchiveInput>, Prisma.ShiftsUncheckedUpdateWithoutArchiveInput>
}

export type ShiftsCreateNestedManyWithoutBank_codeInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutBank_codeInput, Prisma.ShiftsUncheckedCreateWithoutBank_codeInput> | Prisma.ShiftsCreateWithoutBank_codeInput[] | Prisma.ShiftsUncheckedCreateWithoutBank_codeInput[]
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutBank_codeInput | Prisma.ShiftsCreateOrConnectWithoutBank_codeInput[]
  createMany?: Prisma.ShiftsCreateManyBank_codeInputEnvelope
  connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
}

export type ShiftsUncheckedCreateNestedManyWithoutBank_codeInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutBank_codeInput, Prisma.ShiftsUncheckedCreateWithoutBank_codeInput> | Prisma.ShiftsCreateWithoutBank_codeInput[] | Prisma.ShiftsUncheckedCreateWithoutBank_codeInput[]
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutBank_codeInput | Prisma.ShiftsCreateOrConnectWithoutBank_codeInput[]
  createMany?: Prisma.ShiftsCreateManyBank_codeInputEnvelope
  connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
}

export type ShiftsUpdateManyWithoutBank_codeNestedInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutBank_codeInput, Prisma.ShiftsUncheckedCreateWithoutBank_codeInput> | Prisma.ShiftsCreateWithoutBank_codeInput[] | Prisma.ShiftsUncheckedCreateWithoutBank_codeInput[]
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutBank_codeInput | Prisma.ShiftsCreateOrConnectWithoutBank_codeInput[]
  upsert?: Prisma.ShiftsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.ShiftsUpsertWithWhereUniqueWithoutBank_codeInput[]
  createMany?: Prisma.ShiftsCreateManyBank_codeInputEnvelope
  set?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  disconnect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  delete?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  update?: Prisma.ShiftsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.ShiftsUpdateWithWhereUniqueWithoutBank_codeInput[]
  updateMany?: Prisma.ShiftsUpdateManyWithWhereWithoutBank_codeInput | Prisma.ShiftsUpdateManyWithWhereWithoutBank_codeInput[]
  deleteMany?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[]
}

export type ShiftsUncheckedUpdateManyWithoutBank_codeNestedInput = {
  create?: Prisma.XOR<Prisma.ShiftsCreateWithoutBank_codeInput, Prisma.ShiftsUncheckedCreateWithoutBank_codeInput> | Prisma.ShiftsCreateWithoutBank_codeInput[] | Prisma.ShiftsUncheckedCreateWithoutBank_codeInput[]
  connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutBank_codeInput | Prisma.ShiftsCreateOrConnectWithoutBank_codeInput[]
  upsert?: Prisma.ShiftsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.ShiftsUpsertWithWhereUniqueWithoutBank_codeInput[]
  createMany?: Prisma.ShiftsCreateManyBank_codeInputEnvelope
  set?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  disconnect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  delete?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[]
  update?: Prisma.ShiftsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.ShiftsUpdateWithWhereUniqueWithoutBank_codeInput[]
  updateMany?: Prisma.ShiftsUpdateManyWithWhereWithoutBank_codeInput | Prisma.ShiftsUpdateManyWithWhereWithoutBank_codeInput[]
  deleteMany?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[]
}

export type ShiftsCreateWithoutTimesheetInput = {
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
  bank_code: Prisma.BankCodesCreateNestedOneWithoutShiftsInput
  archive?: Prisma.ShiftsArchiveCreateNestedManyWithoutShiftInput
}

export type ShiftsUncheckedCreateWithoutTimesheetInput = {
  id?: number
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  bank_code_id: number
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
  archive?: Prisma.ShiftsArchiveUncheckedCreateNestedManyWithoutShiftInput
}

export type ShiftsCreateOrConnectWithoutTimesheetInput = {
  where: Prisma.ShiftsWhereUniqueInput
  create: Prisma.XOR<Prisma.ShiftsCreateWithoutTimesheetInput, Prisma.ShiftsUncheckedCreateWithoutTimesheetInput>
}

export type ShiftsCreateManyTimesheetInputEnvelope = {
  data: Prisma.ShiftsCreateManyTimesheetInput | Prisma.ShiftsCreateManyTimesheetInput[]
  skipDuplicates?: boolean
}

export type ShiftsUpsertWithWhereUniqueWithoutTimesheetInput = {
  where: Prisma.ShiftsWhereUniqueInput
  update: Prisma.XOR<Prisma.ShiftsUpdateWithoutTimesheetInput, Prisma.ShiftsUncheckedUpdateWithoutTimesheetInput>
  create: Prisma.XOR<Prisma.ShiftsCreateWithoutTimesheetInput, Prisma.ShiftsUncheckedCreateWithoutTimesheetInput>
}

export type ShiftsUpdateWithWhereUniqueWithoutTimesheetInput = {
  where: Prisma.ShiftsWhereUniqueInput
  data: Prisma.XOR<Prisma.ShiftsUpdateWithoutTimesheetInput, Prisma.ShiftsUncheckedUpdateWithoutTimesheetInput>
}

export type ShiftsUpdateManyWithWhereWithoutTimesheetInput = {
  where: Prisma.ShiftsScalarWhereInput
  data: Prisma.XOR<Prisma.ShiftsUpdateManyMutationInput, Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetInput>
}

export type ShiftsScalarWhereInput = {
  AND?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[]
  OR?: Prisma.ShiftsScalarWhereInput[]
  NOT?: Prisma.ShiftsScalarWhereInput | Prisma.ShiftsScalarWhereInput[]
  id?: Prisma.IntFilter<"Shifts"> | number
  timesheet_id?: Prisma.IntFilter<"Shifts"> | number
  date?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  start_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  end_time?: Prisma.DateTimeFilter<"Shifts"> | Date | string
  bank_code_id?: Prisma.IntFilter<"Shifts"> | number
  is_approved?: Prisma.BoolFilter<"Shifts"> | boolean
  is_remote?: Prisma.BoolFilter<"Shifts"> | boolean
  comment?: Prisma.StringNullableFilter<"Shifts"> | string | null
}

export type ShiftsCreateWithoutArchiveInput = {
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
  bank_code: Prisma.BankCodesCreateNestedOneWithoutShiftsInput
  timesheet: Prisma.TimesheetsCreateNestedOneWithoutShiftInput
}

export type ShiftsUncheckedCreateWithoutArchiveInput = {
  id?: number
  timesheet_id: number
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  bank_code_id: number
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
}

export type ShiftsCreateOrConnectWithoutArchiveInput = {
  where: Prisma.ShiftsWhereUniqueInput
  create: Prisma.XOR<Prisma.ShiftsCreateWithoutArchiveInput, Prisma.ShiftsUncheckedCreateWithoutArchiveInput>
}

export type ShiftsUpsertWithoutArchiveInput = {
  update: Prisma.XOR<Prisma.ShiftsUpdateWithoutArchiveInput, Prisma.ShiftsUncheckedUpdateWithoutArchiveInput>
  create: Prisma.XOR<Prisma.ShiftsCreateWithoutArchiveInput, Prisma.ShiftsUncheckedCreateWithoutArchiveInput>
  where?: Prisma.ShiftsWhereInput
}

export type ShiftsUpdateToOneWithWhereWithoutArchiveInput = {
  where?: Prisma.ShiftsWhereInput
  data: Prisma.XOR<Prisma.ShiftsUpdateWithoutArchiveInput, Prisma.ShiftsUncheckedUpdateWithoutArchiveInput>
}

export type ShiftsUpdateWithoutArchiveInput = {
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutShiftsNestedInput
  timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutShiftNestedInput
}

export type ShiftsUncheckedUpdateWithoutArchiveInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ShiftsCreateWithoutBank_codeInput = {
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
  timesheet: Prisma.TimesheetsCreateNestedOneWithoutShiftInput
  archive?: Prisma.ShiftsArchiveCreateNestedManyWithoutShiftInput
}

export type ShiftsUncheckedCreateWithoutBank_codeInput = {
  id?: number
  timesheet_id: number
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
  archive?: Prisma.ShiftsArchiveUncheckedCreateNestedManyWithoutShiftInput
}

export type ShiftsCreateOrConnectWithoutBank_codeInput = {
  where: Prisma.ShiftsWhereUniqueInput
  create: Prisma.XOR<Prisma.ShiftsCreateWithoutBank_codeInput, Prisma.ShiftsUncheckedCreateWithoutBank_codeInput>
}

export type ShiftsCreateManyBank_codeInputEnvelope = {
  data: Prisma.ShiftsCreateManyBank_codeInput | Prisma.ShiftsCreateManyBank_codeInput[]
  skipDuplicates?: boolean
}

export type ShiftsUpsertWithWhereUniqueWithoutBank_codeInput = {
  where: Prisma.ShiftsWhereUniqueInput
  update: Prisma.XOR<Prisma.ShiftsUpdateWithoutBank_codeInput, Prisma.ShiftsUncheckedUpdateWithoutBank_codeInput>
  create: Prisma.XOR<Prisma.ShiftsCreateWithoutBank_codeInput, Prisma.ShiftsUncheckedCreateWithoutBank_codeInput>
}

export type ShiftsUpdateWithWhereUniqueWithoutBank_codeInput = {
  where: Prisma.ShiftsWhereUniqueInput
  data: Prisma.XOR<Prisma.ShiftsUpdateWithoutBank_codeInput, Prisma.ShiftsUncheckedUpdateWithoutBank_codeInput>
}

export type ShiftsUpdateManyWithWhereWithoutBank_codeInput = {
  where: Prisma.ShiftsScalarWhereInput
  data: Prisma.XOR<Prisma.ShiftsUpdateManyMutationInput, Prisma.ShiftsUncheckedUpdateManyWithoutBank_codeInput>
}

export type ShiftsCreateManyTimesheetInput = {
  id?: number
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  bank_code_id: number
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
}

export type ShiftsUpdateWithoutTimesheetInput = {
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutShiftsNestedInput
  archive?: Prisma.ShiftsArchiveUpdateManyWithoutShiftNestedInput
}

export type ShiftsUncheckedUpdateWithoutTimesheetInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  archive?: Prisma.ShiftsArchiveUncheckedUpdateManyWithoutShiftNestedInput
}

export type ShiftsUncheckedUpdateManyWithoutTimesheetInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type ShiftsCreateManyBank_codeInput = {
  id?: number
  timesheet_id: number
  date: Date | string
  start_time: Date | string
  end_time: Date | string
  is_approved?: boolean
  is_remote?: boolean
  comment?: string | null
}

export type ShiftsUpdateWithoutBank_codeInput = {
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutShiftNestedInput
  archive?: Prisma.ShiftsArchiveUpdateManyWithoutShiftNestedInput
}

export type ShiftsUncheckedUpdateWithoutBank_codeInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  archive?: Prisma.ShiftsArchiveUncheckedUpdateManyWithoutShiftNestedInput
}

export type ShiftsUncheckedUpdateManyWithoutBank_codeInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
  date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
  is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
  comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}


/**
 * Count Type ShiftsCountOutputType
 */

export type ShiftsCountOutputType = {
  archive: number
}

export type ShiftsCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  archive?: boolean | ShiftsCountOutputTypeCountArchiveArgs
}

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

/**
 * ShiftsCountOutputType without action
 */
export type ShiftsCountOutputTypeCountArchiveArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ShiftsArchiveWhereInput
}


export type ShiftsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  timesheet_id?: boolean
  date?: boolean
  start_time?: boolean
  end_time?: boolean
  bank_code_id?: boolean
  is_approved?: boolean
  is_remote?: boolean
  comment?: boolean
  bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
  timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
  archive?: boolean | Prisma.Shifts$archiveArgs<ExtArgs>
  _count?: boolean | Prisma.ShiftsCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["shifts"]>

export type ShiftsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  timesheet_id?: boolean
  date?: boolean
  start_time?: boolean
  end_time?: boolean
  bank_code_id?: boolean
  is_approved?: boolean
  is_remote?: boolean
  comment?: boolean
  bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
  timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["shifts"]>

export type ShiftsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  timesheet_id?: boolean
  date?: boolean
  start_time?: boolean
  end_time?: boolean
  bank_code_id?: boolean
  is_approved?: boolean
  is_remote?: boolean
  comment?: boolean
  bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
  timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["shifts"]>

export type ShiftsSelectScalar = {
  id?: boolean
  timesheet_id?: boolean
  date?: boolean
  start_time?: boolean
  end_time?: boolean
  bank_code_id?: boolean
  is_approved?: boolean
  is_remote?: boolean
  comment?: boolean
}

export type ShiftsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "timesheet_id" | "date" | "start_time" | "end_time" | "bank_code_id" | "is_approved" | "is_remote" | "comment", ExtArgs["result"]["shifts"]>
export type ShiftsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
  timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
  archive?: boolean | Prisma.Shifts$archiveArgs<ExtArgs>
  _count?: boolean | Prisma.ShiftsCountOutputTypeDefaultArgs<ExtArgs>
}
export type ShiftsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
  timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}
export type ShiftsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
  timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}

export type $ShiftsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Shifts"
  objects: {
    bank_code: Prisma.$BankCodesPayload<ExtArgs>
    timesheet: Prisma.$TimesheetsPayload<ExtArgs>
    archive: Prisma.$ShiftsArchivePayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    timesheet_id: number
    date: Date
    start_time: Date
    end_time: Date
    bank_code_id: number
    is_approved: boolean
    is_remote: boolean
    comment: string | null
  }, ExtArgs["result"]["shifts"]>
  composites: {}
}

export type ShiftsGetPayload<S extends boolean | null | undefined | ShiftsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ShiftsPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Shifts.
 * 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__ShiftsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  bank_code<T extends Prisma.BankCodesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankCodesDefaultArgs<ExtArgs>>): Prisma.Prisma__BankCodesClient<runtime.Types.Result.GetResult<Prisma.$BankCodesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  timesheet<T extends Prisma.TimesheetsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TimesheetsDefaultArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  archive<T extends Prisma.Shifts$archiveArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Shifts$archiveArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * 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 Shifts model
 */
export interface ShiftsFieldRefs {
  readonly id: Prisma.FieldRef<"Shifts", 'Int'>
  readonly timesheet_id: Prisma.FieldRef<"Shifts", 'Int'>
  readonly date: Prisma.FieldRef<"Shifts", 'DateTime'>
  readonly start_time: Prisma.FieldRef<"Shifts", 'DateTime'>
  readonly end_time: Prisma.FieldRef<"Shifts", 'DateTime'>
  readonly bank_code_id: Prisma.FieldRef<"Shifts", 'Int'>
  readonly is_approved: Prisma.FieldRef<"Shifts", 'Boolean'>
  readonly is_remote: Prisma.FieldRef<"Shifts", 'Boolean'>
  readonly comment: Prisma.FieldRef<"Shifts", 'String'>
}
    

// Custom InputTypes
/**
 * Shifts findUnique
 */
export type ShiftsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Shifts
   */
  select?: Prisma.ShiftsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Shifts
   */
  omit?: Prisma.ShiftsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ShiftsInclude<ExtArgs> | null
  /**
   * Filter, which Shifts to fetch.
   */
  where: Prisma.ShiftsWhereUniqueInput
}

/**
 * Shifts findUniqueOrThrow
 */
export type ShiftsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Shifts
   */
  select?: Prisma.ShiftsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Shifts
   */
  omit?: Prisma.ShiftsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ShiftsInclude<ExtArgs> | null
  /**
   * Filter, which Shifts to fetch.
   */
  where: Prisma.ShiftsWhereUniqueInput
}

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

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

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

/**
 * Shifts create
 */
export type ShiftsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Shifts
   */
  select?: Prisma.ShiftsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Shifts
   */
  omit?: Prisma.ShiftsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ShiftsInclude<ExtArgs> | null
  /**
   * The data needed to create a Shifts.
   */
  data: Prisma.XOR<Prisma.ShiftsCreateInput, Prisma.ShiftsUncheckedCreateInput>
}

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

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

/**
 * Shifts update
 */
export type ShiftsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Shifts
   */
  select?: Prisma.ShiftsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Shifts
   */
  omit?: Prisma.ShiftsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ShiftsInclude<ExtArgs> | null
  /**
   * The data needed to update a Shifts.
   */
  data: Prisma.XOR<Prisma.ShiftsUpdateInput, Prisma.ShiftsUncheckedUpdateInput>
  /**
   * Choose, which Shifts to update.
   */
  where: Prisma.ShiftsWhereUniqueInput
}

/**
 * Shifts updateMany
 */
export type ShiftsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Shifts.
   */
  data: Prisma.XOR<Prisma.ShiftsUpdateManyMutationInput, Prisma.ShiftsUncheckedUpdateManyInput>
  /**
   * Filter which Shifts to update
   */
  where?: Prisma.ShiftsWhereInput
  /**
   * Limit how many Shifts to update.
   */
  limit?: number
}

/**
 * Shifts updateManyAndReturn
 */
export type ShiftsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Shifts
   */
  select?: Prisma.ShiftsSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Shifts
   */
  omit?: Prisma.ShiftsOmit<ExtArgs> | null
  /**
   * The data used to update Shifts.
   */
  data: Prisma.XOR<Prisma.ShiftsUpdateManyMutationInput, Prisma.ShiftsUncheckedUpdateManyInput>
  /**
   * Filter which Shifts to update
   */
  where?: Prisma.ShiftsWhereInput
  /**
   * Limit how many Shifts to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ShiftsIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Shifts upsert
 */
export type ShiftsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Shifts
   */
  select?: Prisma.ShiftsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Shifts
   */
  omit?: Prisma.ShiftsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ShiftsInclude<ExtArgs> | null
  /**
   * The filter to search for the Shifts to update in case it exists.
   */
  where: Prisma.ShiftsWhereUniqueInput
  /**
   * In case the Shifts found by the `where` argument doesn't exist, create a new Shifts with this data.
   */
  create: Prisma.XOR<Prisma.ShiftsCreateInput, Prisma.ShiftsUncheckedCreateInput>
  /**
   * In case the Shifts was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ShiftsUpdateInput, Prisma.ShiftsUncheckedUpdateInput>
}

/**
 * Shifts delete
 */
export type ShiftsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Shifts
   */
  select?: Prisma.ShiftsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Shifts
   */
  omit?: Prisma.ShiftsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ShiftsInclude<ExtArgs> | null
  /**
   * Filter which Shifts to delete.
   */
  where: Prisma.ShiftsWhereUniqueInput
}

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

/**
 * Shifts.archive
 */
export type Shifts$archiveArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ShiftsArchive
   */
  select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ShiftsArchive
   */
  omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
  where?: Prisma.ShiftsArchiveWhereInput
  orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[]
  cursor?: Prisma.ShiftsArchiveWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ShiftsArchiveScalarFieldEnum | Prisma.ShiftsArchiveScalarFieldEnum[]
}

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