1596 lines
68 KiB
TypeScript
1596 lines
68 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 `SchedulePresetShifts` 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 SchedulePresetShifts
|
|
*
|
|
*/
|
|
export type SchedulePresetShiftsModel = runtime.Types.Result.DefaultSelection<Prisma.$SchedulePresetShiftsPayload>
|
|
|
|
export type AggregateSchedulePresetShifts = {
|
|
_count: SchedulePresetShiftsCountAggregateOutputType | null
|
|
_avg: SchedulePresetShiftsAvgAggregateOutputType | null
|
|
_sum: SchedulePresetShiftsSumAggregateOutputType | null
|
|
_min: SchedulePresetShiftsMinAggregateOutputType | null
|
|
_max: SchedulePresetShiftsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SchedulePresetShiftsAvgAggregateOutputType = {
|
|
id: number | null
|
|
preset_id: number | null
|
|
bank_code_id: number | null
|
|
}
|
|
|
|
export type SchedulePresetShiftsSumAggregateOutputType = {
|
|
id: number | null
|
|
preset_id: number | null
|
|
bank_code_id: number | null
|
|
}
|
|
|
|
export type SchedulePresetShiftsMinAggregateOutputType = {
|
|
id: number | null
|
|
preset_id: number | null
|
|
bank_code_id: number | null
|
|
start_time: Date | null
|
|
end_time: Date | null
|
|
is_remote: boolean | null
|
|
week_day: $Enums.Weekday | null
|
|
}
|
|
|
|
export type SchedulePresetShiftsMaxAggregateOutputType = {
|
|
id: number | null
|
|
preset_id: number | null
|
|
bank_code_id: number | null
|
|
start_time: Date | null
|
|
end_time: Date | null
|
|
is_remote: boolean | null
|
|
week_day: $Enums.Weekday | null
|
|
}
|
|
|
|
export type SchedulePresetShiftsCountAggregateOutputType = {
|
|
id: number
|
|
preset_id: number
|
|
bank_code_id: number
|
|
start_time: number
|
|
end_time: number
|
|
is_remote: number
|
|
week_day: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SchedulePresetShiftsAvgAggregateInputType = {
|
|
id?: true
|
|
preset_id?: true
|
|
bank_code_id?: true
|
|
}
|
|
|
|
export type SchedulePresetShiftsSumAggregateInputType = {
|
|
id?: true
|
|
preset_id?: true
|
|
bank_code_id?: true
|
|
}
|
|
|
|
export type SchedulePresetShiftsMinAggregateInputType = {
|
|
id?: true
|
|
preset_id?: true
|
|
bank_code_id?: true
|
|
start_time?: true
|
|
end_time?: true
|
|
is_remote?: true
|
|
week_day?: true
|
|
}
|
|
|
|
export type SchedulePresetShiftsMaxAggregateInputType = {
|
|
id?: true
|
|
preset_id?: true
|
|
bank_code_id?: true
|
|
start_time?: true
|
|
end_time?: true
|
|
is_remote?: true
|
|
week_day?: true
|
|
}
|
|
|
|
export type SchedulePresetShiftsCountAggregateInputType = {
|
|
id?: true
|
|
preset_id?: true
|
|
bank_code_id?: true
|
|
start_time?: true
|
|
end_time?: true
|
|
is_remote?: true
|
|
week_day?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SchedulePresetShiftsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SchedulePresetShifts to aggregate.
|
|
*/
|
|
where?: Prisma.SchedulePresetShiftsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SchedulePresetShifts to fetch.
|
|
*/
|
|
orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SchedulePresetShifts 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` SchedulePresetShifts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SchedulePresetShifts
|
|
**/
|
|
_count?: true | SchedulePresetShiftsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SchedulePresetShiftsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SchedulePresetShiftsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SchedulePresetShiftsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SchedulePresetShiftsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSchedulePresetShiftsAggregateType<T extends SchedulePresetShiftsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSchedulePresetShifts]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSchedulePresetShifts[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSchedulePresetShifts[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SchedulePresetShiftsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SchedulePresetShiftsWhereInput
|
|
orderBy?: Prisma.SchedulePresetShiftsOrderByWithAggregationInput | Prisma.SchedulePresetShiftsOrderByWithAggregationInput[]
|
|
by: Prisma.SchedulePresetShiftsScalarFieldEnum[] | Prisma.SchedulePresetShiftsScalarFieldEnum
|
|
having?: Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SchedulePresetShiftsCountAggregateInputType | true
|
|
_avg?: SchedulePresetShiftsAvgAggregateInputType
|
|
_sum?: SchedulePresetShiftsSumAggregateInputType
|
|
_min?: SchedulePresetShiftsMinAggregateInputType
|
|
_max?: SchedulePresetShiftsMaxAggregateInputType
|
|
}
|
|
|
|
export type SchedulePresetShiftsGroupByOutputType = {
|
|
id: number
|
|
preset_id: number
|
|
bank_code_id: number
|
|
start_time: Date
|
|
end_time: Date
|
|
is_remote: boolean
|
|
week_day: $Enums.Weekday
|
|
_count: SchedulePresetShiftsCountAggregateOutputType | null
|
|
_avg: SchedulePresetShiftsAvgAggregateOutputType | null
|
|
_sum: SchedulePresetShiftsSumAggregateOutputType | null
|
|
_min: SchedulePresetShiftsMinAggregateOutputType | null
|
|
_max: SchedulePresetShiftsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSchedulePresetShiftsGroupByPayload<T extends SchedulePresetShiftsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SchedulePresetShiftsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SchedulePresetShiftsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SchedulePresetShiftsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SchedulePresetShiftsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type SchedulePresetShiftsWhereInput = {
|
|
AND?: Prisma.SchedulePresetShiftsWhereInput | Prisma.SchedulePresetShiftsWhereInput[]
|
|
OR?: Prisma.SchedulePresetShiftsWhereInput[]
|
|
NOT?: Prisma.SchedulePresetShiftsWhereInput | Prisma.SchedulePresetShiftsWhereInput[]
|
|
id?: Prisma.IntFilter<"SchedulePresetShifts"> | number
|
|
preset_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number
|
|
bank_code_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number
|
|
start_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string
|
|
end_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string
|
|
is_remote?: Prisma.BoolFilter<"SchedulePresetShifts"> | boolean
|
|
week_day?: Prisma.EnumWeekdayFilter<"SchedulePresetShifts"> | $Enums.Weekday
|
|
bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
|
|
preset?: Prisma.XOR<Prisma.SchedulePresetsScalarRelationFilter, Prisma.SchedulePresetsWhereInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
preset_id?: Prisma.SortOrder
|
|
bank_code_id?: Prisma.SortOrder
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
is_remote?: Prisma.SortOrder
|
|
week_day?: Prisma.SortOrder
|
|
bank_code?: Prisma.BankCodesOrderByWithRelationInput
|
|
preset?: Prisma.SchedulePresetsOrderByWithRelationInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.SchedulePresetShiftsWhereInput | Prisma.SchedulePresetShiftsWhereInput[]
|
|
OR?: Prisma.SchedulePresetShiftsWhereInput[]
|
|
NOT?: Prisma.SchedulePresetShiftsWhereInput | Prisma.SchedulePresetShiftsWhereInput[]
|
|
preset_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number
|
|
bank_code_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number
|
|
start_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string
|
|
end_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string
|
|
is_remote?: Prisma.BoolFilter<"SchedulePresetShifts"> | boolean
|
|
week_day?: Prisma.EnumWeekdayFilter<"SchedulePresetShifts"> | $Enums.Weekday
|
|
bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
|
|
preset?: Prisma.XOR<Prisma.SchedulePresetsScalarRelationFilter, Prisma.SchedulePresetsWhereInput>
|
|
}, "id">
|
|
|
|
export type SchedulePresetShiftsOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
preset_id?: Prisma.SortOrder
|
|
bank_code_id?: Prisma.SortOrder
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
is_remote?: Prisma.SortOrder
|
|
week_day?: Prisma.SortOrder
|
|
_count?: Prisma.SchedulePresetShiftsCountOrderByAggregateInput
|
|
_avg?: Prisma.SchedulePresetShiftsAvgOrderByAggregateInput
|
|
_max?: Prisma.SchedulePresetShiftsMaxOrderByAggregateInput
|
|
_min?: Prisma.SchedulePresetShiftsMinOrderByAggregateInput
|
|
_sum?: Prisma.SchedulePresetShiftsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput | Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput | Prisma.SchedulePresetShiftsScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"SchedulePresetShifts"> | number
|
|
preset_id?: Prisma.IntWithAggregatesFilter<"SchedulePresetShifts"> | number
|
|
bank_code_id?: Prisma.IntWithAggregatesFilter<"SchedulePresetShifts"> | number
|
|
start_time?: Prisma.DateTimeWithAggregatesFilter<"SchedulePresetShifts"> | Date | string
|
|
end_time?: Prisma.DateTimeWithAggregatesFilter<"SchedulePresetShifts"> | Date | string
|
|
is_remote?: Prisma.BoolWithAggregatesFilter<"SchedulePresetShifts"> | boolean
|
|
week_day?: Prisma.EnumWeekdayWithAggregatesFilter<"SchedulePresetShifts"> | $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateInput = {
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
bank_code: Prisma.BankCodesCreateNestedOneWithoutSchedulePresetShiftsInput
|
|
preset: Prisma.SchedulePresetsCreateNestedOneWithoutShiftsInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedCreateInput = {
|
|
id?: number
|
|
preset_id: number
|
|
bank_code_id: number
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateInput = {
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutSchedulePresetShiftsNestedInput
|
|
preset?: Prisma.SchedulePresetsUpdateOneRequiredWithoutShiftsNestedInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
preset_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateManyInput = {
|
|
id?: number
|
|
preset_id: number
|
|
bank_code_id: number
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateManyMutationInput = {
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
preset_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsListRelationFilter = {
|
|
every?: Prisma.SchedulePresetShiftsWhereInput
|
|
some?: Prisma.SchedulePresetShiftsWhereInput
|
|
none?: Prisma.SchedulePresetShiftsWhereInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SchedulePresetShiftsCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
preset_id?: Prisma.SortOrder
|
|
bank_code_id?: Prisma.SortOrder
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
is_remote?: Prisma.SortOrder
|
|
week_day?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SchedulePresetShiftsAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
preset_id?: Prisma.SortOrder
|
|
bank_code_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SchedulePresetShiftsMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
preset_id?: Prisma.SortOrder
|
|
bank_code_id?: Prisma.SortOrder
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
is_remote?: Prisma.SortOrder
|
|
week_day?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SchedulePresetShiftsMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
preset_id?: Prisma.SortOrder
|
|
bank_code_id?: Prisma.SortOrder
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
is_remote?: Prisma.SortOrder
|
|
week_day?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SchedulePresetShiftsSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
preset_id?: Prisma.SortOrder
|
|
bank_code_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateNestedManyWithoutPresetInput = {
|
|
create?: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutPresetInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput> | Prisma.SchedulePresetShiftsCreateWithoutPresetInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput[]
|
|
connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput[]
|
|
createMany?: Prisma.SchedulePresetShiftsCreateManyPresetInputEnvelope
|
|
connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedCreateNestedManyWithoutPresetInput = {
|
|
create?: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutPresetInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput> | Prisma.SchedulePresetShiftsCreateWithoutPresetInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput[]
|
|
connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput[]
|
|
createMany?: Prisma.SchedulePresetShiftsCreateManyPresetInputEnvelope
|
|
connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateManyWithoutPresetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutPresetInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput> | Prisma.SchedulePresetShiftsCreateWithoutPresetInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput[]
|
|
connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput[]
|
|
upsert?: Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput | Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput[]
|
|
createMany?: Prisma.SchedulePresetShiftsCreateManyPresetInputEnvelope
|
|
set?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
disconnect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
delete?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
update?: Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput | Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput[]
|
|
updateMany?: Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput | Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput[]
|
|
deleteMany?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[]
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedUpdateManyWithoutPresetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutPresetInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput> | Prisma.SchedulePresetShiftsCreateWithoutPresetInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput[]
|
|
connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutPresetInput[]
|
|
upsert?: Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput | Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput[]
|
|
createMany?: Prisma.SchedulePresetShiftsCreateManyPresetInputEnvelope
|
|
set?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
disconnect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
delete?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
update?: Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput | Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput[]
|
|
updateMany?: Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput | Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput[]
|
|
deleteMany?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumWeekdayFieldUpdateOperationsInput = {
|
|
set?: $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateNestedManyWithoutBank_codeInput = {
|
|
create?: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput> | Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput[]
|
|
connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput[]
|
|
createMany?: Prisma.SchedulePresetShiftsCreateManyBank_codeInputEnvelope
|
|
connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedCreateNestedManyWithoutBank_codeInput = {
|
|
create?: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput> | Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput[]
|
|
connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput[]
|
|
createMany?: Prisma.SchedulePresetShiftsCreateManyBank_codeInputEnvelope
|
|
connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateManyWithoutBank_codeNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput> | Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput[]
|
|
connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput[]
|
|
upsert?: Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput[]
|
|
createMany?: Prisma.SchedulePresetShiftsCreateManyBank_codeInputEnvelope
|
|
set?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
disconnect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
delete?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
update?: Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput[]
|
|
updateMany?: Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput[]
|
|
deleteMany?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[]
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput> | Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput[] | Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput[]
|
|
connectOrCreate?: Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput | Prisma.SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput[]
|
|
upsert?: Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput[]
|
|
createMany?: Prisma.SchedulePresetShiftsCreateManyBank_codeInputEnvelope
|
|
set?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
disconnect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
delete?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
connect?: Prisma.SchedulePresetShiftsWhereUniqueInput | Prisma.SchedulePresetShiftsWhereUniqueInput[]
|
|
update?: Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput[]
|
|
updateMany?: Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput | Prisma.SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput[]
|
|
deleteMany?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[]
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateWithoutPresetInput = {
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
bank_code: Prisma.BankCodesCreateNestedOneWithoutSchedulePresetShiftsInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedCreateWithoutPresetInput = {
|
|
id?: number
|
|
bank_code_id: number
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateOrConnectWithoutPresetInput = {
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutPresetInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateManyPresetInputEnvelope = {
|
|
data: Prisma.SchedulePresetShiftsCreateManyPresetInput | Prisma.SchedulePresetShiftsCreateManyPresetInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpsertWithWhereUniqueWithoutPresetInput = {
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateWithoutPresetInput, Prisma.SchedulePresetShiftsUncheckedUpdateWithoutPresetInput>
|
|
create: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutPresetInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutPresetInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateWithWhereUniqueWithoutPresetInput = {
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateWithoutPresetInput, Prisma.SchedulePresetShiftsUncheckedUpdateWithoutPresetInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateManyWithWhereWithoutPresetInput = {
|
|
where: Prisma.SchedulePresetShiftsScalarWhereInput
|
|
data: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateManyMutationInput, Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutPresetInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsScalarWhereInput = {
|
|
AND?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[]
|
|
OR?: Prisma.SchedulePresetShiftsScalarWhereInput[]
|
|
NOT?: Prisma.SchedulePresetShiftsScalarWhereInput | Prisma.SchedulePresetShiftsScalarWhereInput[]
|
|
id?: Prisma.IntFilter<"SchedulePresetShifts"> | number
|
|
preset_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number
|
|
bank_code_id?: Prisma.IntFilter<"SchedulePresetShifts"> | number
|
|
start_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string
|
|
end_time?: Prisma.DateTimeFilter<"SchedulePresetShifts"> | Date | string
|
|
is_remote?: Prisma.BoolFilter<"SchedulePresetShifts"> | boolean
|
|
week_day?: Prisma.EnumWeekdayFilter<"SchedulePresetShifts"> | $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateWithoutBank_codeInput = {
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
preset: Prisma.SchedulePresetsCreateNestedOneWithoutShiftsInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput = {
|
|
id?: number
|
|
preset_id: number
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateOrConnectWithoutBank_codeInput = {
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateManyBank_codeInputEnvelope = {
|
|
data: Prisma.SchedulePresetShiftsCreateManyBank_codeInput | Prisma.SchedulePresetShiftsCreateManyBank_codeInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpsertWithWhereUniqueWithoutBank_codeInput = {
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateWithoutBank_codeInput, Prisma.SchedulePresetShiftsUncheckedUpdateWithoutBank_codeInput>
|
|
create: Prisma.XOR<Prisma.SchedulePresetShiftsCreateWithoutBank_codeInput, Prisma.SchedulePresetShiftsUncheckedCreateWithoutBank_codeInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateWithWhereUniqueWithoutBank_codeInput = {
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateWithoutBank_codeInput, Prisma.SchedulePresetShiftsUncheckedUpdateWithoutBank_codeInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateManyWithWhereWithoutBank_codeInput = {
|
|
where: Prisma.SchedulePresetShiftsScalarWhereInput
|
|
data: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateManyMutationInput, Prisma.SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeInput>
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateManyPresetInput = {
|
|
id?: number
|
|
bank_code_id: number
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateWithoutPresetInput = {
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutSchedulePresetShiftsNestedInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedUpdateWithoutPresetInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedUpdateManyWithoutPresetInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsCreateManyBank_codeInput = {
|
|
id?: number
|
|
preset_id: number
|
|
start_time: Date | string
|
|
end_time: Date | string
|
|
is_remote?: boolean
|
|
week_day: $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsUpdateWithoutBank_codeInput = {
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
preset?: Prisma.SchedulePresetsUpdateOneRequiredWithoutShiftsNestedInput
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedUpdateWithoutBank_codeInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
preset_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
}
|
|
|
|
export type SchedulePresetShiftsUncheckedUpdateManyWithoutBank_codeInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
preset_id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
start_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
end_time?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
is_remote?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
week_day?: Prisma.EnumWeekdayFieldUpdateOperationsInput | $Enums.Weekday
|
|
}
|
|
|
|
|
|
|
|
export type SchedulePresetShiftsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
preset_id?: boolean
|
|
bank_code_id?: boolean
|
|
start_time?: boolean
|
|
end_time?: boolean
|
|
is_remote?: boolean
|
|
week_day?: boolean
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
preset?: boolean | Prisma.SchedulePresetsDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["schedulePresetShifts"]>
|
|
|
|
export type SchedulePresetShiftsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
preset_id?: boolean
|
|
bank_code_id?: boolean
|
|
start_time?: boolean
|
|
end_time?: boolean
|
|
is_remote?: boolean
|
|
week_day?: boolean
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
preset?: boolean | Prisma.SchedulePresetsDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["schedulePresetShifts"]>
|
|
|
|
export type SchedulePresetShiftsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
preset_id?: boolean
|
|
bank_code_id?: boolean
|
|
start_time?: boolean
|
|
end_time?: boolean
|
|
is_remote?: boolean
|
|
week_day?: boolean
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
preset?: boolean | Prisma.SchedulePresetsDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["schedulePresetShifts"]>
|
|
|
|
export type SchedulePresetShiftsSelectScalar = {
|
|
id?: boolean
|
|
preset_id?: boolean
|
|
bank_code_id?: boolean
|
|
start_time?: boolean
|
|
end_time?: boolean
|
|
is_remote?: boolean
|
|
week_day?: boolean
|
|
}
|
|
|
|
export type SchedulePresetShiftsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "preset_id" | "bank_code_id" | "start_time" | "end_time" | "is_remote" | "week_day", ExtArgs["result"]["schedulePresetShifts"]>
|
|
export type SchedulePresetShiftsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
preset?: boolean | Prisma.SchedulePresetsDefaultArgs<ExtArgs>
|
|
}
|
|
export type SchedulePresetShiftsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
preset?: boolean | Prisma.SchedulePresetsDefaultArgs<ExtArgs>
|
|
}
|
|
export type SchedulePresetShiftsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
|
|
preset?: boolean | Prisma.SchedulePresetsDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SchedulePresetShiftsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "SchedulePresetShifts"
|
|
objects: {
|
|
bank_code: Prisma.$BankCodesPayload<ExtArgs>
|
|
preset: Prisma.$SchedulePresetsPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
preset_id: number
|
|
bank_code_id: number
|
|
start_time: Date
|
|
end_time: Date
|
|
is_remote: boolean
|
|
week_day: $Enums.Weekday
|
|
}, ExtArgs["result"]["schedulePresetShifts"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type SchedulePresetShiftsGetPayload<S extends boolean | null | undefined | SchedulePresetShiftsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload, S>
|
|
|
|
export type SchedulePresetShiftsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<SchedulePresetShiftsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SchedulePresetShiftsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SchedulePresetShiftsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SchedulePresetShifts'], meta: { name: 'SchedulePresetShifts' } }
|
|
/**
|
|
* Find zero or one SchedulePresetShifts that matches the filter.
|
|
* @param {SchedulePresetShiftsFindUniqueArgs} args - Arguments to find a SchedulePresetShifts
|
|
* @example
|
|
* // Get one SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SchedulePresetShiftsFindUniqueArgs>(args: Prisma.SelectSubset<T, SchedulePresetShiftsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetShiftsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one SchedulePresetShifts that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SchedulePresetShiftsFindUniqueOrThrowArgs} args - Arguments to find a SchedulePresetShifts
|
|
* @example
|
|
* // Get one SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SchedulePresetShiftsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SchedulePresetShiftsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetShiftsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SchedulePresetShifts 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 {SchedulePresetShiftsFindFirstArgs} args - Arguments to find a SchedulePresetShifts
|
|
* @example
|
|
* // Get one SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SchedulePresetShiftsFindFirstArgs>(args?: Prisma.SelectSubset<T, SchedulePresetShiftsFindFirstArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetShiftsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SchedulePresetShifts 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 {SchedulePresetShiftsFindFirstOrThrowArgs} args - Arguments to find a SchedulePresetShifts
|
|
* @example
|
|
* // Get one SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SchedulePresetShiftsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SchedulePresetShiftsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetShiftsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more SchedulePresetShifts 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 {SchedulePresetShiftsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.findMany()
|
|
*
|
|
* // Get first 10 SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const schedulePresetShiftsWithIdOnly = await prisma.schedulePresetShifts.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SchedulePresetShiftsFindManyArgs>(args?: Prisma.SelectSubset<T, SchedulePresetShiftsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a SchedulePresetShifts.
|
|
* @param {SchedulePresetShiftsCreateArgs} args - Arguments to create a SchedulePresetShifts.
|
|
* @example
|
|
* // Create one SchedulePresetShifts
|
|
* const SchedulePresetShifts = await prisma.schedulePresetShifts.create({
|
|
* data: {
|
|
* // ... data to create a SchedulePresetShifts
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SchedulePresetShiftsCreateArgs>(args: Prisma.SelectSubset<T, SchedulePresetShiftsCreateArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetShiftsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many SchedulePresetShifts.
|
|
* @param {SchedulePresetShiftsCreateManyArgs} args - Arguments to create many SchedulePresetShifts.
|
|
* @example
|
|
* // Create many SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SchedulePresetShiftsCreateManyArgs>(args?: Prisma.SelectSubset<T, SchedulePresetShiftsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many SchedulePresetShifts and returns the data saved in the database.
|
|
* @param {SchedulePresetShiftsCreateManyAndReturnArgs} args - Arguments to create many SchedulePresetShifts.
|
|
* @example
|
|
* // Create many SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many SchedulePresetShifts and only return the `id`
|
|
* const schedulePresetShiftsWithIdOnly = await prisma.schedulePresetShifts.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 SchedulePresetShiftsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SchedulePresetShiftsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a SchedulePresetShifts.
|
|
* @param {SchedulePresetShiftsDeleteArgs} args - Arguments to delete one SchedulePresetShifts.
|
|
* @example
|
|
* // Delete one SchedulePresetShifts
|
|
* const SchedulePresetShifts = await prisma.schedulePresetShifts.delete({
|
|
* where: {
|
|
* // ... filter to delete one SchedulePresetShifts
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SchedulePresetShiftsDeleteArgs>(args: Prisma.SelectSubset<T, SchedulePresetShiftsDeleteArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetShiftsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one SchedulePresetShifts.
|
|
* @param {SchedulePresetShiftsUpdateArgs} args - Arguments to update one SchedulePresetShifts.
|
|
* @example
|
|
* // Update one SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SchedulePresetShiftsUpdateArgs>(args: Prisma.SelectSubset<T, SchedulePresetShiftsUpdateArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetShiftsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more SchedulePresetShifts.
|
|
* @param {SchedulePresetShiftsDeleteManyArgs} args - Arguments to filter SchedulePresetShifts to delete.
|
|
* @example
|
|
* // Delete a few SchedulePresetShifts
|
|
* const { count } = await prisma.schedulePresetShifts.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SchedulePresetShiftsDeleteManyArgs>(args?: Prisma.SelectSubset<T, SchedulePresetShiftsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SchedulePresetShifts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SchedulePresetShiftsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SchedulePresetShiftsUpdateManyArgs>(args: Prisma.SelectSubset<T, SchedulePresetShiftsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SchedulePresetShifts and returns the data updated in the database.
|
|
* @param {SchedulePresetShiftsUpdateManyAndReturnArgs} args - Arguments to update many SchedulePresetShifts.
|
|
* @example
|
|
* // Update many SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more SchedulePresetShifts and only return the `id`
|
|
* const schedulePresetShiftsWithIdOnly = await prisma.schedulePresetShifts.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 SchedulePresetShiftsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SchedulePresetShiftsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one SchedulePresetShifts.
|
|
* @param {SchedulePresetShiftsUpsertArgs} args - Arguments to update or create a SchedulePresetShifts.
|
|
* @example
|
|
* // Update or create a SchedulePresetShifts
|
|
* const schedulePresetShifts = await prisma.schedulePresetShifts.upsert({
|
|
* create: {
|
|
* // ... data to create a SchedulePresetShifts
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SchedulePresetShifts we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SchedulePresetShiftsUpsertArgs>(args: Prisma.SelectSubset<T, SchedulePresetShiftsUpsertArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetShiftsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetShiftsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of SchedulePresetShifts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SchedulePresetShiftsCountArgs} args - Arguments to filter SchedulePresetShifts to count.
|
|
* @example
|
|
* // Count the number of SchedulePresetShifts
|
|
* const count = await prisma.schedulePresetShifts.count({
|
|
* where: {
|
|
* // ... the filter for the SchedulePresetShifts we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SchedulePresetShiftsCountArgs>(
|
|
args?: Prisma.Subset<T, SchedulePresetShiftsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SchedulePresetShiftsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SchedulePresetShifts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SchedulePresetShiftsAggregateArgs} 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 SchedulePresetShiftsAggregateArgs>(args: Prisma.Subset<T, SchedulePresetShiftsAggregateArgs>): Prisma.PrismaPromise<GetSchedulePresetShiftsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SchedulePresetShifts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SchedulePresetShiftsGroupByArgs} 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 SchedulePresetShiftsGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SchedulePresetShiftsGroupByArgs['orderBy'] }
|
|
: { orderBy?: SchedulePresetShiftsGroupByArgs['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, SchedulePresetShiftsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSchedulePresetShiftsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SchedulePresetShifts model
|
|
*/
|
|
readonly fields: SchedulePresetShiftsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SchedulePresetShifts.
|
|
* 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__SchedulePresetShiftsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
bank_code<T extends Prisma.BankCodesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankCodesDefaultArgs<ExtArgs>>): Prisma.Prisma__BankCodesClient<runtime.Types.Result.GetResult<Prisma.$BankCodesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
preset<T extends Prisma.SchedulePresetsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SchedulePresetsDefaultArgs<ExtArgs>>): Prisma.Prisma__SchedulePresetsClient<runtime.Types.Result.GetResult<Prisma.$SchedulePresetsPayload<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 SchedulePresetShifts model
|
|
*/
|
|
export interface SchedulePresetShiftsFieldRefs {
|
|
readonly id: Prisma.FieldRef<"SchedulePresetShifts", 'Int'>
|
|
readonly preset_id: Prisma.FieldRef<"SchedulePresetShifts", 'Int'>
|
|
readonly bank_code_id: Prisma.FieldRef<"SchedulePresetShifts", 'Int'>
|
|
readonly start_time: Prisma.FieldRef<"SchedulePresetShifts", 'DateTime'>
|
|
readonly end_time: Prisma.FieldRef<"SchedulePresetShifts", 'DateTime'>
|
|
readonly is_remote: Prisma.FieldRef<"SchedulePresetShifts", 'Boolean'>
|
|
readonly week_day: Prisma.FieldRef<"SchedulePresetShifts", 'Weekday'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SchedulePresetShifts findUnique
|
|
*/
|
|
export type SchedulePresetShiftsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SchedulePresetShifts to fetch.
|
|
*/
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts findUniqueOrThrow
|
|
*/
|
|
export type SchedulePresetShiftsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SchedulePresetShifts to fetch.
|
|
*/
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts findFirst
|
|
*/
|
|
export type SchedulePresetShiftsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SchedulePresetShifts to fetch.
|
|
*/
|
|
where?: Prisma.SchedulePresetShiftsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SchedulePresetShifts to fetch.
|
|
*/
|
|
orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SchedulePresetShifts.
|
|
*/
|
|
cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SchedulePresetShifts 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` SchedulePresetShifts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SchedulePresetShifts.
|
|
*/
|
|
distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts findFirstOrThrow
|
|
*/
|
|
export type SchedulePresetShiftsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SchedulePresetShifts to fetch.
|
|
*/
|
|
where?: Prisma.SchedulePresetShiftsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SchedulePresetShifts to fetch.
|
|
*/
|
|
orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SchedulePresetShifts.
|
|
*/
|
|
cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SchedulePresetShifts 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` SchedulePresetShifts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SchedulePresetShifts.
|
|
*/
|
|
distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts findMany
|
|
*/
|
|
export type SchedulePresetShiftsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SchedulePresetShifts to fetch.
|
|
*/
|
|
where?: Prisma.SchedulePresetShiftsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SchedulePresetShifts to fetch.
|
|
*/
|
|
orderBy?: Prisma.SchedulePresetShiftsOrderByWithRelationInput | Prisma.SchedulePresetShiftsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SchedulePresetShifts.
|
|
*/
|
|
cursor?: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SchedulePresetShifts 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` SchedulePresetShifts.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.SchedulePresetShiftsScalarFieldEnum | Prisma.SchedulePresetShiftsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts create
|
|
*/
|
|
export type SchedulePresetShiftsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SchedulePresetShifts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SchedulePresetShiftsCreateInput, Prisma.SchedulePresetShiftsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts createMany
|
|
*/
|
|
export type SchedulePresetShiftsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SchedulePresetShifts.
|
|
*/
|
|
data: Prisma.SchedulePresetShiftsCreateManyInput | Prisma.SchedulePresetShiftsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts createManyAndReturn
|
|
*/
|
|
export type SchedulePresetShiftsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many SchedulePresetShifts.
|
|
*/
|
|
data: Prisma.SchedulePresetShiftsCreateManyInput | Prisma.SchedulePresetShiftsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts update
|
|
*/
|
|
export type SchedulePresetShiftsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SchedulePresetShifts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateInput, Prisma.SchedulePresetShiftsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SchedulePresetShifts to update.
|
|
*/
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts updateMany
|
|
*/
|
|
export type SchedulePresetShiftsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SchedulePresetShifts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateManyMutationInput, Prisma.SchedulePresetShiftsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SchedulePresetShifts to update
|
|
*/
|
|
where?: Prisma.SchedulePresetShiftsWhereInput
|
|
/**
|
|
* Limit how many SchedulePresetShifts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts updateManyAndReturn
|
|
*/
|
|
export type SchedulePresetShiftsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update SchedulePresetShifts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateManyMutationInput, Prisma.SchedulePresetShiftsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SchedulePresetShifts to update
|
|
*/
|
|
where?: Prisma.SchedulePresetShiftsWhereInput
|
|
/**
|
|
* Limit how many SchedulePresetShifts to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts upsert
|
|
*/
|
|
export type SchedulePresetShiftsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SchedulePresetShifts to update in case it exists.
|
|
*/
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
/**
|
|
* In case the SchedulePresetShifts found by the `where` argument doesn't exist, create a new SchedulePresetShifts with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SchedulePresetShiftsCreateInput, Prisma.SchedulePresetShiftsUncheckedCreateInput>
|
|
/**
|
|
* In case the SchedulePresetShifts was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SchedulePresetShiftsUpdateInput, Prisma.SchedulePresetShiftsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts delete
|
|
*/
|
|
export type SchedulePresetShiftsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SchedulePresetShifts to delete.
|
|
*/
|
|
where: Prisma.SchedulePresetShiftsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts deleteMany
|
|
*/
|
|
export type SchedulePresetShiftsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SchedulePresetShifts to delete
|
|
*/
|
|
where?: Prisma.SchedulePresetShiftsWhereInput
|
|
/**
|
|
* Limit how many SchedulePresetShifts to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SchedulePresetShifts without action
|
|
*/
|
|
export type SchedulePresetShiftsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SchedulePresetShifts
|
|
*/
|
|
select?: Prisma.SchedulePresetShiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SchedulePresetShifts
|
|
*/
|
|
omit?: Prisma.SchedulePresetShiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SchedulePresetShiftsInclude<ExtArgs> | null
|
|
}
|