/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Timesheets` 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 Timesheets * */ export type TimesheetsModel = runtime.Types.Result.DefaultSelection export type AggregateTimesheets = { _count: TimesheetsCountAggregateOutputType | null _avg: TimesheetsAvgAggregateOutputType | null _sum: TimesheetsSumAggregateOutputType | null _min: TimesheetsMinAggregateOutputType | null _max: TimesheetsMaxAggregateOutputType | null } export type TimesheetsAvgAggregateOutputType = { id: number | null employee_id: number | null } export type TimesheetsSumAggregateOutputType = { id: number | null employee_id: number | null } export type TimesheetsMinAggregateOutputType = { id: number | null employee_id: number | null is_approved: boolean | null start_date: Date | null } export type TimesheetsMaxAggregateOutputType = { id: number | null employee_id: number | null is_approved: boolean | null start_date: Date | null } export type TimesheetsCountAggregateOutputType = { id: number employee_id: number is_approved: number start_date: number _all: number } export type TimesheetsAvgAggregateInputType = { id?: true employee_id?: true } export type TimesheetsSumAggregateInputType = { id?: true employee_id?: true } export type TimesheetsMinAggregateInputType = { id?: true employee_id?: true is_approved?: true start_date?: true } export type TimesheetsMaxAggregateInputType = { id?: true employee_id?: true is_approved?: true start_date?: true } export type TimesheetsCountAggregateInputType = { id?: true employee_id?: true is_approved?: true start_date?: true _all?: true } export type TimesheetsAggregateArgs = { /** * Filter which Timesheets to aggregate. */ where?: Prisma.TimesheetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Timesheets to fetch. */ orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TimesheetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Timesheets 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` Timesheets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Timesheets **/ _count?: true | TimesheetsCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TimesheetsAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TimesheetsSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TimesheetsMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TimesheetsMaxAggregateInputType } export type GetTimesheetsAggregateType = { [P in keyof T & keyof AggregateTimesheets]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TimesheetsGroupByArgs = { where?: Prisma.TimesheetsWhereInput orderBy?: Prisma.TimesheetsOrderByWithAggregationInput | Prisma.TimesheetsOrderByWithAggregationInput[] by: Prisma.TimesheetsScalarFieldEnum[] | Prisma.TimesheetsScalarFieldEnum having?: Prisma.TimesheetsScalarWhereWithAggregatesInput take?: number skip?: number _count?: TimesheetsCountAggregateInputType | true _avg?: TimesheetsAvgAggregateInputType _sum?: TimesheetsSumAggregateInputType _min?: TimesheetsMinAggregateInputType _max?: TimesheetsMaxAggregateInputType } export type TimesheetsGroupByOutputType = { id: number employee_id: number is_approved: boolean start_date: Date _count: TimesheetsCountAggregateOutputType | null _avg: TimesheetsAvgAggregateOutputType | null _sum: TimesheetsSumAggregateOutputType | null _min: TimesheetsMinAggregateOutputType | null _max: TimesheetsMaxAggregateOutputType | null } type GetTimesheetsGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TimesheetsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TimesheetsWhereInput = { AND?: Prisma.TimesheetsWhereInput | Prisma.TimesheetsWhereInput[] OR?: Prisma.TimesheetsWhereInput[] NOT?: Prisma.TimesheetsWhereInput | Prisma.TimesheetsWhereInput[] id?: Prisma.IntFilter<"Timesheets"> | number employee_id?: Prisma.IntFilter<"Timesheets"> | number is_approved?: Prisma.BoolFilter<"Timesheets"> | boolean start_date?: Prisma.DateTimeFilter<"Timesheets"> | Date | string expense?: Prisma.ExpensesListRelationFilter shift?: Prisma.ShiftsListRelationFilter employee?: Prisma.XOR archive?: Prisma.TimesheetsArchiveListRelationFilter } export type TimesheetsOrderByWithRelationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder is_approved?: Prisma.SortOrder start_date?: Prisma.SortOrder expense?: Prisma.ExpensesOrderByRelationAggregateInput shift?: Prisma.ShiftsOrderByRelationAggregateInput employee?: Prisma.EmployeesOrderByWithRelationInput archive?: Prisma.TimesheetsArchiveOrderByRelationAggregateInput } export type TimesheetsWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.TimesheetsWhereInput | Prisma.TimesheetsWhereInput[] OR?: Prisma.TimesheetsWhereInput[] NOT?: Prisma.TimesheetsWhereInput | Prisma.TimesheetsWhereInput[] employee_id?: Prisma.IntFilter<"Timesheets"> | number is_approved?: Prisma.BoolFilter<"Timesheets"> | boolean start_date?: Prisma.DateTimeFilter<"Timesheets"> | Date | string expense?: Prisma.ExpensesListRelationFilter shift?: Prisma.ShiftsListRelationFilter employee?: Prisma.XOR archive?: Prisma.TimesheetsArchiveListRelationFilter }, "id"> export type TimesheetsOrderByWithAggregationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder is_approved?: Prisma.SortOrder start_date?: Prisma.SortOrder _count?: Prisma.TimesheetsCountOrderByAggregateInput _avg?: Prisma.TimesheetsAvgOrderByAggregateInput _max?: Prisma.TimesheetsMaxOrderByAggregateInput _min?: Prisma.TimesheetsMinOrderByAggregateInput _sum?: Prisma.TimesheetsSumOrderByAggregateInput } export type TimesheetsScalarWhereWithAggregatesInput = { AND?: Prisma.TimesheetsScalarWhereWithAggregatesInput | Prisma.TimesheetsScalarWhereWithAggregatesInput[] OR?: Prisma.TimesheetsScalarWhereWithAggregatesInput[] NOT?: Prisma.TimesheetsScalarWhereWithAggregatesInput | Prisma.TimesheetsScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"Timesheets"> | number employee_id?: Prisma.IntWithAggregatesFilter<"Timesheets"> | number is_approved?: Prisma.BoolWithAggregatesFilter<"Timesheets"> | boolean start_date?: Prisma.DateTimeWithAggregatesFilter<"Timesheets"> | Date | string } export type TimesheetsCreateInput = { is_approved?: boolean start_date: Date | string expense?: Prisma.ExpensesCreateNestedManyWithoutTimesheetInput shift?: Prisma.ShiftsCreateNestedManyWithoutTimesheetInput employee: Prisma.EmployeesCreateNestedOneWithoutTimesheetInput archive?: Prisma.TimesheetsArchiveCreateNestedManyWithoutTimesheetInput } export type TimesheetsUncheckedCreateInput = { id?: number employee_id: number is_approved?: boolean start_date: Date | string expense?: Prisma.ExpensesUncheckedCreateNestedManyWithoutTimesheetInput shift?: Prisma.ShiftsUncheckedCreateNestedManyWithoutTimesheetInput archive?: Prisma.TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput } export type TimesheetsUpdateInput = { is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expense?: Prisma.ExpensesUpdateManyWithoutTimesheetNestedInput shift?: Prisma.ShiftsUpdateManyWithoutTimesheetNestedInput employee?: Prisma.EmployeesUpdateOneRequiredWithoutTimesheetNestedInput archive?: Prisma.TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput } export type TimesheetsUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expense?: Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput shift?: Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput archive?: Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput } export type TimesheetsCreateManyInput = { id?: number employee_id: number is_approved?: boolean start_date: Date | string } export type TimesheetsUpdateManyMutationInput = { is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type TimesheetsUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type TimesheetsListRelationFilter = { every?: Prisma.TimesheetsWhereInput some?: Prisma.TimesheetsWhereInput none?: Prisma.TimesheetsWhereInput } export type TimesheetsOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type TimesheetsCountOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder is_approved?: Prisma.SortOrder start_date?: Prisma.SortOrder } export type TimesheetsAvgOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder } export type TimesheetsMaxOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder is_approved?: Prisma.SortOrder start_date?: Prisma.SortOrder } export type TimesheetsMinOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder is_approved?: Prisma.SortOrder start_date?: Prisma.SortOrder } export type TimesheetsSumOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder } export type TimesheetsScalarRelationFilter = { is?: Prisma.TimesheetsWhereInput isNot?: Prisma.TimesheetsWhereInput } export type TimesheetsCreateNestedManyWithoutEmployeeInput = { create?: Prisma.XOR | Prisma.TimesheetsCreateWithoutEmployeeInput[] | Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput[] connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput | Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput[] createMany?: Prisma.TimesheetsCreateManyEmployeeInputEnvelope connect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] } export type TimesheetsUncheckedCreateNestedManyWithoutEmployeeInput = { create?: Prisma.XOR | Prisma.TimesheetsCreateWithoutEmployeeInput[] | Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput[] connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput | Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput[] createMany?: Prisma.TimesheetsCreateManyEmployeeInputEnvelope connect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] } export type TimesheetsUpdateManyWithoutEmployeeNestedInput = { create?: Prisma.XOR | Prisma.TimesheetsCreateWithoutEmployeeInput[] | Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput[] connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput | Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput[] upsert?: Prisma.TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput | Prisma.TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput[] createMany?: Prisma.TimesheetsCreateManyEmployeeInputEnvelope set?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] disconnect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] delete?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] connect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] update?: Prisma.TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput | Prisma.TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput[] updateMany?: Prisma.TimesheetsUpdateManyWithWhereWithoutEmployeeInput | Prisma.TimesheetsUpdateManyWithWhereWithoutEmployeeInput[] deleteMany?: Prisma.TimesheetsScalarWhereInput | Prisma.TimesheetsScalarWhereInput[] } export type TimesheetsUncheckedUpdateManyWithoutEmployeeNestedInput = { create?: Prisma.XOR | Prisma.TimesheetsCreateWithoutEmployeeInput[] | Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput[] connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput | Prisma.TimesheetsCreateOrConnectWithoutEmployeeInput[] upsert?: Prisma.TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput | Prisma.TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput[] createMany?: Prisma.TimesheetsCreateManyEmployeeInputEnvelope set?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] disconnect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] delete?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] connect?: Prisma.TimesheetsWhereUniqueInput | Prisma.TimesheetsWhereUniqueInput[] update?: Prisma.TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput | Prisma.TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput[] updateMany?: Prisma.TimesheetsUpdateManyWithWhereWithoutEmployeeInput | Prisma.TimesheetsUpdateManyWithWhereWithoutEmployeeInput[] deleteMany?: Prisma.TimesheetsScalarWhereInput | Prisma.TimesheetsScalarWhereInput[] } export type TimesheetsCreateNestedOneWithoutArchiveInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutArchiveInput connect?: Prisma.TimesheetsWhereUniqueInput } export type TimesheetsUpdateOneRequiredWithoutArchiveNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutArchiveInput upsert?: Prisma.TimesheetsUpsertWithoutArchiveInput connect?: Prisma.TimesheetsWhereUniqueInput update?: Prisma.XOR, Prisma.TimesheetsUncheckedUpdateWithoutArchiveInput> } export type TimesheetsCreateNestedOneWithoutShiftInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutShiftInput connect?: Prisma.TimesheetsWhereUniqueInput } export type TimesheetsUpdateOneRequiredWithoutShiftNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutShiftInput upsert?: Prisma.TimesheetsUpsertWithoutShiftInput connect?: Prisma.TimesheetsWhereUniqueInput update?: Prisma.XOR, Prisma.TimesheetsUncheckedUpdateWithoutShiftInput> } export type TimesheetsCreateNestedOneWithoutExpenseInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutExpenseInput connect?: Prisma.TimesheetsWhereUniqueInput } export type TimesheetsUpdateOneRequiredWithoutExpenseNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutExpenseInput upsert?: Prisma.TimesheetsUpsertWithoutExpenseInput connect?: Prisma.TimesheetsWhereUniqueInput update?: Prisma.XOR, Prisma.TimesheetsUncheckedUpdateWithoutExpenseInput> } export type TimesheetsCreateWithoutEmployeeInput = { is_approved?: boolean start_date: Date | string expense?: Prisma.ExpensesCreateNestedManyWithoutTimesheetInput shift?: Prisma.ShiftsCreateNestedManyWithoutTimesheetInput archive?: Prisma.TimesheetsArchiveCreateNestedManyWithoutTimesheetInput } export type TimesheetsUncheckedCreateWithoutEmployeeInput = { id?: number is_approved?: boolean start_date: Date | string expense?: Prisma.ExpensesUncheckedCreateNestedManyWithoutTimesheetInput shift?: Prisma.ShiftsUncheckedCreateNestedManyWithoutTimesheetInput archive?: Prisma.TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput } export type TimesheetsCreateOrConnectWithoutEmployeeInput = { where: Prisma.TimesheetsWhereUniqueInput create: Prisma.XOR } export type TimesheetsCreateManyEmployeeInputEnvelope = { data: Prisma.TimesheetsCreateManyEmployeeInput | Prisma.TimesheetsCreateManyEmployeeInput[] skipDuplicates?: boolean } export type TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput = { where: Prisma.TimesheetsWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput = { where: Prisma.TimesheetsWhereUniqueInput data: Prisma.XOR } export type TimesheetsUpdateManyWithWhereWithoutEmployeeInput = { where: Prisma.TimesheetsScalarWhereInput data: Prisma.XOR } export type TimesheetsScalarWhereInput = { AND?: Prisma.TimesheetsScalarWhereInput | Prisma.TimesheetsScalarWhereInput[] OR?: Prisma.TimesheetsScalarWhereInput[] NOT?: Prisma.TimesheetsScalarWhereInput | Prisma.TimesheetsScalarWhereInput[] id?: Prisma.IntFilter<"Timesheets"> | number employee_id?: Prisma.IntFilter<"Timesheets"> | number is_approved?: Prisma.BoolFilter<"Timesheets"> | boolean start_date?: Prisma.DateTimeFilter<"Timesheets"> | Date | string } export type TimesheetsCreateWithoutArchiveInput = { is_approved?: boolean start_date: Date | string expense?: Prisma.ExpensesCreateNestedManyWithoutTimesheetInput shift?: Prisma.ShiftsCreateNestedManyWithoutTimesheetInput employee: Prisma.EmployeesCreateNestedOneWithoutTimesheetInput } export type TimesheetsUncheckedCreateWithoutArchiveInput = { id?: number employee_id: number is_approved?: boolean start_date: Date | string expense?: Prisma.ExpensesUncheckedCreateNestedManyWithoutTimesheetInput shift?: Prisma.ShiftsUncheckedCreateNestedManyWithoutTimesheetInput } export type TimesheetsCreateOrConnectWithoutArchiveInput = { where: Prisma.TimesheetsWhereUniqueInput create: Prisma.XOR } export type TimesheetsUpsertWithoutArchiveInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TimesheetsWhereInput } export type TimesheetsUpdateToOneWithWhereWithoutArchiveInput = { where?: Prisma.TimesheetsWhereInput data: Prisma.XOR } export type TimesheetsUpdateWithoutArchiveInput = { is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expense?: Prisma.ExpensesUpdateManyWithoutTimesheetNestedInput shift?: Prisma.ShiftsUpdateManyWithoutTimesheetNestedInput employee?: Prisma.EmployeesUpdateOneRequiredWithoutTimesheetNestedInput } export type TimesheetsUncheckedUpdateWithoutArchiveInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expense?: Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput shift?: Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput } export type TimesheetsCreateWithoutShiftInput = { is_approved?: boolean start_date: Date | string expense?: Prisma.ExpensesCreateNestedManyWithoutTimesheetInput employee: Prisma.EmployeesCreateNestedOneWithoutTimesheetInput archive?: Prisma.TimesheetsArchiveCreateNestedManyWithoutTimesheetInput } export type TimesheetsUncheckedCreateWithoutShiftInput = { id?: number employee_id: number is_approved?: boolean start_date: Date | string expense?: Prisma.ExpensesUncheckedCreateNestedManyWithoutTimesheetInput archive?: Prisma.TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput } export type TimesheetsCreateOrConnectWithoutShiftInput = { where: Prisma.TimesheetsWhereUniqueInput create: Prisma.XOR } export type TimesheetsUpsertWithoutShiftInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TimesheetsWhereInput } export type TimesheetsUpdateToOneWithWhereWithoutShiftInput = { where?: Prisma.TimesheetsWhereInput data: Prisma.XOR } export type TimesheetsUpdateWithoutShiftInput = { is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expense?: Prisma.ExpensesUpdateManyWithoutTimesheetNestedInput employee?: Prisma.EmployeesUpdateOneRequiredWithoutTimesheetNestedInput archive?: Prisma.TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput } export type TimesheetsUncheckedUpdateWithoutShiftInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expense?: Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput archive?: Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput } export type TimesheetsCreateWithoutExpenseInput = { is_approved?: boolean start_date: Date | string shift?: Prisma.ShiftsCreateNestedManyWithoutTimesheetInput employee: Prisma.EmployeesCreateNestedOneWithoutTimesheetInput archive?: Prisma.TimesheetsArchiveCreateNestedManyWithoutTimesheetInput } export type TimesheetsUncheckedCreateWithoutExpenseInput = { id?: number employee_id: number is_approved?: boolean start_date: Date | string shift?: Prisma.ShiftsUncheckedCreateNestedManyWithoutTimesheetInput archive?: Prisma.TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput } export type TimesheetsCreateOrConnectWithoutExpenseInput = { where: Prisma.TimesheetsWhereUniqueInput create: Prisma.XOR } export type TimesheetsUpsertWithoutExpenseInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TimesheetsWhereInput } export type TimesheetsUpdateToOneWithWhereWithoutExpenseInput = { where?: Prisma.TimesheetsWhereInput data: Prisma.XOR } export type TimesheetsUpdateWithoutExpenseInput = { is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string shift?: Prisma.ShiftsUpdateManyWithoutTimesheetNestedInput employee?: Prisma.EmployeesUpdateOneRequiredWithoutTimesheetNestedInput archive?: Prisma.TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput } export type TimesheetsUncheckedUpdateWithoutExpenseInput = { id?: Prisma.IntFieldUpdateOperationsInput | number employee_id?: Prisma.IntFieldUpdateOperationsInput | number is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string shift?: Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput archive?: Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput } export type TimesheetsCreateManyEmployeeInput = { id?: number is_approved?: boolean start_date: Date | string } export type TimesheetsUpdateWithoutEmployeeInput = { is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expense?: Prisma.ExpensesUpdateManyWithoutTimesheetNestedInput shift?: Prisma.ShiftsUpdateManyWithoutTimesheetNestedInput archive?: Prisma.TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput } export type TimesheetsUncheckedUpdateWithoutEmployeeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string expense?: Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput shift?: Prisma.ShiftsUncheckedUpdateManyWithoutTimesheetNestedInput archive?: Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput } export type TimesheetsUncheckedUpdateManyWithoutEmployeeInput = { id?: Prisma.IntFieldUpdateOperationsInput | number is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean start_date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type TimesheetsCountOutputType */ export type TimesheetsCountOutputType = { expense: number shift: number archive: number } export type TimesheetsCountOutputTypeSelect = { expense?: boolean | TimesheetsCountOutputTypeCountExpenseArgs shift?: boolean | TimesheetsCountOutputTypeCountShiftArgs archive?: boolean | TimesheetsCountOutputTypeCountArchiveArgs } /** * TimesheetsCountOutputType without action */ export type TimesheetsCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TimesheetsCountOutputType */ select?: Prisma.TimesheetsCountOutputTypeSelect | null } /** * TimesheetsCountOutputType without action */ export type TimesheetsCountOutputTypeCountExpenseArgs = { where?: Prisma.ExpensesWhereInput } /** * TimesheetsCountOutputType without action */ export type TimesheetsCountOutputTypeCountShiftArgs = { where?: Prisma.ShiftsWhereInput } /** * TimesheetsCountOutputType without action */ export type TimesheetsCountOutputTypeCountArchiveArgs = { where?: Prisma.TimesheetsArchiveWhereInput } export type TimesheetsSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean is_approved?: boolean start_date?: boolean expense?: boolean | Prisma.Timesheets$expenseArgs shift?: boolean | Prisma.Timesheets$shiftArgs employee?: boolean | Prisma.EmployeesDefaultArgs archive?: boolean | Prisma.Timesheets$archiveArgs _count?: boolean | Prisma.TimesheetsCountOutputTypeDefaultArgs }, ExtArgs["result"]["timesheets"]> export type TimesheetsSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean is_approved?: boolean start_date?: boolean employee?: boolean | Prisma.EmployeesDefaultArgs }, ExtArgs["result"]["timesheets"]> export type TimesheetsSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean is_approved?: boolean start_date?: boolean employee?: boolean | Prisma.EmployeesDefaultArgs }, ExtArgs["result"]["timesheets"]> export type TimesheetsSelectScalar = { id?: boolean employee_id?: boolean is_approved?: boolean start_date?: boolean } export type TimesheetsOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "is_approved" | "start_date", ExtArgs["result"]["timesheets"]> export type TimesheetsInclude = { expense?: boolean | Prisma.Timesheets$expenseArgs shift?: boolean | Prisma.Timesheets$shiftArgs employee?: boolean | Prisma.EmployeesDefaultArgs archive?: boolean | Prisma.Timesheets$archiveArgs _count?: boolean | Prisma.TimesheetsCountOutputTypeDefaultArgs } export type TimesheetsIncludeCreateManyAndReturn = { employee?: boolean | Prisma.EmployeesDefaultArgs } export type TimesheetsIncludeUpdateManyAndReturn = { employee?: boolean | Prisma.EmployeesDefaultArgs } export type $TimesheetsPayload = { name: "Timesheets" objects: { expense: Prisma.$ExpensesPayload[] shift: Prisma.$ShiftsPayload[] employee: Prisma.$EmployeesPayload archive: Prisma.$TimesheetsArchivePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number employee_id: number is_approved: boolean start_date: Date }, ExtArgs["result"]["timesheets"]> composites: {} } export type TimesheetsGetPayload = runtime.Types.Result.GetResult export type TimesheetsCountArgs = Omit & { select?: TimesheetsCountAggregateInputType | true } export interface TimesheetsDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Timesheets'], meta: { name: 'Timesheets' } } /** * Find zero or one Timesheets that matches the filter. * @param {TimesheetsFindUniqueArgs} args - Arguments to find a Timesheets * @example * // Get one Timesheets * const timesheets = await prisma.timesheets.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Timesheets that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TimesheetsFindUniqueOrThrowArgs} args - Arguments to find a Timesheets * @example * // Get one Timesheets * const timesheets = await prisma.timesheets.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Timesheets 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 {TimesheetsFindFirstArgs} args - Arguments to find a Timesheets * @example * // Get one Timesheets * const timesheets = await prisma.timesheets.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Timesheets 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 {TimesheetsFindFirstOrThrowArgs} args - Arguments to find a Timesheets * @example * // Get one Timesheets * const timesheets = await prisma.timesheets.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Timesheets 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 {TimesheetsFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Timesheets * const timesheets = await prisma.timesheets.findMany() * * // Get first 10 Timesheets * const timesheets = await prisma.timesheets.findMany({ take: 10 }) * * // Only select the `id` * const timesheetsWithIdOnly = await prisma.timesheets.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Timesheets. * @param {TimesheetsCreateArgs} args - Arguments to create a Timesheets. * @example * // Create one Timesheets * const Timesheets = await prisma.timesheets.create({ * data: { * // ... data to create a Timesheets * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Timesheets. * @param {TimesheetsCreateManyArgs} args - Arguments to create many Timesheets. * @example * // Create many Timesheets * const timesheets = await prisma.timesheets.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Timesheets and returns the data saved in the database. * @param {TimesheetsCreateManyAndReturnArgs} args - Arguments to create many Timesheets. * @example * // Create many Timesheets * const timesheets = await prisma.timesheets.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Timesheets and only return the `id` * const timesheetsWithIdOnly = await prisma.timesheets.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 Timesheets. * @param {TimesheetsDeleteArgs} args - Arguments to delete one Timesheets. * @example * // Delete one Timesheets * const Timesheets = await prisma.timesheets.delete({ * where: { * // ... filter to delete one Timesheets * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Timesheets. * @param {TimesheetsUpdateArgs} args - Arguments to update one Timesheets. * @example * // Update one Timesheets * const timesheets = await prisma.timesheets.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Timesheets. * @param {TimesheetsDeleteManyArgs} args - Arguments to filter Timesheets to delete. * @example * // Delete a few Timesheets * const { count } = await prisma.timesheets.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Timesheets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TimesheetsUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Timesheets * const timesheets = await prisma.timesheets.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Timesheets and returns the data updated in the database. * @param {TimesheetsUpdateManyAndReturnArgs} args - Arguments to update many Timesheets. * @example * // Update many Timesheets * const timesheets = await prisma.timesheets.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Timesheets and only return the `id` * const timesheetsWithIdOnly = await prisma.timesheets.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 Timesheets. * @param {TimesheetsUpsertArgs} args - Arguments to update or create a Timesheets. * @example * // Update or create a Timesheets * const timesheets = await prisma.timesheets.upsert({ * create: { * // ... data to create a Timesheets * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Timesheets we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TimesheetsClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Timesheets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TimesheetsCountArgs} args - Arguments to filter Timesheets to count. * @example * // Count the number of Timesheets * const count = await prisma.timesheets.count({ * where: { * // ... the filter for the Timesheets 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 Timesheets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TimesheetsAggregateArgs} 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 Timesheets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TimesheetsGroupByArgs} 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 TimesheetsGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TimesheetsGroupByArgs['orderBy'] } : { orderBy?: TimesheetsGroupByArgs['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 ? GetTimesheetsGroupByPayload : Prisma.PrismaPromise /** * Fields of the Timesheets model */ readonly fields: TimesheetsFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Timesheets. * 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__TimesheetsClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" expense = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> shift = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> employee = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmployeesClient, 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 Timesheets model */ export interface TimesheetsFieldRefs { readonly id: Prisma.FieldRef<"Timesheets", 'Int'> readonly employee_id: Prisma.FieldRef<"Timesheets", 'Int'> readonly is_approved: Prisma.FieldRef<"Timesheets", 'Boolean'> readonly start_date: Prisma.FieldRef<"Timesheets", 'DateTime'> } // Custom InputTypes /** * Timesheets findUnique */ export type TimesheetsFindUniqueArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * Filter, which Timesheets to fetch. */ where: Prisma.TimesheetsWhereUniqueInput } /** * Timesheets findUniqueOrThrow */ export type TimesheetsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * Filter, which Timesheets to fetch. */ where: Prisma.TimesheetsWhereUniqueInput } /** * Timesheets findFirst */ export type TimesheetsFindFirstArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * Filter, which Timesheets to fetch. */ where?: Prisma.TimesheetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Timesheets to fetch. */ orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Timesheets. */ cursor?: Prisma.TimesheetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Timesheets 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` Timesheets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Timesheets. */ distinct?: Prisma.TimesheetsScalarFieldEnum | Prisma.TimesheetsScalarFieldEnum[] } /** * Timesheets findFirstOrThrow */ export type TimesheetsFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * Filter, which Timesheets to fetch. */ where?: Prisma.TimesheetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Timesheets to fetch. */ orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Timesheets. */ cursor?: Prisma.TimesheetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Timesheets 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` Timesheets. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Timesheets. */ distinct?: Prisma.TimesheetsScalarFieldEnum | Prisma.TimesheetsScalarFieldEnum[] } /** * Timesheets findMany */ export type TimesheetsFindManyArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * Filter, which Timesheets to fetch. */ where?: Prisma.TimesheetsWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Timesheets to fetch. */ orderBy?: Prisma.TimesheetsOrderByWithRelationInput | Prisma.TimesheetsOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Timesheets. */ cursor?: Prisma.TimesheetsWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Timesheets 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` Timesheets. */ skip?: number distinct?: Prisma.TimesheetsScalarFieldEnum | Prisma.TimesheetsScalarFieldEnum[] } /** * Timesheets create */ export type TimesheetsCreateArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * The data needed to create a Timesheets. */ data: Prisma.XOR } /** * Timesheets createMany */ export type TimesheetsCreateManyArgs = { /** * The data used to create many Timesheets. */ data: Prisma.TimesheetsCreateManyInput | Prisma.TimesheetsCreateManyInput[] skipDuplicates?: boolean } /** * Timesheets createManyAndReturn */ export type TimesheetsCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelectCreateManyAndReturn | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * The data used to create many Timesheets. */ data: Prisma.TimesheetsCreateManyInput | Prisma.TimesheetsCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsIncludeCreateManyAndReturn | null } /** * Timesheets update */ export type TimesheetsUpdateArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * The data needed to update a Timesheets. */ data: Prisma.XOR /** * Choose, which Timesheets to update. */ where: Prisma.TimesheetsWhereUniqueInput } /** * Timesheets updateMany */ export type TimesheetsUpdateManyArgs = { /** * The data used to update Timesheets. */ data: Prisma.XOR /** * Filter which Timesheets to update */ where?: Prisma.TimesheetsWhereInput /** * Limit how many Timesheets to update. */ limit?: number } /** * Timesheets updateManyAndReturn */ export type TimesheetsUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelectUpdateManyAndReturn | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * The data used to update Timesheets. */ data: Prisma.XOR /** * Filter which Timesheets to update */ where?: Prisma.TimesheetsWhereInput /** * Limit how many Timesheets to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsIncludeUpdateManyAndReturn | null } /** * Timesheets upsert */ export type TimesheetsUpsertArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * The filter to search for the Timesheets to update in case it exists. */ where: Prisma.TimesheetsWhereUniqueInput /** * In case the Timesheets found by the `where` argument doesn't exist, create a new Timesheets with this data. */ create: Prisma.XOR /** * In case the Timesheets was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Timesheets delete */ export type TimesheetsDeleteArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null /** * Filter which Timesheets to delete. */ where: Prisma.TimesheetsWhereUniqueInput } /** * Timesheets deleteMany */ export type TimesheetsDeleteManyArgs = { /** * Filter which Timesheets to delete */ where?: Prisma.TimesheetsWhereInput /** * Limit how many Timesheets to delete. */ limit?: number } /** * Timesheets.expense */ export type Timesheets$expenseArgs = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | null where?: Prisma.ExpensesWhereInput orderBy?: Prisma.ExpensesOrderByWithRelationInput | Prisma.ExpensesOrderByWithRelationInput[] cursor?: Prisma.ExpensesWhereUniqueInput take?: number skip?: number distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[] } /** * Timesheets.shift */ export type Timesheets$shiftArgs = { /** * 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 where?: Prisma.ShiftsWhereInput orderBy?: Prisma.ShiftsOrderByWithRelationInput | Prisma.ShiftsOrderByWithRelationInput[] cursor?: Prisma.ShiftsWhereUniqueInput take?: number skip?: number distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[] } /** * Timesheets.archive */ export type Timesheets$archiveArgs = { /** * Select specific fields to fetch from the TimesheetsArchive */ select?: Prisma.TimesheetsArchiveSelect | null /** * Omit specific fields from the TimesheetsArchive */ omit?: Prisma.TimesheetsArchiveOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsArchiveInclude | null where?: Prisma.TimesheetsArchiveWhereInput orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[] cursor?: Prisma.TimesheetsArchiveWhereUniqueInput take?: number skip?: number distinct?: Prisma.TimesheetsArchiveScalarFieldEnum | Prisma.TimesheetsArchiveScalarFieldEnum[] } /** * Timesheets without action */ export type TimesheetsDefaultArgs = { /** * Select specific fields to fetch from the Timesheets */ select?: Prisma.TimesheetsSelect | null /** * Omit specific fields from the Timesheets */ omit?: Prisma.TimesheetsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TimesheetsInclude | null }