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