/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateShifts]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ShiftsGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ShiftsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 timesheet?: Prisma.XOR 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 timesheet?: Prisma.XOR 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[] connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutTimesheetInput | Prisma.ShiftsCreateOrConnectWithoutTimesheetInput[] createMany?: Prisma.ShiftsCreateManyTimesheetInputEnvelope connect?: Prisma.ShiftsWhereUniqueInput | Prisma.ShiftsWhereUniqueInput[] } export type ShiftsUncheckedCreateNestedManyWithoutTimesheetInput = { create?: Prisma.XOR | 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[] 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[] 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 connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutArchiveInput connect?: Prisma.ShiftsWhereUniqueInput } export type ShiftsUpdateOneRequiredWithoutArchiveNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ShiftsCreateOrConnectWithoutArchiveInput upsert?: Prisma.ShiftsUpsertWithoutArchiveInput connect?: Prisma.ShiftsWhereUniqueInput update?: Prisma.XOR, Prisma.ShiftsUncheckedUpdateWithoutArchiveInput> } export type ShiftsCreateNestedManyWithoutBank_codeInput = { create?: Prisma.XOR | 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[] 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[] 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[] 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 } export type ShiftsCreateManyTimesheetInputEnvelope = { data: Prisma.ShiftsCreateManyTimesheetInput | Prisma.ShiftsCreateManyTimesheetInput[] skipDuplicates?: boolean } export type ShiftsUpsertWithWhereUniqueWithoutTimesheetInput = { where: Prisma.ShiftsWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ShiftsUpdateWithWhereUniqueWithoutTimesheetInput = { where: Prisma.ShiftsWhereUniqueInput data: Prisma.XOR } export type ShiftsUpdateManyWithWhereWithoutTimesheetInput = { where: Prisma.ShiftsScalarWhereInput data: Prisma.XOR } 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 } export type ShiftsUpsertWithoutArchiveInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ShiftsWhereInput } export type ShiftsUpdateToOneWithWhereWithoutArchiveInput = { where?: Prisma.ShiftsWhereInput data: Prisma.XOR } 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 } export type ShiftsCreateManyBank_codeInputEnvelope = { data: Prisma.ShiftsCreateManyBank_codeInput | Prisma.ShiftsCreateManyBank_codeInput[] skipDuplicates?: boolean } export type ShiftsUpsertWithWhereUniqueWithoutBank_codeInput = { where: Prisma.ShiftsWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ShiftsUpdateWithWhereUniqueWithoutBank_codeInput = { where: Prisma.ShiftsWhereUniqueInput data: Prisma.XOR } export type ShiftsUpdateManyWithWhereWithoutBank_codeInput = { where: Prisma.ShiftsScalarWhereInput data: Prisma.XOR } 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 = { archive?: boolean | ShiftsCountOutputTypeCountArchiveArgs } /** * ShiftsCountOutputType without action */ export type ShiftsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ShiftsCountOutputType */ select?: Prisma.ShiftsCountOutputTypeSelect | null } /** * ShiftsCountOutputType without action */ export type ShiftsCountOutputTypeCountArchiveArgs = { where?: Prisma.ShiftsArchiveWhereInput } export type ShiftsSelect = 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 timesheet?: boolean | Prisma.TimesheetsDefaultArgs archive?: boolean | Prisma.Shifts$archiveArgs _count?: boolean | Prisma.ShiftsCountOutputTypeDefaultArgs }, ExtArgs["result"]["shifts"]> export type ShiftsSelectCreateManyAndReturn = 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 timesheet?: boolean | Prisma.TimesheetsDefaultArgs }, ExtArgs["result"]["shifts"]> export type ShiftsSelectUpdateManyAndReturn = 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 timesheet?: boolean | Prisma.TimesheetsDefaultArgs }, 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 = 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 = { bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs archive?: boolean | Prisma.Shifts$archiveArgs _count?: boolean | Prisma.ShiftsCountOutputTypeDefaultArgs } export type ShiftsIncludeCreateManyAndReturn = { bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs } export type ShiftsIncludeUpdateManyAndReturn = { bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs } export type $ShiftsPayload = { name: "Shifts" objects: { bank_code: Prisma.$BankCodesPayload timesheet: Prisma.$TimesheetsPayload archive: Prisma.$ShiftsArchivePayload[] } 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 = runtime.Types.Result.GetResult export type ShiftsCountArgs = Omit & { select?: ShiftsCountAggregateInputType | true } export interface ShiftsDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ShiftsClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ShiftsGroupByArgs['orderBy'] } : { orderBy?: ShiftsGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetShiftsGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" bank_code = {}>(args?: Prisma.Subset>): Prisma.Prisma__BankCodesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> timesheet = {}>(args?: Prisma.Subset>): Prisma.Prisma__TimesheetsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> archive = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | null /** * Filter, which Shifts to fetch. */ where: Prisma.ShiftsWhereUniqueInput } /** * Shifts findUniqueOrThrow */ export type ShiftsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | null /** * Filter, which Shifts to fetch. */ where: Prisma.ShiftsWhereUniqueInput } /** * Shifts findFirst */ export type ShiftsFindFirstArgs = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | 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 = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | 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 = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | 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 = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | null /** * The data needed to create a Shifts. */ data: Prisma.XOR } /** * Shifts createMany */ export type ShiftsCreateManyArgs = { /** * The data used to create many Shifts. */ data: Prisma.ShiftsCreateManyInput | Prisma.ShiftsCreateManyInput[] skipDuplicates?: boolean } /** * Shifts createManyAndReturn */ export type ShiftsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelectCreateManyAndReturn | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | 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 | null } /** * Shifts update */ export type ShiftsUpdateArgs = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | null /** * The data needed to update a Shifts. */ data: Prisma.XOR /** * Choose, which Shifts to update. */ where: Prisma.ShiftsWhereUniqueInput } /** * Shifts updateMany */ export type ShiftsUpdateManyArgs = { /** * The data used to update Shifts. */ data: Prisma.XOR /** * Filter which Shifts to update */ where?: Prisma.ShiftsWhereInput /** * Limit how many Shifts to update. */ limit?: number } /** * Shifts updateManyAndReturn */ export type ShiftsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelectUpdateManyAndReturn | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * The data used to update Shifts. */ data: Prisma.XOR /** * 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 | null } /** * Shifts upsert */ export type ShiftsUpsertArgs = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | 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 /** * In case the Shifts was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Shifts delete */ export type ShiftsDeleteArgs = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | null /** * Filter which Shifts to delete. */ where: Prisma.ShiftsWhereUniqueInput } /** * Shifts deleteMany */ export type ShiftsDeleteManyArgs = { /** * Filter which Shifts to delete */ where?: Prisma.ShiftsWhereInput /** * Limit how many Shifts to delete. */ limit?: number } /** * Shifts.archive */ export type Shifts$archiveArgs = { /** * Select specific fields to fetch from the ShiftsArchive */ select?: Prisma.ShiftsArchiveSelect | null /** * Omit specific fields from the ShiftsArchive */ omit?: Prisma.ShiftsArchiveOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsArchiveInclude | 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 = { /** * Select specific fields to fetch from the Shifts */ select?: Prisma.ShiftsSelect | null /** * Omit specific fields from the Shifts */ omit?: Prisma.ShiftsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ShiftsInclude | null }