/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateTime_sheet_template]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type time_sheet_templateGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Time_sheet_templateGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "title" | "description" | "created_at" | "updated_at", ExtArgs["result"]["time_sheet_template"]> export type $time_sheet_templatePayload = { 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 = runtime.Types.Result.GetResult export type time_sheet_templateCountArgs = Omit & { select?: Time_sheet_templateCountAggregateInputType | true } export interface time_sheet_templateDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_templateClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: time_sheet_templateGroupByArgs['orderBy'] } : { orderBy?: time_sheet_templateGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetTime_sheet_templateGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | null /** * Filter, which time_sheet_template to fetch. */ where: Prisma.time_sheet_templateWhereUniqueInput } /** * time_sheet_template findUniqueOrThrow */ export type time_sheet_templateFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | null /** * Filter, which time_sheet_template to fetch. */ where: Prisma.time_sheet_templateWhereUniqueInput } /** * time_sheet_template findFirst */ export type time_sheet_templateFindFirstArgs = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | null /** * The data needed to create a time_sheet_template. */ data: Prisma.XOR } /** * time_sheet_template createMany */ export type time_sheet_templateCreateManyArgs = { /** * 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelectCreateManyAndReturn | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | null /** * The data needed to update a time_sheet_template. */ data: Prisma.XOR /** * Choose, which time_sheet_template to update. */ where: Prisma.time_sheet_templateWhereUniqueInput } /** * time_sheet_template updateMany */ export type time_sheet_templateUpdateManyArgs = { /** * The data used to update time_sheet_templates. */ data: Prisma.XOR /** * 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelectUpdateManyAndReturn | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | null /** * The data used to update time_sheet_templates. */ data: Prisma.XOR /** * 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | 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 /** * In case the time_sheet_template was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * time_sheet_template delete */ export type time_sheet_templateDeleteArgs = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | null /** * Filter which time_sheet_template to delete. */ where: Prisma.time_sheet_templateWhereUniqueInput } /** * time_sheet_template deleteMany */ export type time_sheet_templateDeleteManyArgs = { /** * 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 = { /** * Select specific fields to fetch from the time_sheet_template */ select?: Prisma.time_sheet_templateSelect | null /** * Omit specific fields from the time_sheet_template */ omit?: Prisma.time_sheet_templateOmit | null }