targo-backend/prisma/generated/legacy/models/mileage_bank.ts

1167 lines
41 KiB
TypeScript

/* !!! 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<Prisma.$mileage_bankPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends Mileage_bankAggregateArgs> = {
[P in keyof T & keyof AggregateMileage_bank]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateMileage_bank[P]>
: Prisma.GetScalarType<T[P], AggregateMileage_bank[P]>
}
export type mileage_bankGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends mileage_bankGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Mileage_bankGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Mileage_bankGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Mileage_bankGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Mileage_bankGroupByOutputType[P]>
}
>
>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
employee_id?: boolean
mileage?: boolean
year?: boolean
}, ExtArgs["result"]["mileage_bank"]>
export type mileage_bankSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
employee_id?: boolean
mileage?: boolean
year?: boolean
}, ExtArgs["result"]["mileage_bank"]>
export type mileage_bankSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "employee_id" | "mileage" | "year", ExtArgs["result"]["mileage_bank"]>
export type $mileage_bankPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<S extends boolean | null | undefined | mileage_bankDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload, S>
export type mileage_bankCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<mileage_bankFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Mileage_bankCountAggregateInputType | true
}
export interface mileage_bankDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends mileage_bankFindUniqueArgs>(args: Prisma.SelectSubset<T, mileage_bankFindUniqueArgs<ExtArgs>>): Prisma.Prisma__mileage_bankClient<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, mileage_bankFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__mileage_bankClient<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankFindFirstArgs>(args?: Prisma.SelectSubset<T, mileage_bankFindFirstArgs<ExtArgs>>): Prisma.Prisma__mileage_bankClient<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, mileage_bankFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__mileage_bankClient<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankFindManyArgs>(args?: Prisma.SelectSubset<T, mileage_bankFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankCreateArgs>(args: Prisma.SelectSubset<T, mileage_bankCreateArgs<ExtArgs>>): Prisma.Prisma__mileage_bankClient<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankCreateManyArgs>(args?: Prisma.SelectSubset<T, mileage_bankCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends mileage_bankCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, mileage_bankCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankDeleteArgs>(args: Prisma.SelectSubset<T, mileage_bankDeleteArgs<ExtArgs>>): Prisma.Prisma__mileage_bankClient<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankUpdateArgs>(args: Prisma.SelectSubset<T, mileage_bankUpdateArgs<ExtArgs>>): Prisma.Prisma__mileage_bankClient<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankDeleteManyArgs>(args?: Prisma.SelectSubset<T, mileage_bankDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends mileage_bankUpdateManyArgs>(args: Prisma.SelectSubset<T, mileage_bankUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends mileage_bankUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, mileage_bankUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankUpsertArgs>(args: Prisma.SelectSubset<T, mileage_bankUpsertArgs<ExtArgs>>): Prisma.Prisma__mileage_bankClient<runtime.Types.Result.GetResult<Prisma.$mileage_bankPayload<ExtArgs>, 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<T extends mileage_bankCountArgs>(
args?: Prisma.Subset<T, mileage_bankCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Mileage_bankCountAggregateOutputType>
: 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<T extends Mileage_bankAggregateArgs>(args: Prisma.Subset<T, Mileage_bankAggregateArgs>): Prisma.PrismaPromise<GetMileage_bankAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: mileage_bankGroupByArgs['orderBy'] }
: { orderBy?: mileage_bankGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T>
? 'orderBy' extends Prisma.Keys<T>
? 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<T, mileage_bankGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMileage_bankGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* 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<T>
}
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | null
/**
* Filter, which mileage_bank to fetch.
*/
where: Prisma.mileage_bankWhereUniqueInput
}
/**
* mileage_bank findUniqueOrThrow
*/
export type mileage_bankFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | null
/**
* Filter, which mileage_bank to fetch.
*/
where: Prisma.mileage_bankWhereUniqueInput
}
/**
* mileage_bank findFirst
*/
export type mileage_bankFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | null
/**
* The data needed to create a mileage_bank.
*/
data: Prisma.XOR<Prisma.mileage_bankCreateInput, Prisma.mileage_bankUncheckedCreateInput>
}
/**
* mileage_bank createMany
*/
export type mileage_bankCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many mileage_banks.
*/
data: Prisma.mileage_bankCreateManyInput | Prisma.mileage_bankCreateManyInput[]
skipDuplicates?: boolean
}
/**
* mileage_bank createManyAndReturn
*/
export type mileage_bankCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | null
/**
* The data needed to update a mileage_bank.
*/
data: Prisma.XOR<Prisma.mileage_bankUpdateInput, Prisma.mileage_bankUncheckedUpdateInput>
/**
* Choose, which mileage_bank to update.
*/
where: Prisma.mileage_bankWhereUniqueInput
}
/**
* mileage_bank updateMany
*/
export type mileage_bankUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update mileage_banks.
*/
data: Prisma.XOR<Prisma.mileage_bankUpdateManyMutationInput, Prisma.mileage_bankUncheckedUpdateManyInput>
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | null
/**
* The data used to update mileage_banks.
*/
data: Prisma.XOR<Prisma.mileage_bankUpdateManyMutationInput, Prisma.mileage_bankUncheckedUpdateManyInput>
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | 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<Prisma.mileage_bankCreateInput, Prisma.mileage_bankUncheckedCreateInput>
/**
* In case the mileage_bank was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.mileage_bankUpdateInput, Prisma.mileage_bankUncheckedUpdateInput>
}
/**
* mileage_bank delete
*/
export type mileage_bankDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | null
/**
* Filter which mileage_bank to delete.
*/
where: Prisma.mileage_bankWhereUniqueInput
}
/**
* mileage_bank deleteMany
*/
export type mileage_bankDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the mileage_bank
*/
select?: Prisma.mileage_bankSelect<ExtArgs> | null
/**
* Omit specific fields from the mileage_bank
*/
omit?: Prisma.mileage_bankOmit<ExtArgs> | null
}