/* !!! 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_detail` 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_detail * */ export type hour_bank_detailModel = runtime.Types.Result.DefaultSelection export type AggregateHour_bank_detail = { _count: Hour_bank_detailCountAggregateOutputType | null _avg: Hour_bank_detailAvgAggregateOutputType | null _sum: Hour_bank_detailSumAggregateOutputType | null _min: Hour_bank_detailMinAggregateOutputType | null _max: Hour_bank_detailMaxAggregateOutputType | null } export type Hour_bank_detailAvgAggregateOutputType = { id: number | null hour_id: number | null staff_id: number | null date_orig: number | null used_time: number | null ticket_id: number | null } export type Hour_bank_detailSumAggregateOutputType = { id: number | null hour_id: number | null staff_id: bigint | null date_orig: bigint | null used_time: number | null ticket_id: bigint | null } export type Hour_bank_detailMinAggregateOutputType = { id: number | null hour_id: number | null staff_id: bigint | null date_orig: bigint | null used_time: number | null ticket_id: bigint | null working_order: string | null detail: string | null } export type Hour_bank_detailMaxAggregateOutputType = { id: number | null hour_id: number | null staff_id: bigint | null date_orig: bigint | null used_time: number | null ticket_id: bigint | null working_order: string | null detail: string | null } export type Hour_bank_detailCountAggregateOutputType = { id: number hour_id: number staff_id: number date_orig: number used_time: number ticket_id: number working_order: number detail: number _all: number } export type Hour_bank_detailAvgAggregateInputType = { id?: true hour_id?: true staff_id?: true date_orig?: true used_time?: true ticket_id?: true } export type Hour_bank_detailSumAggregateInputType = { id?: true hour_id?: true staff_id?: true date_orig?: true used_time?: true ticket_id?: true } export type Hour_bank_detailMinAggregateInputType = { id?: true hour_id?: true staff_id?: true date_orig?: true used_time?: true ticket_id?: true working_order?: true detail?: true } export type Hour_bank_detailMaxAggregateInputType = { id?: true hour_id?: true staff_id?: true date_orig?: true used_time?: true ticket_id?: true working_order?: true detail?: true } export type Hour_bank_detailCountAggregateInputType = { id?: true hour_id?: true staff_id?: true date_orig?: true used_time?: true ticket_id?: true working_order?: true detail?: true _all?: true } export type Hour_bank_detailAggregateArgs = { /** * Filter which hour_bank_detail to aggregate. */ where?: Prisma.hour_bank_detailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hour_bank_details to fetch. */ orderBy?: Prisma.hour_bank_detailOrderByWithRelationInput | Prisma.hour_bank_detailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.hour_bank_detailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hour_bank_details 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_bank_details. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned hour_bank_details **/ _count?: true | Hour_bank_detailCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Hour_bank_detailAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Hour_bank_detailSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Hour_bank_detailMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Hour_bank_detailMaxAggregateInputType } export type GetHour_bank_detailAggregateType = { [P in keyof T & keyof AggregateHour_bank_detail]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type hour_bank_detailGroupByArgs = { where?: Prisma.hour_bank_detailWhereInput orderBy?: Prisma.hour_bank_detailOrderByWithAggregationInput | Prisma.hour_bank_detailOrderByWithAggregationInput[] by: Prisma.Hour_bank_detailScalarFieldEnum[] | Prisma.Hour_bank_detailScalarFieldEnum having?: Prisma.hour_bank_detailScalarWhereWithAggregatesInput take?: number skip?: number _count?: Hour_bank_detailCountAggregateInputType | true _avg?: Hour_bank_detailAvgAggregateInputType _sum?: Hour_bank_detailSumAggregateInputType _min?: Hour_bank_detailMinAggregateInputType _max?: Hour_bank_detailMaxAggregateInputType } export type Hour_bank_detailGroupByOutputType = { id: number hour_id: number staff_id: bigint | null date_orig: bigint used_time: number ticket_id: bigint | null working_order: string | null detail: string | null _count: Hour_bank_detailCountAggregateOutputType | null _avg: Hour_bank_detailAvgAggregateOutputType | null _sum: Hour_bank_detailSumAggregateOutputType | null _min: Hour_bank_detailMinAggregateOutputType | null _max: Hour_bank_detailMaxAggregateOutputType | null } type GetHour_bank_detailGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Hour_bank_detailGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type hour_bank_detailWhereInput = { AND?: Prisma.hour_bank_detailWhereInput | Prisma.hour_bank_detailWhereInput[] OR?: Prisma.hour_bank_detailWhereInput[] NOT?: Prisma.hour_bank_detailWhereInput | Prisma.hour_bank_detailWhereInput[] id?: Prisma.IntFilter<"hour_bank_detail"> | number hour_id?: Prisma.IntFilter<"hour_bank_detail"> | number staff_id?: Prisma.BigIntNullableFilter<"hour_bank_detail"> | bigint | number | null date_orig?: Prisma.BigIntFilter<"hour_bank_detail"> | bigint | number used_time?: Prisma.IntFilter<"hour_bank_detail"> | number ticket_id?: Prisma.BigIntNullableFilter<"hour_bank_detail"> | bigint | number | null working_order?: Prisma.StringNullableFilter<"hour_bank_detail"> | string | null detail?: Prisma.StringNullableFilter<"hour_bank_detail"> | string | null } export type hour_bank_detailOrderByWithRelationInput = { id?: Prisma.SortOrder hour_id?: Prisma.SortOrder staff_id?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrder used_time?: Prisma.SortOrder ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder working_order?: Prisma.SortOrderInput | Prisma.SortOrder detail?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.hour_bank_detailOrderByRelevanceInput } export type hour_bank_detailWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.hour_bank_detailWhereInput | Prisma.hour_bank_detailWhereInput[] OR?: Prisma.hour_bank_detailWhereInput[] NOT?: Prisma.hour_bank_detailWhereInput | Prisma.hour_bank_detailWhereInput[] hour_id?: Prisma.IntFilter<"hour_bank_detail"> | number staff_id?: Prisma.BigIntNullableFilter<"hour_bank_detail"> | bigint | number | null date_orig?: Prisma.BigIntFilter<"hour_bank_detail"> | bigint | number used_time?: Prisma.IntFilter<"hour_bank_detail"> | number ticket_id?: Prisma.BigIntNullableFilter<"hour_bank_detail"> | bigint | number | null working_order?: Prisma.StringNullableFilter<"hour_bank_detail"> | string | null detail?: Prisma.StringNullableFilter<"hour_bank_detail"> | string | null }, "id"> export type hour_bank_detailOrderByWithAggregationInput = { id?: Prisma.SortOrder hour_id?: Prisma.SortOrder staff_id?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrder used_time?: Prisma.SortOrder ticket_id?: Prisma.SortOrderInput | Prisma.SortOrder working_order?: Prisma.SortOrderInput | Prisma.SortOrder detail?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.hour_bank_detailCountOrderByAggregateInput _avg?: Prisma.hour_bank_detailAvgOrderByAggregateInput _max?: Prisma.hour_bank_detailMaxOrderByAggregateInput _min?: Prisma.hour_bank_detailMinOrderByAggregateInput _sum?: Prisma.hour_bank_detailSumOrderByAggregateInput } export type hour_bank_detailScalarWhereWithAggregatesInput = { AND?: Prisma.hour_bank_detailScalarWhereWithAggregatesInput | Prisma.hour_bank_detailScalarWhereWithAggregatesInput[] OR?: Prisma.hour_bank_detailScalarWhereWithAggregatesInput[] NOT?: Prisma.hour_bank_detailScalarWhereWithAggregatesInput | Prisma.hour_bank_detailScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"hour_bank_detail"> | number hour_id?: Prisma.IntWithAggregatesFilter<"hour_bank_detail"> | number staff_id?: Prisma.BigIntNullableWithAggregatesFilter<"hour_bank_detail"> | bigint | number | null date_orig?: Prisma.BigIntWithAggregatesFilter<"hour_bank_detail"> | bigint | number used_time?: Prisma.IntWithAggregatesFilter<"hour_bank_detail"> | number ticket_id?: Prisma.BigIntNullableWithAggregatesFilter<"hour_bank_detail"> | bigint | number | null working_order?: Prisma.StringNullableWithAggregatesFilter<"hour_bank_detail"> | string | null detail?: Prisma.StringNullableWithAggregatesFilter<"hour_bank_detail"> | string | null } export type hour_bank_detailCreateInput = { hour_id: number staff_id?: bigint | number | null date_orig: bigint | number used_time?: number ticket_id?: bigint | number | null working_order?: string | null detail?: string | null } export type hour_bank_detailUncheckedCreateInput = { id?: number hour_id: number staff_id?: bigint | number | null date_orig: bigint | number used_time?: number ticket_id?: bigint | number | null working_order?: string | null detail?: string | null } export type hour_bank_detailUpdateInput = { hour_id?: Prisma.IntFieldUpdateOperationsInput | number staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number used_time?: Prisma.IntFieldUpdateOperationsInput | number ticket_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type hour_bank_detailUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number hour_id?: Prisma.IntFieldUpdateOperationsInput | number staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number used_time?: Prisma.IntFieldUpdateOperationsInput | number ticket_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type hour_bank_detailCreateManyInput = { id?: number hour_id: number staff_id?: bigint | number | null date_orig: bigint | number used_time?: number ticket_id?: bigint | number | null working_order?: string | null detail?: string | null } export type hour_bank_detailUpdateManyMutationInput = { hour_id?: Prisma.IntFieldUpdateOperationsInput | number staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number used_time?: Prisma.IntFieldUpdateOperationsInput | number ticket_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type hour_bank_detailUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number hour_id?: Prisma.IntFieldUpdateOperationsInput | number staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null date_orig?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number used_time?: Prisma.IntFieldUpdateOperationsInput | number ticket_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null working_order?: Prisma.NullableStringFieldUpdateOperationsInput | string | null detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type hour_bank_detailOrderByRelevanceInput = { fields: Prisma.hour_bank_detailOrderByRelevanceFieldEnum | Prisma.hour_bank_detailOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type hour_bank_detailCountOrderByAggregateInput = { id?: Prisma.SortOrder hour_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder used_time?: Prisma.SortOrder ticket_id?: Prisma.SortOrder working_order?: Prisma.SortOrder detail?: Prisma.SortOrder } export type hour_bank_detailAvgOrderByAggregateInput = { id?: Prisma.SortOrder hour_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder used_time?: Prisma.SortOrder ticket_id?: Prisma.SortOrder } export type hour_bank_detailMaxOrderByAggregateInput = { id?: Prisma.SortOrder hour_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder used_time?: Prisma.SortOrder ticket_id?: Prisma.SortOrder working_order?: Prisma.SortOrder detail?: Prisma.SortOrder } export type hour_bank_detailMinOrderByAggregateInput = { id?: Prisma.SortOrder hour_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder used_time?: Prisma.SortOrder ticket_id?: Prisma.SortOrder working_order?: Prisma.SortOrder detail?: Prisma.SortOrder } export type hour_bank_detailSumOrderByAggregateInput = { id?: Prisma.SortOrder hour_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder used_time?: Prisma.SortOrder ticket_id?: Prisma.SortOrder } export type hour_bank_detailSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean hour_id?: boolean staff_id?: boolean date_orig?: boolean used_time?: boolean ticket_id?: boolean working_order?: boolean detail?: boolean }, ExtArgs["result"]["hour_bank_detail"]> export type hour_bank_detailSelectScalar = { id?: boolean hour_id?: boolean staff_id?: boolean date_orig?: boolean used_time?: boolean ticket_id?: boolean working_order?: boolean detail?: boolean } export type hour_bank_detailOmit = runtime.Types.Extensions.GetOmit<"id" | "hour_id" | "staff_id" | "date_orig" | "used_time" | "ticket_id" | "working_order" | "detail", ExtArgs["result"]["hour_bank_detail"]> export type $hour_bank_detailPayload = { name: "hour_bank_detail" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number hour_id: number staff_id: bigint | null date_orig: bigint used_time: number ticket_id: bigint | null working_order: string | null detail: string | null }, ExtArgs["result"]["hour_bank_detail"]> composites: {} } export type hour_bank_detailGetPayload = runtime.Types.Result.GetResult export type hour_bank_detailCountArgs = Omit & { select?: Hour_bank_detailCountAggregateInputType | true } export interface hour_bank_detailDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['hour_bank_detail'], meta: { name: 'hour_bank_detail' } } /** * Find zero or one Hour_bank_detail that matches the filter. * @param {hour_bank_detailFindUniqueArgs} args - Arguments to find a Hour_bank_detail * @example * // Get one Hour_bank_detail * const hour_bank_detail = await prisma.hour_bank_detail.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Hour_bank_detail that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {hour_bank_detailFindUniqueOrThrowArgs} args - Arguments to find a Hour_bank_detail * @example * // Get one Hour_bank_detail * const hour_bank_detail = await prisma.hour_bank_detail.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Hour_bank_detail 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_bank_detailFindFirstArgs} args - Arguments to find a Hour_bank_detail * @example * // Get one Hour_bank_detail * const hour_bank_detail = await prisma.hour_bank_detail.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Hour_bank_detail 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_bank_detailFindFirstOrThrowArgs} args - Arguments to find a Hour_bank_detail * @example * // Get one Hour_bank_detail * const hour_bank_detail = await prisma.hour_bank_detail.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Hour_bank_details 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_bank_detailFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Hour_bank_details * const hour_bank_details = await prisma.hour_bank_detail.findMany() * * // Get first 10 Hour_bank_details * const hour_bank_details = await prisma.hour_bank_detail.findMany({ take: 10 }) * * // Only select the `id` * const hour_bank_detailWithIdOnly = await prisma.hour_bank_detail.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Hour_bank_detail. * @param {hour_bank_detailCreateArgs} args - Arguments to create a Hour_bank_detail. * @example * // Create one Hour_bank_detail * const Hour_bank_detail = await prisma.hour_bank_detail.create({ * data: { * // ... data to create a Hour_bank_detail * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Hour_bank_details. * @param {hour_bank_detailCreateManyArgs} args - Arguments to create many Hour_bank_details. * @example * // Create many Hour_bank_details * const hour_bank_detail = await prisma.hour_bank_detail.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Hour_bank_detail. * @param {hour_bank_detailDeleteArgs} args - Arguments to delete one Hour_bank_detail. * @example * // Delete one Hour_bank_detail * const Hour_bank_detail = await prisma.hour_bank_detail.delete({ * where: { * // ... filter to delete one Hour_bank_detail * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Hour_bank_detail. * @param {hour_bank_detailUpdateArgs} args - Arguments to update one Hour_bank_detail. * @example * // Update one Hour_bank_detail * const hour_bank_detail = await prisma.hour_bank_detail.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Hour_bank_details. * @param {hour_bank_detailDeleteManyArgs} args - Arguments to filter Hour_bank_details to delete. * @example * // Delete a few Hour_bank_details * const { count } = await prisma.hour_bank_detail.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Hour_bank_details. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hour_bank_detailUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Hour_bank_details * const hour_bank_detail = await prisma.hour_bank_detail.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Hour_bank_detail. * @param {hour_bank_detailUpsertArgs} args - Arguments to update or create a Hour_bank_detail. * @example * // Update or create a Hour_bank_detail * const hour_bank_detail = await prisma.hour_bank_detail.upsert({ * create: { * // ... data to create a Hour_bank_detail * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Hour_bank_detail we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__hour_bank_detailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Hour_bank_details. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hour_bank_detailCountArgs} args - Arguments to filter Hour_bank_details to count. * @example * // Count the number of Hour_bank_details * const count = await prisma.hour_bank_detail.count({ * where: { * // ... the filter for the Hour_bank_details 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_detail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Hour_bank_detailAggregateArgs} 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_detail. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {hour_bank_detailGroupByArgs} 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_bank_detailGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: hour_bank_detailGroupByArgs['orderBy'] } : { orderBy?: hour_bank_detailGroupByArgs['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_bank_detailGroupByPayload : Prisma.PrismaPromise /** * Fields of the hour_bank_detail model */ readonly fields: hour_bank_detailFieldRefs; } /** * The delegate class that acts as a "Promise-like" for hour_bank_detail. * 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_bank_detailClient 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_detail model */ export interface hour_bank_detailFieldRefs { readonly id: Prisma.FieldRef<"hour_bank_detail", 'Int'> readonly hour_id: Prisma.FieldRef<"hour_bank_detail", 'Int'> readonly staff_id: Prisma.FieldRef<"hour_bank_detail", 'BigInt'> readonly date_orig: Prisma.FieldRef<"hour_bank_detail", 'BigInt'> readonly used_time: Prisma.FieldRef<"hour_bank_detail", 'Int'> readonly ticket_id: Prisma.FieldRef<"hour_bank_detail", 'BigInt'> readonly working_order: Prisma.FieldRef<"hour_bank_detail", 'String'> readonly detail: Prisma.FieldRef<"hour_bank_detail", 'String'> } // Custom InputTypes /** * hour_bank_detail findUnique */ export type hour_bank_detailFindUniqueArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * Filter, which hour_bank_detail to fetch. */ where: Prisma.hour_bank_detailWhereUniqueInput } /** * hour_bank_detail findUniqueOrThrow */ export type hour_bank_detailFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * Filter, which hour_bank_detail to fetch. */ where: Prisma.hour_bank_detailWhereUniqueInput } /** * hour_bank_detail findFirst */ export type hour_bank_detailFindFirstArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * Filter, which hour_bank_detail to fetch. */ where?: Prisma.hour_bank_detailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hour_bank_details to fetch. */ orderBy?: Prisma.hour_bank_detailOrderByWithRelationInput | Prisma.hour_bank_detailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for hour_bank_details. */ cursor?: Prisma.hour_bank_detailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hour_bank_details 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_bank_details. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of hour_bank_details. */ distinct?: Prisma.Hour_bank_detailScalarFieldEnum | Prisma.Hour_bank_detailScalarFieldEnum[] } /** * hour_bank_detail findFirstOrThrow */ export type hour_bank_detailFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * Filter, which hour_bank_detail to fetch. */ where?: Prisma.hour_bank_detailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hour_bank_details to fetch. */ orderBy?: Prisma.hour_bank_detailOrderByWithRelationInput | Prisma.hour_bank_detailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for hour_bank_details. */ cursor?: Prisma.hour_bank_detailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hour_bank_details 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_bank_details. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of hour_bank_details. */ distinct?: Prisma.Hour_bank_detailScalarFieldEnum | Prisma.Hour_bank_detailScalarFieldEnum[] } /** * hour_bank_detail findMany */ export type hour_bank_detailFindManyArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * Filter, which hour_bank_details to fetch. */ where?: Prisma.hour_bank_detailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of hour_bank_details to fetch. */ orderBy?: Prisma.hour_bank_detailOrderByWithRelationInput | Prisma.hour_bank_detailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing hour_bank_details. */ cursor?: Prisma.hour_bank_detailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` hour_bank_details 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_bank_details. */ skip?: number distinct?: Prisma.Hour_bank_detailScalarFieldEnum | Prisma.Hour_bank_detailScalarFieldEnum[] } /** * hour_bank_detail create */ export type hour_bank_detailCreateArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * The data needed to create a hour_bank_detail. */ data: Prisma.XOR } /** * hour_bank_detail createMany */ export type hour_bank_detailCreateManyArgs = { /** * The data used to create many hour_bank_details. */ data: Prisma.hour_bank_detailCreateManyInput | Prisma.hour_bank_detailCreateManyInput[] skipDuplicates?: boolean } /** * hour_bank_detail update */ export type hour_bank_detailUpdateArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * The data needed to update a hour_bank_detail. */ data: Prisma.XOR /** * Choose, which hour_bank_detail to update. */ where: Prisma.hour_bank_detailWhereUniqueInput } /** * hour_bank_detail updateMany */ export type hour_bank_detailUpdateManyArgs = { /** * The data used to update hour_bank_details. */ data: Prisma.XOR /** * Filter which hour_bank_details to update */ where?: Prisma.hour_bank_detailWhereInput /** * Limit how many hour_bank_details to update. */ limit?: number } /** * hour_bank_detail upsert */ export type hour_bank_detailUpsertArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * The filter to search for the hour_bank_detail to update in case it exists. */ where: Prisma.hour_bank_detailWhereUniqueInput /** * In case the hour_bank_detail found by the `where` argument doesn't exist, create a new hour_bank_detail with this data. */ create: Prisma.XOR /** * In case the hour_bank_detail was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * hour_bank_detail delete */ export type hour_bank_detailDeleteArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null /** * Filter which hour_bank_detail to delete. */ where: Prisma.hour_bank_detailWhereUniqueInput } /** * hour_bank_detail deleteMany */ export type hour_bank_detailDeleteManyArgs = { /** * Filter which hour_bank_details to delete */ where?: Prisma.hour_bank_detailWhereInput /** * Limit how many hour_bank_details to delete. */ limit?: number } /** * hour_bank_detail without action */ export type hour_bank_detailDefaultArgs = { /** * Select specific fields to fetch from the hour_bank_detail */ select?: Prisma.hour_bank_detailSelect | null /** * Omit specific fields from the hour_bank_detail */ omit?: Prisma.hour_bank_detailOmit | null }