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

1392 lines
55 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 `TimesheetsArchive` 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 TimesheetsArchive
*
*/
export type TimesheetsArchiveModel = runtime.Types.Result.DefaultSelection<Prisma.$TimesheetsArchivePayload>
export type AggregateTimesheetsArchive = {
_count: TimesheetsArchiveCountAggregateOutputType | null
_avg: TimesheetsArchiveAvgAggregateOutputType | null
_sum: TimesheetsArchiveSumAggregateOutputType | null
_min: TimesheetsArchiveMinAggregateOutputType | null
_max: TimesheetsArchiveMaxAggregateOutputType | null
}
export type TimesheetsArchiveAvgAggregateOutputType = {
id: number | null
timesheet_id: number | null
employee_id: number | null
}
export type TimesheetsArchiveSumAggregateOutputType = {
id: number | null
timesheet_id: number | null
employee_id: number | null
}
export type TimesheetsArchiveMinAggregateOutputType = {
id: number | null
timesheet_id: number | null
archive_at: Date | null
employee_id: number | null
is_approved: boolean | null
}
export type TimesheetsArchiveMaxAggregateOutputType = {
id: number | null
timesheet_id: number | null
archive_at: Date | null
employee_id: number | null
is_approved: boolean | null
}
export type TimesheetsArchiveCountAggregateOutputType = {
id: number
timesheet_id: number
archive_at: number
employee_id: number
is_approved: number
_all: number
}
export type TimesheetsArchiveAvgAggregateInputType = {
id?: true
timesheet_id?: true
employee_id?: true
}
export type TimesheetsArchiveSumAggregateInputType = {
id?: true
timesheet_id?: true
employee_id?: true
}
export type TimesheetsArchiveMinAggregateInputType = {
id?: true
timesheet_id?: true
archive_at?: true
employee_id?: true
is_approved?: true
}
export type TimesheetsArchiveMaxAggregateInputType = {
id?: true
timesheet_id?: true
archive_at?: true
employee_id?: true
is_approved?: true
}
export type TimesheetsArchiveCountAggregateInputType = {
id?: true
timesheet_id?: true
archive_at?: true
employee_id?: true
is_approved?: true
_all?: true
}
export type TimesheetsArchiveAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which TimesheetsArchive to aggregate.
*/
where?: Prisma.TimesheetsArchiveWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TimesheetsArchives to fetch.
*/
orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.TimesheetsArchiveWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TimesheetsArchives 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` TimesheetsArchives.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned TimesheetsArchives
**/
_count?: true | TimesheetsArchiveCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: TimesheetsArchiveAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: TimesheetsArchiveSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: TimesheetsArchiveMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: TimesheetsArchiveMaxAggregateInputType
}
export type GetTimesheetsArchiveAggregateType<T extends TimesheetsArchiveAggregateArgs> = {
[P in keyof T & keyof AggregateTimesheetsArchive]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateTimesheetsArchive[P]>
: Prisma.GetScalarType<T[P], AggregateTimesheetsArchive[P]>
}
export type TimesheetsArchiveGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.TimesheetsArchiveWhereInput
orderBy?: Prisma.TimesheetsArchiveOrderByWithAggregationInput | Prisma.TimesheetsArchiveOrderByWithAggregationInput[]
by: Prisma.TimesheetsArchiveScalarFieldEnum[] | Prisma.TimesheetsArchiveScalarFieldEnum
having?: Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: TimesheetsArchiveCountAggregateInputType | true
_avg?: TimesheetsArchiveAvgAggregateInputType
_sum?: TimesheetsArchiveSumAggregateInputType
_min?: TimesheetsArchiveMinAggregateInputType
_max?: TimesheetsArchiveMaxAggregateInputType
}
export type TimesheetsArchiveGroupByOutputType = {
id: number
timesheet_id: number
archive_at: Date
employee_id: number
is_approved: boolean
_count: TimesheetsArchiveCountAggregateOutputType | null
_avg: TimesheetsArchiveAvgAggregateOutputType | null
_sum: TimesheetsArchiveSumAggregateOutputType | null
_min: TimesheetsArchiveMinAggregateOutputType | null
_max: TimesheetsArchiveMaxAggregateOutputType | null
}
type GetTimesheetsArchiveGroupByPayload<T extends TimesheetsArchiveGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<TimesheetsArchiveGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof TimesheetsArchiveGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], TimesheetsArchiveGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], TimesheetsArchiveGroupByOutputType[P]>
}
>
>
export type TimesheetsArchiveWhereInput = {
AND?: Prisma.TimesheetsArchiveWhereInput | Prisma.TimesheetsArchiveWhereInput[]
OR?: Prisma.TimesheetsArchiveWhereInput[]
NOT?: Prisma.TimesheetsArchiveWhereInput | Prisma.TimesheetsArchiveWhereInput[]
id?: Prisma.IntFilter<"TimesheetsArchive"> | number
timesheet_id?: Prisma.IntFilter<"TimesheetsArchive"> | number
archive_at?: Prisma.DateTimeFilter<"TimesheetsArchive"> | Date | string
employee_id?: Prisma.IntFilter<"TimesheetsArchive"> | number
is_approved?: Prisma.BoolFilter<"TimesheetsArchive"> | boolean
timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
}
export type TimesheetsArchiveOrderByWithRelationInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
employee_id?: Prisma.SortOrder
is_approved?: Prisma.SortOrder
timesheet?: Prisma.TimesheetsOrderByWithRelationInput
}
export type TimesheetsArchiveWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.TimesheetsArchiveWhereInput | Prisma.TimesheetsArchiveWhereInput[]
OR?: Prisma.TimesheetsArchiveWhereInput[]
NOT?: Prisma.TimesheetsArchiveWhereInput | Prisma.TimesheetsArchiveWhereInput[]
timesheet_id?: Prisma.IntFilter<"TimesheetsArchive"> | number
archive_at?: Prisma.DateTimeFilter<"TimesheetsArchive"> | Date | string
employee_id?: Prisma.IntFilter<"TimesheetsArchive"> | number
is_approved?: Prisma.BoolFilter<"TimesheetsArchive"> | boolean
timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
}, "id">
export type TimesheetsArchiveOrderByWithAggregationInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
employee_id?: Prisma.SortOrder
is_approved?: Prisma.SortOrder
_count?: Prisma.TimesheetsArchiveCountOrderByAggregateInput
_avg?: Prisma.TimesheetsArchiveAvgOrderByAggregateInput
_max?: Prisma.TimesheetsArchiveMaxOrderByAggregateInput
_min?: Prisma.TimesheetsArchiveMinOrderByAggregateInput
_sum?: Prisma.TimesheetsArchiveSumOrderByAggregateInput
}
export type TimesheetsArchiveScalarWhereWithAggregatesInput = {
AND?: Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput | Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput[]
OR?: Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput[]
NOT?: Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput | Prisma.TimesheetsArchiveScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"TimesheetsArchive"> | number
timesheet_id?: Prisma.IntWithAggregatesFilter<"TimesheetsArchive"> | number
archive_at?: Prisma.DateTimeWithAggregatesFilter<"TimesheetsArchive"> | Date | string
employee_id?: Prisma.IntWithAggregatesFilter<"TimesheetsArchive"> | number
is_approved?: Prisma.BoolWithAggregatesFilter<"TimesheetsArchive"> | boolean
}
export type TimesheetsArchiveCreateInput = {
archive_at?: Date | string
employee_id: number
is_approved: boolean
timesheet: Prisma.TimesheetsCreateNestedOneWithoutArchiveInput
}
export type TimesheetsArchiveUncheckedCreateInput = {
id?: number
timesheet_id: number
archive_at?: Date | string
employee_id: number
is_approved: boolean
}
export type TimesheetsArchiveUpdateInput = {
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
employee_id?: Prisma.IntFieldUpdateOperationsInput | number
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutArchiveNestedInput
}
export type TimesheetsArchiveUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
employee_id?: Prisma.IntFieldUpdateOperationsInput | number
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type TimesheetsArchiveCreateManyInput = {
id?: number
timesheet_id: number
archive_at?: Date | string
employee_id: number
is_approved: boolean
}
export type TimesheetsArchiveUpdateManyMutationInput = {
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
employee_id?: Prisma.IntFieldUpdateOperationsInput | number
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type TimesheetsArchiveUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
employee_id?: Prisma.IntFieldUpdateOperationsInput | number
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type TimesheetsArchiveListRelationFilter = {
every?: Prisma.TimesheetsArchiveWhereInput
some?: Prisma.TimesheetsArchiveWhereInput
none?: Prisma.TimesheetsArchiveWhereInput
}
export type TimesheetsArchiveOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type TimesheetsArchiveCountOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
employee_id?: Prisma.SortOrder
is_approved?: Prisma.SortOrder
}
export type TimesheetsArchiveAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
employee_id?: Prisma.SortOrder
}
export type TimesheetsArchiveMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
employee_id?: Prisma.SortOrder
is_approved?: Prisma.SortOrder
}
export type TimesheetsArchiveMinOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
employee_id?: Prisma.SortOrder
is_approved?: Prisma.SortOrder
}
export type TimesheetsArchiveSumOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
employee_id?: Prisma.SortOrder
}
export type TimesheetsArchiveCreateNestedManyWithoutTimesheetInput = {
create?: Prisma.XOR<Prisma.TimesheetsArchiveCreateWithoutTimesheetInput, Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput> | Prisma.TimesheetsArchiveCreateWithoutTimesheetInput[] | Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput[]
connectOrCreate?: Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput | Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput[]
createMany?: Prisma.TimesheetsArchiveCreateManyTimesheetInputEnvelope
connect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
}
export type TimesheetsArchiveUncheckedCreateNestedManyWithoutTimesheetInput = {
create?: Prisma.XOR<Prisma.TimesheetsArchiveCreateWithoutTimesheetInput, Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput> | Prisma.TimesheetsArchiveCreateWithoutTimesheetInput[] | Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput[]
connectOrCreate?: Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput | Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput[]
createMany?: Prisma.TimesheetsArchiveCreateManyTimesheetInputEnvelope
connect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
}
export type TimesheetsArchiveUpdateManyWithoutTimesheetNestedInput = {
create?: Prisma.XOR<Prisma.TimesheetsArchiveCreateWithoutTimesheetInput, Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput> | Prisma.TimesheetsArchiveCreateWithoutTimesheetInput[] | Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput[]
connectOrCreate?: Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput | Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput[]
upsert?: Prisma.TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput[]
createMany?: Prisma.TimesheetsArchiveCreateManyTimesheetInputEnvelope
set?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
disconnect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
delete?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
connect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
update?: Prisma.TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput[]
updateMany?: Prisma.TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput | Prisma.TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput[]
deleteMany?: Prisma.TimesheetsArchiveScalarWhereInput | Prisma.TimesheetsArchiveScalarWhereInput[]
}
export type TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetNestedInput = {
create?: Prisma.XOR<Prisma.TimesheetsArchiveCreateWithoutTimesheetInput, Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput> | Prisma.TimesheetsArchiveCreateWithoutTimesheetInput[] | Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput[]
connectOrCreate?: Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput | Prisma.TimesheetsArchiveCreateOrConnectWithoutTimesheetInput[]
upsert?: Prisma.TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput[]
createMany?: Prisma.TimesheetsArchiveCreateManyTimesheetInputEnvelope
set?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
disconnect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
delete?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
connect?: Prisma.TimesheetsArchiveWhereUniqueInput | Prisma.TimesheetsArchiveWhereUniqueInput[]
update?: Prisma.TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput[]
updateMany?: Prisma.TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput | Prisma.TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput[]
deleteMany?: Prisma.TimesheetsArchiveScalarWhereInput | Prisma.TimesheetsArchiveScalarWhereInput[]
}
export type TimesheetsArchiveCreateWithoutTimesheetInput = {
archive_at?: Date | string
employee_id: number
is_approved: boolean
}
export type TimesheetsArchiveUncheckedCreateWithoutTimesheetInput = {
id?: number
archive_at?: Date | string
employee_id: number
is_approved: boolean
}
export type TimesheetsArchiveCreateOrConnectWithoutTimesheetInput = {
where: Prisma.TimesheetsArchiveWhereUniqueInput
create: Prisma.XOR<Prisma.TimesheetsArchiveCreateWithoutTimesheetInput, Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput>
}
export type TimesheetsArchiveCreateManyTimesheetInputEnvelope = {
data: Prisma.TimesheetsArchiveCreateManyTimesheetInput | Prisma.TimesheetsArchiveCreateManyTimesheetInput[]
skipDuplicates?: boolean
}
export type TimesheetsArchiveUpsertWithWhereUniqueWithoutTimesheetInput = {
where: Prisma.TimesheetsArchiveWhereUniqueInput
update: Prisma.XOR<Prisma.TimesheetsArchiveUpdateWithoutTimesheetInput, Prisma.TimesheetsArchiveUncheckedUpdateWithoutTimesheetInput>
create: Prisma.XOR<Prisma.TimesheetsArchiveCreateWithoutTimesheetInput, Prisma.TimesheetsArchiveUncheckedCreateWithoutTimesheetInput>
}
export type TimesheetsArchiveUpdateWithWhereUniqueWithoutTimesheetInput = {
where: Prisma.TimesheetsArchiveWhereUniqueInput
data: Prisma.XOR<Prisma.TimesheetsArchiveUpdateWithoutTimesheetInput, Prisma.TimesheetsArchiveUncheckedUpdateWithoutTimesheetInput>
}
export type TimesheetsArchiveUpdateManyWithWhereWithoutTimesheetInput = {
where: Prisma.TimesheetsArchiveScalarWhereInput
data: Prisma.XOR<Prisma.TimesheetsArchiveUpdateManyMutationInput, Prisma.TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetInput>
}
export type TimesheetsArchiveScalarWhereInput = {
AND?: Prisma.TimesheetsArchiveScalarWhereInput | Prisma.TimesheetsArchiveScalarWhereInput[]
OR?: Prisma.TimesheetsArchiveScalarWhereInput[]
NOT?: Prisma.TimesheetsArchiveScalarWhereInput | Prisma.TimesheetsArchiveScalarWhereInput[]
id?: Prisma.IntFilter<"TimesheetsArchive"> | number
timesheet_id?: Prisma.IntFilter<"TimesheetsArchive"> | number
archive_at?: Prisma.DateTimeFilter<"TimesheetsArchive"> | Date | string
employee_id?: Prisma.IntFilter<"TimesheetsArchive"> | number
is_approved?: Prisma.BoolFilter<"TimesheetsArchive"> | boolean
}
export type TimesheetsArchiveCreateManyTimesheetInput = {
id?: number
archive_at?: Date | string
employee_id: number
is_approved: boolean
}
export type TimesheetsArchiveUpdateWithoutTimesheetInput = {
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
employee_id?: Prisma.IntFieldUpdateOperationsInput | number
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type TimesheetsArchiveUncheckedUpdateWithoutTimesheetInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
employee_id?: Prisma.IntFieldUpdateOperationsInput | number
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type TimesheetsArchiveUncheckedUpdateManyWithoutTimesheetInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
employee_id?: Prisma.IntFieldUpdateOperationsInput | number
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type TimesheetsArchiveSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
timesheet_id?: boolean
archive_at?: boolean
employee_id?: boolean
is_approved?: boolean
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["timesheetsArchive"]>
export type TimesheetsArchiveSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
timesheet_id?: boolean
archive_at?: boolean
employee_id?: boolean
is_approved?: boolean
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["timesheetsArchive"]>
export type TimesheetsArchiveSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
timesheet_id?: boolean
archive_at?: boolean
employee_id?: boolean
is_approved?: boolean
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["timesheetsArchive"]>
export type TimesheetsArchiveSelectScalar = {
id?: boolean
timesheet_id?: boolean
archive_at?: boolean
employee_id?: boolean
is_approved?: boolean
}
export type TimesheetsArchiveOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "timesheet_id" | "archive_at" | "employee_id" | "is_approved", ExtArgs["result"]["timesheetsArchive"]>
export type TimesheetsArchiveInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}
export type TimesheetsArchiveIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}
export type TimesheetsArchiveIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}
export type $TimesheetsArchivePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "TimesheetsArchive"
objects: {
timesheet: Prisma.$TimesheetsPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
timesheet_id: number
archive_at: Date
employee_id: number
is_approved: boolean
}, ExtArgs["result"]["timesheetsArchive"]>
composites: {}
}
export type TimesheetsArchiveGetPayload<S extends boolean | null | undefined | TimesheetsArchiveDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload, S>
export type TimesheetsArchiveCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<TimesheetsArchiveFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: TimesheetsArchiveCountAggregateInputType | true
}
export interface TimesheetsArchiveDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TimesheetsArchive'], meta: { name: 'TimesheetsArchive' } }
/**
* Find zero or one TimesheetsArchive that matches the filter.
* @param {TimesheetsArchiveFindUniqueArgs} args - Arguments to find a TimesheetsArchive
* @example
* // Get one TimesheetsArchive
* const timesheetsArchive = await prisma.timesheetsArchive.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends TimesheetsArchiveFindUniqueArgs>(args: Prisma.SelectSubset<T, TimesheetsArchiveFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TimesheetsArchiveClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one TimesheetsArchive that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {TimesheetsArchiveFindUniqueOrThrowArgs} args - Arguments to find a TimesheetsArchive
* @example
* // Get one TimesheetsArchive
* const timesheetsArchive = await prisma.timesheetsArchive.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends TimesheetsArchiveFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TimesheetsArchiveFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TimesheetsArchiveClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first TimesheetsArchive 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 {TimesheetsArchiveFindFirstArgs} args - Arguments to find a TimesheetsArchive
* @example
* // Get one TimesheetsArchive
* const timesheetsArchive = await prisma.timesheetsArchive.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends TimesheetsArchiveFindFirstArgs>(args?: Prisma.SelectSubset<T, TimesheetsArchiveFindFirstArgs<ExtArgs>>): Prisma.Prisma__TimesheetsArchiveClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first TimesheetsArchive 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 {TimesheetsArchiveFindFirstOrThrowArgs} args - Arguments to find a TimesheetsArchive
* @example
* // Get one TimesheetsArchive
* const timesheetsArchive = await prisma.timesheetsArchive.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends TimesheetsArchiveFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TimesheetsArchiveFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TimesheetsArchiveClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more TimesheetsArchives 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 {TimesheetsArchiveFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all TimesheetsArchives
* const timesheetsArchives = await prisma.timesheetsArchive.findMany()
*
* // Get first 10 TimesheetsArchives
* const timesheetsArchives = await prisma.timesheetsArchive.findMany({ take: 10 })
*
* // Only select the `id`
* const timesheetsArchiveWithIdOnly = await prisma.timesheetsArchive.findMany({ select: { id: true } })
*
*/
findMany<T extends TimesheetsArchiveFindManyArgs>(args?: Prisma.SelectSubset<T, TimesheetsArchiveFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a TimesheetsArchive.
* @param {TimesheetsArchiveCreateArgs} args - Arguments to create a TimesheetsArchive.
* @example
* // Create one TimesheetsArchive
* const TimesheetsArchive = await prisma.timesheetsArchive.create({
* data: {
* // ... data to create a TimesheetsArchive
* }
* })
*
*/
create<T extends TimesheetsArchiveCreateArgs>(args: Prisma.SelectSubset<T, TimesheetsArchiveCreateArgs<ExtArgs>>): Prisma.Prisma__TimesheetsArchiveClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many TimesheetsArchives.
* @param {TimesheetsArchiveCreateManyArgs} args - Arguments to create many TimesheetsArchives.
* @example
* // Create many TimesheetsArchives
* const timesheetsArchive = await prisma.timesheetsArchive.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends TimesheetsArchiveCreateManyArgs>(args?: Prisma.SelectSubset<T, TimesheetsArchiveCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many TimesheetsArchives and returns the data saved in the database.
* @param {TimesheetsArchiveCreateManyAndReturnArgs} args - Arguments to create many TimesheetsArchives.
* @example
* // Create many TimesheetsArchives
* const timesheetsArchive = await prisma.timesheetsArchive.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many TimesheetsArchives and only return the `id`
* const timesheetsArchiveWithIdOnly = await prisma.timesheetsArchive.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 TimesheetsArchiveCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TimesheetsArchiveCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a TimesheetsArchive.
* @param {TimesheetsArchiveDeleteArgs} args - Arguments to delete one TimesheetsArchive.
* @example
* // Delete one TimesheetsArchive
* const TimesheetsArchive = await prisma.timesheetsArchive.delete({
* where: {
* // ... filter to delete one TimesheetsArchive
* }
* })
*
*/
delete<T extends TimesheetsArchiveDeleteArgs>(args: Prisma.SelectSubset<T, TimesheetsArchiveDeleteArgs<ExtArgs>>): Prisma.Prisma__TimesheetsArchiveClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one TimesheetsArchive.
* @param {TimesheetsArchiveUpdateArgs} args - Arguments to update one TimesheetsArchive.
* @example
* // Update one TimesheetsArchive
* const timesheetsArchive = await prisma.timesheetsArchive.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends TimesheetsArchiveUpdateArgs>(args: Prisma.SelectSubset<T, TimesheetsArchiveUpdateArgs<ExtArgs>>): Prisma.Prisma__TimesheetsArchiveClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more TimesheetsArchives.
* @param {TimesheetsArchiveDeleteManyArgs} args - Arguments to filter TimesheetsArchives to delete.
* @example
* // Delete a few TimesheetsArchives
* const { count } = await prisma.timesheetsArchive.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends TimesheetsArchiveDeleteManyArgs>(args?: Prisma.SelectSubset<T, TimesheetsArchiveDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more TimesheetsArchives.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TimesheetsArchiveUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many TimesheetsArchives
* const timesheetsArchive = await prisma.timesheetsArchive.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends TimesheetsArchiveUpdateManyArgs>(args: Prisma.SelectSubset<T, TimesheetsArchiveUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more TimesheetsArchives and returns the data updated in the database.
* @param {TimesheetsArchiveUpdateManyAndReturnArgs} args - Arguments to update many TimesheetsArchives.
* @example
* // Update many TimesheetsArchives
* const timesheetsArchive = await prisma.timesheetsArchive.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more TimesheetsArchives and only return the `id`
* const timesheetsArchiveWithIdOnly = await prisma.timesheetsArchive.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 TimesheetsArchiveUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TimesheetsArchiveUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one TimesheetsArchive.
* @param {TimesheetsArchiveUpsertArgs} args - Arguments to update or create a TimesheetsArchive.
* @example
* // Update or create a TimesheetsArchive
* const timesheetsArchive = await prisma.timesheetsArchive.upsert({
* create: {
* // ... data to create a TimesheetsArchive
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the TimesheetsArchive we want to update
* }
* })
*/
upsert<T extends TimesheetsArchiveUpsertArgs>(args: Prisma.SelectSubset<T, TimesheetsArchiveUpsertArgs<ExtArgs>>): Prisma.Prisma__TimesheetsArchiveClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsArchivePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of TimesheetsArchives.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TimesheetsArchiveCountArgs} args - Arguments to filter TimesheetsArchives to count.
* @example
* // Count the number of TimesheetsArchives
* const count = await prisma.timesheetsArchive.count({
* where: {
* // ... the filter for the TimesheetsArchives we want to count
* }
* })
**/
count<T extends TimesheetsArchiveCountArgs>(
args?: Prisma.Subset<T, TimesheetsArchiveCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], TimesheetsArchiveCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a TimesheetsArchive.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TimesheetsArchiveAggregateArgs} 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 TimesheetsArchiveAggregateArgs>(args: Prisma.Subset<T, TimesheetsArchiveAggregateArgs>): Prisma.PrismaPromise<GetTimesheetsArchiveAggregateType<T>>
/**
* Group by TimesheetsArchive.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {TimesheetsArchiveGroupByArgs} 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 TimesheetsArchiveGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: TimesheetsArchiveGroupByArgs['orderBy'] }
: { orderBy?: TimesheetsArchiveGroupByArgs['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, TimesheetsArchiveGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTimesheetsArchiveGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the TimesheetsArchive model
*/
readonly fields: TimesheetsArchiveFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for TimesheetsArchive.
* 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__TimesheetsArchiveClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
timesheet<T extends Prisma.TimesheetsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TimesheetsDefaultArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* 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 TimesheetsArchive model
*/
export interface TimesheetsArchiveFieldRefs {
readonly id: Prisma.FieldRef<"TimesheetsArchive", 'Int'>
readonly timesheet_id: Prisma.FieldRef<"TimesheetsArchive", 'Int'>
readonly archive_at: Prisma.FieldRef<"TimesheetsArchive", 'DateTime'>
readonly employee_id: Prisma.FieldRef<"TimesheetsArchive", 'Int'>
readonly is_approved: Prisma.FieldRef<"TimesheetsArchive", 'Boolean'>
}
// Custom InputTypes
/**
* TimesheetsArchive findUnique
*/
export type TimesheetsArchiveFindUniqueArgs<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
/**
* Filter, which TimesheetsArchive to fetch.
*/
where: Prisma.TimesheetsArchiveWhereUniqueInput
}
/**
* TimesheetsArchive findUniqueOrThrow
*/
export type TimesheetsArchiveFindUniqueOrThrowArgs<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
/**
* Filter, which TimesheetsArchive to fetch.
*/
where: Prisma.TimesheetsArchiveWhereUniqueInput
}
/**
* TimesheetsArchive findFirst
*/
export type TimesheetsArchiveFindFirstArgs<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
/**
* Filter, which TimesheetsArchive to fetch.
*/
where?: Prisma.TimesheetsArchiveWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TimesheetsArchives to fetch.
*/
orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for TimesheetsArchives.
*/
cursor?: Prisma.TimesheetsArchiveWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TimesheetsArchives 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` TimesheetsArchives.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TimesheetsArchives.
*/
distinct?: Prisma.TimesheetsArchiveScalarFieldEnum | Prisma.TimesheetsArchiveScalarFieldEnum[]
}
/**
* TimesheetsArchive findFirstOrThrow
*/
export type TimesheetsArchiveFindFirstOrThrowArgs<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
/**
* Filter, which TimesheetsArchive to fetch.
*/
where?: Prisma.TimesheetsArchiveWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TimesheetsArchives to fetch.
*/
orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for TimesheetsArchives.
*/
cursor?: Prisma.TimesheetsArchiveWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TimesheetsArchives 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` TimesheetsArchives.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of TimesheetsArchives.
*/
distinct?: Prisma.TimesheetsArchiveScalarFieldEnum | Prisma.TimesheetsArchiveScalarFieldEnum[]
}
/**
* TimesheetsArchive findMany
*/
export type TimesheetsArchiveFindManyArgs<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
/**
* Filter, which TimesheetsArchives to fetch.
*/
where?: Prisma.TimesheetsArchiveWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of TimesheetsArchives to fetch.
*/
orderBy?: Prisma.TimesheetsArchiveOrderByWithRelationInput | Prisma.TimesheetsArchiveOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing TimesheetsArchives.
*/
cursor?: Prisma.TimesheetsArchiveWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` TimesheetsArchives 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` TimesheetsArchives.
*/
skip?: number
distinct?: Prisma.TimesheetsArchiveScalarFieldEnum | Prisma.TimesheetsArchiveScalarFieldEnum[]
}
/**
* TimesheetsArchive create
*/
export type TimesheetsArchiveCreateArgs<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
/**
* The data needed to create a TimesheetsArchive.
*/
data: Prisma.XOR<Prisma.TimesheetsArchiveCreateInput, Prisma.TimesheetsArchiveUncheckedCreateInput>
}
/**
* TimesheetsArchive createMany
*/
export type TimesheetsArchiveCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many TimesheetsArchives.
*/
data: Prisma.TimesheetsArchiveCreateManyInput | Prisma.TimesheetsArchiveCreateManyInput[]
skipDuplicates?: boolean
}
/**
* TimesheetsArchive createManyAndReturn
*/
export type TimesheetsArchiveCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TimesheetsArchive
*/
select?: Prisma.TimesheetsArchiveSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TimesheetsArchive
*/
omit?: Prisma.TimesheetsArchiveOmit<ExtArgs> | null
/**
* The data used to create many TimesheetsArchives.
*/
data: Prisma.TimesheetsArchiveCreateManyInput | Prisma.TimesheetsArchiveCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsArchiveIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* TimesheetsArchive update
*/
export type TimesheetsArchiveUpdateArgs<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
/**
* The data needed to update a TimesheetsArchive.
*/
data: Prisma.XOR<Prisma.TimesheetsArchiveUpdateInput, Prisma.TimesheetsArchiveUncheckedUpdateInput>
/**
* Choose, which TimesheetsArchive to update.
*/
where: Prisma.TimesheetsArchiveWhereUniqueInput
}
/**
* TimesheetsArchive updateMany
*/
export type TimesheetsArchiveUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update TimesheetsArchives.
*/
data: Prisma.XOR<Prisma.TimesheetsArchiveUpdateManyMutationInput, Prisma.TimesheetsArchiveUncheckedUpdateManyInput>
/**
* Filter which TimesheetsArchives to update
*/
where?: Prisma.TimesheetsArchiveWhereInput
/**
* Limit how many TimesheetsArchives to update.
*/
limit?: number
}
/**
* TimesheetsArchive updateManyAndReturn
*/
export type TimesheetsArchiveUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the TimesheetsArchive
*/
select?: Prisma.TimesheetsArchiveSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the TimesheetsArchive
*/
omit?: Prisma.TimesheetsArchiveOmit<ExtArgs> | null
/**
* The data used to update TimesheetsArchives.
*/
data: Prisma.XOR<Prisma.TimesheetsArchiveUpdateManyMutationInput, Prisma.TimesheetsArchiveUncheckedUpdateManyInput>
/**
* Filter which TimesheetsArchives to update
*/
where?: Prisma.TimesheetsArchiveWhereInput
/**
* Limit how many TimesheetsArchives to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.TimesheetsArchiveIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* TimesheetsArchive upsert
*/
export type TimesheetsArchiveUpsertArgs<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
/**
* The filter to search for the TimesheetsArchive to update in case it exists.
*/
where: Prisma.TimesheetsArchiveWhereUniqueInput
/**
* In case the TimesheetsArchive found by the `where` argument doesn't exist, create a new TimesheetsArchive with this data.
*/
create: Prisma.XOR<Prisma.TimesheetsArchiveCreateInput, Prisma.TimesheetsArchiveUncheckedCreateInput>
/**
* In case the TimesheetsArchive was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.TimesheetsArchiveUpdateInput, Prisma.TimesheetsArchiveUncheckedUpdateInput>
}
/**
* TimesheetsArchive delete
*/
export type TimesheetsArchiveDeleteArgs<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
/**
* Filter which TimesheetsArchive to delete.
*/
where: Prisma.TimesheetsArchiveWhereUniqueInput
}
/**
* TimesheetsArchive deleteMany
*/
export type TimesheetsArchiveDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which TimesheetsArchives to delete
*/
where?: Prisma.TimesheetsArchiveWhereInput
/**
* Limit how many TimesheetsArchives to delete.
*/
limit?: number
}
/**
* TimesheetsArchive without action
*/
export type TimesheetsArchiveDefaultArgs<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
}