/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `mileage_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 mileage_bank * */ export type mileage_bankModel = runtime.Types.Result.DefaultSelection export type AggregateMileage_bank = { _count: Mileage_bankCountAggregateOutputType | null _avg: Mileage_bankAvgAggregateOutputType | null _sum: Mileage_bankSumAggregateOutputType | null _min: Mileage_bankMinAggregateOutputType | null _max: Mileage_bankMaxAggregateOutputType | null } export type Mileage_bankAvgAggregateOutputType = { mileage: number | null year: number | null } export type Mileage_bankSumAggregateOutputType = { mileage: number | null year: number | null } export type Mileage_bankMinAggregateOutputType = { id: string | null employee_id: string | null mileage: number | null year: number | null } export type Mileage_bankMaxAggregateOutputType = { id: string | null employee_id: string | null mileage: number | null year: number | null } export type Mileage_bankCountAggregateOutputType = { id: number employee_id: number mileage: number year: number _all: number } export type Mileage_bankAvgAggregateInputType = { mileage?: true year?: true } export type Mileage_bankSumAggregateInputType = { mileage?: true year?: true } export type Mileage_bankMinAggregateInputType = { id?: true employee_id?: true mileage?: true year?: true } export type Mileage_bankMaxAggregateInputType = { id?: true employee_id?: true mileage?: true year?: true } export type Mileage_bankCountAggregateInputType = { id?: true employee_id?: true mileage?: true year?: true _all?: true } export type Mileage_bankAggregateArgs = { /** * Filter which mileage_bank to aggregate. */ where?: Prisma.mileage_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of mileage_banks to fetch. */ orderBy?: Prisma.mileage_bankOrderByWithRelationInput | Prisma.mileage_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.mileage_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` mileage_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` mileage_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned mileage_banks **/ _count?: true | Mileage_bankCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Mileage_bankAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Mileage_bankSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Mileage_bankMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Mileage_bankMaxAggregateInputType } export type GetMileage_bankAggregateType = { [P in keyof T & keyof AggregateMileage_bank]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type mileage_bankGroupByArgs = { where?: Prisma.mileage_bankWhereInput orderBy?: Prisma.mileage_bankOrderByWithAggregationInput | Prisma.mileage_bankOrderByWithAggregationInput[] by: Prisma.Mileage_bankScalarFieldEnum[] | Prisma.Mileage_bankScalarFieldEnum having?: Prisma.mileage_bankScalarWhereWithAggregatesInput take?: number skip?: number _count?: Mileage_bankCountAggregateInputType | true _avg?: Mileage_bankAvgAggregateInputType _sum?: Mileage_bankSumAggregateInputType _min?: Mileage_bankMinAggregateInputType _max?: Mileage_bankMaxAggregateInputType } export type Mileage_bankGroupByOutputType = { id: string employee_id: string | null mileage: number | null year: number | null _count: Mileage_bankCountAggregateOutputType | null _avg: Mileage_bankAvgAggregateOutputType | null _sum: Mileage_bankSumAggregateOutputType | null _min: Mileage_bankMinAggregateOutputType | null _max: Mileage_bankMaxAggregateOutputType | null } type GetMileage_bankGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Mileage_bankGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type mileage_bankWhereInput = { AND?: Prisma.mileage_bankWhereInput | Prisma.mileage_bankWhereInput[] OR?: Prisma.mileage_bankWhereInput[] NOT?: Prisma.mileage_bankWhereInput | Prisma.mileage_bankWhereInput[] id?: Prisma.UuidFilter<"mileage_bank"> | string employee_id?: Prisma.StringNullableFilter<"mileage_bank"> | string | null mileage?: Prisma.IntNullableFilter<"mileage_bank"> | number | null year?: Prisma.IntNullableFilter<"mileage_bank"> | number | null } export type mileage_bankOrderByWithRelationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrderInput | Prisma.SortOrder mileage?: Prisma.SortOrderInput | Prisma.SortOrder year?: Prisma.SortOrderInput | Prisma.SortOrder } export type mileage_bankWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.mileage_bankWhereInput | Prisma.mileage_bankWhereInput[] OR?: Prisma.mileage_bankWhereInput[] NOT?: Prisma.mileage_bankWhereInput | Prisma.mileage_bankWhereInput[] employee_id?: Prisma.StringNullableFilter<"mileage_bank"> | string | null mileage?: Prisma.IntNullableFilter<"mileage_bank"> | number | null year?: Prisma.IntNullableFilter<"mileage_bank"> | number | null }, "id"> export type mileage_bankOrderByWithAggregationInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrderInput | Prisma.SortOrder mileage?: Prisma.SortOrderInput | Prisma.SortOrder year?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.mileage_bankCountOrderByAggregateInput _avg?: Prisma.mileage_bankAvgOrderByAggregateInput _max?: Prisma.mileage_bankMaxOrderByAggregateInput _min?: Prisma.mileage_bankMinOrderByAggregateInput _sum?: Prisma.mileage_bankSumOrderByAggregateInput } export type mileage_bankScalarWhereWithAggregatesInput = { AND?: Prisma.mileage_bankScalarWhereWithAggregatesInput | Prisma.mileage_bankScalarWhereWithAggregatesInput[] OR?: Prisma.mileage_bankScalarWhereWithAggregatesInput[] NOT?: Prisma.mileage_bankScalarWhereWithAggregatesInput | Prisma.mileage_bankScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"mileage_bank"> | string employee_id?: Prisma.StringNullableWithAggregatesFilter<"mileage_bank"> | string | null mileage?: Prisma.IntNullableWithAggregatesFilter<"mileage_bank"> | number | null year?: Prisma.IntNullableWithAggregatesFilter<"mileage_bank"> | number | null } export type mileage_bankCreateInput = { id: string employee_id?: string | null mileage?: number | null year?: number | null } export type mileage_bankUncheckedCreateInput = { id: string employee_id?: string | null mileage?: number | null year?: number | null } export type mileage_bankUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mileage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null } export type mileage_bankUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mileage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null } export type mileage_bankCreateManyInput = { id: string employee_id?: string | null mileage?: number | null year?: number | null } export type mileage_bankUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mileage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null } export type mileage_bankUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string employee_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mileage?: Prisma.NullableIntFieldUpdateOperationsInput | number | null year?: Prisma.NullableIntFieldUpdateOperationsInput | number | null } export type mileage_bankCountOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder mileage?: Prisma.SortOrder year?: Prisma.SortOrder } export type mileage_bankAvgOrderByAggregateInput = { mileage?: Prisma.SortOrder year?: Prisma.SortOrder } export type mileage_bankMaxOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder mileage?: Prisma.SortOrder year?: Prisma.SortOrder } export type mileage_bankMinOrderByAggregateInput = { id?: Prisma.SortOrder employee_id?: Prisma.SortOrder mileage?: Prisma.SortOrder year?: Prisma.SortOrder } export type mileage_bankSumOrderByAggregateInput = { mileage?: Prisma.SortOrder year?: Prisma.SortOrder } export type mileage_bankSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean mileage?: boolean year?: boolean }, ExtArgs["result"]["mileage_bank"]> export type mileage_bankSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean mileage?: boolean year?: boolean }, ExtArgs["result"]["mileage_bank"]> export type mileage_bankSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean employee_id?: boolean mileage?: boolean year?: boolean }, ExtArgs["result"]["mileage_bank"]> export type mileage_bankSelectScalar = { id?: boolean employee_id?: boolean mileage?: boolean year?: boolean } export type mileage_bankOmit = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "mileage" | "year", ExtArgs["result"]["mileage_bank"]> export type $mileage_bankPayload = { name: "mileage_bank" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string employee_id: string | null mileage: number | null year: number | null }, ExtArgs["result"]["mileage_bank"]> composites: {} } export type mileage_bankGetPayload = runtime.Types.Result.GetResult export type mileage_bankCountArgs = Omit & { select?: Mileage_bankCountAggregateInputType | true } export interface mileage_bankDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['mileage_bank'], meta: { name: 'mileage_bank' } } /** * Find zero or one Mileage_bank that matches the filter. * @param {mileage_bankFindUniqueArgs} args - Arguments to find a Mileage_bank * @example * // Get one Mileage_bank * const mileage_bank = await prisma.mileage_bank.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Mileage_bank that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {mileage_bankFindUniqueOrThrowArgs} args - Arguments to find a Mileage_bank * @example * // Get one Mileage_bank * const mileage_bank = await prisma.mileage_bank.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Mileage_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 {mileage_bankFindFirstArgs} args - Arguments to find a Mileage_bank * @example * // Get one Mileage_bank * const mileage_bank = await prisma.mileage_bank.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Mileage_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 {mileage_bankFindFirstOrThrowArgs} args - Arguments to find a Mileage_bank * @example * // Get one Mileage_bank * const mileage_bank = await prisma.mileage_bank.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Mileage_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 {mileage_bankFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Mileage_banks * const mileage_banks = await prisma.mileage_bank.findMany() * * // Get first 10 Mileage_banks * const mileage_banks = await prisma.mileage_bank.findMany({ take: 10 }) * * // Only select the `id` * const mileage_bankWithIdOnly = await prisma.mileage_bank.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Mileage_bank. * @param {mileage_bankCreateArgs} args - Arguments to create a Mileage_bank. * @example * // Create one Mileage_bank * const Mileage_bank = await prisma.mileage_bank.create({ * data: { * // ... data to create a Mileage_bank * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Mileage_banks. * @param {mileage_bankCreateManyArgs} args - Arguments to create many Mileage_banks. * @example * // Create many Mileage_banks * const mileage_bank = await prisma.mileage_bank.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Mileage_banks and returns the data saved in the database. * @param {mileage_bankCreateManyAndReturnArgs} args - Arguments to create many Mileage_banks. * @example * // Create many Mileage_banks * const mileage_bank = await prisma.mileage_bank.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Mileage_banks and only return the `id` * const mileage_bankWithIdOnly = await prisma.mileage_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 Mileage_bank. * @param {mileage_bankDeleteArgs} args - Arguments to delete one Mileage_bank. * @example * // Delete one Mileage_bank * const Mileage_bank = await prisma.mileage_bank.delete({ * where: { * // ... filter to delete one Mileage_bank * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Mileage_bank. * @param {mileage_bankUpdateArgs} args - Arguments to update one Mileage_bank. * @example * // Update one Mileage_bank * const mileage_bank = await prisma.mileage_bank.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Mileage_banks. * @param {mileage_bankDeleteManyArgs} args - Arguments to filter Mileage_banks to delete. * @example * // Delete a few Mileage_banks * const { count } = await prisma.mileage_bank.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Mileage_banks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {mileage_bankUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Mileage_banks * const mileage_bank = await prisma.mileage_bank.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Mileage_banks and returns the data updated in the database. * @param {mileage_bankUpdateManyAndReturnArgs} args - Arguments to update many Mileage_banks. * @example * // Update many Mileage_banks * const mileage_bank = await prisma.mileage_bank.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Mileage_banks and only return the `id` * const mileage_bankWithIdOnly = await prisma.mileage_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 Mileage_bank. * @param {mileage_bankUpsertArgs} args - Arguments to update or create a Mileage_bank. * @example * // Update or create a Mileage_bank * const mileage_bank = await prisma.mileage_bank.upsert({ * create: { * // ... data to create a Mileage_bank * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Mileage_bank we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__mileage_bankClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Mileage_banks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {mileage_bankCountArgs} args - Arguments to filter Mileage_banks to count. * @example * // Count the number of Mileage_banks * const count = await prisma.mileage_bank.count({ * where: { * // ... the filter for the Mileage_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 Mileage_bank. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Mileage_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 Mileage_bank. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {mileage_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 mileage_bankGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: mileage_bankGroupByArgs['orderBy'] } : { orderBy?: mileage_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 ? GetMileage_bankGroupByPayload : Prisma.PrismaPromise /** * Fields of the mileage_bank model */ readonly fields: mileage_bankFieldRefs; } /** * The delegate class that acts as a "Promise-like" for mileage_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__mileage_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 mileage_bank model */ export interface mileage_bankFieldRefs { readonly id: Prisma.FieldRef<"mileage_bank", 'String'> readonly employee_id: Prisma.FieldRef<"mileage_bank", 'String'> readonly mileage: Prisma.FieldRef<"mileage_bank", 'Int'> readonly year: Prisma.FieldRef<"mileage_bank", 'Int'> } // Custom InputTypes /** * mileage_bank findUnique */ export type mileage_bankFindUniqueArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * Filter, which mileage_bank to fetch. */ where: Prisma.mileage_bankWhereUniqueInput } /** * mileage_bank findUniqueOrThrow */ export type mileage_bankFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * Filter, which mileage_bank to fetch. */ where: Prisma.mileage_bankWhereUniqueInput } /** * mileage_bank findFirst */ export type mileage_bankFindFirstArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * Filter, which mileage_bank to fetch. */ where?: Prisma.mileage_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of mileage_banks to fetch. */ orderBy?: Prisma.mileage_bankOrderByWithRelationInput | Prisma.mileage_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for mileage_banks. */ cursor?: Prisma.mileage_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` mileage_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` mileage_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of mileage_banks. */ distinct?: Prisma.Mileage_bankScalarFieldEnum | Prisma.Mileage_bankScalarFieldEnum[] } /** * mileage_bank findFirstOrThrow */ export type mileage_bankFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * Filter, which mileage_bank to fetch. */ where?: Prisma.mileage_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of mileage_banks to fetch. */ orderBy?: Prisma.mileage_bankOrderByWithRelationInput | Prisma.mileage_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for mileage_banks. */ cursor?: Prisma.mileage_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` mileage_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` mileage_banks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of mileage_banks. */ distinct?: Prisma.Mileage_bankScalarFieldEnum | Prisma.Mileage_bankScalarFieldEnum[] } /** * mileage_bank findMany */ export type mileage_bankFindManyArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * Filter, which mileage_banks to fetch. */ where?: Prisma.mileage_bankWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of mileage_banks to fetch. */ orderBy?: Prisma.mileage_bankOrderByWithRelationInput | Prisma.mileage_bankOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing mileage_banks. */ cursor?: Prisma.mileage_bankWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` mileage_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` mileage_banks. */ skip?: number distinct?: Prisma.Mileage_bankScalarFieldEnum | Prisma.Mileage_bankScalarFieldEnum[] } /** * mileage_bank create */ export type mileage_bankCreateArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * The data needed to create a mileage_bank. */ data: Prisma.XOR } /** * mileage_bank createMany */ export type mileage_bankCreateManyArgs = { /** * The data used to create many mileage_banks. */ data: Prisma.mileage_bankCreateManyInput | Prisma.mileage_bankCreateManyInput[] skipDuplicates?: boolean } /** * mileage_bank createManyAndReturn */ export type mileage_bankCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelectCreateManyAndReturn | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * The data used to create many mileage_banks. */ data: Prisma.mileage_bankCreateManyInput | Prisma.mileage_bankCreateManyInput[] skipDuplicates?: boolean } /** * mileage_bank update */ export type mileage_bankUpdateArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * The data needed to update a mileage_bank. */ data: Prisma.XOR /** * Choose, which mileage_bank to update. */ where: Prisma.mileage_bankWhereUniqueInput } /** * mileage_bank updateMany */ export type mileage_bankUpdateManyArgs = { /** * The data used to update mileage_banks. */ data: Prisma.XOR /** * Filter which mileage_banks to update */ where?: Prisma.mileage_bankWhereInput /** * Limit how many mileage_banks to update. */ limit?: number } /** * mileage_bank updateManyAndReturn */ export type mileage_bankUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelectUpdateManyAndReturn | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * The data used to update mileage_banks. */ data: Prisma.XOR /** * Filter which mileage_banks to update */ where?: Prisma.mileage_bankWhereInput /** * Limit how many mileage_banks to update. */ limit?: number } /** * mileage_bank upsert */ export type mileage_bankUpsertArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * The filter to search for the mileage_bank to update in case it exists. */ where: Prisma.mileage_bankWhereUniqueInput /** * In case the mileage_bank found by the `where` argument doesn't exist, create a new mileage_bank with this data. */ create: Prisma.XOR /** * In case the mileage_bank was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * mileage_bank delete */ export type mileage_bankDeleteArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null /** * Filter which mileage_bank to delete. */ where: Prisma.mileage_bankWhereUniqueInput } /** * mileage_bank deleteMany */ export type mileage_bankDeleteManyArgs = { /** * Filter which mileage_banks to delete */ where?: Prisma.mileage_bankWhereInput /** * Limit how many mileage_banks to delete. */ limit?: number } /** * mileage_bank without action */ export type mileage_bankDefaultArgs = { /** * Select specific fields to fetch from the mileage_bank */ select?: Prisma.mileage_bankSelect | null /** * Omit specific fields from the mileage_bank */ omit?: Prisma.mileage_bankOmit | null }