/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `hours_bank` 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 hours_bank * */ export type hours_bankModel = runtime.Types.Result.DefaultSelection export type AggregateHours_bank = { _count: Hours_bankCountAggregateOutputType | null _avg: Hours_bankAvgAggregateOutputType | null _sum: Hours_bankSumAggregateOutputType | null _min: Hours_bankMinAggregateOutputType | null _max: Hours_bankMaxAggregateOutputType | null } export type Hours_bankAvgAggregateOutputType = { hours: number | null created_at: number | null updated_at: number | null } export type Hours_bankSumAggregateOutputType = { hours: number | null created_at: bigint | null updated_at: bigint | null } export type Hours_bankMinAggregateOutputType = { id: string | null employee_id: string | null hours: number | null created_at: bigint | null updated_at: bigint | null } export type Hours_bankMaxAggregateOutputType = { id: string | null employee_id: string | null hours: number | null created_at: bigint | null updated_at: bigint | null } export type Hours_bankCountAggregateOutputType = { id: number employee_id: number hours: number created_at: number updated_at: number _all: number } export type Hours_bankAvgAggregateInputType = { hours?: true created_at?: true updated_at?: true } export type Hours_bankSumAggregateInputType = { hours?: true created_at?: true updated_at?: true } export type Hours_bankMinAggregateInputType = { id?: true employee_id?: true hours?: true created_at?: true updated_at?: true } export type Hours_bankMaxAggregateInputType = { id?: true employee_id?: true hours?: true created_at?: true updated_at?: true } export type Hours_bankCountAggregateInputType = { id?: true employee_id?: true hours?: true created_at?: true updated_at?: true _all?: true } export type Hours_bankAggregateArgs = { /** * Filter which hours_bank to aggregate. */ where?: Prisma.hours_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hours_banks to fetch. */ orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.hours_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hours_banks 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` hours_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned hours_banks **/ _count?: true | Hours_bankCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Hours_bankAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Hours_bankSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Hours_bankMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Hours_bankMaxAggregateInputType } export type GetHours_bankAggregateType = { [P in keyof T & keyof AggregateHours_bank]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type hours_bankGroupByArgs = { where?: Prisma.hours_bankWhereInput orderBy?: Prisma.hours_bankOrderByWithAggregationInput | Prisma.hours_bankOrderByWithAggregationInput[] by: Prisma.Hours_bankScalarFieldEnum[] | Prisma.Hours_bankScalarFieldEnum having?: Prisma.hours_bankScalarWhereWithAggregatesInput take?: number skip?: number _count?: Hours_bankCountAggregateInputType | true _avg?: Hours_bankAvgAggregateInputType _sum?: Hours_bankSumAggregateInputType _min?: Hours_bankMinAggregateInputType _max?: Hours_bankMaxAggregateInputType } export type Hours_bankGroupByOutputType = { id: string employee_id: string | null hours: number | null created_at: bigint | null updated_at: bigint | null _count: Hours_bankCountAggregateOutputType | null _avg: Hours_bankAvgAggregateOutputType | null _sum: Hours_bankSumAggregateOutputType | null _min: Hours_bankMinAggregateOutputType | null _max: Hours_bankMaxAggregateOutputType | null } type GetHours_bankGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Hours_bankGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type hours_bankWhereInput = { AND?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[] OR?: Prisma.hours_bankWhereInput[] NOT?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[] id?: Prisma.UuidFilter<"hours_bank"> | string employee_id?: Prisma.StringNullableFilter<"hours_bank"> | string | null hours?: Prisma.FloatNullableFilter<"hours_bank"> | number | null created_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null } export type hours_bankOrderByWithRelationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrderInput | Prisma.SortOrder hours?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder } export type hours_bankWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[] OR?: Prisma.hours_bankWhereInput[] NOT?: Prisma.hours_bankWhereInput | Prisma.hours_bankWhereInput[] employee_id?: Prisma.StringNullableFilter<"hours_bank"> | string | null hours?: Prisma.FloatNullableFilter<"hours_bank"> | number | null created_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"hours_bank"> | bigint | number | null }, "id"> export type hours_bankOrderByWithAggregationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrderInput | Prisma.SortOrder hours?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.hours_bankCountOrderByAggregateInput _avg?: Prisma.hours_bankAvgOrderByAggregateInput _max?: Prisma.hours_bankMaxOrderByAggregateInput _min?: Prisma.hours_bankMinOrderByAggregateInput _sum?: Prisma.hours_bankSumOrderByAggregateInput } export type hours_bankScalarWhereWithAggregatesInput = { AND?: Prisma.hours_bankScalarWhereWithAggregatesInput | Prisma.hours_bankScalarWhereWithAggregatesInput[] OR?: Prisma.hours_bankScalarWhereWithAggregatesInput[] NOT?: Prisma.hours_bankScalarWhereWithAggregatesInput | Prisma.hours_bankScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"hours_bank"> | string employee_id?: Prisma.StringNullableWithAggregatesFilter<"hours_bank"> | string | null hours?: Prisma.FloatNullableWithAggregatesFilter<"hours_bank"> | number | null created_at?: Prisma.BigIntNullableWithAggregatesFilter<"hours_bank"> | bigint | number | null updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"hours_bank"> | bigint | number | null } export type hours_bankCreateInput = { id: string employee_id?: string | null hours?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null } export type hours_bankUncheckedCreateInput = { id: string employee_id?: string | null hours?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null } export type hours_bankUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type hours_bankUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type hours_bankCreateManyInput = { id: string employee_id?: string | null hours?: number | null created_at?: bigint | number | null updated_at?: bigint | number | null } export type hours_bankUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type hours_bankUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null hours?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type hours_bankCountOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder hours?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type hours_bankAvgOrderByAggregateInput = { hours?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type hours_bankMaxOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder hours?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type hours_bankMinOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder hours?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type hours_bankSumOrderByAggregateInput = { hours?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type hours_bankSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean hours?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["hours_bank"]> export type hours_bankSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean hours?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["hours_bank"]> export type hours_bankSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean hours?: boolean created_at?: boolean updated_at?: boolean }, ExtArgs["result"]["hours_bank"]> export type hours_bankSelectScalar = { id?: boolean employee_id?: boolean hours?: boolean created_at?: boolean updated_at?: boolean } export type hours_bankOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "hours" | "created_at" | "updated_at", ExtArgs["result"]["hours_bank"]> export type $hours_bankPayload = { name: "hours_bank" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string employee_id: string | null hours: number | null created_at: bigint | null updated_at: bigint | null }, ExtArgs["result"]["hours_bank"]> composites: {} } export type hours_bankGetPayload = runtime.Types.Result.GetResult export type hours_bankCountArgs = Omit & { select?: Hours_bankCountAggregateInputType | true } export interface hours_bankDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['hours_bank'], meta: { name: 'hours_bank' } } /** * Find zero or one Hours_bank that matches the filter. * @param {hours_bankFindUniqueArgs} args - Arguments to find a Hours_bank * @example * // Get one Hours_bank * const hours_bank = await prisma.hours_bank.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Hours_bank that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {hours_bankFindUniqueOrThrowArgs} args - Arguments to find a Hours_bank * @example * // Get one Hours_bank * const hours_bank = await prisma.hours_bank.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Hours_bank 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 {hours_bankFindFirstArgs} args - Arguments to find a Hours_bank * @example * // Get one Hours_bank * const hours_bank = await prisma.hours_bank.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Hours_bank 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 {hours_bankFindFirstOrThrowArgs} args - Arguments to find a Hours_bank * @example * // Get one Hours_bank * const hours_bank = await prisma.hours_bank.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Hours_banks 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 {hours_bankFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Hours_banks * const hours_banks = await prisma.hours_bank.findMany() * * // Get first 10 Hours_banks * const hours_banks = await prisma.hours_bank.findMany({ take: 10 }) * * // Only select the `id` * const hours_bankWithIdOnly = await prisma.hours_bank.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Hours_bank. * @param {hours_bankCreateArgs} args - Arguments to create a Hours_bank. * @example * // Create one Hours_bank * const Hours_bank = await prisma.hours_bank.create({ * data: { * // ... data to create a Hours_bank * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Hours_banks. * @param {hours_bankCreateManyArgs} args - Arguments to create many Hours_banks. * @example * // Create many Hours_banks * const hours_bank = await prisma.hours_bank.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Hours_banks and returns the data saved in the database. * @param {hours_bankCreateManyAndReturnArgs} args - Arguments to create many Hours_banks. * @example * // Create many Hours_banks * const hours_bank = await prisma.hours_bank.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Hours_banks and only return the `id` * const hours_bankWithIdOnly = await prisma.hours_bank.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 Hours_bank. * @param {hours_bankDeleteArgs} args - Arguments to delete one Hours_bank. * @example * // Delete one Hours_bank * const Hours_bank = await prisma.hours_bank.delete({ * where: { * // ... filter to delete one Hours_bank * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Hours_bank. * @param {hours_bankUpdateArgs} args - Arguments to update one Hours_bank. * @example * // Update one Hours_bank * const hours_bank = await prisma.hours_bank.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Hours_banks. * @param {hours_bankDeleteManyArgs} args - Arguments to filter Hours_banks to delete. * @example * // Delete a few Hours_banks * const { count } = await prisma.hours_bank.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Hours_banks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hours_bankUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Hours_banks * const hours_bank = await prisma.hours_bank.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Hours_banks and returns the data updated in the database. * @param {hours_bankUpdateManyAndReturnArgs} args - Arguments to update many Hours_banks. * @example * // Update many Hours_banks * const hours_bank = await prisma.hours_bank.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Hours_banks and only return the `id` * const hours_bankWithIdOnly = await prisma.hours_bank.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 Hours_bank. * @param {hours_bankUpsertArgs} args - Arguments to update or create a Hours_bank. * @example * // Update or create a Hours_bank * const hours_bank = await prisma.hours_bank.upsert({ * create: { * // ... data to create a Hours_bank * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Hours_bank we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__hours_bankClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Hours_banks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hours_bankCountArgs} args - Arguments to filter Hours_banks to count. * @example * // Count the number of Hours_banks * const count = await prisma.hours_bank.count({ * where: { * // ... the filter for the Hours_banks 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 Hours_bank. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Hours_bankAggregateArgs} 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 Hours_bank. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hours_bankGroupByArgs} 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 hours_bankGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: hours_bankGroupByArgs['orderBy'] } : { orderBy?: hours_bankGroupByArgs['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 ? GetHours_bankGroupByPayload : Prisma.PrismaPromise /** * Fields of the hours_bank model */ readonly fields: hours_bankFieldRefs; } /** * The delegate class that acts as a "Promise-like" for hours_bank. * 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__hours_bankClient 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 hours_bank model */ export interface hours_bankFieldRefs { readonly id: Prisma.FieldRef<"hours_bank", 'String'> readonly employee_id: Prisma.FieldRef<"hours_bank", 'String'> readonly hours: Prisma.FieldRef<"hours_bank", 'Float'> readonly created_at: Prisma.FieldRef<"hours_bank", 'BigInt'> readonly updated_at: Prisma.FieldRef<"hours_bank", 'BigInt'> } // Custom InputTypes /** * hours_bank findUnique */ export type hours_bankFindUniqueArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * Filter, which hours_bank to fetch. */ where: Prisma.hours_bankWhereUniqueInput } /** * hours_bank findUniqueOrThrow */ export type hours_bankFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * Filter, which hours_bank to fetch. */ where: Prisma.hours_bankWhereUniqueInput } /** * hours_bank findFirst */ export type hours_bankFindFirstArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * Filter, which hours_bank to fetch. */ where?: Prisma.hours_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hours_banks to fetch. */ orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for hours_banks. */ cursor?: Prisma.hours_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hours_banks 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` hours_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of hours_banks. */ distinct?: Prisma.Hours_bankScalarFieldEnum | Prisma.Hours_bankScalarFieldEnum[] } /** * hours_bank findFirstOrThrow */ export type hours_bankFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * Filter, which hours_bank to fetch. */ where?: Prisma.hours_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hours_banks to fetch. */ orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for hours_banks. */ cursor?: Prisma.hours_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hours_banks 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` hours_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of hours_banks. */ distinct?: Prisma.Hours_bankScalarFieldEnum | Prisma.Hours_bankScalarFieldEnum[] } /** * hours_bank findMany */ export type hours_bankFindManyArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * Filter, which hours_banks to fetch. */ where?: Prisma.hours_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hours_banks to fetch. */ orderBy?: Prisma.hours_bankOrderByWithRelationInput | Prisma.hours_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing hours_banks. */ cursor?: Prisma.hours_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hours_banks 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` hours_banks. */ skip?: number distinct?: Prisma.Hours_bankScalarFieldEnum | Prisma.Hours_bankScalarFieldEnum[] } /** * hours_bank create */ export type hours_bankCreateArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * The data needed to create a hours_bank. */ data: Prisma.XOR } /** * hours_bank createMany */ export type hours_bankCreateManyArgs = { /** * The data used to create many hours_banks. */ data: Prisma.hours_bankCreateManyInput | Prisma.hours_bankCreateManyInput[] skipDuplicates?: boolean } /** * hours_bank createManyAndReturn */ export type hours_bankCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelectCreateManyAndReturn | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * The data used to create many hours_banks. */ data: Prisma.hours_bankCreateManyInput | Prisma.hours_bankCreateManyInput[] skipDuplicates?: boolean } /** * hours_bank update */ export type hours_bankUpdateArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * The data needed to update a hours_bank. */ data: Prisma.XOR /** * Choose, which hours_bank to update. */ where: Prisma.hours_bankWhereUniqueInput } /** * hours_bank updateMany */ export type hours_bankUpdateManyArgs = { /** * The data used to update hours_banks. */ data: Prisma.XOR /** * Filter which hours_banks to update */ where?: Prisma.hours_bankWhereInput /** * Limit how many hours_banks to update. */ limit?: number } /** * hours_bank updateManyAndReturn */ export type hours_bankUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelectUpdateManyAndReturn | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * The data used to update hours_banks. */ data: Prisma.XOR /** * Filter which hours_banks to update */ where?: Prisma.hours_bankWhereInput /** * Limit how many hours_banks to update. */ limit?: number } /** * hours_bank upsert */ export type hours_bankUpsertArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * The filter to search for the hours_bank to update in case it exists. */ where: Prisma.hours_bankWhereUniqueInput /** * In case the hours_bank found by the `where` argument doesn't exist, create a new hours_bank with this data. */ create: Prisma.XOR /** * In case the hours_bank was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * hours_bank delete */ export type hours_bankDeleteArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null /** * Filter which hours_bank to delete. */ where: Prisma.hours_bankWhereUniqueInput } /** * hours_bank deleteMany */ export type hours_bankDeleteManyArgs = { /** * Filter which hours_banks to delete */ where?: Prisma.hours_bankWhereInput /** * Limit how many hours_banks to delete. */ limit?: number } /** * hours_bank without action */ export type hours_bankDefaultArgs = { /** * Select specific fields to fetch from the hours_bank */ select?: Prisma.hours_bankSelect | null /** * Omit specific fields from the hours_bank */ omit?: Prisma.hours_bankOmit | null }