1223 lines
46 KiB
TypeScript
1223 lines
46 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_sheet_periods` 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_sheet_periods
|
|
*
|
|
*/
|
|
export type time_sheet_periodsModel = runtime.Types.Result.DefaultSelection<Prisma.$time_sheet_periodsPayload>
|
|
|
|
export type AggregateTime_sheet_periods = {
|
|
_count: Time_sheet_periodsCountAggregateOutputType | null
|
|
_avg: Time_sheet_periodsAvgAggregateOutputType | null
|
|
_sum: Time_sheet_periodsSumAggregateOutputType | null
|
|
_min: Time_sheet_periodsMinAggregateOutputType | null
|
|
_max: Time_sheet_periodsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Time_sheet_periodsAvgAggregateOutputType = {
|
|
period_number: number | null
|
|
year: number | null
|
|
}
|
|
|
|
export type Time_sheet_periodsSumAggregateOutputType = {
|
|
period_number: number | null
|
|
year: number | null
|
|
}
|
|
|
|
export type Time_sheet_periodsMinAggregateOutputType = {
|
|
id: string | null
|
|
start_date: Date | null
|
|
end_date: Date | null
|
|
payment_date: Date | null
|
|
period_number: number | null
|
|
year: number | null
|
|
}
|
|
|
|
export type Time_sheet_periodsMaxAggregateOutputType = {
|
|
id: string | null
|
|
start_date: Date | null
|
|
end_date: Date | null
|
|
payment_date: Date | null
|
|
period_number: number | null
|
|
year: number | null
|
|
}
|
|
|
|
export type Time_sheet_periodsCountAggregateOutputType = {
|
|
id: number
|
|
start_date: number
|
|
end_date: number
|
|
payment_date: number
|
|
period_number: number
|
|
year: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Time_sheet_periodsAvgAggregateInputType = {
|
|
period_number?: true
|
|
year?: true
|
|
}
|
|
|
|
export type Time_sheet_periodsSumAggregateInputType = {
|
|
period_number?: true
|
|
year?: true
|
|
}
|
|
|
|
export type Time_sheet_periodsMinAggregateInputType = {
|
|
id?: true
|
|
start_date?: true
|
|
end_date?: true
|
|
payment_date?: true
|
|
period_number?: true
|
|
year?: true
|
|
}
|
|
|
|
export type Time_sheet_periodsMaxAggregateInputType = {
|
|
id?: true
|
|
start_date?: true
|
|
end_date?: true
|
|
payment_date?: true
|
|
period_number?: true
|
|
year?: true
|
|
}
|
|
|
|
export type Time_sheet_periodsCountAggregateInputType = {
|
|
id?: true
|
|
start_date?: true
|
|
end_date?: true
|
|
payment_date?: true
|
|
period_number?: true
|
|
year?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Time_sheet_periodsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which time_sheet_periods to aggregate.
|
|
*/
|
|
where?: Prisma.time_sheet_periodsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of time_sheet_periods to fetch.
|
|
*/
|
|
orderBy?: Prisma.time_sheet_periodsOrderByWithRelationInput | Prisma.time_sheet_periodsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.time_sheet_periodsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` time_sheet_periods 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_sheet_periods.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned time_sheet_periods
|
|
**/
|
|
_count?: true | Time_sheet_periodsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Time_sheet_periodsAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Time_sheet_periodsSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Time_sheet_periodsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Time_sheet_periodsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTime_sheet_periodsAggregateType<T extends Time_sheet_periodsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTime_sheet_periods]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTime_sheet_periods[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTime_sheet_periods[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type time_sheet_periodsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.time_sheet_periodsWhereInput
|
|
orderBy?: Prisma.time_sheet_periodsOrderByWithAggregationInput | Prisma.time_sheet_periodsOrderByWithAggregationInput[]
|
|
by: Prisma.Time_sheet_periodsScalarFieldEnum[] | Prisma.Time_sheet_periodsScalarFieldEnum
|
|
having?: Prisma.time_sheet_periodsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Time_sheet_periodsCountAggregateInputType | true
|
|
_avg?: Time_sheet_periodsAvgAggregateInputType
|
|
_sum?: Time_sheet_periodsSumAggregateInputType
|
|
_min?: Time_sheet_periodsMinAggregateInputType
|
|
_max?: Time_sheet_periodsMaxAggregateInputType
|
|
}
|
|
|
|
export type Time_sheet_periodsGroupByOutputType = {
|
|
id: string
|
|
start_date: Date | null
|
|
end_date: Date | null
|
|
payment_date: Date | null
|
|
period_number: number | null
|
|
year: number | null
|
|
_count: Time_sheet_periodsCountAggregateOutputType | null
|
|
_avg: Time_sheet_periodsAvgAggregateOutputType | null
|
|
_sum: Time_sheet_periodsSumAggregateOutputType | null
|
|
_min: Time_sheet_periodsMinAggregateOutputType | null
|
|
_max: Time_sheet_periodsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetTime_sheet_periodsGroupByPayload<T extends time_sheet_periodsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Time_sheet_periodsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Time_sheet_periodsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Time_sheet_periodsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Time_sheet_periodsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type time_sheet_periodsWhereInput = {
|
|
AND?: Prisma.time_sheet_periodsWhereInput | Prisma.time_sheet_periodsWhereInput[]
|
|
OR?: Prisma.time_sheet_periodsWhereInput[]
|
|
NOT?: Prisma.time_sheet_periodsWhereInput | Prisma.time_sheet_periodsWhereInput[]
|
|
id?: Prisma.UuidFilter<"time_sheet_periods"> | string
|
|
start_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null
|
|
end_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null
|
|
payment_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null
|
|
period_number?: Prisma.IntNullableFilter<"time_sheet_periods"> | number | null
|
|
year?: Prisma.IntNullableFilter<"time_sheet_periods"> | number | null
|
|
}
|
|
|
|
export type time_sheet_periodsOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
start_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
end_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
payment_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
period_number?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
year?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheet_periodsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.time_sheet_periodsWhereInput | Prisma.time_sheet_periodsWhereInput[]
|
|
OR?: Prisma.time_sheet_periodsWhereInput[]
|
|
NOT?: Prisma.time_sheet_periodsWhereInput | Prisma.time_sheet_periodsWhereInput[]
|
|
start_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null
|
|
end_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null
|
|
payment_date?: Prisma.DateTimeNullableFilter<"time_sheet_periods"> | Date | string | null
|
|
period_number?: Prisma.IntNullableFilter<"time_sheet_periods"> | number | null
|
|
year?: Prisma.IntNullableFilter<"time_sheet_periods"> | number | null
|
|
}, "id">
|
|
|
|
export type time_sheet_periodsOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
start_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
end_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
payment_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
period_number?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
year?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.time_sheet_periodsCountOrderByAggregateInput
|
|
_avg?: Prisma.time_sheet_periodsAvgOrderByAggregateInput
|
|
_max?: Prisma.time_sheet_periodsMaxOrderByAggregateInput
|
|
_min?: Prisma.time_sheet_periodsMinOrderByAggregateInput
|
|
_sum?: Prisma.time_sheet_periodsSumOrderByAggregateInput
|
|
}
|
|
|
|
export type time_sheet_periodsScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.time_sheet_periodsScalarWhereWithAggregatesInput | Prisma.time_sheet_periodsScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.time_sheet_periodsScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.time_sheet_periodsScalarWhereWithAggregatesInput | Prisma.time_sheet_periodsScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.UuidWithAggregatesFilter<"time_sheet_periods"> | string
|
|
start_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheet_periods"> | Date | string | null
|
|
end_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheet_periods"> | Date | string | null
|
|
payment_date?: Prisma.DateTimeNullableWithAggregatesFilter<"time_sheet_periods"> | Date | string | null
|
|
period_number?: Prisma.IntNullableWithAggregatesFilter<"time_sheet_periods"> | number | null
|
|
year?: Prisma.IntNullableWithAggregatesFilter<"time_sheet_periods"> | number | null
|
|
}
|
|
|
|
export type time_sheet_periodsCreateInput = {
|
|
id: string
|
|
start_date?: Date | string | null
|
|
end_date?: Date | string | null
|
|
payment_date?: Date | string | null
|
|
period_number?: number | null
|
|
year?: number | null
|
|
}
|
|
|
|
export type time_sheet_periodsUncheckedCreateInput = {
|
|
id: string
|
|
start_date?: Date | string | null
|
|
end_date?: Date | string | null
|
|
payment_date?: Date | string | null
|
|
period_number?: number | null
|
|
year?: number | null
|
|
}
|
|
|
|
export type time_sheet_periodsUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
payment_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type time_sheet_periodsUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
payment_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type time_sheet_periodsCreateManyInput = {
|
|
id: string
|
|
start_date?: Date | string | null
|
|
end_date?: Date | string | null
|
|
payment_date?: Date | string | null
|
|
period_number?: number | null
|
|
year?: number | null
|
|
}
|
|
|
|
export type time_sheet_periodsUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
payment_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type time_sheet_periodsUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
start_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
end_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
payment_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
period_number?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
}
|
|
|
|
export type time_sheet_periodsCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
start_date?: Prisma.SortOrder
|
|
end_date?: Prisma.SortOrder
|
|
payment_date?: Prisma.SortOrder
|
|
period_number?: Prisma.SortOrder
|
|
year?: Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheet_periodsAvgOrderByAggregateInput = {
|
|
period_number?: Prisma.SortOrder
|
|
year?: Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheet_periodsMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
start_date?: Prisma.SortOrder
|
|
end_date?: Prisma.SortOrder
|
|
payment_date?: Prisma.SortOrder
|
|
period_number?: Prisma.SortOrder
|
|
year?: Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheet_periodsMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
start_date?: Prisma.SortOrder
|
|
end_date?: Prisma.SortOrder
|
|
payment_date?: Prisma.SortOrder
|
|
period_number?: Prisma.SortOrder
|
|
year?: Prisma.SortOrder
|
|
}
|
|
|
|
export type time_sheet_periodsSumOrderByAggregateInput = {
|
|
period_number?: Prisma.SortOrder
|
|
year?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type time_sheet_periodsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
start_date?: boolean
|
|
end_date?: boolean
|
|
payment_date?: boolean
|
|
period_number?: boolean
|
|
year?: boolean
|
|
}, ExtArgs["result"]["time_sheet_periods"]>
|
|
|
|
export type time_sheet_periodsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
start_date?: boolean
|
|
end_date?: boolean
|
|
payment_date?: boolean
|
|
period_number?: boolean
|
|
year?: boolean
|
|
}, ExtArgs["result"]["time_sheet_periods"]>
|
|
|
|
export type time_sheet_periodsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
start_date?: boolean
|
|
end_date?: boolean
|
|
payment_date?: boolean
|
|
period_number?: boolean
|
|
year?: boolean
|
|
}, ExtArgs["result"]["time_sheet_periods"]>
|
|
|
|
export type time_sheet_periodsSelectScalar = {
|
|
id?: boolean
|
|
start_date?: boolean
|
|
end_date?: boolean
|
|
payment_date?: boolean
|
|
period_number?: boolean
|
|
year?: boolean
|
|
}
|
|
|
|
export type time_sheet_periodsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "start_date" | "end_date" | "payment_date" | "period_number" | "year", ExtArgs["result"]["time_sheet_periods"]>
|
|
|
|
export type $time_sheet_periodsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "time_sheet_periods"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
start_date: Date | null
|
|
end_date: Date | null
|
|
payment_date: Date | null
|
|
period_number: number | null
|
|
year: number | null
|
|
}, ExtArgs["result"]["time_sheet_periods"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type time_sheet_periodsGetPayload<S extends boolean | null | undefined | time_sheet_periodsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload, S>
|
|
|
|
export type time_sheet_periodsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<time_sheet_periodsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Time_sheet_periodsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface time_sheet_periodsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['time_sheet_periods'], meta: { name: 'time_sheet_periods' } }
|
|
/**
|
|
* Find zero or one Time_sheet_periods that matches the filter.
|
|
* @param {time_sheet_periodsFindUniqueArgs} args - Arguments to find a Time_sheet_periods
|
|
* @example
|
|
* // Get one Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends time_sheet_periodsFindUniqueArgs>(args: Prisma.SelectSubset<T, time_sheet_periodsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__time_sheet_periodsClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Time_sheet_periods that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {time_sheet_periodsFindUniqueOrThrowArgs} args - Arguments to find a Time_sheet_periods
|
|
* @example
|
|
* // Get one Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends time_sheet_periodsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, time_sheet_periodsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__time_sheet_periodsClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Time_sheet_periods 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_sheet_periodsFindFirstArgs} args - Arguments to find a Time_sheet_periods
|
|
* @example
|
|
* // Get one Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends time_sheet_periodsFindFirstArgs>(args?: Prisma.SelectSubset<T, time_sheet_periodsFindFirstArgs<ExtArgs>>): Prisma.Prisma__time_sheet_periodsClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Time_sheet_periods 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_sheet_periodsFindFirstOrThrowArgs} args - Arguments to find a Time_sheet_periods
|
|
* @example
|
|
* // Get one Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends time_sheet_periodsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, time_sheet_periodsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__time_sheet_periodsClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Time_sheet_periods 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_sheet_periodsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.findMany()
|
|
*
|
|
* // Get first 10 Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const time_sheet_periodsWithIdOnly = await prisma.time_sheet_periods.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends time_sheet_periodsFindManyArgs>(args?: Prisma.SelectSubset<T, time_sheet_periodsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Time_sheet_periods.
|
|
* @param {time_sheet_periodsCreateArgs} args - Arguments to create a Time_sheet_periods.
|
|
* @example
|
|
* // Create one Time_sheet_periods
|
|
* const Time_sheet_periods = await prisma.time_sheet_periods.create({
|
|
* data: {
|
|
* // ... data to create a Time_sheet_periods
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends time_sheet_periodsCreateArgs>(args: Prisma.SelectSubset<T, time_sheet_periodsCreateArgs<ExtArgs>>): Prisma.Prisma__time_sheet_periodsClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Time_sheet_periods.
|
|
* @param {time_sheet_periodsCreateManyArgs} args - Arguments to create many Time_sheet_periods.
|
|
* @example
|
|
* // Create many Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends time_sheet_periodsCreateManyArgs>(args?: Prisma.SelectSubset<T, time_sheet_periodsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Time_sheet_periods and returns the data saved in the database.
|
|
* @param {time_sheet_periodsCreateManyAndReturnArgs} args - Arguments to create many Time_sheet_periods.
|
|
* @example
|
|
* // Create many Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Time_sheet_periods and only return the `id`
|
|
* const time_sheet_periodsWithIdOnly = await prisma.time_sheet_periods.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_sheet_periodsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, time_sheet_periodsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Time_sheet_periods.
|
|
* @param {time_sheet_periodsDeleteArgs} args - Arguments to delete one Time_sheet_periods.
|
|
* @example
|
|
* // Delete one Time_sheet_periods
|
|
* const Time_sheet_periods = await prisma.time_sheet_periods.delete({
|
|
* where: {
|
|
* // ... filter to delete one Time_sheet_periods
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends time_sheet_periodsDeleteArgs>(args: Prisma.SelectSubset<T, time_sheet_periodsDeleteArgs<ExtArgs>>): Prisma.Prisma__time_sheet_periodsClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Time_sheet_periods.
|
|
* @param {time_sheet_periodsUpdateArgs} args - Arguments to update one Time_sheet_periods.
|
|
* @example
|
|
* // Update one Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends time_sheet_periodsUpdateArgs>(args: Prisma.SelectSubset<T, time_sheet_periodsUpdateArgs<ExtArgs>>): Prisma.Prisma__time_sheet_periodsClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Time_sheet_periods.
|
|
* @param {time_sheet_periodsDeleteManyArgs} args - Arguments to filter Time_sheet_periods to delete.
|
|
* @example
|
|
* // Delete a few Time_sheet_periods
|
|
* const { count } = await prisma.time_sheet_periods.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends time_sheet_periodsDeleteManyArgs>(args?: Prisma.SelectSubset<T, time_sheet_periodsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Time_sheet_periods.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {time_sheet_periodsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends time_sheet_periodsUpdateManyArgs>(args: Prisma.SelectSubset<T, time_sheet_periodsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Time_sheet_periods and returns the data updated in the database.
|
|
* @param {time_sheet_periodsUpdateManyAndReturnArgs} args - Arguments to update many Time_sheet_periods.
|
|
* @example
|
|
* // Update many Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Time_sheet_periods and only return the `id`
|
|
* const time_sheet_periodsWithIdOnly = await prisma.time_sheet_periods.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_sheet_periodsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, time_sheet_periodsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Time_sheet_periods.
|
|
* @param {time_sheet_periodsUpsertArgs} args - Arguments to update or create a Time_sheet_periods.
|
|
* @example
|
|
* // Update or create a Time_sheet_periods
|
|
* const time_sheet_periods = await prisma.time_sheet_periods.upsert({
|
|
* create: {
|
|
* // ... data to create a Time_sheet_periods
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Time_sheet_periods we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends time_sheet_periodsUpsertArgs>(args: Prisma.SelectSubset<T, time_sheet_periodsUpsertArgs<ExtArgs>>): Prisma.Prisma__time_sheet_periodsClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_periodsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Time_sheet_periods.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {time_sheet_periodsCountArgs} args - Arguments to filter Time_sheet_periods to count.
|
|
* @example
|
|
* // Count the number of Time_sheet_periods
|
|
* const count = await prisma.time_sheet_periods.count({
|
|
* where: {
|
|
* // ... the filter for the Time_sheet_periods we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends time_sheet_periodsCountArgs>(
|
|
args?: Prisma.Subset<T, time_sheet_periodsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Time_sheet_periodsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Time_sheet_periods.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Time_sheet_periodsAggregateArgs} 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_sheet_periodsAggregateArgs>(args: Prisma.Subset<T, Time_sheet_periodsAggregateArgs>): Prisma.PrismaPromise<GetTime_sheet_periodsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Time_sheet_periods.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {time_sheet_periodsGroupByArgs} 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_sheet_periodsGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: time_sheet_periodsGroupByArgs['orderBy'] }
|
|
: { orderBy?: time_sheet_periodsGroupByArgs['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_sheet_periodsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTime_sheet_periodsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the time_sheet_periods model
|
|
*/
|
|
readonly fields: time_sheet_periodsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for time_sheet_periods.
|
|
* 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_sheet_periodsClient<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_sheet_periods model
|
|
*/
|
|
export interface time_sheet_periodsFieldRefs {
|
|
readonly id: Prisma.FieldRef<"time_sheet_periods", 'String'>
|
|
readonly start_date: Prisma.FieldRef<"time_sheet_periods", 'DateTime'>
|
|
readonly end_date: Prisma.FieldRef<"time_sheet_periods", 'DateTime'>
|
|
readonly payment_date: Prisma.FieldRef<"time_sheet_periods", 'DateTime'>
|
|
readonly period_number: Prisma.FieldRef<"time_sheet_periods", 'Int'>
|
|
readonly year: Prisma.FieldRef<"time_sheet_periods", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* time_sheet_periods findUnique
|
|
*/
|
|
export type time_sheet_periodsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheet_periods to fetch.
|
|
*/
|
|
where: Prisma.time_sheet_periodsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods findUniqueOrThrow
|
|
*/
|
|
export type time_sheet_periodsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheet_periods to fetch.
|
|
*/
|
|
where: Prisma.time_sheet_periodsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods findFirst
|
|
*/
|
|
export type time_sheet_periodsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheet_periods to fetch.
|
|
*/
|
|
where?: Prisma.time_sheet_periodsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of time_sheet_periods to fetch.
|
|
*/
|
|
orderBy?: Prisma.time_sheet_periodsOrderByWithRelationInput | Prisma.time_sheet_periodsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for time_sheet_periods.
|
|
*/
|
|
cursor?: Prisma.time_sheet_periodsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` time_sheet_periods 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_sheet_periods.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of time_sheet_periods.
|
|
*/
|
|
distinct?: Prisma.Time_sheet_periodsScalarFieldEnum | Prisma.Time_sheet_periodsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods findFirstOrThrow
|
|
*/
|
|
export type time_sheet_periodsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheet_periods to fetch.
|
|
*/
|
|
where?: Prisma.time_sheet_periodsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of time_sheet_periods to fetch.
|
|
*/
|
|
orderBy?: Prisma.time_sheet_periodsOrderByWithRelationInput | Prisma.time_sheet_periodsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for time_sheet_periods.
|
|
*/
|
|
cursor?: Prisma.time_sheet_periodsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` time_sheet_periods 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_sheet_periods.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of time_sheet_periods.
|
|
*/
|
|
distinct?: Prisma.Time_sheet_periodsScalarFieldEnum | Prisma.Time_sheet_periodsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods findMany
|
|
*/
|
|
export type time_sheet_periodsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which time_sheet_periods to fetch.
|
|
*/
|
|
where?: Prisma.time_sheet_periodsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of time_sheet_periods to fetch.
|
|
*/
|
|
orderBy?: Prisma.time_sheet_periodsOrderByWithRelationInput | Prisma.time_sheet_periodsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing time_sheet_periods.
|
|
*/
|
|
cursor?: Prisma.time_sheet_periodsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` time_sheet_periods 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_sheet_periods.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.Time_sheet_periodsScalarFieldEnum | Prisma.Time_sheet_periodsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods create
|
|
*/
|
|
export type time_sheet_periodsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a time_sheet_periods.
|
|
*/
|
|
data: Prisma.XOR<Prisma.time_sheet_periodsCreateInput, Prisma.time_sheet_periodsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods createMany
|
|
*/
|
|
export type time_sheet_periodsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many time_sheet_periods.
|
|
*/
|
|
data: Prisma.time_sheet_periodsCreateManyInput | Prisma.time_sheet_periodsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods createManyAndReturn
|
|
*/
|
|
export type time_sheet_periodsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many time_sheet_periods.
|
|
*/
|
|
data: Prisma.time_sheet_periodsCreateManyInput | Prisma.time_sheet_periodsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods update
|
|
*/
|
|
export type time_sheet_periodsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a time_sheet_periods.
|
|
*/
|
|
data: Prisma.XOR<Prisma.time_sheet_periodsUpdateInput, Prisma.time_sheet_periodsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which time_sheet_periods to update.
|
|
*/
|
|
where: Prisma.time_sheet_periodsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods updateMany
|
|
*/
|
|
export type time_sheet_periodsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update time_sheet_periods.
|
|
*/
|
|
data: Prisma.XOR<Prisma.time_sheet_periodsUpdateManyMutationInput, Prisma.time_sheet_periodsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which time_sheet_periods to update
|
|
*/
|
|
where?: Prisma.time_sheet_periodsWhereInput
|
|
/**
|
|
* Limit how many time_sheet_periods to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods updateManyAndReturn
|
|
*/
|
|
export type time_sheet_periodsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update time_sheet_periods.
|
|
*/
|
|
data: Prisma.XOR<Prisma.time_sheet_periodsUpdateManyMutationInput, Prisma.time_sheet_periodsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which time_sheet_periods to update
|
|
*/
|
|
where?: Prisma.time_sheet_periodsWhereInput
|
|
/**
|
|
* Limit how many time_sheet_periods to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods upsert
|
|
*/
|
|
export type time_sheet_periodsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the time_sheet_periods to update in case it exists.
|
|
*/
|
|
where: Prisma.time_sheet_periodsWhereUniqueInput
|
|
/**
|
|
* In case the time_sheet_periods found by the `where` argument doesn't exist, create a new time_sheet_periods with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.time_sheet_periodsCreateInput, Prisma.time_sheet_periodsUncheckedCreateInput>
|
|
/**
|
|
* In case the time_sheet_periods was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.time_sheet_periodsUpdateInput, Prisma.time_sheet_periodsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods delete
|
|
*/
|
|
export type time_sheet_periodsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which time_sheet_periods to delete.
|
|
*/
|
|
where: Prisma.time_sheet_periodsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods deleteMany
|
|
*/
|
|
export type time_sheet_periodsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which time_sheet_periods to delete
|
|
*/
|
|
where?: Prisma.time_sheet_periodsWhereInput
|
|
/**
|
|
* Limit how many time_sheet_periods to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* time_sheet_periods without action
|
|
*/
|
|
export type time_sheet_periodsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the time_sheet_periods
|
|
*/
|
|
select?: Prisma.time_sheet_periodsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the time_sheet_periods
|
|
*/
|
|
omit?: Prisma.time_sheet_periodsOmit<ExtArgs> | null
|
|
}
|