targo-backend/prisma/generated/legacy/models/time_sheet_template.ts

1195 lines
45 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_template` 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_template
*
*/
export type time_sheet_templateModel = runtime.Types.Result.DefaultSelection<Prisma.$time_sheet_templatePayload>
export type AggregateTime_sheet_template = {
_count: Time_sheet_templateCountAggregateOutputType | null
_avg: Time_sheet_templateAvgAggregateOutputType | null
_sum: Time_sheet_templateSumAggregateOutputType | null
_min: Time_sheet_templateMinAggregateOutputType | null
_max: Time_sheet_templateMaxAggregateOutputType | null
}
export type Time_sheet_templateAvgAggregateOutputType = {
created_at: number | null
updated_at: number | null
}
export type Time_sheet_templateSumAggregateOutputType = {
created_at: bigint | null
updated_at: bigint | null
}
export type Time_sheet_templateMinAggregateOutputType = {
id: string | null
title: string | null
description: string | null
created_at: bigint | null
updated_at: bigint | null
}
export type Time_sheet_templateMaxAggregateOutputType = {
id: string | null
title: string | null
description: string | null
created_at: bigint | null
updated_at: bigint | null
}
export type Time_sheet_templateCountAggregateOutputType = {
id: number
title: number
description: number
created_at: number
updated_at: number
_all: number
}
export type Time_sheet_templateAvgAggregateInputType = {
created_at?: true
updated_at?: true
}
export type Time_sheet_templateSumAggregateInputType = {
created_at?: true
updated_at?: true
}
export type Time_sheet_templateMinAggregateInputType = {
id?: true
title?: true
description?: true
created_at?: true
updated_at?: true
}
export type Time_sheet_templateMaxAggregateInputType = {
id?: true
title?: true
description?: true
created_at?: true
updated_at?: true
}
export type Time_sheet_templateCountAggregateInputType = {
id?: true
title?: true
description?: true
created_at?: true
updated_at?: true
_all?: true
}
export type Time_sheet_templateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which time_sheet_template to aggregate.
*/
where?: Prisma.time_sheet_templateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of time_sheet_templates to fetch.
*/
orderBy?: Prisma.time_sheet_templateOrderByWithRelationInput | Prisma.time_sheet_templateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.time_sheet_templateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` time_sheet_templates 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_templates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned time_sheet_templates
**/
_count?: true | Time_sheet_templateCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Time_sheet_templateAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Time_sheet_templateSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Time_sheet_templateMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Time_sheet_templateMaxAggregateInputType
}
export type GetTime_sheet_templateAggregateType<T extends Time_sheet_templateAggregateArgs> = {
[P in keyof T & keyof AggregateTime_sheet_template]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateTime_sheet_template[P]>
: Prisma.GetScalarType<T[P], AggregateTime_sheet_template[P]>
}
export type time_sheet_templateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.time_sheet_templateWhereInput
orderBy?: Prisma.time_sheet_templateOrderByWithAggregationInput | Prisma.time_sheet_templateOrderByWithAggregationInput[]
by: Prisma.Time_sheet_templateScalarFieldEnum[] | Prisma.Time_sheet_templateScalarFieldEnum
having?: Prisma.time_sheet_templateScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Time_sheet_templateCountAggregateInputType | true
_avg?: Time_sheet_templateAvgAggregateInputType
_sum?: Time_sheet_templateSumAggregateInputType
_min?: Time_sheet_templateMinAggregateInputType
_max?: Time_sheet_templateMaxAggregateInputType
}
export type Time_sheet_templateGroupByOutputType = {
id: string
title: string
description: string | null
created_at: bigint
updated_at: bigint
_count: Time_sheet_templateCountAggregateOutputType | null
_avg: Time_sheet_templateAvgAggregateOutputType | null
_sum: Time_sheet_templateSumAggregateOutputType | null
_min: Time_sheet_templateMinAggregateOutputType | null
_max: Time_sheet_templateMaxAggregateOutputType | null
}
type GetTime_sheet_templateGroupByPayload<T extends time_sheet_templateGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Time_sheet_templateGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Time_sheet_templateGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Time_sheet_templateGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Time_sheet_templateGroupByOutputType[P]>
}
>
>
export type time_sheet_templateWhereInput = {
AND?: Prisma.time_sheet_templateWhereInput | Prisma.time_sheet_templateWhereInput[]
OR?: Prisma.time_sheet_templateWhereInput[]
NOT?: Prisma.time_sheet_templateWhereInput | Prisma.time_sheet_templateWhereInput[]
id?: Prisma.UuidFilter<"time_sheet_template"> | string
title?: Prisma.StringFilter<"time_sheet_template"> | string
description?: Prisma.StringNullableFilter<"time_sheet_template"> | string | null
created_at?: Prisma.BigIntFilter<"time_sheet_template"> | bigint | number
updated_at?: Prisma.BigIntFilter<"time_sheet_template"> | bigint | number
}
export type time_sheet_templateOrderByWithRelationInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type time_sheet_templateWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.time_sheet_templateWhereInput | Prisma.time_sheet_templateWhereInput[]
OR?: Prisma.time_sheet_templateWhereInput[]
NOT?: Prisma.time_sheet_templateWhereInput | Prisma.time_sheet_templateWhereInput[]
title?: Prisma.StringFilter<"time_sheet_template"> | string
description?: Prisma.StringNullableFilter<"time_sheet_template"> | string | null
created_at?: Prisma.BigIntFilter<"time_sheet_template"> | bigint | number
updated_at?: Prisma.BigIntFilter<"time_sheet_template"> | bigint | number
}, "id">
export type time_sheet_templateOrderByWithAggregationInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
_count?: Prisma.time_sheet_templateCountOrderByAggregateInput
_avg?: Prisma.time_sheet_templateAvgOrderByAggregateInput
_max?: Prisma.time_sheet_templateMaxOrderByAggregateInput
_min?: Prisma.time_sheet_templateMinOrderByAggregateInput
_sum?: Prisma.time_sheet_templateSumOrderByAggregateInput
}
export type time_sheet_templateScalarWhereWithAggregatesInput = {
AND?: Prisma.time_sheet_templateScalarWhereWithAggregatesInput | Prisma.time_sheet_templateScalarWhereWithAggregatesInput[]
OR?: Prisma.time_sheet_templateScalarWhereWithAggregatesInput[]
NOT?: Prisma.time_sheet_templateScalarWhereWithAggregatesInput | Prisma.time_sheet_templateScalarWhereWithAggregatesInput[]
id?: Prisma.UuidWithAggregatesFilter<"time_sheet_template"> | string
title?: Prisma.StringWithAggregatesFilter<"time_sheet_template"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"time_sheet_template"> | string | null
created_at?: Prisma.BigIntWithAggregatesFilter<"time_sheet_template"> | bigint | number
updated_at?: Prisma.BigIntWithAggregatesFilter<"time_sheet_template"> | bigint | number
}
export type time_sheet_templateCreateInput = {
id: string
title: string
description?: string | null
created_at: bigint | number
updated_at: bigint | number
}
export type time_sheet_templateUncheckedCreateInput = {
id: string
title: string
description?: string | null
created_at: bigint | number
updated_at: bigint | number
}
export type time_sheet_templateUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
}
export type time_sheet_templateUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
}
export type time_sheet_templateCreateManyInput = {
id: string
title: string
description?: string | null
created_at: bigint | number
updated_at: bigint | number
}
export type time_sheet_templateUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
}
export type time_sheet_templateUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
title?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
created_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
updated_at?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
}
export type time_sheet_templateCountOrderByAggregateInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type time_sheet_templateAvgOrderByAggregateInput = {
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type time_sheet_templateMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type time_sheet_templateMinOrderByAggregateInput = {
id?: Prisma.SortOrder
title?: Prisma.SortOrder
description?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type time_sheet_templateSumOrderByAggregateInput = {
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type time_sheet_templateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
created_at?: boolean
updated_at?: boolean
}, ExtArgs["result"]["time_sheet_template"]>
export type time_sheet_templateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
created_at?: boolean
updated_at?: boolean
}, ExtArgs["result"]["time_sheet_template"]>
export type time_sheet_templateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
title?: boolean
description?: boolean
created_at?: boolean
updated_at?: boolean
}, ExtArgs["result"]["time_sheet_template"]>
export type time_sheet_templateSelectScalar = {
id?: boolean
title?: boolean
description?: boolean
created_at?: boolean
updated_at?: boolean
}
export type time_sheet_templateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "created_at" | "updated_at", ExtArgs["result"]["time_sheet_template"]>
export type $time_sheet_templatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "time_sheet_template"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
title: string
description: string | null
created_at: bigint
updated_at: bigint
}, ExtArgs["result"]["time_sheet_template"]>
composites: {}
}
export type time_sheet_templateGetPayload<S extends boolean | null | undefined | time_sheet_templateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload, S>
export type time_sheet_templateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<time_sheet_templateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Time_sheet_templateCountAggregateInputType | true
}
export interface time_sheet_templateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['time_sheet_template'], meta: { name: 'time_sheet_template' } }
/**
* Find zero or one Time_sheet_template that matches the filter.
* @param {time_sheet_templateFindUniqueArgs} args - Arguments to find a Time_sheet_template
* @example
* // Get one Time_sheet_template
* const time_sheet_template = await prisma.time_sheet_template.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends time_sheet_templateFindUniqueArgs>(args: Prisma.SelectSubset<T, time_sheet_templateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__time_sheet_templateClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Time_sheet_template that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {time_sheet_templateFindUniqueOrThrowArgs} args - Arguments to find a Time_sheet_template
* @example
* // Get one Time_sheet_template
* const time_sheet_template = await prisma.time_sheet_template.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends time_sheet_templateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, time_sheet_templateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__time_sheet_templateClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Time_sheet_template 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_templateFindFirstArgs} args - Arguments to find a Time_sheet_template
* @example
* // Get one Time_sheet_template
* const time_sheet_template = await prisma.time_sheet_template.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends time_sheet_templateFindFirstArgs>(args?: Prisma.SelectSubset<T, time_sheet_templateFindFirstArgs<ExtArgs>>): Prisma.Prisma__time_sheet_templateClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Time_sheet_template 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_templateFindFirstOrThrowArgs} args - Arguments to find a Time_sheet_template
* @example
* // Get one Time_sheet_template
* const time_sheet_template = await prisma.time_sheet_template.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends time_sheet_templateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, time_sheet_templateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__time_sheet_templateClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Time_sheet_templates 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_templateFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Time_sheet_templates
* const time_sheet_templates = await prisma.time_sheet_template.findMany()
*
* // Get first 10 Time_sheet_templates
* const time_sheet_templates = await prisma.time_sheet_template.findMany({ take: 10 })
*
* // Only select the `id`
* const time_sheet_templateWithIdOnly = await prisma.time_sheet_template.findMany({ select: { id: true } })
*
*/
findMany<T extends time_sheet_templateFindManyArgs>(args?: Prisma.SelectSubset<T, time_sheet_templateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Time_sheet_template.
* @param {time_sheet_templateCreateArgs} args - Arguments to create a Time_sheet_template.
* @example
* // Create one Time_sheet_template
* const Time_sheet_template = await prisma.time_sheet_template.create({
* data: {
* // ... data to create a Time_sheet_template
* }
* })
*
*/
create<T extends time_sheet_templateCreateArgs>(args: Prisma.SelectSubset<T, time_sheet_templateCreateArgs<ExtArgs>>): Prisma.Prisma__time_sheet_templateClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Time_sheet_templates.
* @param {time_sheet_templateCreateManyArgs} args - Arguments to create many Time_sheet_templates.
* @example
* // Create many Time_sheet_templates
* const time_sheet_template = await prisma.time_sheet_template.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends time_sheet_templateCreateManyArgs>(args?: Prisma.SelectSubset<T, time_sheet_templateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Time_sheet_templates and returns the data saved in the database.
* @param {time_sheet_templateCreateManyAndReturnArgs} args - Arguments to create many Time_sheet_templates.
* @example
* // Create many Time_sheet_templates
* const time_sheet_template = await prisma.time_sheet_template.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Time_sheet_templates and only return the `id`
* const time_sheet_templateWithIdOnly = await prisma.time_sheet_template.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_templateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, time_sheet_templateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Time_sheet_template.
* @param {time_sheet_templateDeleteArgs} args - Arguments to delete one Time_sheet_template.
* @example
* // Delete one Time_sheet_template
* const Time_sheet_template = await prisma.time_sheet_template.delete({
* where: {
* // ... filter to delete one Time_sheet_template
* }
* })
*
*/
delete<T extends time_sheet_templateDeleteArgs>(args: Prisma.SelectSubset<T, time_sheet_templateDeleteArgs<ExtArgs>>): Prisma.Prisma__time_sheet_templateClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Time_sheet_template.
* @param {time_sheet_templateUpdateArgs} args - Arguments to update one Time_sheet_template.
* @example
* // Update one Time_sheet_template
* const time_sheet_template = await prisma.time_sheet_template.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends time_sheet_templateUpdateArgs>(args: Prisma.SelectSubset<T, time_sheet_templateUpdateArgs<ExtArgs>>): Prisma.Prisma__time_sheet_templateClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Time_sheet_templates.
* @param {time_sheet_templateDeleteManyArgs} args - Arguments to filter Time_sheet_templates to delete.
* @example
* // Delete a few Time_sheet_templates
* const { count } = await prisma.time_sheet_template.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends time_sheet_templateDeleteManyArgs>(args?: Prisma.SelectSubset<T, time_sheet_templateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Time_sheet_templates.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {time_sheet_templateUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Time_sheet_templates
* const time_sheet_template = await prisma.time_sheet_template.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends time_sheet_templateUpdateManyArgs>(args: Prisma.SelectSubset<T, time_sheet_templateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Time_sheet_templates and returns the data updated in the database.
* @param {time_sheet_templateUpdateManyAndReturnArgs} args - Arguments to update many Time_sheet_templates.
* @example
* // Update many Time_sheet_templates
* const time_sheet_template = await prisma.time_sheet_template.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Time_sheet_templates and only return the `id`
* const time_sheet_templateWithIdOnly = await prisma.time_sheet_template.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_templateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, time_sheet_templateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Time_sheet_template.
* @param {time_sheet_templateUpsertArgs} args - Arguments to update or create a Time_sheet_template.
* @example
* // Update or create a Time_sheet_template
* const time_sheet_template = await prisma.time_sheet_template.upsert({
* create: {
* // ... data to create a Time_sheet_template
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Time_sheet_template we want to update
* }
* })
*/
upsert<T extends time_sheet_templateUpsertArgs>(args: Prisma.SelectSubset<T, time_sheet_templateUpsertArgs<ExtArgs>>): Prisma.Prisma__time_sheet_templateClient<runtime.Types.Result.GetResult<Prisma.$time_sheet_templatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Time_sheet_templates.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {time_sheet_templateCountArgs} args - Arguments to filter Time_sheet_templates to count.
* @example
* // Count the number of Time_sheet_templates
* const count = await prisma.time_sheet_template.count({
* where: {
* // ... the filter for the Time_sheet_templates we want to count
* }
* })
**/
count<T extends time_sheet_templateCountArgs>(
args?: Prisma.Subset<T, time_sheet_templateCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Time_sheet_templateCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Time_sheet_template.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Time_sheet_templateAggregateArgs} 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_templateAggregateArgs>(args: Prisma.Subset<T, Time_sheet_templateAggregateArgs>): Prisma.PrismaPromise<GetTime_sheet_templateAggregateType<T>>
/**
* Group by Time_sheet_template.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {time_sheet_templateGroupByArgs} 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_templateGroupByArgs,
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_templateGroupByArgs['orderBy'] }
: { orderBy?: time_sheet_templateGroupByArgs['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_templateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTime_sheet_templateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the time_sheet_template model
*/
readonly fields: time_sheet_templateFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for time_sheet_template.
* 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_templateClient<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_template model
*/
export interface time_sheet_templateFieldRefs {
readonly id: Prisma.FieldRef<"time_sheet_template", 'String'>
readonly title: Prisma.FieldRef<"time_sheet_template", 'String'>
readonly description: Prisma.FieldRef<"time_sheet_template", 'String'>
readonly created_at: Prisma.FieldRef<"time_sheet_template", 'BigInt'>
readonly updated_at: Prisma.FieldRef<"time_sheet_template", 'BigInt'>
}
// Custom InputTypes
/**
* time_sheet_template findUnique
*/
export type time_sheet_templateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* Filter, which time_sheet_template to fetch.
*/
where: Prisma.time_sheet_templateWhereUniqueInput
}
/**
* time_sheet_template findUniqueOrThrow
*/
export type time_sheet_templateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* Filter, which time_sheet_template to fetch.
*/
where: Prisma.time_sheet_templateWhereUniqueInput
}
/**
* time_sheet_template findFirst
*/
export type time_sheet_templateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* Filter, which time_sheet_template to fetch.
*/
where?: Prisma.time_sheet_templateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of time_sheet_templates to fetch.
*/
orderBy?: Prisma.time_sheet_templateOrderByWithRelationInput | Prisma.time_sheet_templateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for time_sheet_templates.
*/
cursor?: Prisma.time_sheet_templateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` time_sheet_templates 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_templates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of time_sheet_templates.
*/
distinct?: Prisma.Time_sheet_templateScalarFieldEnum | Prisma.Time_sheet_templateScalarFieldEnum[]
}
/**
* time_sheet_template findFirstOrThrow
*/
export type time_sheet_templateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* Filter, which time_sheet_template to fetch.
*/
where?: Prisma.time_sheet_templateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of time_sheet_templates to fetch.
*/
orderBy?: Prisma.time_sheet_templateOrderByWithRelationInput | Prisma.time_sheet_templateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for time_sheet_templates.
*/
cursor?: Prisma.time_sheet_templateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` time_sheet_templates 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_templates.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of time_sheet_templates.
*/
distinct?: Prisma.Time_sheet_templateScalarFieldEnum | Prisma.Time_sheet_templateScalarFieldEnum[]
}
/**
* time_sheet_template findMany
*/
export type time_sheet_templateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* Filter, which time_sheet_templates to fetch.
*/
where?: Prisma.time_sheet_templateWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of time_sheet_templates to fetch.
*/
orderBy?: Prisma.time_sheet_templateOrderByWithRelationInput | Prisma.time_sheet_templateOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing time_sheet_templates.
*/
cursor?: Prisma.time_sheet_templateWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` time_sheet_templates 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_templates.
*/
skip?: number
distinct?: Prisma.Time_sheet_templateScalarFieldEnum | Prisma.Time_sheet_templateScalarFieldEnum[]
}
/**
* time_sheet_template create
*/
export type time_sheet_templateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* The data needed to create a time_sheet_template.
*/
data: Prisma.XOR<Prisma.time_sheet_templateCreateInput, Prisma.time_sheet_templateUncheckedCreateInput>
}
/**
* time_sheet_template createMany
*/
export type time_sheet_templateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many time_sheet_templates.
*/
data: Prisma.time_sheet_templateCreateManyInput | Prisma.time_sheet_templateCreateManyInput[]
skipDuplicates?: boolean
}
/**
* time_sheet_template createManyAndReturn
*/
export type time_sheet_templateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* The data used to create many time_sheet_templates.
*/
data: Prisma.time_sheet_templateCreateManyInput | Prisma.time_sheet_templateCreateManyInput[]
skipDuplicates?: boolean
}
/**
* time_sheet_template update
*/
export type time_sheet_templateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* The data needed to update a time_sheet_template.
*/
data: Prisma.XOR<Prisma.time_sheet_templateUpdateInput, Prisma.time_sheet_templateUncheckedUpdateInput>
/**
* Choose, which time_sheet_template to update.
*/
where: Prisma.time_sheet_templateWhereUniqueInput
}
/**
* time_sheet_template updateMany
*/
export type time_sheet_templateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update time_sheet_templates.
*/
data: Prisma.XOR<Prisma.time_sheet_templateUpdateManyMutationInput, Prisma.time_sheet_templateUncheckedUpdateManyInput>
/**
* Filter which time_sheet_templates to update
*/
where?: Prisma.time_sheet_templateWhereInput
/**
* Limit how many time_sheet_templates to update.
*/
limit?: number
}
/**
* time_sheet_template updateManyAndReturn
*/
export type time_sheet_templateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* The data used to update time_sheet_templates.
*/
data: Prisma.XOR<Prisma.time_sheet_templateUpdateManyMutationInput, Prisma.time_sheet_templateUncheckedUpdateManyInput>
/**
* Filter which time_sheet_templates to update
*/
where?: Prisma.time_sheet_templateWhereInput
/**
* Limit how many time_sheet_templates to update.
*/
limit?: number
}
/**
* time_sheet_template upsert
*/
export type time_sheet_templateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* The filter to search for the time_sheet_template to update in case it exists.
*/
where: Prisma.time_sheet_templateWhereUniqueInput
/**
* In case the time_sheet_template found by the `where` argument doesn't exist, create a new time_sheet_template with this data.
*/
create: Prisma.XOR<Prisma.time_sheet_templateCreateInput, Prisma.time_sheet_templateUncheckedCreateInput>
/**
* In case the time_sheet_template was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.time_sheet_templateUpdateInput, Prisma.time_sheet_templateUncheckedUpdateInput>
}
/**
* time_sheet_template delete
*/
export type time_sheet_templateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
/**
* Filter which time_sheet_template to delete.
*/
where: Prisma.time_sheet_templateWhereUniqueInput
}
/**
* time_sheet_template deleteMany
*/
export type time_sheet_templateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which time_sheet_templates to delete
*/
where?: Prisma.time_sheet_templateWhereInput
/**
* Limit how many time_sheet_templates to delete.
*/
limit?: number
}
/**
* time_sheet_template without action
*/
export type time_sheet_templateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the time_sheet_template
*/
select?: Prisma.time_sheet_templateSelect<ExtArgs> | null
/**
* Omit specific fields from the time_sheet_template
*/
omit?: Prisma.time_sheet_templateOmit<ExtArgs> | null
}