targo-backend/prisma/generated/postgres/models/Timesheets.ts

1714 lines
66 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `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<Prisma.$TimesheetsPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends TimesheetsAggregateArgs> = {
[P in keyof T & keyof AggregateTimesheets]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateTimesheets[P]>
: Prisma.GetScalarType<T[P], AggregateTimesheets[P]>
}
export type TimesheetsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends TimesheetsGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<TimesheetsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TimesheetsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], TimesheetsGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], TimesheetsGroupByOutputType[P]>
}
>
>
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<Prisma.EmployeesScalarRelationFilter, Prisma.EmployeesWhereInput>
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<Prisma.EmployeesScalarRelationFilter, Prisma.EmployeesWhereInput>
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> | 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> | 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> | 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> | 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<Prisma.TimesheetsCreateWithoutArchiveInput, Prisma.TimesheetsUncheckedCreateWithoutArchiveInput>
connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutArchiveInput
connect?: Prisma.TimesheetsWhereUniqueInput
}
export type TimesheetsUpdateOneRequiredWithoutArchiveNestedInput = {
create?: Prisma.XOR<Prisma.TimesheetsCreateWithoutArchiveInput, Prisma.TimesheetsUncheckedCreateWithoutArchiveInput>
connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutArchiveInput
upsert?: Prisma.TimesheetsUpsertWithoutArchiveInput
connect?: Prisma.TimesheetsWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.TimesheetsUpdateToOneWithWhereWithoutArchiveInput, Prisma.TimesheetsUpdateWithoutArchiveInput>, Prisma.TimesheetsUncheckedUpdateWithoutArchiveInput>
}
export type TimesheetsCreateNestedOneWithoutShiftInput = {
create?: Prisma.XOR<Prisma.TimesheetsCreateWithoutShiftInput, Prisma.TimesheetsUncheckedCreateWithoutShiftInput>
connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutShiftInput
connect?: Prisma.TimesheetsWhereUniqueInput
}
export type TimesheetsUpdateOneRequiredWithoutShiftNestedInput = {
create?: Prisma.XOR<Prisma.TimesheetsCreateWithoutShiftInput, Prisma.TimesheetsUncheckedCreateWithoutShiftInput>
connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutShiftInput
upsert?: Prisma.TimesheetsUpsertWithoutShiftInput
connect?: Prisma.TimesheetsWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.TimesheetsUpdateToOneWithWhereWithoutShiftInput, Prisma.TimesheetsUpdateWithoutShiftInput>, Prisma.TimesheetsUncheckedUpdateWithoutShiftInput>
}
export type TimesheetsCreateNestedOneWithoutExpenseInput = {
create?: Prisma.XOR<Prisma.TimesheetsCreateWithoutExpenseInput, Prisma.TimesheetsUncheckedCreateWithoutExpenseInput>
connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutExpenseInput
connect?: Prisma.TimesheetsWhereUniqueInput
}
export type TimesheetsUpdateOneRequiredWithoutExpenseNestedInput = {
create?: Prisma.XOR<Prisma.TimesheetsCreateWithoutExpenseInput, Prisma.TimesheetsUncheckedCreateWithoutExpenseInput>
connectOrCreate?: Prisma.TimesheetsCreateOrConnectWithoutExpenseInput
upsert?: Prisma.TimesheetsUpsertWithoutExpenseInput
connect?: Prisma.TimesheetsWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.TimesheetsUpdateToOneWithWhereWithoutExpenseInput, Prisma.TimesheetsUpdateWithoutExpenseInput>, 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<Prisma.TimesheetsCreateWithoutEmployeeInput, Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput>
}
export type TimesheetsCreateManyEmployeeInputEnvelope = {
data: Prisma.TimesheetsCreateManyEmployeeInput | Prisma.TimesheetsCreateManyEmployeeInput[]
skipDuplicates?: boolean
}
export type TimesheetsUpsertWithWhereUniqueWithoutEmployeeInput = {
where: Prisma.TimesheetsWhereUniqueInput
update: Prisma.XOR<Prisma.TimesheetsUpdateWithoutEmployeeInput, Prisma.TimesheetsUncheckedUpdateWithoutEmployeeInput>
create: Prisma.XOR<Prisma.TimesheetsCreateWithoutEmployeeInput, Prisma.TimesheetsUncheckedCreateWithoutEmployeeInput>
}
export type TimesheetsUpdateWithWhereUniqueWithoutEmployeeInput = {
where: Prisma.TimesheetsWhereUniqueInput
data: Prisma.XOR<Prisma.TimesheetsUpdateWithoutEmployeeInput, Prisma.TimesheetsUncheckedUpdateWithoutEmployeeInput>
}
export type TimesheetsUpdateManyWithWhereWithoutEmployeeInput = {
where: Prisma.TimesheetsScalarWhereInput
data: Prisma.XOR<Prisma.TimesheetsUpdateManyMutationInput, Prisma.TimesheetsUncheckedUpdateManyWithoutEmployeeInput>
}
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<Prisma.TimesheetsCreateWithoutArchiveInput, Prisma.TimesheetsUncheckedCreateWithoutArchiveInput>
}
export type TimesheetsUpsertWithoutArchiveInput = {
update: Prisma.XOR<Prisma.TimesheetsUpdateWithoutArchiveInput, Prisma.TimesheetsUncheckedUpdateWithoutArchiveInput>
create: Prisma.XOR<Prisma.TimesheetsCreateWithoutArchiveInput, Prisma.TimesheetsUncheckedCreateWithoutArchiveInput>
where?: Prisma.TimesheetsWhereInput
}
export type TimesheetsUpdateToOneWithWhereWithoutArchiveInput = {
where?: Prisma.TimesheetsWhereInput
data: Prisma.XOR<Prisma.TimesheetsUpdateWithoutArchiveInput, Prisma.TimesheetsUncheckedUpdateWithoutArchiveInput>
}
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<Prisma.TimesheetsCreateWithoutShiftInput, Prisma.TimesheetsUncheckedCreateWithoutShiftInput>
}
export type TimesheetsUpsertWithoutShiftInput = {
update: Prisma.XOR<Prisma.TimesheetsUpdateWithoutShiftInput, Prisma.TimesheetsUncheckedUpdateWithoutShiftInput>
create: Prisma.XOR<Prisma.TimesheetsCreateWithoutShiftInput, Prisma.TimesheetsUncheckedCreateWithoutShiftInput>
where?: Prisma.TimesheetsWhereInput
}
export type TimesheetsUpdateToOneWithWhereWithoutShiftInput = {
where?: Prisma.TimesheetsWhereInput
data: Prisma.XOR<Prisma.TimesheetsUpdateWithoutShiftInput, Prisma.TimesheetsUncheckedUpdateWithoutShiftInput>
}
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<Prisma.TimesheetsCreateWithoutExpenseInput, Prisma.TimesheetsUncheckedCreateWithoutExpenseInput>
}
export type TimesheetsUpsertWithoutExpenseInput = {
update: Prisma.XOR<Prisma.TimesheetsUpdateWithoutExpenseInput, Prisma.TimesheetsUncheckedUpdateWithoutExpenseInput>
create: Prisma.XOR<Prisma.TimesheetsCreateWithoutExpenseInput, Prisma.TimesheetsUncheckedCreateWithoutExpenseInput>
where?: Prisma.TimesheetsWhereInput
}
export type TimesheetsUpdateToOneWithWhereWithoutExpenseInput = {
where?: Prisma.TimesheetsWhereInput
data: Prisma.XOR<Prisma.TimesheetsUpdateWithoutExpenseInput, Prisma.TimesheetsUncheckedUpdateWithoutExpenseInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
expense?: boolean | TimesheetsCountOutputTypeCountExpenseArgs
shift?: boolean | TimesheetsCountOutputTypeCountShiftArgs
archive?: boolean | TimesheetsCountOutputTypeCountArchiveArgs
}
/**
* TimesheetsCountOutputType without action
*/
export type TimesheetsCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TimesheetsCountOutputType
*/
select?: Prisma.TimesheetsCountOutputTypeSelect<ExtArgs> | null
}
/**
* TimesheetsCountOutputType without action
*/
export type TimesheetsCountOutputTypeCountExpenseArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ExpensesWhereInput
}
/**
* TimesheetsCountOutputType without action
*/
export type TimesheetsCountOutputTypeCountShiftArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ShiftsWhereInput
}
/**
* TimesheetsCountOutputType without action
*/
export type TimesheetsCountOutputTypeCountArchiveArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TimesheetsArchiveWhereInput
}
export type TimesheetsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
employee_id?: boolean
is_approved?: boolean
start_date?: boolean
expense?: boolean | Prisma.Timesheets$expenseArgs<ExtArgs>
shift?: boolean | Prisma.Timesheets$shiftArgs<ExtArgs>
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
archive?: boolean | Prisma.Timesheets$archiveArgs<ExtArgs>
_count?: boolean | Prisma.TimesheetsCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["timesheets"]>
export type TimesheetsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
employee_id?: boolean
is_approved?: boolean
start_date?: boolean
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["timesheets"]>
export type TimesheetsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
employee_id?: boolean
is_approved?: boolean
start_date?: boolean
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
}, ExtArgs["result"]["timesheets"]>
export type TimesheetsSelectScalar = {
id?: boolean
employee_id?: boolean
is_approved?: boolean
start_date?: boolean
}
export type TimesheetsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "is_approved" | "start_date", ExtArgs["result"]["timesheets"]>
export type TimesheetsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
expense?: boolean | Prisma.Timesheets$expenseArgs<ExtArgs>
shift?: boolean | Prisma.Timesheets$shiftArgs<ExtArgs>
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
archive?: boolean | Prisma.Timesheets$archiveArgs<ExtArgs>
_count?: boolean | Prisma.TimesheetsCountOutputTypeDefaultArgs<ExtArgs>
}
export type TimesheetsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
}
export type TimesheetsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
employee?: boolean | Prisma.EmployeesDefaultArgs<ExtArgs>
}
export type $TimesheetsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Timesheets"
objects: {
expense: Prisma.$ExpensesPayload<ExtArgs>[]
shift: Prisma.$ShiftsPayload<ExtArgs>[]
employee: Prisma.$EmployeesPayload<ExtArgs>
archive: Prisma.$TimesheetsArchivePayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
employee_id: number
is_approved: boolean
start_date: Date
}, ExtArgs["result"]["timesheets"]>
composites: {}
}
export type TimesheetsGetPayload<S extends boolean | null | undefined | TimesheetsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload, S>
export type TimesheetsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<TimesheetsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: TimesheetsCountAggregateInputType | true
}
export interface TimesheetsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends TimesheetsFindUniqueArgs>(args: Prisma.SelectSubset<T, TimesheetsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TimesheetsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsFindFirstArgs>(args?: Prisma.SelectSubset<T, TimesheetsFindFirstArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TimesheetsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsFindManyArgs>(args?: Prisma.SelectSubset<T, TimesheetsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsCreateArgs>(args: Prisma.SelectSubset<T, TimesheetsCreateArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsCreateManyArgs>(args?: Prisma.SelectSubset<T, TimesheetsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends TimesheetsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TimesheetsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsDeleteArgs>(args: Prisma.SelectSubset<T, TimesheetsDeleteArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsUpdateArgs>(args: Prisma.SelectSubset<T, TimesheetsUpdateArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsDeleteManyArgs>(args?: Prisma.SelectSubset<T, TimesheetsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends TimesheetsUpdateManyArgs>(args: Prisma.SelectSubset<T, TimesheetsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends TimesheetsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TimesheetsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsUpsertArgs>(args: Prisma.SelectSubset<T, TimesheetsUpsertArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, 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<T extends TimesheetsCountArgs>(
args?: Prisma.Subset<T, TimesheetsCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], TimesheetsCountAggregateOutputType>
: 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<T extends TimesheetsAggregateArgs>(args: Prisma.Subset<T, TimesheetsAggregateArgs>): Prisma.PrismaPromise<GetTimesheetsAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: TimesheetsGroupByArgs['orderBy'] }
: { orderBy?: TimesheetsGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, TimesheetsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTimesheetsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
expense<T extends Prisma.Timesheets$expenseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Timesheets$expenseArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExpensesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
shift<T extends Prisma.Timesheets$shiftArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Timesheets$shiftArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShiftsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
employee<T extends Prisma.EmployeesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EmployeesDefaultArgs<ExtArgs>>): Prisma.Prisma__EmployeesClient<runtime.Types.Result.GetResult<Prisma.$EmployeesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
archive<T extends Prisma.Timesheets$archiveArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Timesheets$archiveArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* Filter, which Timesheets to fetch.
*/
where: Prisma.TimesheetsWhereUniqueInput
}
/**
* Timesheets findUniqueOrThrow
*/
export type TimesheetsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* Filter, which Timesheets to fetch.
*/
where: Prisma.TimesheetsWhereUniqueInput
}
/**
* Timesheets findFirst
*/
export type TimesheetsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* The data needed to create a Timesheets.
*/
data: Prisma.XOR<Prisma.TimesheetsCreateInput, Prisma.TimesheetsUncheckedCreateInput>
}
/**
* Timesheets createMany
*/
export type TimesheetsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Timesheets.
*/
data: Prisma.TimesheetsCreateManyInput | Prisma.TimesheetsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Timesheets createManyAndReturn
*/
export type TimesheetsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* Timesheets update
*/
export type TimesheetsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* The data needed to update a Timesheets.
*/
data: Prisma.XOR<Prisma.TimesheetsUpdateInput, Prisma.TimesheetsUncheckedUpdateInput>
/**
* Choose, which Timesheets to update.
*/
where: Prisma.TimesheetsWhereUniqueInput
}
/**
* Timesheets updateMany
*/
export type TimesheetsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Timesheets.
*/
data: Prisma.XOR<Prisma.TimesheetsUpdateManyMutationInput, Prisma.TimesheetsUncheckedUpdateManyInput>
/**
* Filter which Timesheets to update
*/
where?: Prisma.TimesheetsWhereInput
/**
* Limit how many Timesheets to update.
*/
limit?: number
}
/**
* Timesheets updateManyAndReturn
*/
export type TimesheetsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* The data used to update Timesheets.
*/
data: Prisma.XOR<Prisma.TimesheetsUpdateManyMutationInput, Prisma.TimesheetsUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* Timesheets upsert
*/
export type TimesheetsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* 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<Prisma.TimesheetsCreateInput, Prisma.TimesheetsUncheckedCreateInput>
/**
* In case the Timesheets was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.TimesheetsUpdateInput, Prisma.TimesheetsUncheckedUpdateInput>
}
/**
* Timesheets delete
*/
export type TimesheetsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
/**
* Filter which Timesheets to delete.
*/
where: Prisma.TimesheetsWhereUniqueInput
}
/**
* Timesheets deleteMany
*/
export type TimesheetsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Timesheets to delete
*/
where?: Prisma.TimesheetsWhereInput
/**
* Limit how many Timesheets to delete.
*/
limit?: number
}
/**
* Timesheets.expense
*/
export type Timesheets$expenseArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Expenses
*/
select?: Prisma.ExpensesSelect<ExtArgs> | null
/**
* Omit specific fields from the Expenses
*/
omit?: Prisma.ExpensesOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Shifts
*/
select?: Prisma.ShiftsSelect<ExtArgs> | null
/**
* Omit specific fields from the Shifts
*/
omit?: Prisma.ShiftsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsInclude<ExtArgs> | null
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TimesheetsArchive
*/
select?: Prisma.TimesheetsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the TimesheetsArchive
*/
omit?: Prisma.TimesheetsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsArchiveInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Timesheets
*/
select?: Prisma.TimesheetsSelect<ExtArgs> | null
/**
* Omit specific fields from the Timesheets
*/
omit?: Prisma.TimesheetsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsInclude<ExtArgs> | null
}