1407 lines
48 KiB
TypeScript
1407 lines
48 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 `shifts` 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 shifts
|
|
*
|
|
*/
|
|
export type shiftsModel = runtime.Types.Result.DefaultSelection<Prisma.$shiftsPayload>
|
|
|
|
export type AggregateShifts = {
|
|
_count: ShiftsCountAggregateOutputType | null
|
|
_avg: ShiftsAvgAggregateOutputType | null
|
|
_sum: ShiftsSumAggregateOutputType | null
|
|
_min: ShiftsMinAggregateOutputType | null
|
|
_max: ShiftsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type ShiftsAvgAggregateOutputType = {
|
|
start_time: number | null
|
|
end_time: number | null
|
|
created_at: number | null
|
|
updated_at: number | null
|
|
}
|
|
|
|
export type ShiftsSumAggregateOutputType = {
|
|
start_time: bigint | null
|
|
end_time: bigint | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
}
|
|
|
|
export type ShiftsMinAggregateOutputType = {
|
|
id: string | null
|
|
time_sheet_id: string | null
|
|
code: string | null
|
|
type: string | null
|
|
date: Date | null
|
|
start_time: bigint | null
|
|
end_time: bigint | null
|
|
comment: string | null
|
|
status: boolean | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
supervisor_note: string | null
|
|
}
|
|
|
|
export type ShiftsMaxAggregateOutputType = {
|
|
id: string | null
|
|
time_sheet_id: string | null
|
|
code: string | null
|
|
type: string | null
|
|
date: Date | null
|
|
start_time: bigint | null
|
|
end_time: bigint | null
|
|
comment: string | null
|
|
status: boolean | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
supervisor_note: string | null
|
|
}
|
|
|
|
export type ShiftsCountAggregateOutputType = {
|
|
id: number
|
|
time_sheet_id: number
|
|
code: number
|
|
type: number
|
|
date: number
|
|
start_time: number
|
|
end_time: number
|
|
comment: number
|
|
status: number
|
|
created_at: number
|
|
updated_at: number
|
|
supervisor_note: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type ShiftsAvgAggregateInputType = {
|
|
start_time?: true
|
|
end_time?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type ShiftsSumAggregateInputType = {
|
|
start_time?: true
|
|
end_time?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type ShiftsMinAggregateInputType = {
|
|
id?: true
|
|
time_sheet_id?: true
|
|
code?: true
|
|
type?: true
|
|
date?: true
|
|
start_time?: true
|
|
end_time?: true
|
|
comment?: true
|
|
status?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
supervisor_note?: true
|
|
}
|
|
|
|
export type ShiftsMaxAggregateInputType = {
|
|
id?: true
|
|
time_sheet_id?: true
|
|
code?: true
|
|
type?: true
|
|
date?: true
|
|
start_time?: true
|
|
end_time?: true
|
|
comment?: true
|
|
status?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
supervisor_note?: true
|
|
}
|
|
|
|
export type ShiftsCountAggregateInputType = {
|
|
id?: true
|
|
time_sheet_id?: true
|
|
code?: true
|
|
type?: true
|
|
date?: true
|
|
start_time?: true
|
|
end_time?: true
|
|
comment?: true
|
|
status?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
supervisor_note?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type ShiftsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which shifts to aggregate.
|
|
*/
|
|
where?: Prisma.shiftsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of shifts to fetch.
|
|
*/
|
|
orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.shiftsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` shifts 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` shifts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned shifts
|
|
**/
|
|
_count?: true | ShiftsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: ShiftsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: ShiftsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: ShiftsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: ShiftsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetShiftsAggregateType<T extends ShiftsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateShifts]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateShifts[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateShifts[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type shiftsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.shiftsWhereInput
|
|
orderBy?: Prisma.shiftsOrderByWithAggregationInput | Prisma.shiftsOrderByWithAggregationInput[]
|
|
by: Prisma.ShiftsScalarFieldEnum[] | Prisma.ShiftsScalarFieldEnum
|
|
having?: Prisma.shiftsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: ShiftsCountAggregateInputType | true
|
|
_avg?: ShiftsAvgAggregateInputType
|
|
_sum?: ShiftsSumAggregateInputType
|
|
_min?: ShiftsMinAggregateInputType
|
|
_max?: ShiftsMaxAggregateInputType
|
|
}
|
|
|
|
export type ShiftsGroupByOutputType = {
|
|
id: string
|
|
time_sheet_id: string | null
|
|
code: string | null
|
|
type: string | null
|
|
date: Date | null
|
|
start_time: bigint | null
|
|
end_time: bigint | null
|
|
comment: string | null
|
|
status: boolean | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
supervisor_note: string | null
|
|
_count: ShiftsCountAggregateOutputType | null
|
|
_avg: ShiftsAvgAggregateOutputType | null
|
|
_sum: ShiftsSumAggregateOutputType | null
|
|
_min: ShiftsMinAggregateOutputType | null
|
|
_max: ShiftsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetShiftsGroupByPayload<T extends shiftsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<ShiftsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof ShiftsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], ShiftsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], ShiftsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type shiftsWhereInput = {
|
|
AND?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[]
|
|
OR?: Prisma.shiftsWhereInput[]
|
|
NOT?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[]
|
|
id?: Prisma.UuidFilter<"shifts"> | string
|
|
time_sheet_id?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
code?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
type?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
date?: Prisma.DateTimeNullableFilter<"shifts"> | Date | string | null
|
|
start_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null
|
|
end_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null
|
|
comment?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
status?: Prisma.BoolNullableFilter<"shifts"> | boolean | null
|
|
created_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null
|
|
updated_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null
|
|
supervisor_note?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
}
|
|
|
|
export type shiftsOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
type?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
start_time?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
end_time?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type shiftsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[]
|
|
OR?: Prisma.shiftsWhereInput[]
|
|
NOT?: Prisma.shiftsWhereInput | Prisma.shiftsWhereInput[]
|
|
time_sheet_id?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
code?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
type?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
date?: Prisma.DateTimeNullableFilter<"shifts"> | Date | string | null
|
|
start_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null
|
|
end_time?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null
|
|
comment?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
status?: Prisma.BoolNullableFilter<"shifts"> | boolean | null
|
|
created_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null
|
|
updated_at?: Prisma.BigIntNullableFilter<"shifts"> | bigint | number | null
|
|
supervisor_note?: Prisma.StringNullableFilter<"shifts"> | string | null
|
|
}, "id">
|
|
|
|
export type shiftsOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
type?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
start_time?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
end_time?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
comment?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.shiftsCountOrderByAggregateInput
|
|
_avg?: Prisma.shiftsAvgOrderByAggregateInput
|
|
_max?: Prisma.shiftsMaxOrderByAggregateInput
|
|
_min?: Prisma.shiftsMinOrderByAggregateInput
|
|
_sum?: Prisma.shiftsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type shiftsScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.shiftsScalarWhereWithAggregatesInput | Prisma.shiftsScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.shiftsScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.shiftsScalarWhereWithAggregatesInput | Prisma.shiftsScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.UuidWithAggregatesFilter<"shifts"> | string
|
|
time_sheet_id?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null
|
|
code?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null
|
|
type?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null
|
|
date?: Prisma.DateTimeNullableWithAggregatesFilter<"shifts"> | Date | string | null
|
|
start_time?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null
|
|
end_time?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null
|
|
comment?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null
|
|
status?: Prisma.BoolNullableWithAggregatesFilter<"shifts"> | boolean | null
|
|
created_at?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null
|
|
updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"shifts"> | bigint | number | null
|
|
supervisor_note?: Prisma.StringNullableWithAggregatesFilter<"shifts"> | string | null
|
|
}
|
|
|
|
export type shiftsCreateInput = {
|
|
id: string
|
|
time_sheet_id?: string | null
|
|
code?: string | null
|
|
type?: string | null
|
|
date?: Date | string | null
|
|
start_time?: bigint | number | null
|
|
end_time?: bigint | number | null
|
|
comment?: string | null
|
|
status?: boolean | null
|
|
created_at?: bigint | number | null
|
|
updated_at?: bigint | number | null
|
|
supervisor_note?: string | null
|
|
}
|
|
|
|
export type shiftsUncheckedCreateInput = {
|
|
id: string
|
|
time_sheet_id?: string | null
|
|
code?: string | null
|
|
type?: string | null
|
|
date?: Date | string | null
|
|
start_time?: bigint | number | null
|
|
end_time?: bigint | number | null
|
|
comment?: string | null
|
|
status?: boolean | null
|
|
created_at?: bigint | number | null
|
|
updated_at?: bigint | number | null
|
|
supervisor_note?: string | null
|
|
}
|
|
|
|
export type shiftsUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type shiftsUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type shiftsCreateManyInput = {
|
|
id: string
|
|
time_sheet_id?: string | null
|
|
code?: string | null
|
|
type?: string | null
|
|
date?: Date | string | null
|
|
start_time?: bigint | number | null
|
|
end_time?: bigint | number | null
|
|
comment?: string | null
|
|
status?: boolean | null
|
|
created_at?: bigint | number | null
|
|
updated_at?: bigint | number | null
|
|
supervisor_note?: string | null
|
|
}
|
|
|
|
export type shiftsUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type shiftsUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
start_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
end_time?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type shiftsCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
time_sheet_id?: Prisma.SortOrder
|
|
code?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
date?: Prisma.SortOrder
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
comment?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
supervisor_note?: Prisma.SortOrder
|
|
}
|
|
|
|
export type shiftsAvgOrderByAggregateInput = {
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
}
|
|
|
|
export type shiftsMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
time_sheet_id?: Prisma.SortOrder
|
|
code?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
date?: Prisma.SortOrder
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
comment?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
supervisor_note?: Prisma.SortOrder
|
|
}
|
|
|
|
export type shiftsMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
time_sheet_id?: Prisma.SortOrder
|
|
code?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
date?: Prisma.SortOrder
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
comment?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
supervisor_note?: Prisma.SortOrder
|
|
}
|
|
|
|
export type shiftsSumOrderByAggregateInput = {
|
|
start_time?: Prisma.SortOrder
|
|
end_time?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
}
|
|
|
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string | null
|
|
}
|
|
|
|
|
|
|
|
export type shiftsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
time_sheet_id?: boolean
|
|
code?: boolean
|
|
type?: boolean
|
|
date?: boolean
|
|
start_time?: boolean
|
|
end_time?: boolean
|
|
comment?: boolean
|
|
status?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
supervisor_note?: boolean
|
|
}, ExtArgs["result"]["shifts"]>
|
|
|
|
export type shiftsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
time_sheet_id?: boolean
|
|
code?: boolean
|
|
type?: boolean
|
|
date?: boolean
|
|
start_time?: boolean
|
|
end_time?: boolean
|
|
comment?: boolean
|
|
status?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
supervisor_note?: boolean
|
|
}, ExtArgs["result"]["shifts"]>
|
|
|
|
export type shiftsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
time_sheet_id?: boolean
|
|
code?: boolean
|
|
type?: boolean
|
|
date?: boolean
|
|
start_time?: boolean
|
|
end_time?: boolean
|
|
comment?: boolean
|
|
status?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
supervisor_note?: boolean
|
|
}, ExtArgs["result"]["shifts"]>
|
|
|
|
export type shiftsSelectScalar = {
|
|
id?: boolean
|
|
time_sheet_id?: boolean
|
|
code?: boolean
|
|
type?: boolean
|
|
date?: boolean
|
|
start_time?: boolean
|
|
end_time?: boolean
|
|
comment?: boolean
|
|
status?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
supervisor_note?: boolean
|
|
}
|
|
|
|
export type shiftsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "time_sheet_id" | "code" | "type" | "date" | "start_time" | "end_time" | "comment" | "status" | "created_at" | "updated_at" | "supervisor_note", ExtArgs["result"]["shifts"]>
|
|
|
|
export type $shiftsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "shifts"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
time_sheet_id: string | null
|
|
code: string | null
|
|
type: string | null
|
|
date: Date | null
|
|
start_time: bigint | null
|
|
end_time: bigint | null
|
|
comment: string | null
|
|
status: boolean | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
supervisor_note: string | null
|
|
}, ExtArgs["result"]["shifts"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type shiftsGetPayload<S extends boolean | null | undefined | shiftsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$shiftsPayload, S>
|
|
|
|
export type shiftsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<shiftsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: ShiftsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface shiftsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['shifts'], meta: { name: 'shifts' } }
|
|
/**
|
|
* Find zero or one Shifts that matches the filter.
|
|
* @param {shiftsFindUniqueArgs} args - Arguments to find a Shifts
|
|
* @example
|
|
* // Get one Shifts
|
|
* const shifts = await prisma.shifts.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends shiftsFindUniqueArgs>(args: Prisma.SelectSubset<T, shiftsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__shiftsClient<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Shifts that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {shiftsFindUniqueOrThrowArgs} args - Arguments to find a Shifts
|
|
* @example
|
|
* // Get one Shifts
|
|
* const shifts = await prisma.shifts.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends shiftsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, shiftsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__shiftsClient<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Shifts 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 {shiftsFindFirstArgs} args - Arguments to find a Shifts
|
|
* @example
|
|
* // Get one Shifts
|
|
* const shifts = await prisma.shifts.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends shiftsFindFirstArgs>(args?: Prisma.SelectSubset<T, shiftsFindFirstArgs<ExtArgs>>): Prisma.Prisma__shiftsClient<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Shifts 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 {shiftsFindFirstOrThrowArgs} args - Arguments to find a Shifts
|
|
* @example
|
|
* // Get one Shifts
|
|
* const shifts = await prisma.shifts.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends shiftsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, shiftsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__shiftsClient<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Shifts 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 {shiftsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Shifts
|
|
* const shifts = await prisma.shifts.findMany()
|
|
*
|
|
* // Get first 10 Shifts
|
|
* const shifts = await prisma.shifts.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const shiftsWithIdOnly = await prisma.shifts.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends shiftsFindManyArgs>(args?: Prisma.SelectSubset<T, shiftsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Shifts.
|
|
* @param {shiftsCreateArgs} args - Arguments to create a Shifts.
|
|
* @example
|
|
* // Create one Shifts
|
|
* const Shifts = await prisma.shifts.create({
|
|
* data: {
|
|
* // ... data to create a Shifts
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends shiftsCreateArgs>(args: Prisma.SelectSubset<T, shiftsCreateArgs<ExtArgs>>): Prisma.Prisma__shiftsClient<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Shifts.
|
|
* @param {shiftsCreateManyArgs} args - Arguments to create many Shifts.
|
|
* @example
|
|
* // Create many Shifts
|
|
* const shifts = await prisma.shifts.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends shiftsCreateManyArgs>(args?: Prisma.SelectSubset<T, shiftsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Shifts and returns the data saved in the database.
|
|
* @param {shiftsCreateManyAndReturnArgs} args - Arguments to create many Shifts.
|
|
* @example
|
|
* // Create many Shifts
|
|
* const shifts = await prisma.shifts.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Shifts and only return the `id`
|
|
* const shiftsWithIdOnly = await prisma.shifts.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 shiftsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, shiftsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Shifts.
|
|
* @param {shiftsDeleteArgs} args - Arguments to delete one Shifts.
|
|
* @example
|
|
* // Delete one Shifts
|
|
* const Shifts = await prisma.shifts.delete({
|
|
* where: {
|
|
* // ... filter to delete one Shifts
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends shiftsDeleteArgs>(args: Prisma.SelectSubset<T, shiftsDeleteArgs<ExtArgs>>): Prisma.Prisma__shiftsClient<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Shifts.
|
|
* @param {shiftsUpdateArgs} args - Arguments to update one Shifts.
|
|
* @example
|
|
* // Update one Shifts
|
|
* const shifts = await prisma.shifts.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends shiftsUpdateArgs>(args: Prisma.SelectSubset<T, shiftsUpdateArgs<ExtArgs>>): Prisma.Prisma__shiftsClient<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Shifts.
|
|
* @param {shiftsDeleteManyArgs} args - Arguments to filter Shifts to delete.
|
|
* @example
|
|
* // Delete a few Shifts
|
|
* const { count } = await prisma.shifts.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends shiftsDeleteManyArgs>(args?: Prisma.SelectSubset<T, shiftsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Shifts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {shiftsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Shifts
|
|
* const shifts = await prisma.shifts.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends shiftsUpdateManyArgs>(args: Prisma.SelectSubset<T, shiftsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Shifts and returns the data updated in the database.
|
|
* @param {shiftsUpdateManyAndReturnArgs} args - Arguments to update many Shifts.
|
|
* @example
|
|
* // Update many Shifts
|
|
* const shifts = await prisma.shifts.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Shifts and only return the `id`
|
|
* const shiftsWithIdOnly = await prisma.shifts.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 shiftsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, shiftsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Shifts.
|
|
* @param {shiftsUpsertArgs} args - Arguments to update or create a Shifts.
|
|
* @example
|
|
* // Update or create a Shifts
|
|
* const shifts = await prisma.shifts.upsert({
|
|
* create: {
|
|
* // ... data to create a Shifts
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Shifts we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends shiftsUpsertArgs>(args: Prisma.SelectSubset<T, shiftsUpsertArgs<ExtArgs>>): Prisma.Prisma__shiftsClient<runtime.Types.Result.GetResult<Prisma.$shiftsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Shifts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {shiftsCountArgs} args - Arguments to filter Shifts to count.
|
|
* @example
|
|
* // Count the number of Shifts
|
|
* const count = await prisma.shifts.count({
|
|
* where: {
|
|
* // ... the filter for the Shifts we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends shiftsCountArgs>(
|
|
args?: Prisma.Subset<T, shiftsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], ShiftsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Shifts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {ShiftsAggregateArgs} 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 ShiftsAggregateArgs>(args: Prisma.Subset<T, ShiftsAggregateArgs>): Prisma.PrismaPromise<GetShiftsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Shifts.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {shiftsGroupByArgs} 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 shiftsGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: shiftsGroupByArgs['orderBy'] }
|
|
: { orderBy?: shiftsGroupByArgs['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, shiftsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShiftsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the shifts model
|
|
*/
|
|
readonly fields: shiftsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for shifts.
|
|
* 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__shiftsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* 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 shifts model
|
|
*/
|
|
export interface shiftsFieldRefs {
|
|
readonly id: Prisma.FieldRef<"shifts", 'String'>
|
|
readonly time_sheet_id: Prisma.FieldRef<"shifts", 'String'>
|
|
readonly code: Prisma.FieldRef<"shifts", 'String'>
|
|
readonly type: Prisma.FieldRef<"shifts", 'String'>
|
|
readonly date: Prisma.FieldRef<"shifts", 'DateTime'>
|
|
readonly start_time: Prisma.FieldRef<"shifts", 'BigInt'>
|
|
readonly end_time: Prisma.FieldRef<"shifts", 'BigInt'>
|
|
readonly comment: Prisma.FieldRef<"shifts", 'String'>
|
|
readonly status: Prisma.FieldRef<"shifts", 'Boolean'>
|
|
readonly created_at: Prisma.FieldRef<"shifts", 'BigInt'>
|
|
readonly updated_at: Prisma.FieldRef<"shifts", 'BigInt'>
|
|
readonly supervisor_note: Prisma.FieldRef<"shifts", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* shifts findUnique
|
|
*/
|
|
export type shiftsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which shifts to fetch.
|
|
*/
|
|
where: Prisma.shiftsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* shifts findUniqueOrThrow
|
|
*/
|
|
export type shiftsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which shifts to fetch.
|
|
*/
|
|
where: Prisma.shiftsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* shifts findFirst
|
|
*/
|
|
export type shiftsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which shifts to fetch.
|
|
*/
|
|
where?: Prisma.shiftsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of shifts to fetch.
|
|
*/
|
|
orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for shifts.
|
|
*/
|
|
cursor?: Prisma.shiftsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` shifts 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` shifts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of shifts.
|
|
*/
|
|
distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* shifts findFirstOrThrow
|
|
*/
|
|
export type shiftsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which shifts to fetch.
|
|
*/
|
|
where?: Prisma.shiftsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of shifts to fetch.
|
|
*/
|
|
orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for shifts.
|
|
*/
|
|
cursor?: Prisma.shiftsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` shifts 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` shifts.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of shifts.
|
|
*/
|
|
distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* shifts findMany
|
|
*/
|
|
export type shiftsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which shifts to fetch.
|
|
*/
|
|
where?: Prisma.shiftsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of shifts to fetch.
|
|
*/
|
|
orderBy?: Prisma.shiftsOrderByWithRelationInput | Prisma.shiftsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing shifts.
|
|
*/
|
|
cursor?: Prisma.shiftsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` shifts 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` shifts.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.ShiftsScalarFieldEnum | Prisma.ShiftsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* shifts create
|
|
*/
|
|
export type shiftsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a shifts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.shiftsCreateInput, Prisma.shiftsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* shifts createMany
|
|
*/
|
|
export type shiftsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many shifts.
|
|
*/
|
|
data: Prisma.shiftsCreateManyInput | Prisma.shiftsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* shifts createManyAndReturn
|
|
*/
|
|
export type shiftsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many shifts.
|
|
*/
|
|
data: Prisma.shiftsCreateManyInput | Prisma.shiftsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* shifts update
|
|
*/
|
|
export type shiftsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a shifts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.shiftsUpdateInput, Prisma.shiftsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which shifts to update.
|
|
*/
|
|
where: Prisma.shiftsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* shifts updateMany
|
|
*/
|
|
export type shiftsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update shifts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.shiftsUpdateManyMutationInput, Prisma.shiftsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which shifts to update
|
|
*/
|
|
where?: Prisma.shiftsWhereInput
|
|
/**
|
|
* Limit how many shifts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* shifts updateManyAndReturn
|
|
*/
|
|
export type shiftsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update shifts.
|
|
*/
|
|
data: Prisma.XOR<Prisma.shiftsUpdateManyMutationInput, Prisma.shiftsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which shifts to update
|
|
*/
|
|
where?: Prisma.shiftsWhereInput
|
|
/**
|
|
* Limit how many shifts to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* shifts upsert
|
|
*/
|
|
export type shiftsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the shifts to update in case it exists.
|
|
*/
|
|
where: Prisma.shiftsWhereUniqueInput
|
|
/**
|
|
* In case the shifts found by the `where` argument doesn't exist, create a new shifts with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.shiftsCreateInput, Prisma.shiftsUncheckedCreateInput>
|
|
/**
|
|
* In case the shifts was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.shiftsUpdateInput, Prisma.shiftsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* shifts delete
|
|
*/
|
|
export type shiftsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which shifts to delete.
|
|
*/
|
|
where: Prisma.shiftsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* shifts deleteMany
|
|
*/
|
|
export type shiftsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which shifts to delete
|
|
*/
|
|
where?: Prisma.shiftsWhereInput
|
|
/**
|
|
* Limit how many shifts to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* shifts without action
|
|
*/
|
|
export type shiftsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the shifts
|
|
*/
|
|
select?: Prisma.shiftsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the shifts
|
|
*/
|
|
omit?: Prisma.shiftsOmit<ExtArgs> | null
|
|
}
|