/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateTime_sheet_periods]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type time_sheet_periodsGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Time_sheet_periodsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 = 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 = 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 = 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 = runtime.Types.Extensions.GetOmit<"id" | "start_date" | "end_date" | "payment_date" | "period_number" | "year", ExtArgs["result"]["time_sheet_periods"]> export type $time_sheet_periodsPayload = { 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 = runtime.Types.Result.GetResult export type time_sheet_periodsCountArgs = Omit & { select?: Time_sheet_periodsCountAggregateInputType | true } export interface time_sheet_periodsDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__time_sheet_periodsClient, 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( 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_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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: time_sheet_periodsGroupByArgs['orderBy'] } : { orderBy?: time_sheet_periodsGroupByArgs['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_periodsGroupByPayload : Prisma.PrismaPromise /** * 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 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_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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | null /** * Filter, which time_sheet_periods to fetch. */ where: Prisma.time_sheet_periodsWhereUniqueInput } /** * time_sheet_periods findUniqueOrThrow */ export type time_sheet_periodsFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | null /** * Filter, which time_sheet_periods to fetch. */ where: Prisma.time_sheet_periodsWhereUniqueInput } /** * time_sheet_periods findFirst */ export type time_sheet_periodsFindFirstArgs = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | 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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | 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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | 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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | null /** * The data needed to create a time_sheet_periods. */ data: Prisma.XOR } /** * time_sheet_periods createMany */ export type time_sheet_periodsCreateManyArgs = { /** * 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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelectCreateManyAndReturn | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | 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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | null /** * The data needed to update a time_sheet_periods. */ data: Prisma.XOR /** * Choose, which time_sheet_periods to update. */ where: Prisma.time_sheet_periodsWhereUniqueInput } /** * time_sheet_periods updateMany */ export type time_sheet_periodsUpdateManyArgs = { /** * The data used to update time_sheet_periods. */ data: Prisma.XOR /** * 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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelectUpdateManyAndReturn | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | null /** * The data used to update time_sheet_periods. */ data: Prisma.XOR /** * 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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | 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 /** * In case the time_sheet_periods was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * time_sheet_periods delete */ export type time_sheet_periodsDeleteArgs = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | null /** * Filter which time_sheet_periods to delete. */ where: Prisma.time_sheet_periodsWhereUniqueInput } /** * time_sheet_periods deleteMany */ export type time_sheet_periodsDeleteManyArgs = { /** * 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 = { /** * Select specific fields to fetch from the time_sheet_periods */ select?: Prisma.time_sheet_periodsSelect | null /** * Omit specific fields from the time_sheet_periods */ omit?: Prisma.time_sheet_periodsOmit | null }