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

1538 lines
58 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 `ShiftsArchive` 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 ShiftsArchive
*
*/
export type ShiftsArchiveModel = runtime.Types.Result.DefaultSelection<Prisma.$ShiftsArchivePayload>
export type AggregateShiftsArchive = {
_count: ShiftsArchiveCountAggregateOutputType | null
_avg: ShiftsArchiveAvgAggregateOutputType | null
_sum: ShiftsArchiveSumAggregateOutputType | null
_min: ShiftsArchiveMinAggregateOutputType | null
_max: ShiftsArchiveMaxAggregateOutputType | null
}
export type ShiftsArchiveAvgAggregateOutputType = {
id: number | null
shift_id: number | null
timesheet_id: number | null
bank_code_id: number | null
}
export type ShiftsArchiveSumAggregateOutputType = {
id: number | null
shift_id: number | null
timesheet_id: number | null
bank_code_id: number | null
}
export type ShiftsArchiveMinAggregateOutputType = {
id: number | null
shift_id: number | null
archive_at: Date | null
timesheet_id: number | null
date: Date | null
start_time: Date | null
end_time: Date | null
bank_code_id: number | null
comment: string | null
}
export type ShiftsArchiveMaxAggregateOutputType = {
id: number | null
shift_id: number | null
archive_at: Date | null
timesheet_id: number | null
date: Date | null
start_time: Date | null
end_time: Date | null
bank_code_id: number | null
comment: string | null
}
export type ShiftsArchiveCountAggregateOutputType = {
id: number
shift_id: number
archive_at: number
timesheet_id: number
date: number
start_time: number
end_time: number
bank_code_id: number
comment: number
_all: number
}
export type ShiftsArchiveAvgAggregateInputType = {
id?: true
shift_id?: true
timesheet_id?: true
bank_code_id?: true
}
export type ShiftsArchiveSumAggregateInputType = {
id?: true
shift_id?: true
timesheet_id?: true
bank_code_id?: true
}
export type ShiftsArchiveMinAggregateInputType = {
id?: true
shift_id?: true
archive_at?: true
timesheet_id?: true
date?: true
start_time?: true
end_time?: true
bank_code_id?: true
comment?: true
}
export type ShiftsArchiveMaxAggregateInputType = {
id?: true
shift_id?: true
archive_at?: true
timesheet_id?: true
date?: true
start_time?: true
end_time?: true
bank_code_id?: true
comment?: true
}
export type ShiftsArchiveCountAggregateInputType = {
id?: true
shift_id?: true
archive_at?: true
timesheet_id?: true
date?: true
start_time?: true
end_time?: true
bank_code_id?: true
comment?: true
_all?: true
}
export type ShiftsArchiveAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which ShiftsArchive to aggregate.
*/
where?: Prisma.ShiftsArchiveWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ShiftsArchives to fetch.
*/
orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.ShiftsArchiveWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ShiftsArchives 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` ShiftsArchives.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned ShiftsArchives
**/
_count?: true | ShiftsArchiveCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ShiftsArchiveAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ShiftsArchiveSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ShiftsArchiveMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ShiftsArchiveMaxAggregateInputType
}
export type GetShiftsArchiveAggregateType<T extends ShiftsArchiveAggregateArgs> = {
[P in keyof T & keyof AggregateShiftsArchive]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateShiftsArchive[P]>
: Prisma.GetScalarType<T[P], AggregateShiftsArchive[P]>
}
export type ShiftsArchiveGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ShiftsArchiveWhereInput
orderBy?: Prisma.ShiftsArchiveOrderByWithAggregationInput | Prisma.ShiftsArchiveOrderByWithAggregationInput[]
by: Prisma.ShiftsArchiveScalarFieldEnum[] | Prisma.ShiftsArchiveScalarFieldEnum
having?: Prisma.ShiftsArchiveScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ShiftsArchiveCountAggregateInputType | true
_avg?: ShiftsArchiveAvgAggregateInputType
_sum?: ShiftsArchiveSumAggregateInputType
_min?: ShiftsArchiveMinAggregateInputType
_max?: ShiftsArchiveMaxAggregateInputType
}
export type ShiftsArchiveGroupByOutputType = {
id: number
shift_id: number
archive_at: Date
timesheet_id: number
date: Date
start_time: Date
end_time: Date
bank_code_id: number
comment: string | null
_count: ShiftsArchiveCountAggregateOutputType | null
_avg: ShiftsArchiveAvgAggregateOutputType | null
_sum: ShiftsArchiveSumAggregateOutputType | null
_min: ShiftsArchiveMinAggregateOutputType | null
_max: ShiftsArchiveMaxAggregateOutputType | null
}
type GetShiftsArchiveGroupByPayload<T extends ShiftsArchiveGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ShiftsArchiveGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ShiftsArchiveGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ShiftsArchiveGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ShiftsArchiveGroupByOutputType[P]>
}
>
>
export type ShiftsArchiveWhereInput = {
AND?: Prisma.ShiftsArchiveWhereInput | Prisma.ShiftsArchiveWhereInput[]
OR?: Prisma.ShiftsArchiveWhereInput[]
NOT?: Prisma.ShiftsArchiveWhereInput | Prisma.ShiftsArchiveWhereInput[]
id?: Prisma.IntFilter<"ShiftsArchive"> | number
shift_id?: Prisma.IntFilter<"ShiftsArchive"> | number
archive_at?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
timesheet_id?: Prisma.IntFilter<"ShiftsArchive"> | number
date?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
start_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
end_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
bank_code_id?: Prisma.IntFilter<"ShiftsArchive"> | number
comment?: Prisma.StringNullableFilter<"ShiftsArchive"> | string | null
shift?: Prisma.XOR<Prisma.ShiftsScalarRelationFilter, Prisma.ShiftsWhereInput>
}
export type ShiftsArchiveOrderByWithRelationInput = {
id?: Prisma.SortOrder
shift_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
start_time?: Prisma.SortOrder
end_time?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrderInput | Prisma.SortOrder
shift?: Prisma.ShiftsOrderByWithRelationInput
}
export type ShiftsArchiveWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.ShiftsArchiveWhereInput | Prisma.ShiftsArchiveWhereInput[]
OR?: Prisma.ShiftsArchiveWhereInput[]
NOT?: Prisma.ShiftsArchiveWhereInput | Prisma.ShiftsArchiveWhereInput[]
shift_id?: Prisma.IntFilter<"ShiftsArchive"> | number
archive_at?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
timesheet_id?: Prisma.IntFilter<"ShiftsArchive"> | number
date?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
start_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
end_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
bank_code_id?: Prisma.IntFilter<"ShiftsArchive"> | number
comment?: Prisma.StringNullableFilter<"ShiftsArchive"> | string | null
shift?: Prisma.XOR<Prisma.ShiftsScalarRelationFilter, Prisma.ShiftsWhereInput>
}, "id">
export type ShiftsArchiveOrderByWithAggregationInput = {
id?: Prisma.SortOrder
shift_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
start_time?: Prisma.SortOrder
end_time?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.ShiftsArchiveCountOrderByAggregateInput
_avg?: Prisma.ShiftsArchiveAvgOrderByAggregateInput
_max?: Prisma.ShiftsArchiveMaxOrderByAggregateInput
_min?: Prisma.ShiftsArchiveMinOrderByAggregateInput
_sum?: Prisma.ShiftsArchiveSumOrderByAggregateInput
}
export type ShiftsArchiveScalarWhereWithAggregatesInput = {
AND?: Prisma.ShiftsArchiveScalarWhereWithAggregatesInput | Prisma.ShiftsArchiveScalarWhereWithAggregatesInput[]
OR?: Prisma.ShiftsArchiveScalarWhereWithAggregatesInput[]
NOT?: Prisma.ShiftsArchiveScalarWhereWithAggregatesInput | Prisma.ShiftsArchiveScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"ShiftsArchive"> | number
shift_id?: Prisma.IntWithAggregatesFilter<"ShiftsArchive"> | number
archive_at?: Prisma.DateTimeWithAggregatesFilter<"ShiftsArchive"> | Date | string
timesheet_id?: Prisma.IntWithAggregatesFilter<"ShiftsArchive"> | number
date?: Prisma.DateTimeWithAggregatesFilter<"ShiftsArchive"> | Date | string
start_time?: Prisma.DateTimeWithAggregatesFilter<"ShiftsArchive"> | Date | string
end_time?: Prisma.DateTimeWithAggregatesFilter<"ShiftsArchive"> | Date | string
bank_code_id?: Prisma.IntWithAggregatesFilter<"ShiftsArchive"> | number
comment?: Prisma.StringNullableWithAggregatesFilter<"ShiftsArchive"> | string | null
}
export type ShiftsArchiveCreateInput = {
archive_at?: Date | string
timesheet_id: number
date: Date | string
start_time: Date | string
end_time: Date | string
bank_code_id: number
comment?: string | null
shift: Prisma.ShiftsCreateNestedOneWithoutArchiveInput
}
export type ShiftsArchiveUncheckedCreateInput = {
id?: number
shift_id: number
archive_at?: Date | string
timesheet_id: number
date: Date | string
start_time: Date | string
end_time: Date | string
bank_code_id: number
comment?: string | null
}
export type ShiftsArchiveUpdateInput = {
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
shift?: Prisma.ShiftsUpdateOneRequiredWithoutArchiveNestedInput
}
export type ShiftsArchiveUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
shift_id?: Prisma.IntFieldUpdateOperationsInput | number
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShiftsArchiveCreateManyInput = {
id?: number
shift_id: number
archive_at?: Date | string
timesheet_id: number
date: Date | string
start_time: Date | string
end_time: Date | string
bank_code_id: number
comment?: string | null
}
export type ShiftsArchiveUpdateManyMutationInput = {
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShiftsArchiveUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
shift_id?: Prisma.IntFieldUpdateOperationsInput | number
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShiftsArchiveListRelationFilter = {
every?: Prisma.ShiftsArchiveWhereInput
some?: Prisma.ShiftsArchiveWhereInput
none?: Prisma.ShiftsArchiveWhereInput
}
export type ShiftsArchiveOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type ShiftsArchiveCountOrderByAggregateInput = {
id?: Prisma.SortOrder
shift_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
start_time?: Prisma.SortOrder
end_time?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrder
}
export type ShiftsArchiveAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
shift_id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
}
export type ShiftsArchiveMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
shift_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
start_time?: Prisma.SortOrder
end_time?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrder
}
export type ShiftsArchiveMinOrderByAggregateInput = {
id?: Prisma.SortOrder
shift_id?: Prisma.SortOrder
archive_at?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
start_time?: Prisma.SortOrder
end_time?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrder
}
export type ShiftsArchiveSumOrderByAggregateInput = {
id?: Prisma.SortOrder
shift_id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
}
export type ShiftsArchiveCreateNestedManyWithoutShiftInput = {
create?: Prisma.XOR<Prisma.ShiftsArchiveCreateWithoutShiftInput, Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput> | Prisma.ShiftsArchiveCreateWithoutShiftInput[] | Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput[]
connectOrCreate?: Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput | Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput[]
createMany?: Prisma.ShiftsArchiveCreateManyShiftInputEnvelope
connect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
}
export type ShiftsArchiveUncheckedCreateNestedManyWithoutShiftInput = {
create?: Prisma.XOR<Prisma.ShiftsArchiveCreateWithoutShiftInput, Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput> | Prisma.ShiftsArchiveCreateWithoutShiftInput[] | Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput[]
connectOrCreate?: Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput | Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput[]
createMany?: Prisma.ShiftsArchiveCreateManyShiftInputEnvelope
connect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
}
export type ShiftsArchiveUpdateManyWithoutShiftNestedInput = {
create?: Prisma.XOR<Prisma.ShiftsArchiveCreateWithoutShiftInput, Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput> | Prisma.ShiftsArchiveCreateWithoutShiftInput[] | Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput[]
connectOrCreate?: Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput | Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput[]
upsert?: Prisma.ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput | Prisma.ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput[]
createMany?: Prisma.ShiftsArchiveCreateManyShiftInputEnvelope
set?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
disconnect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
delete?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
connect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
update?: Prisma.ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput | Prisma.ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput[]
updateMany?: Prisma.ShiftsArchiveUpdateManyWithWhereWithoutShiftInput | Prisma.ShiftsArchiveUpdateManyWithWhereWithoutShiftInput[]
deleteMany?: Prisma.ShiftsArchiveScalarWhereInput | Prisma.ShiftsArchiveScalarWhereInput[]
}
export type ShiftsArchiveUncheckedUpdateManyWithoutShiftNestedInput = {
create?: Prisma.XOR<Prisma.ShiftsArchiveCreateWithoutShiftInput, Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput> | Prisma.ShiftsArchiveCreateWithoutShiftInput[] | Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput[]
connectOrCreate?: Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput | Prisma.ShiftsArchiveCreateOrConnectWithoutShiftInput[]
upsert?: Prisma.ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput | Prisma.ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput[]
createMany?: Prisma.ShiftsArchiveCreateManyShiftInputEnvelope
set?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
disconnect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
delete?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
connect?: Prisma.ShiftsArchiveWhereUniqueInput | Prisma.ShiftsArchiveWhereUniqueInput[]
update?: Prisma.ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput | Prisma.ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput[]
updateMany?: Prisma.ShiftsArchiveUpdateManyWithWhereWithoutShiftInput | Prisma.ShiftsArchiveUpdateManyWithWhereWithoutShiftInput[]
deleteMany?: Prisma.ShiftsArchiveScalarWhereInput | Prisma.ShiftsArchiveScalarWhereInput[]
}
export type ShiftsArchiveCreateWithoutShiftInput = {
archive_at?: Date | string
timesheet_id: number
date: Date | string
start_time: Date | string
end_time: Date | string
bank_code_id: number
comment?: string | null
}
export type ShiftsArchiveUncheckedCreateWithoutShiftInput = {
id?: number
archive_at?: Date | string
timesheet_id: number
date: Date | string
start_time: Date | string
end_time: Date | string
bank_code_id: number
comment?: string | null
}
export type ShiftsArchiveCreateOrConnectWithoutShiftInput = {
where: Prisma.ShiftsArchiveWhereUniqueInput
create: Prisma.XOR<Prisma.ShiftsArchiveCreateWithoutShiftInput, Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput>
}
export type ShiftsArchiveCreateManyShiftInputEnvelope = {
data: Prisma.ShiftsArchiveCreateManyShiftInput | Prisma.ShiftsArchiveCreateManyShiftInput[]
skipDuplicates?: boolean
}
export type ShiftsArchiveUpsertWithWhereUniqueWithoutShiftInput = {
where: Prisma.ShiftsArchiveWhereUniqueInput
update: Prisma.XOR<Prisma.ShiftsArchiveUpdateWithoutShiftInput, Prisma.ShiftsArchiveUncheckedUpdateWithoutShiftInput>
create: Prisma.XOR<Prisma.ShiftsArchiveCreateWithoutShiftInput, Prisma.ShiftsArchiveUncheckedCreateWithoutShiftInput>
}
export type ShiftsArchiveUpdateWithWhereUniqueWithoutShiftInput = {
where: Prisma.ShiftsArchiveWhereUniqueInput
data: Prisma.XOR<Prisma.ShiftsArchiveUpdateWithoutShiftInput, Prisma.ShiftsArchiveUncheckedUpdateWithoutShiftInput>
}
export type ShiftsArchiveUpdateManyWithWhereWithoutShiftInput = {
where: Prisma.ShiftsArchiveScalarWhereInput
data: Prisma.XOR<Prisma.ShiftsArchiveUpdateManyMutationInput, Prisma.ShiftsArchiveUncheckedUpdateManyWithoutShiftInput>
}
export type ShiftsArchiveScalarWhereInput = {
AND?: Prisma.ShiftsArchiveScalarWhereInput | Prisma.ShiftsArchiveScalarWhereInput[]
OR?: Prisma.ShiftsArchiveScalarWhereInput[]
NOT?: Prisma.ShiftsArchiveScalarWhereInput | Prisma.ShiftsArchiveScalarWhereInput[]
id?: Prisma.IntFilter<"ShiftsArchive"> | number
shift_id?: Prisma.IntFilter<"ShiftsArchive"> | number
archive_at?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
timesheet_id?: Prisma.IntFilter<"ShiftsArchive"> | number
date?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
start_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
end_time?: Prisma.DateTimeFilter<"ShiftsArchive"> | Date | string
bank_code_id?: Prisma.IntFilter<"ShiftsArchive"> | number
comment?: Prisma.StringNullableFilter<"ShiftsArchive"> | string | null
}
export type ShiftsArchiveCreateManyShiftInput = {
id?: number
archive_at?: Date | string
timesheet_id: number
date: Date | string
start_time: Date | string
end_time: Date | string
bank_code_id: number
comment?: string | null
}
export type ShiftsArchiveUpdateWithoutShiftInput = {
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShiftsArchiveUncheckedUpdateWithoutShiftInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShiftsArchiveUncheckedUpdateManyWithoutShiftInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
archive_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type ShiftsArchiveSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
shift_id?: boolean
archive_at?: boolean
timesheet_id?: boolean
date?: boolean
start_time?: boolean
end_time?: boolean
bank_code_id?: boolean
comment?: boolean
shift?: boolean | Prisma.ShiftsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["shiftsArchive"]>
export type ShiftsArchiveSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
shift_id?: boolean
archive_at?: boolean
timesheet_id?: boolean
date?: boolean
start_time?: boolean
end_time?: boolean
bank_code_id?: boolean
comment?: boolean
shift?: boolean | Prisma.ShiftsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["shiftsArchive"]>
export type ShiftsArchiveSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
shift_id?: boolean
archive_at?: boolean
timesheet_id?: boolean
date?: boolean
start_time?: boolean
end_time?: boolean
bank_code_id?: boolean
comment?: boolean
shift?: boolean | Prisma.ShiftsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["shiftsArchive"]>
export type ShiftsArchiveSelectScalar = {
id?: boolean
shift_id?: boolean
archive_at?: boolean
timesheet_id?: boolean
date?: boolean
start_time?: boolean
end_time?: boolean
bank_code_id?: boolean
comment?: boolean
}
export type ShiftsArchiveOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "shift_id" | "archive_at" | "timesheet_id" | "date" | "start_time" | "end_time" | "bank_code_id" | "comment", ExtArgs["result"]["shiftsArchive"]>
export type ShiftsArchiveInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
shift?: boolean | Prisma.ShiftsDefaultArgs<ExtArgs>
}
export type ShiftsArchiveIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
shift?: boolean | Prisma.ShiftsDefaultArgs<ExtArgs>
}
export type ShiftsArchiveIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
shift?: boolean | Prisma.ShiftsDefaultArgs<ExtArgs>
}
export type $ShiftsArchivePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "ShiftsArchive"
objects: {
shift: Prisma.$ShiftsPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
shift_id: number
archive_at: Date
timesheet_id: number
date: Date
start_time: Date
end_time: Date
bank_code_id: number
comment: string | null
}, ExtArgs["result"]["shiftsArchive"]>
composites: {}
}
export type ShiftsArchiveGetPayload<S extends boolean | null | undefined | ShiftsArchiveDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload, S>
export type ShiftsArchiveCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<ShiftsArchiveFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ShiftsArchiveCountAggregateInputType | true
}
export interface ShiftsArchiveDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShiftsArchive'], meta: { name: 'ShiftsArchive' } }
/**
* Find zero or one ShiftsArchive that matches the filter.
* @param {ShiftsArchiveFindUniqueArgs} args - Arguments to find a ShiftsArchive
* @example
* // Get one ShiftsArchive
* const shiftsArchive = await prisma.shiftsArchive.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends ShiftsArchiveFindUniqueArgs>(args: Prisma.SelectSubset<T, ShiftsArchiveFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ShiftsArchiveClient<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one ShiftsArchive that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {ShiftsArchiveFindUniqueOrThrowArgs} args - Arguments to find a ShiftsArchive
* @example
* // Get one ShiftsArchive
* const shiftsArchive = await prisma.shiftsArchive.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends ShiftsArchiveFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ShiftsArchiveFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShiftsArchiveClient<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first ShiftsArchive 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 {ShiftsArchiveFindFirstArgs} args - Arguments to find a ShiftsArchive
* @example
* // Get one ShiftsArchive
* const shiftsArchive = await prisma.shiftsArchive.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends ShiftsArchiveFindFirstArgs>(args?: Prisma.SelectSubset<T, ShiftsArchiveFindFirstArgs<ExtArgs>>): Prisma.Prisma__ShiftsArchiveClient<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first ShiftsArchive 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 {ShiftsArchiveFindFirstOrThrowArgs} args - Arguments to find a ShiftsArchive
* @example
* // Get one ShiftsArchive
* const shiftsArchive = await prisma.shiftsArchive.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends ShiftsArchiveFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ShiftsArchiveFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShiftsArchiveClient<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more ShiftsArchives 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 {ShiftsArchiveFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all ShiftsArchives
* const shiftsArchives = await prisma.shiftsArchive.findMany()
*
* // Get first 10 ShiftsArchives
* const shiftsArchives = await prisma.shiftsArchive.findMany({ take: 10 })
*
* // Only select the `id`
* const shiftsArchiveWithIdOnly = await prisma.shiftsArchive.findMany({ select: { id: true } })
*
*/
findMany<T extends ShiftsArchiveFindManyArgs>(args?: Prisma.SelectSubset<T, ShiftsArchiveFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a ShiftsArchive.
* @param {ShiftsArchiveCreateArgs} args - Arguments to create a ShiftsArchive.
* @example
* // Create one ShiftsArchive
* const ShiftsArchive = await prisma.shiftsArchive.create({
* data: {
* // ... data to create a ShiftsArchive
* }
* })
*
*/
create<T extends ShiftsArchiveCreateArgs>(args: Prisma.SelectSubset<T, ShiftsArchiveCreateArgs<ExtArgs>>): Prisma.Prisma__ShiftsArchiveClient<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many ShiftsArchives.
* @param {ShiftsArchiveCreateManyArgs} args - Arguments to create many ShiftsArchives.
* @example
* // Create many ShiftsArchives
* const shiftsArchive = await prisma.shiftsArchive.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends ShiftsArchiveCreateManyArgs>(args?: Prisma.SelectSubset<T, ShiftsArchiveCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many ShiftsArchives and returns the data saved in the database.
* @param {ShiftsArchiveCreateManyAndReturnArgs} args - Arguments to create many ShiftsArchives.
* @example
* // Create many ShiftsArchives
* const shiftsArchive = await prisma.shiftsArchive.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many ShiftsArchives and only return the `id`
* const shiftsArchiveWithIdOnly = await prisma.shiftsArchive.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 ShiftsArchiveCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShiftsArchiveCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a ShiftsArchive.
* @param {ShiftsArchiveDeleteArgs} args - Arguments to delete one ShiftsArchive.
* @example
* // Delete one ShiftsArchive
* const ShiftsArchive = await prisma.shiftsArchive.delete({
* where: {
* // ... filter to delete one ShiftsArchive
* }
* })
*
*/
delete<T extends ShiftsArchiveDeleteArgs>(args: Prisma.SelectSubset<T, ShiftsArchiveDeleteArgs<ExtArgs>>): Prisma.Prisma__ShiftsArchiveClient<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one ShiftsArchive.
* @param {ShiftsArchiveUpdateArgs} args - Arguments to update one ShiftsArchive.
* @example
* // Update one ShiftsArchive
* const shiftsArchive = await prisma.shiftsArchive.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends ShiftsArchiveUpdateArgs>(args: Prisma.SelectSubset<T, ShiftsArchiveUpdateArgs<ExtArgs>>): Prisma.Prisma__ShiftsArchiveClient<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more ShiftsArchives.
* @param {ShiftsArchiveDeleteManyArgs} args - Arguments to filter ShiftsArchives to delete.
* @example
* // Delete a few ShiftsArchives
* const { count } = await prisma.shiftsArchive.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends ShiftsArchiveDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShiftsArchiveDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more ShiftsArchives.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ShiftsArchiveUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many ShiftsArchives
* const shiftsArchive = await prisma.shiftsArchive.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends ShiftsArchiveUpdateManyArgs>(args: Prisma.SelectSubset<T, ShiftsArchiveUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more ShiftsArchives and returns the data updated in the database.
* @param {ShiftsArchiveUpdateManyAndReturnArgs} args - Arguments to update many ShiftsArchives.
* @example
* // Update many ShiftsArchives
* const shiftsArchive = await prisma.shiftsArchive.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more ShiftsArchives and only return the `id`
* const shiftsArchiveWithIdOnly = await prisma.shiftsArchive.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 ShiftsArchiveUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShiftsArchiveUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one ShiftsArchive.
* @param {ShiftsArchiveUpsertArgs} args - Arguments to update or create a ShiftsArchive.
* @example
* // Update or create a ShiftsArchive
* const shiftsArchive = await prisma.shiftsArchive.upsert({
* create: {
* // ... data to create a ShiftsArchive
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the ShiftsArchive we want to update
* }
* })
*/
upsert<T extends ShiftsArchiveUpsertArgs>(args: Prisma.SelectSubset<T, ShiftsArchiveUpsertArgs<ExtArgs>>): Prisma.Prisma__ShiftsArchiveClient<runtime.Types.Result.GetResult<Prisma.$ShiftsArchivePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of ShiftsArchives.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ShiftsArchiveCountArgs} args - Arguments to filter ShiftsArchives to count.
* @example
* // Count the number of ShiftsArchives
* const count = await prisma.shiftsArchive.count({
* where: {
* // ... the filter for the ShiftsArchives we want to count
* }
* })
**/
count<T extends ShiftsArchiveCountArgs>(
args?: Prisma.Subset<T, ShiftsArchiveCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ShiftsArchiveCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a ShiftsArchive.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ShiftsArchiveAggregateArgs} 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 ShiftsArchiveAggregateArgs>(args: Prisma.Subset<T, ShiftsArchiveAggregateArgs>): Prisma.PrismaPromise<GetShiftsArchiveAggregateType<T>>
/**
* Group by ShiftsArchive.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ShiftsArchiveGroupByArgs} 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 ShiftsArchiveGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: ShiftsArchiveGroupByArgs['orderBy'] }
: { orderBy?: ShiftsArchiveGroupByArgs['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, ShiftsArchiveGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShiftsArchiveGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the ShiftsArchive model
*/
readonly fields: ShiftsArchiveFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for ShiftsArchive.
* 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__ShiftsArchiveClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
shift<T extends Prisma.ShiftsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShiftsDefaultArgs<ExtArgs>>): Prisma.Prisma__ShiftsClient<runtime.Types.Result.GetResult<Prisma.$ShiftsPayload<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 ShiftsArchive model
*/
export interface ShiftsArchiveFieldRefs {
readonly id: Prisma.FieldRef<"ShiftsArchive", 'Int'>
readonly shift_id: Prisma.FieldRef<"ShiftsArchive", 'Int'>
readonly archive_at: Prisma.FieldRef<"ShiftsArchive", 'DateTime'>
readonly timesheet_id: Prisma.FieldRef<"ShiftsArchive", 'Int'>
readonly date: Prisma.FieldRef<"ShiftsArchive", 'DateTime'>
readonly start_time: Prisma.FieldRef<"ShiftsArchive", 'DateTime'>
readonly end_time: Prisma.FieldRef<"ShiftsArchive", 'DateTime'>
readonly bank_code_id: Prisma.FieldRef<"ShiftsArchive", 'Int'>
readonly comment: Prisma.FieldRef<"ShiftsArchive", 'String'>
}
// Custom InputTypes
/**
* ShiftsArchive findUnique
*/
export type ShiftsArchiveFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* Filter, which ShiftsArchive to fetch.
*/
where: Prisma.ShiftsArchiveWhereUniqueInput
}
/**
* ShiftsArchive findUniqueOrThrow
*/
export type ShiftsArchiveFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* Filter, which ShiftsArchive to fetch.
*/
where: Prisma.ShiftsArchiveWhereUniqueInput
}
/**
* ShiftsArchive findFirst
*/
export type ShiftsArchiveFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* Filter, which ShiftsArchive to fetch.
*/
where?: Prisma.ShiftsArchiveWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ShiftsArchives to fetch.
*/
orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ShiftsArchives.
*/
cursor?: Prisma.ShiftsArchiveWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ShiftsArchives 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` ShiftsArchives.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ShiftsArchives.
*/
distinct?: Prisma.ShiftsArchiveScalarFieldEnum | Prisma.ShiftsArchiveScalarFieldEnum[]
}
/**
* ShiftsArchive findFirstOrThrow
*/
export type ShiftsArchiveFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* Filter, which ShiftsArchive to fetch.
*/
where?: Prisma.ShiftsArchiveWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ShiftsArchives to fetch.
*/
orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for ShiftsArchives.
*/
cursor?: Prisma.ShiftsArchiveWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ShiftsArchives 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` ShiftsArchives.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of ShiftsArchives.
*/
distinct?: Prisma.ShiftsArchiveScalarFieldEnum | Prisma.ShiftsArchiveScalarFieldEnum[]
}
/**
* ShiftsArchive findMany
*/
export type ShiftsArchiveFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* Filter, which ShiftsArchives to fetch.
*/
where?: Prisma.ShiftsArchiveWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of ShiftsArchives to fetch.
*/
orderBy?: Prisma.ShiftsArchiveOrderByWithRelationInput | Prisma.ShiftsArchiveOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing ShiftsArchives.
*/
cursor?: Prisma.ShiftsArchiveWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` ShiftsArchives 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` ShiftsArchives.
*/
skip?: number
distinct?: Prisma.ShiftsArchiveScalarFieldEnum | Prisma.ShiftsArchiveScalarFieldEnum[]
}
/**
* ShiftsArchive create
*/
export type ShiftsArchiveCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* The data needed to create a ShiftsArchive.
*/
data: Prisma.XOR<Prisma.ShiftsArchiveCreateInput, Prisma.ShiftsArchiveUncheckedCreateInput>
}
/**
* ShiftsArchive createMany
*/
export type ShiftsArchiveCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many ShiftsArchives.
*/
data: Prisma.ShiftsArchiveCreateManyInput | Prisma.ShiftsArchiveCreateManyInput[]
skipDuplicates?: boolean
}
/**
* ShiftsArchive createManyAndReturn
*/
export type ShiftsArchiveCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* The data used to create many ShiftsArchives.
*/
data: Prisma.ShiftsArchiveCreateManyInput | Prisma.ShiftsArchiveCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* ShiftsArchive update
*/
export type ShiftsArchiveUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* The data needed to update a ShiftsArchive.
*/
data: Prisma.XOR<Prisma.ShiftsArchiveUpdateInput, Prisma.ShiftsArchiveUncheckedUpdateInput>
/**
* Choose, which ShiftsArchive to update.
*/
where: Prisma.ShiftsArchiveWhereUniqueInput
}
/**
* ShiftsArchive updateMany
*/
export type ShiftsArchiveUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update ShiftsArchives.
*/
data: Prisma.XOR<Prisma.ShiftsArchiveUpdateManyMutationInput, Prisma.ShiftsArchiveUncheckedUpdateManyInput>
/**
* Filter which ShiftsArchives to update
*/
where?: Prisma.ShiftsArchiveWhereInput
/**
* Limit how many ShiftsArchives to update.
*/
limit?: number
}
/**
* ShiftsArchive updateManyAndReturn
*/
export type ShiftsArchiveUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* The data used to update ShiftsArchives.
*/
data: Prisma.XOR<Prisma.ShiftsArchiveUpdateManyMutationInput, Prisma.ShiftsArchiveUncheckedUpdateManyInput>
/**
* Filter which ShiftsArchives to update
*/
where?: Prisma.ShiftsArchiveWhereInput
/**
* Limit how many ShiftsArchives to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* ShiftsArchive upsert
*/
export type ShiftsArchiveUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* The filter to search for the ShiftsArchive to update in case it exists.
*/
where: Prisma.ShiftsArchiveWhereUniqueInput
/**
* In case the ShiftsArchive found by the `where` argument doesn't exist, create a new ShiftsArchive with this data.
*/
create: Prisma.XOR<Prisma.ShiftsArchiveCreateInput, Prisma.ShiftsArchiveUncheckedCreateInput>
/**
* In case the ShiftsArchive was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.ShiftsArchiveUpdateInput, Prisma.ShiftsArchiveUncheckedUpdateInput>
}
/**
* ShiftsArchive delete
*/
export type ShiftsArchiveDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
/**
* Filter which ShiftsArchive to delete.
*/
where: Prisma.ShiftsArchiveWhereUniqueInput
}
/**
* ShiftsArchive deleteMany
*/
export type ShiftsArchiveDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which ShiftsArchives to delete
*/
where?: Prisma.ShiftsArchiveWhereInput
/**
* Limit how many ShiftsArchives to delete.
*/
limit?: number
}
/**
* ShiftsArchive without action
*/
export type ShiftsArchiveDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ShiftsArchive
*/
select?: Prisma.ShiftsArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ShiftsArchive
*/
omit?: Prisma.ShiftsArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ShiftsArchiveInclude<ExtArgs> | null
}