1443 lines
53 KiB
TypeScript
1443 lines
53 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 `time_sheets` 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 time_sheets
|
|
*
|
|
*/
|
|
export type time_sheetsModel = runtime.Types.Result.DefaultSelection<Prisma.$time_sheetsPayload>
|
|
|
|
export type AggregateTime_sheets = {
|
|
_count: Time_sheetsCountAggregateOutputType | null
|
|
_avg: Time_sheetsAvgAggregateOutputType | null
|
|
_sum: Time_sheetsSumAggregateOutputType | null
|
|
_min: Time_sheetsMinAggregateOutputType | null
|
|
_max: Time_sheetsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Time_sheetsAvgAggregateOutputType = {
|
|
banked_hours: number | null
|
|
consumed_vacation: number | null
|
|
consumed_sick: number | null
|
|
period_number: number | null
|
|
created_at: number | null
|
|
updated_at: number | null
|
|
}
|
|
|
|
export type Time_sheetsSumAggregateOutputType = {
|
|
banked_hours: number | null
|
|
consumed_vacation: number | null
|
|
consumed_sick: number | null
|
|
period_number: number | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
}
|
|
|
|
export type Time_sheetsMinAggregateOutputType = {
|
|
id: string | null
|
|
employee_id: string | null
|
|
start_date: Date | null
|
|
end_date: Date | null
|
|
status: boolean | null
|
|
banked_hours: number | null
|
|
consumed_vacation: number | null
|
|
consumed_sick: number | null
|
|
period_id: string | null
|
|
period_number: number | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
blocked_week: boolean | null
|
|
}
|
|
|
|
export type Time_sheetsMaxAggregateOutputType = {
|
|
id: string | null
|
|
employee_id: string | null
|
|
start_date: Date | null
|
|
end_date: Date | null
|
|
status: boolean | null
|
|
banked_hours: number | null
|
|
consumed_vacation: number | null
|
|
consumed_sick: number | null
|
|
period_id: string | null
|
|
period_number: number | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
blocked_week: boolean | null
|
|
}
|
|
|
|
export type Time_sheetsCountAggregateOutputType = {
|
|
id: number
|
|
employee_id: number
|
|
start_date: number
|
|
end_date: number
|
|
status: number
|
|
banked_hours: number
|
|
consumed_vacation: number
|
|
consumed_sick: number
|
|
period_id: number
|
|
period_number: number
|
|
created_at: number
|
|
updated_at: number
|
|
blocked_week: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Time_sheetsAvgAggregateInputType = {
|
|
banked_hours?: true
|
|
consumed_vacation?: true
|
|
consumed_sick?: true
|
|
period_number?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Time_sheetsSumAggregateInputType = {
|
|
banked_hours?: true
|
|
consumed_vacation?: true
|
|
consumed_sick?: true
|
|
period_number?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
}
|
|
|
|
export type Time_sheetsMinAggregateInputType = {
|
|
id?: true
|
|
employee_id?: true
|
|
start_date?: true
|
|
end_date?: true
|
|
status?: true
|
|
banked_hours?: true
|
|
consumed_vacation?: true
|
|
consumed_sick?: true
|
|
period_id?: true
|
|
period_number?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
blocked_week?: true
|
|
}
|
|
|
|
export type Time_sheetsMaxAggregateInputType = {
|
|
id?: true
|
|
employee_id?: true
|
|
start_date?: true
|
|
end_date?: true
|
|
status?: true
|
|
banked_hours?: true
|
|
consumed_vacation?: true
|
|
consumed_sick?: true
|
|
period_id?: true
|
|
period_number?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
blocked_week?: true
|
|
}
|
|
|
|
export type Time_sheetsCountAggregateInputType = {
|
|
id?: true
|
|
employee_id?: true
|
|
start_date?: true
|
|
end_date?: true
|
|
status?: true
|
|
banked_hours?: true
|
|
consumed_vacation?: true
|
|
consumed_sick?: true
|
|
period_id?: true
|
|
period_number?: true
|
|
created_at?: true
|
|
updated_at?: true
|
|
blocked_week?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Time_sheetsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which time_sheets to aggregate.
|
|
*/
|
|
where?: Prisma.time_sheetsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of time_sheets to fetch.
|
|
*/
|
|
orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.time_sheetsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` time_sheets 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` time_sheets.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned time_sheets
|
|
**/
|
|
_count?: true | Time_sheetsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Time_sheetsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Time_sheetsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Time_sheetsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Time_sheetsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTime_sheetsAggregateType<T extends Time_sheetsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTime_sheets]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTime_sheets[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTime_sheets[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type time_sheetsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.time_sheetsWhereInput
|
|
orderBy?: Prisma.time_sheetsOrderByWithAggregationInput | Prisma.time_sheetsOrderByWithAggregationInput[]
|
|
by: Prisma.Time_sheetsScalarFieldEnum[] | Prisma.Time_sheetsScalarFieldEnum
|
|
having?: Prisma.time_sheetsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Time_sheetsCountAggregateInputType | true
|
|
_avg?: Time_sheetsAvgAggregateInputType
|
|
_sum?: Time_sheetsSumAggregateInputType
|
|
_min?: Time_sheetsMinAggregateInputType
|
|
_max?: Time_sheetsMaxAggregateInputType
|
|
}
|
|
|
|
export type Time_sheetsGroupByOutputType = {
|
|
id: string
|
|
employee_id: string | null
|
|
start_date: Date | null
|
|
end_date: Date | null
|
|
status: boolean | null
|
|
banked_hours: number | null
|
|
consumed_vacation: number | null
|
|
consumed_sick: number | null
|
|
period_id: string | null
|
|
period_number: number | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
blocked_week: boolean | null
|
|
_count: Time_sheetsCountAggregateOutputType | null
|
|
_avg: Time_sheetsAvgAggregateOutputType | null
|
|
_sum: Time_sheetsSumAggregateOutputType | null
|
|
_min: Time_sheetsMinAggregateOutputType | null
|
|
_max: Time_sheetsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTime_sheetsGroupByPayload<T extends time_sheetsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Time_sheetsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Time_sheetsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Time_sheetsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Time_sheetsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type time_sheetsWhereInput = {
|
|
AND?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[]
|
|
OR?: Prisma.time_sheetsWhereInput[]
|
|
NOT?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[]
|
|
id?: Prisma.UuidFilter<"time_sheets"> | string
|
|
employee_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null
|
|
start_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null
|
|
end_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null
|
|
status?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null
|
|
banked_hours?: Prisma.FloatNullableFilter<"time_sheets"> | number | null
|
|
consumed_vacation?: Prisma.FloatNullableFilter<"time_sheets"> | number | null
|
|
consumed_sick?: Prisma.FloatNullableFilter<"time_sheets"> | number | null
|
|
period_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null
|
|
period_number?: Prisma.IntNullableFilter<"time_sheets"> | number | null
|
|
created_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null
|
|
updated_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null
|
|
blocked_week?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null
|
|
}
|
|
|
|
export type time_sheetsOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
employee_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
start_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
end_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
banked_hours?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
consumed_vacation?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
consumed_sick?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
period_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
period_number?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
blocked_week?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheetsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[]
|
|
OR?: Prisma.time_sheetsWhereInput[]
|
|
NOT?: Prisma.time_sheetsWhereInput | Prisma.time_sheetsWhereInput[]
|
|
employee_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null
|
|
start_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null
|
|
end_date?: Prisma.DateTimeNullableFilter<"time_sheets"> | Date | string | null
|
|
status?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null
|
|
banked_hours?: Prisma.FloatNullableFilter<"time_sheets"> | number | null
|
|
consumed_vacation?: Prisma.FloatNullableFilter<"time_sheets"> | number | null
|
|
consumed_sick?: Prisma.FloatNullableFilter<"time_sheets"> | number | null
|
|
period_id?: Prisma.StringNullableFilter<"time_sheets"> | string | null
|
|
period_number?: Prisma.IntNullableFilter<"time_sheets"> | number | null
|
|
created_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null
|
|
updated_at?: Prisma.BigIntNullableFilter<"time_sheets"> | bigint | number | null
|
|
blocked_week?: Prisma.BoolNullableFilter<"time_sheets"> | boolean | null
|
|
}, "id">
|
|
|
|
export type time_sheetsOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
employee_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
start_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
end_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
banked_hours?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
consumed_vacation?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
consumed_sick?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
period_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
period_number?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
blocked_week?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.time_sheetsCountOrderByAggregateInput
|
|
_avg?: Prisma.time_sheetsAvgOrderByAggregateInput
|
|
_max?: Prisma.time_sheetsMaxOrderByAggregateInput
|
|
_min?: Prisma.time_sheetsMinOrderByAggregateInput
|
|
_sum?: Prisma.time_sheetsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type time_sheetsScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.time_sheetsScalarWhereWithAggregatesInput | Prisma.time_sheetsScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.time_sheetsScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.time_sheetsScalarWhereWithAggregatesInput | Prisma.time_sheetsScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.UuidWithAggregatesFilter<"time_sheets"> | string
|
|
employee_id?: Prisma.StringNullableWithAggregatesFilter<"time_sheets"> | string | null
|
|
start_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheets"> | Date | string | null
|
|
end_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheets"> | Date | string | null
|
|
status?: Prisma.BoolNullableWithAggregatesFilter<"time_sheets"> | boolean | null
|
|
banked_hours?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null
|
|
consumed_vacation?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null
|
|
consumed_sick?: Prisma.FloatNullableWithAggregatesFilter<"time_sheets"> | number | null
|
|
period_id?: Prisma.StringNullableWithAggregatesFilter<"time_sheets"> | string | null
|
|
period_number?: Prisma.IntNullableWithAggregatesFilter<"time_sheets"> | number | null
|
|
created_at?: Prisma.BigIntNullableWithAggregatesFilter<"time_sheets"> | bigint | number | null
|
|
updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"time_sheets"> | bigint | number | null
|
|
blocked_week?: Prisma.BoolNullableWithAggregatesFilter<"time_sheets"> | boolean | null
|
|
}
|
|
|
|
export type time_sheetsCreateInput = {
|
|
id: string
|
|
employee_id?: string | null
|
|
start_date?: Date | string | null
|
|
end_date?: Date | string | null
|
|
status?: boolean | null
|
|
banked_hours?: number | null
|
|
consumed_vacation?: number | null
|
|
consumed_sick?: number | null
|
|
period_id?: string | null
|
|
period_number?: number | null
|
|
created_at?: bigint | number | null
|
|
updated_at?: bigint | number | null
|
|
blocked_week?: boolean | null
|
|
}
|
|
|
|
export type time_sheetsUncheckedCreateInput = {
|
|
id: string
|
|
employee_id?: string | null
|
|
start_date?: Date | string | null
|
|
end_date?: Date | string | null
|
|
status?: boolean | null
|
|
banked_hours?: number | null
|
|
consumed_vacation?: number | null
|
|
consumed_sick?: number | null
|
|
period_id?: string | null
|
|
period_number?: number | null
|
|
created_at?: bigint | number | null
|
|
updated_at?: bigint | number | null
|
|
blocked_week?: boolean | null
|
|
}
|
|
|
|
export type time_sheetsUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
}
|
|
|
|
export type time_sheetsUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
}
|
|
|
|
export type time_sheetsCreateManyInput = {
|
|
id: string
|
|
employee_id?: string | null
|
|
start_date?: Date | string | null
|
|
end_date?: Date | string | null
|
|
status?: boolean | null
|
|
banked_hours?: number | null
|
|
consumed_vacation?: number | null
|
|
consumed_sick?: number | null
|
|
period_id?: string | null
|
|
period_number?: number | null
|
|
created_at?: bigint | number | null
|
|
updated_at?: bigint | number | null
|
|
blocked_week?: boolean | null
|
|
}
|
|
|
|
export type time_sheetsUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
}
|
|
|
|
export type time_sheetsUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
banked_hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
consumed_vacation?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
consumed_sick?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
period_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
blocked_week?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
|
|
}
|
|
|
|
export type time_sheetsCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
employee_id?: Prisma.SortOrder
|
|
start_date?: Prisma.SortOrder
|
|
end_date?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
banked_hours?: Prisma.SortOrder
|
|
consumed_vacation?: Prisma.SortOrder
|
|
consumed_sick?: Prisma.SortOrder
|
|
period_id?: Prisma.SortOrder
|
|
period_number?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
blocked_week?: Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheetsAvgOrderByAggregateInput = {
|
|
banked_hours?: Prisma.SortOrder
|
|
consumed_vacation?: Prisma.SortOrder
|
|
consumed_sick?: Prisma.SortOrder
|
|
period_number?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheetsMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
employee_id?: Prisma.SortOrder
|
|
start_date?: Prisma.SortOrder
|
|
end_date?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
banked_hours?: Prisma.SortOrder
|
|
consumed_vacation?: Prisma.SortOrder
|
|
consumed_sick?: Prisma.SortOrder
|
|
period_id?: Prisma.SortOrder
|
|
period_number?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
blocked_week?: Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheetsMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
employee_id?: Prisma.SortOrder
|
|
start_date?: Prisma.SortOrder
|
|
end_date?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
banked_hours?: Prisma.SortOrder
|
|
consumed_vacation?: Prisma.SortOrder
|
|
consumed_sick?: Prisma.SortOrder
|
|
period_id?: Prisma.SortOrder
|
|
period_number?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
blocked_week?: Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheetsSumOrderByAggregateInput = {
|
|
banked_hours?: Prisma.SortOrder
|
|
consumed_vacation?: Prisma.SortOrder
|
|
consumed_sick?: Prisma.SortOrder
|
|
period_number?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
updated_at?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type time_sheetsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
employee_id?: boolean
|
|
start_date?: boolean
|
|
end_date?: boolean
|
|
status?: boolean
|
|
banked_hours?: boolean
|
|
consumed_vacation?: boolean
|
|
consumed_sick?: boolean
|
|
period_id?: boolean
|
|
period_number?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
blocked_week?: boolean
|
|
}, ExtArgs["result"]["time_sheets"]>
|
|
|
|
export type time_sheetsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
employee_id?: boolean
|
|
start_date?: boolean
|
|
end_date?: boolean
|
|
status?: boolean
|
|
banked_hours?: boolean
|
|
consumed_vacation?: boolean
|
|
consumed_sick?: boolean
|
|
period_id?: boolean
|
|
period_number?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
blocked_week?: boolean
|
|
}, ExtArgs["result"]["time_sheets"]>
|
|
|
|
export type time_sheetsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
employee_id?: boolean
|
|
start_date?: boolean
|
|
end_date?: boolean
|
|
status?: boolean
|
|
banked_hours?: boolean
|
|
consumed_vacation?: boolean
|
|
consumed_sick?: boolean
|
|
period_id?: boolean
|
|
period_number?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
blocked_week?: boolean
|
|
}, ExtArgs["result"]["time_sheets"]>
|
|
|
|
export type time_sheetsSelectScalar = {
|
|
id?: boolean
|
|
employee_id?: boolean
|
|
start_date?: boolean
|
|
end_date?: boolean
|
|
status?: boolean
|
|
banked_hours?: boolean
|
|
consumed_vacation?: boolean
|
|
consumed_sick?: boolean
|
|
period_id?: boolean
|
|
period_number?: boolean
|
|
created_at?: boolean
|
|
updated_at?: boolean
|
|
blocked_week?: boolean
|
|
}
|
|
|
|
export type time_sheetsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "start_date" | "end_date" | "status" | "banked_hours" | "consumed_vacation" | "consumed_sick" | "period_id" | "period_number" | "created_at" | "updated_at" | "blocked_week", ExtArgs["result"]["time_sheets"]>
|
|
|
|
export type $time_sheetsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "time_sheets"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
employee_id: string | null
|
|
start_date: Date | null
|
|
end_date: Date | null
|
|
status: boolean | null
|
|
banked_hours: number | null
|
|
consumed_vacation: number | null
|
|
consumed_sick: number | null
|
|
period_id: string | null
|
|
period_number: number | null
|
|
created_at: bigint | null
|
|
updated_at: bigint | null
|
|
blocked_week: boolean | null
|
|
}, ExtArgs["result"]["time_sheets"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type time_sheetsGetPayload<S extends boolean | null | undefined | time_sheetsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload, S>
|
|
|
|
export type time_sheetsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<time_sheetsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Time_sheetsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface time_sheetsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['time_sheets'], meta: { name: 'time_sheets' } }
|
|
/**
|
|
* Find zero or one Time_sheets that matches the filter.
|
|
* @param {time_sheetsFindUniqueArgs} args - Arguments to find a Time_sheets
|
|
* @example
|
|
* // Get one Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends time_sheetsFindUniqueArgs>(args: Prisma.SelectSubset<T, time_sheetsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__time_sheetsClient<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Time_sheets that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {time_sheetsFindUniqueOrThrowArgs} args - Arguments to find a Time_sheets
|
|
* @example
|
|
* // Get one Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends time_sheetsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, time_sheetsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__time_sheetsClient<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Time_sheets 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 {time_sheetsFindFirstArgs} args - Arguments to find a Time_sheets
|
|
* @example
|
|
* // Get one Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends time_sheetsFindFirstArgs>(args?: Prisma.SelectSubset<T, time_sheetsFindFirstArgs<ExtArgs>>): Prisma.Prisma__time_sheetsClient<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Time_sheets 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 {time_sheetsFindFirstOrThrowArgs} args - Arguments to find a Time_sheets
|
|
* @example
|
|
* // Get one Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends time_sheetsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, time_sheetsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__time_sheetsClient<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Time_sheets 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 {time_sheetsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.findMany()
|
|
*
|
|
* // Get first 10 Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const time_sheetsWithIdOnly = await prisma.time_sheets.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends time_sheetsFindManyArgs>(args?: Prisma.SelectSubset<T, time_sheetsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Time_sheets.
|
|
* @param {time_sheetsCreateArgs} args - Arguments to create a Time_sheets.
|
|
* @example
|
|
* // Create one Time_sheets
|
|
* const Time_sheets = await prisma.time_sheets.create({
|
|
* data: {
|
|
* // ... data to create a Time_sheets
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends time_sheetsCreateArgs>(args: Prisma.SelectSubset<T, time_sheetsCreateArgs<ExtArgs>>): Prisma.Prisma__time_sheetsClient<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Time_sheets.
|
|
* @param {time_sheetsCreateManyArgs} args - Arguments to create many Time_sheets.
|
|
* @example
|
|
* // Create many Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends time_sheetsCreateManyArgs>(args?: Prisma.SelectSubset<T, time_sheetsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Time_sheets and returns the data saved in the database.
|
|
* @param {time_sheetsCreateManyAndReturnArgs} args - Arguments to create many Time_sheets.
|
|
* @example
|
|
* // Create many Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Time_sheets and only return the `id`
|
|
* const time_sheetsWithIdOnly = await prisma.time_sheets.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 time_sheetsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, time_sheetsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Time_sheets.
|
|
* @param {time_sheetsDeleteArgs} args - Arguments to delete one Time_sheets.
|
|
* @example
|
|
* // Delete one Time_sheets
|
|
* const Time_sheets = await prisma.time_sheets.delete({
|
|
* where: {
|
|
* // ... filter to delete one Time_sheets
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends time_sheetsDeleteArgs>(args: Prisma.SelectSubset<T, time_sheetsDeleteArgs<ExtArgs>>): Prisma.Prisma__time_sheetsClient<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Time_sheets.
|
|
* @param {time_sheetsUpdateArgs} args - Arguments to update one Time_sheets.
|
|
* @example
|
|
* // Update one Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends time_sheetsUpdateArgs>(args: Prisma.SelectSubset<T, time_sheetsUpdateArgs<ExtArgs>>): Prisma.Prisma__time_sheetsClient<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Time_sheets.
|
|
* @param {time_sheetsDeleteManyArgs} args - Arguments to filter Time_sheets to delete.
|
|
* @example
|
|
* // Delete a few Time_sheets
|
|
* const { count } = await prisma.time_sheets.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends time_sheetsDeleteManyArgs>(args?: Prisma.SelectSubset<T, time_sheetsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Time_sheets.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {time_sheetsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends time_sheetsUpdateManyArgs>(args: Prisma.SelectSubset<T, time_sheetsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Time_sheets and returns the data updated in the database.
|
|
* @param {time_sheetsUpdateManyAndReturnArgs} args - Arguments to update many Time_sheets.
|
|
* @example
|
|
* // Update many Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Time_sheets and only return the `id`
|
|
* const time_sheetsWithIdOnly = await prisma.time_sheets.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 time_sheetsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, time_sheetsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Time_sheets.
|
|
* @param {time_sheetsUpsertArgs} args - Arguments to update or create a Time_sheets.
|
|
* @example
|
|
* // Update or create a Time_sheets
|
|
* const time_sheets = await prisma.time_sheets.upsert({
|
|
* create: {
|
|
* // ... data to create a Time_sheets
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Time_sheets we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends time_sheetsUpsertArgs>(args: Prisma.SelectSubset<T, time_sheetsUpsertArgs<ExtArgs>>): Prisma.Prisma__time_sheetsClient<runtime.Types.Result.GetResult<Prisma.$time_sheetsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Time_sheets.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {time_sheetsCountArgs} args - Arguments to filter Time_sheets to count.
|
|
* @example
|
|
* // Count the number of Time_sheets
|
|
* const count = await prisma.time_sheets.count({
|
|
* where: {
|
|
* // ... the filter for the Time_sheets we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends time_sheetsCountArgs>(
|
|
args?: Prisma.Subset<T, time_sheetsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Time_sheetsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Time_sheets.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Time_sheetsAggregateArgs} 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 Time_sheetsAggregateArgs>(args: Prisma.Subset<T, Time_sheetsAggregateArgs>): Prisma.PrismaPromise<GetTime_sheetsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Time_sheets.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {time_sheetsGroupByArgs} 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 time_sheetsGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: time_sheetsGroupByArgs['orderBy'] }
|
|
: { orderBy?: time_sheetsGroupByArgs['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, time_sheetsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTime_sheetsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the time_sheets model
|
|
*/
|
|
readonly fields: time_sheetsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for time_sheets.
|
|
* 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__time_sheetsClient<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 time_sheets model
|
|
*/
|
|
export interface time_sheetsFieldRefs {
|
|
readonly id: Prisma.FieldRef<"time_sheets", 'String'>
|
|
readonly employee_id: Prisma.FieldRef<"time_sheets", 'String'>
|
|
readonly start_date: Prisma.FieldRef<"time_sheets", 'DateTime'>
|
|
readonly end_date: Prisma.FieldRef<"time_sheets", 'DateTime'>
|
|
readonly status: Prisma.FieldRef<"time_sheets", 'Boolean'>
|
|
readonly banked_hours: Prisma.FieldRef<"time_sheets", 'Float'>
|
|
readonly consumed_vacation: Prisma.FieldRef<"time_sheets", 'Float'>
|
|
readonly consumed_sick: Prisma.FieldRef<"time_sheets", 'Float'>
|
|
readonly period_id: Prisma.FieldRef<"time_sheets", 'String'>
|
|
readonly period_number: Prisma.FieldRef<"time_sheets", 'Int'>
|
|
readonly created_at: Prisma.FieldRef<"time_sheets", 'BigInt'>
|
|
readonly updated_at: Prisma.FieldRef<"time_sheets", 'BigInt'>
|
|
readonly blocked_week: Prisma.FieldRef<"time_sheets", 'Boolean'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* time_sheets findUnique
|
|
*/
|
|
export type time_sheetsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheets to fetch.
|
|
*/
|
|
where: Prisma.time_sheetsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* time_sheets findUniqueOrThrow
|
|
*/
|
|
export type time_sheetsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheets to fetch.
|
|
*/
|
|
where: Prisma.time_sheetsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* time_sheets findFirst
|
|
*/
|
|
export type time_sheetsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheets to fetch.
|
|
*/
|
|
where?: Prisma.time_sheetsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of time_sheets to fetch.
|
|
*/
|
|
orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for time_sheets.
|
|
*/
|
|
cursor?: Prisma.time_sheetsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` time_sheets 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` time_sheets.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of time_sheets.
|
|
*/
|
|
distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* time_sheets findFirstOrThrow
|
|
*/
|
|
export type time_sheetsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheets to fetch.
|
|
*/
|
|
where?: Prisma.time_sheetsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of time_sheets to fetch.
|
|
*/
|
|
orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for time_sheets.
|
|
*/
|
|
cursor?: Prisma.time_sheetsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` time_sheets 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` time_sheets.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of time_sheets.
|
|
*/
|
|
distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* time_sheets findMany
|
|
*/
|
|
export type time_sheetsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheets to fetch.
|
|
*/
|
|
where?: Prisma.time_sheetsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of time_sheets to fetch.
|
|
*/
|
|
orderBy?: Prisma.time_sheetsOrderByWithRelationInput | Prisma.time_sheetsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing time_sheets.
|
|
*/
|
|
cursor?: Prisma.time_sheetsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` time_sheets 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` time_sheets.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.Time_sheetsScalarFieldEnum | Prisma.Time_sheetsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* time_sheets create
|
|
*/
|
|
export type time_sheetsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a time_sheets.
|
|
*/
|
|
data: Prisma.XOR<Prisma.time_sheetsCreateInput, Prisma.time_sheetsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* time_sheets createMany
|
|
*/
|
|
export type time_sheetsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many time_sheets.
|
|
*/
|
|
data: Prisma.time_sheetsCreateManyInput | Prisma.time_sheetsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* time_sheets createManyAndReturn
|
|
*/
|
|
export type time_sheetsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many time_sheets.
|
|
*/
|
|
data: Prisma.time_sheetsCreateManyInput | Prisma.time_sheetsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* time_sheets update
|
|
*/
|
|
export type time_sheetsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a time_sheets.
|
|
*/
|
|
data: Prisma.XOR<Prisma.time_sheetsUpdateInput, Prisma.time_sheetsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which time_sheets to update.
|
|
*/
|
|
where: Prisma.time_sheetsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* time_sheets updateMany
|
|
*/
|
|
export type time_sheetsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update time_sheets.
|
|
*/
|
|
data: Prisma.XOR<Prisma.time_sheetsUpdateManyMutationInput, Prisma.time_sheetsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which time_sheets to update
|
|
*/
|
|
where?: Prisma.time_sheetsWhereInput
|
|
/**
|
|
* Limit how many time_sheets to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* time_sheets updateManyAndReturn
|
|
*/
|
|
export type time_sheetsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update time_sheets.
|
|
*/
|
|
data: Prisma.XOR<Prisma.time_sheetsUpdateManyMutationInput, Prisma.time_sheetsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which time_sheets to update
|
|
*/
|
|
where?: Prisma.time_sheetsWhereInput
|
|
/**
|
|
* Limit how many time_sheets to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* time_sheets upsert
|
|
*/
|
|
export type time_sheetsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the time_sheets to update in case it exists.
|
|
*/
|
|
where: Prisma.time_sheetsWhereUniqueInput
|
|
/**
|
|
* In case the time_sheets found by the `where` argument doesn't exist, create a new time_sheets with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.time_sheetsCreateInput, Prisma.time_sheetsUncheckedCreateInput>
|
|
/**
|
|
* In case the time_sheets was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.time_sheetsUpdateInput, Prisma.time_sheetsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* time_sheets delete
|
|
*/
|
|
export type time_sheetsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which time_sheets to delete.
|
|
*/
|
|
where: Prisma.time_sheetsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* time_sheets deleteMany
|
|
*/
|
|
export type time_sheetsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which time_sheets to delete
|
|
*/
|
|
where?: Prisma.time_sheetsWhereInput
|
|
/**
|
|
* Limit how many time_sheets to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* time_sheets without action
|
|
*/
|
|
export type time_sheetsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheets
|
|
*/
|
|
select?: Prisma.time_sheetsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheets
|
|
*/
|
|
omit?: Prisma.time_sheetsOmit<ExtArgs> | null
|
|
}
|