/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `hour_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 hour_bank * */ export type hour_bankModel = runtime.Types.Result.DefaultSelection export type AggregateHour_bank = { _count: Hour_bankCountAggregateOutputType | null _avg: Hour_bankAvgAggregateOutputType | null _sum: Hour_bankSumAggregateOutputType | null _min: Hour_bankMinAggregateOutputType | null _max: Hour_bankMaxAggregateOutputType | null } export type Hour_bankAvgAggregateOutputType = { id: number | null account_id: number | null remaining_time: number | null expiration_date: number | null recurrence: number | null reset_value: number | null } export type Hour_bankSumAggregateOutputType = { id: number | null account_id: bigint | null remaining_time: number | null expiration_date: bigint | null recurrence: number | null reset_value: number | null } export type Hour_bankMinAggregateOutputType = { id: number | null account_id: bigint | null remaining_time: number | null expiration_date: bigint | null note: string | null recurrence: number | null reset_value: number | null } export type Hour_bankMaxAggregateOutputType = { id: number | null account_id: bigint | null remaining_time: number | null expiration_date: bigint | null note: string | null recurrence: number | null reset_value: number | null } export type Hour_bankCountAggregateOutputType = { id: number account_id: number remaining_time: number expiration_date: number note: number recurrence: number reset_value: number _all: number } export type Hour_bankAvgAggregateInputType = { id?: true account_id?: true remaining_time?: true expiration_date?: true recurrence?: true reset_value?: true } export type Hour_bankSumAggregateInputType = { id?: true account_id?: true remaining_time?: true expiration_date?: true recurrence?: true reset_value?: true } export type Hour_bankMinAggregateInputType = { id?: true account_id?: true remaining_time?: true expiration_date?: true note?: true recurrence?: true reset_value?: true } export type Hour_bankMaxAggregateInputType = { id?: true account_id?: true remaining_time?: true expiration_date?: true note?: true recurrence?: true reset_value?: true } export type Hour_bankCountAggregateInputType = { id?: true account_id?: true remaining_time?: true expiration_date?: true note?: true recurrence?: true reset_value?: true _all?: true } export type Hour_bankAggregateArgs = { /** * Filter which hour_bank to aggregate. */ where?: Prisma.hour_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hour_banks to fetch. */ orderBy?: Prisma.hour_bankOrderByWithRelationInput | Prisma.hour_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.hour_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hour_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` hour_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned hour_banks **/ _count?: true | Hour_bankCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Hour_bankAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Hour_bankSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Hour_bankMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Hour_bankMaxAggregateInputType } export type GetHour_bankAggregateType = { [P in keyof T & keyof AggregateHour_bank]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type hour_bankGroupByArgs = { where?: Prisma.hour_bankWhereInput orderBy?: Prisma.hour_bankOrderByWithAggregationInput | Prisma.hour_bankOrderByWithAggregationInput[] by: Prisma.Hour_bankScalarFieldEnum[] | Prisma.Hour_bankScalarFieldEnum having?: Prisma.hour_bankScalarWhereWithAggregatesInput take?: number skip?: number _count?: Hour_bankCountAggregateInputType | true _avg?: Hour_bankAvgAggregateInputType _sum?: Hour_bankSumAggregateInputType _min?: Hour_bankMinAggregateInputType _max?: Hour_bankMaxAggregateInputType } export type Hour_bankGroupByOutputType = { id: number account_id: bigint remaining_time: number expiration_date: bigint note: string | null recurrence: number reset_value: number _count: Hour_bankCountAggregateOutputType | null _avg: Hour_bankAvgAggregateOutputType | null _sum: Hour_bankSumAggregateOutputType | null _min: Hour_bankMinAggregateOutputType | null _max: Hour_bankMaxAggregateOutputType | null } type GetHour_bankGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Hour_bankGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type hour_bankWhereInput = { AND?: Prisma.hour_bankWhereInput | Prisma.hour_bankWhereInput[] OR?: Prisma.hour_bankWhereInput[] NOT?: Prisma.hour_bankWhereInput | Prisma.hour_bankWhereInput[] id?: Prisma.IntFilter<"hour_bank"> | number account_id?: Prisma.BigIntFilter<"hour_bank"> | bigint | number remaining_time?: Prisma.IntFilter<"hour_bank"> | number expiration_date?: Prisma.BigIntFilter<"hour_bank"> | bigint | number note?: Prisma.StringNullableFilter<"hour_bank"> | string | null recurrence?: Prisma.IntFilter<"hour_bank"> | number reset_value?: Prisma.IntFilter<"hour_bank"> | number } export type hour_bankOrderByWithRelationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder remaining_time?: Prisma.SortOrder expiration_date?: Prisma.SortOrder note?: Prisma.SortOrderInput | Prisma.SortOrder recurrence?: Prisma.SortOrder reset_value?: Prisma.SortOrder _relevance?: Prisma.hour_bankOrderByRelevanceInput } export type hour_bankWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.hour_bankWhereInput | Prisma.hour_bankWhereInput[] OR?: Prisma.hour_bankWhereInput[] NOT?: Prisma.hour_bankWhereInput | Prisma.hour_bankWhereInput[] account_id?: Prisma.BigIntFilter<"hour_bank"> | bigint | number remaining_time?: Prisma.IntFilter<"hour_bank"> | number expiration_date?: Prisma.BigIntFilter<"hour_bank"> | bigint | number note?: Prisma.StringNullableFilter<"hour_bank"> | string | null recurrence?: Prisma.IntFilter<"hour_bank"> | number reset_value?: Prisma.IntFilter<"hour_bank"> | number }, "id"> export type hour_bankOrderByWithAggregationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder remaining_time?: Prisma.SortOrder expiration_date?: Prisma.SortOrder note?: Prisma.SortOrderInput | Prisma.SortOrder recurrence?: Prisma.SortOrder reset_value?: Prisma.SortOrder _count?: Prisma.hour_bankCountOrderByAggregateInput _avg?: Prisma.hour_bankAvgOrderByAggregateInput _max?: Prisma.hour_bankMaxOrderByAggregateInput _min?: Prisma.hour_bankMinOrderByAggregateInput _sum?: Prisma.hour_bankSumOrderByAggregateInput } export type hour_bankScalarWhereWithAggregatesInput = { AND?: Prisma.hour_bankScalarWhereWithAggregatesInput | Prisma.hour_bankScalarWhereWithAggregatesInput[] OR?: Prisma.hour_bankScalarWhereWithAggregatesInput[] NOT?: Prisma.hour_bankScalarWhereWithAggregatesInput | Prisma.hour_bankScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"hour_bank"> | number account_id?: Prisma.BigIntWithAggregatesFilter<"hour_bank"> | bigint | number remaining_time?: Prisma.IntWithAggregatesFilter<"hour_bank"> | number expiration_date?: Prisma.BigIntWithAggregatesFilter<"hour_bank"> | bigint | number note?: Prisma.StringNullableWithAggregatesFilter<"hour_bank"> | string | null recurrence?: Prisma.IntWithAggregatesFilter<"hour_bank"> | number reset_value?: Prisma.IntWithAggregatesFilter<"hour_bank"> | number } export type hour_bankCreateInput = { account_id: bigint | number remaining_time?: number expiration_date?: bigint | number note?: string | null recurrence?: number reset_value?: number } export type hour_bankUncheckedCreateInput = { id?: number account_id: bigint | number remaining_time?: number expiration_date?: bigint | number note?: string | null recurrence?: number reset_value?: number } export type hour_bankUpdateInput = { account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number remaining_time?: Prisma.IntFieldUpdateOperationsInput | number expiration_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recurrence?: Prisma.IntFieldUpdateOperationsInput | number reset_value?: Prisma.IntFieldUpdateOperationsInput | number } export type hour_bankUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number remaining_time?: Prisma.IntFieldUpdateOperationsInput | number expiration_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recurrence?: Prisma.IntFieldUpdateOperationsInput | number reset_value?: Prisma.IntFieldUpdateOperationsInput | number } export type hour_bankCreateManyInput = { id?: number account_id: bigint | number remaining_time?: number expiration_date?: bigint | number note?: string | null recurrence?: number reset_value?: number } export type hour_bankUpdateManyMutationInput = { account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number remaining_time?: Prisma.IntFieldUpdateOperationsInput | number expiration_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recurrence?: Prisma.IntFieldUpdateOperationsInput | number reset_value?: Prisma.IntFieldUpdateOperationsInput | number } export type hour_bankUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number remaining_time?: Prisma.IntFieldUpdateOperationsInput | number expiration_date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recurrence?: Prisma.IntFieldUpdateOperationsInput | number reset_value?: Prisma.IntFieldUpdateOperationsInput | number } export type hour_bankOrderByRelevanceInput = { fields: Prisma.hour_bankOrderByRelevanceFieldEnum | Prisma.hour_bankOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type hour_bankCountOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder remaining_time?: Prisma.SortOrder expiration_date?: Prisma.SortOrder note?: Prisma.SortOrder recurrence?: Prisma.SortOrder reset_value?: Prisma.SortOrder } export type hour_bankAvgOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder remaining_time?: Prisma.SortOrder expiration_date?: Prisma.SortOrder recurrence?: Prisma.SortOrder reset_value?: Prisma.SortOrder } export type hour_bankMaxOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder remaining_time?: Prisma.SortOrder expiration_date?: Prisma.SortOrder note?: Prisma.SortOrder recurrence?: Prisma.SortOrder reset_value?: Prisma.SortOrder } export type hour_bankMinOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder remaining_time?: Prisma.SortOrder expiration_date?: Prisma.SortOrder note?: Prisma.SortOrder recurrence?: Prisma.SortOrder reset_value?: Prisma.SortOrder } export type hour_bankSumOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder remaining_time?: Prisma.SortOrder expiration_date?: Prisma.SortOrder recurrence?: Prisma.SortOrder reset_value?: Prisma.SortOrder } export type hour_bankSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean account_id?: boolean remaining_time?: boolean expiration_date?: boolean note?: boolean recurrence?: boolean reset_value?: boolean }, ExtArgs["result"]["hour_bank"]> export type hour_bankSelectScalar = { id?: boolean account_id?: boolean remaining_time?: boolean expiration_date?: boolean note?: boolean recurrence?: boolean reset_value?: boolean } export type hour_bankOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "remaining_time" | "expiration_date" | "note" | "recurrence" | "reset_value", ExtArgs["result"]["hour_bank"]> export type $hour_bankPayload = { name: "hour_bank" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number account_id: bigint remaining_time: number expiration_date: bigint note: string | null recurrence: number reset_value: number }, ExtArgs["result"]["hour_bank"]> composites: {} } export type hour_bankGetPayload = runtime.Types.Result.GetResult export type hour_bankCountArgs = Omit & { select?: Hour_bankCountAggregateInputType | true } export interface hour_bankDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['hour_bank'], meta: { name: 'hour_bank' } } /** * Find zero or one Hour_bank that matches the filter. * @param {hour_bankFindUniqueArgs} args - Arguments to find a Hour_bank * @example * // Get one Hour_bank * const hour_bank = await prisma.hour_bank.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Hour_bank that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {hour_bankFindUniqueOrThrowArgs} args - Arguments to find a Hour_bank * @example * // Get one Hour_bank * const hour_bank = await prisma.hour_bank.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Hour_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 {hour_bankFindFirstArgs} args - Arguments to find a Hour_bank * @example * // Get one Hour_bank * const hour_bank = await prisma.hour_bank.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Hour_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 {hour_bankFindFirstOrThrowArgs} args - Arguments to find a Hour_bank * @example * // Get one Hour_bank * const hour_bank = await prisma.hour_bank.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Hour_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 {hour_bankFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Hour_banks * const hour_banks = await prisma.hour_bank.findMany() * * // Get first 10 Hour_banks * const hour_banks = await prisma.hour_bank.findMany({ take: 10 }) * * // Only select the `id` * const hour_bankWithIdOnly = await prisma.hour_bank.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Hour_bank. * @param {hour_bankCreateArgs} args - Arguments to create a Hour_bank. * @example * // Create one Hour_bank * const Hour_bank = await prisma.hour_bank.create({ * data: { * // ... data to create a Hour_bank * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Hour_banks. * @param {hour_bankCreateManyArgs} args - Arguments to create many Hour_banks. * @example * // Create many Hour_banks * const hour_bank = await prisma.hour_bank.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Hour_bank. * @param {hour_bankDeleteArgs} args - Arguments to delete one Hour_bank. * @example * // Delete one Hour_bank * const Hour_bank = await prisma.hour_bank.delete({ * where: { * // ... filter to delete one Hour_bank * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Hour_bank. * @param {hour_bankUpdateArgs} args - Arguments to update one Hour_bank. * @example * // Update one Hour_bank * const hour_bank = await prisma.hour_bank.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Hour_banks. * @param {hour_bankDeleteManyArgs} args - Arguments to filter Hour_banks to delete. * @example * // Delete a few Hour_banks * const { count } = await prisma.hour_bank.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Hour_banks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hour_bankUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Hour_banks * const hour_bank = await prisma.hour_bank.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Hour_bank. * @param {hour_bankUpsertArgs} args - Arguments to update or create a Hour_bank. * @example * // Update or create a Hour_bank * const hour_bank = await prisma.hour_bank.upsert({ * create: { * // ... data to create a Hour_bank * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Hour_bank we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bankClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Hour_banks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hour_bankCountArgs} args - Arguments to filter Hour_banks to count. * @example * // Count the number of Hour_banks * const count = await prisma.hour_bank.count({ * where: { * // ... the filter for the Hour_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 Hour_bank. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Hour_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 Hour_bank. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hour_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 hour_bankGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: hour_bankGroupByArgs['orderBy'] } : { orderBy?: hour_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 ? GetHour_bankGroupByPayload : Prisma.PrismaPromise /** * Fields of the hour_bank model */ readonly fields: hour_bankFieldRefs; } /** * The delegate class that acts as a "Promise-like" for hour_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__hour_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 hour_bank model */ export interface hour_bankFieldRefs { readonly id: Prisma.FieldRef<"hour_bank", 'Int'> readonly account_id: Prisma.FieldRef<"hour_bank", 'BigInt'> readonly remaining_time: Prisma.FieldRef<"hour_bank", 'Int'> readonly expiration_date: Prisma.FieldRef<"hour_bank", 'BigInt'> readonly note: Prisma.FieldRef<"hour_bank", 'String'> readonly recurrence: Prisma.FieldRef<"hour_bank", 'Int'> readonly reset_value: Prisma.FieldRef<"hour_bank", 'Int'> } // Custom InputTypes /** * hour_bank findUnique */ export type hour_bankFindUniqueArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * Filter, which hour_bank to fetch. */ where: Prisma.hour_bankWhereUniqueInput } /** * hour_bank findUniqueOrThrow */ export type hour_bankFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * Filter, which hour_bank to fetch. */ where: Prisma.hour_bankWhereUniqueInput } /** * hour_bank findFirst */ export type hour_bankFindFirstArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * Filter, which hour_bank to fetch. */ where?: Prisma.hour_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hour_banks to fetch. */ orderBy?: Prisma.hour_bankOrderByWithRelationInput | Prisma.hour_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for hour_banks. */ cursor?: Prisma.hour_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hour_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` hour_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of hour_banks. */ distinct?: Prisma.Hour_bankScalarFieldEnum | Prisma.Hour_bankScalarFieldEnum[] } /** * hour_bank findFirstOrThrow */ export type hour_bankFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * Filter, which hour_bank to fetch. */ where?: Prisma.hour_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hour_banks to fetch. */ orderBy?: Prisma.hour_bankOrderByWithRelationInput | Prisma.hour_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for hour_banks. */ cursor?: Prisma.hour_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hour_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` hour_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of hour_banks. */ distinct?: Prisma.Hour_bankScalarFieldEnum | Prisma.Hour_bankScalarFieldEnum[] } /** * hour_bank findMany */ export type hour_bankFindManyArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * Filter, which hour_banks to fetch. */ where?: Prisma.hour_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hour_banks to fetch. */ orderBy?: Prisma.hour_bankOrderByWithRelationInput | Prisma.hour_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing hour_banks. */ cursor?: Prisma.hour_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hour_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` hour_banks. */ skip?: number distinct?: Prisma.Hour_bankScalarFieldEnum | Prisma.Hour_bankScalarFieldEnum[] } /** * hour_bank create */ export type hour_bankCreateArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * The data needed to create a hour_bank. */ data: Prisma.XOR } /** * hour_bank createMany */ export type hour_bankCreateManyArgs = { /** * The data used to create many hour_banks. */ data: Prisma.hour_bankCreateManyInput | Prisma.hour_bankCreateManyInput[] skipDuplicates?: boolean } /** * hour_bank update */ export type hour_bankUpdateArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * The data needed to update a hour_bank. */ data: Prisma.XOR /** * Choose, which hour_bank to update. */ where: Prisma.hour_bankWhereUniqueInput } /** * hour_bank updateMany */ export type hour_bankUpdateManyArgs = { /** * The data used to update hour_banks. */ data: Prisma.XOR /** * Filter which hour_banks to update */ where?: Prisma.hour_bankWhereInput /** * Limit how many hour_banks to update. */ limit?: number } /** * hour_bank upsert */ export type hour_bankUpsertArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * The filter to search for the hour_bank to update in case it exists. */ where: Prisma.hour_bankWhereUniqueInput /** * In case the hour_bank found by the `where` argument doesn't exist, create a new hour_bank with this data. */ create: Prisma.XOR /** * In case the hour_bank was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * hour_bank delete */ export type hour_bankDeleteArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null /** * Filter which hour_bank to delete. */ where: Prisma.hour_bankWhereUniqueInput } /** * hour_bank deleteMany */ export type hour_bankDeleteManyArgs = { /** * Filter which hour_banks to delete */ where?: Prisma.hour_bankWhereInput /** * Limit how many hour_banks to delete. */ limit?: number } /** * hour_bank without action */ export type hour_bankDefaultArgs = { /** * Select specific fields to fetch from the hour_bank */ select?: Prisma.hour_bankSelect | null /** * Omit specific fields from the hour_bank */ omit?: Prisma.hour_bankOmit | null }