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

1369 lines
48 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 `expenses` 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 expenses
*
*/
export type expensesModel = runtime.Types.Result.DefaultSelection<Prisma.$expensesPayload>
export type AggregateExpenses = {
_count: ExpensesCountAggregateOutputType | null
_avg: ExpensesAvgAggregateOutputType | null
_sum: ExpensesSumAggregateOutputType | null
_min: ExpensesMinAggregateOutputType | null
_max: ExpensesMaxAggregateOutputType | null
}
export type ExpensesAvgAggregateOutputType = {
value: number | null
created_at: number | null
updated_at: number | null
}
export type ExpensesSumAggregateOutputType = {
value: number | null
created_at: bigint | null
updated_at: bigint | null
}
export type ExpensesMinAggregateOutputType = {
id: string | null
time_sheet_id: string | null
date: string | null
code: string | null
value: number | null
description: string | null
evidence_id: string | null
status: boolean | null
created_at: bigint | null
updated_at: bigint | null
supervisor_note: string | null
}
export type ExpensesMaxAggregateOutputType = {
id: string | null
time_sheet_id: string | null
date: string | null
code: string | null
value: number | null
description: string | null
evidence_id: string | null
status: boolean | null
created_at: bigint | null
updated_at: bigint | null
supervisor_note: string | null
}
export type ExpensesCountAggregateOutputType = {
id: number
time_sheet_id: number
date: number
code: number
value: number
description: number
evidence_id: number
status: number
created_at: number
updated_at: number
supervisor_note: number
_all: number
}
export type ExpensesAvgAggregateInputType = {
value?: true
created_at?: true
updated_at?: true
}
export type ExpensesSumAggregateInputType = {
value?: true
created_at?: true
updated_at?: true
}
export type ExpensesMinAggregateInputType = {
id?: true
time_sheet_id?: true
date?: true
code?: true
value?: true
description?: true
evidence_id?: true
status?: true
created_at?: true
updated_at?: true
supervisor_note?: true
}
export type ExpensesMaxAggregateInputType = {
id?: true
time_sheet_id?: true
date?: true
code?: true
value?: true
description?: true
evidence_id?: true
status?: true
created_at?: true
updated_at?: true
supervisor_note?: true
}
export type ExpensesCountAggregateInputType = {
id?: true
time_sheet_id?: true
date?: true
code?: true
value?: true
description?: true
evidence_id?: true
status?: true
created_at?: true
updated_at?: true
supervisor_note?: true
_all?: true
}
export type ExpensesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which expenses to aggregate.
*/
where?: Prisma.expensesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of expenses to fetch.
*/
orderBy?: Prisma.expensesOrderByWithRelationInput | Prisma.expensesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.expensesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` expenses 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` expenses.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned expenses
**/
_count?: true | ExpensesCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ExpensesAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ExpensesSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ExpensesMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ExpensesMaxAggregateInputType
}
export type GetExpensesAggregateType<T extends ExpensesAggregateArgs> = {
[P in keyof T & keyof AggregateExpenses]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateExpenses[P]>
: Prisma.GetScalarType<T[P], AggregateExpenses[P]>
}
export type expensesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.expensesWhereInput
orderBy?: Prisma.expensesOrderByWithAggregationInput | Prisma.expensesOrderByWithAggregationInput[]
by: Prisma.ExpensesScalarFieldEnum[] | Prisma.ExpensesScalarFieldEnum
having?: Prisma.expensesScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ExpensesCountAggregateInputType | true
_avg?: ExpensesAvgAggregateInputType
_sum?: ExpensesSumAggregateInputType
_min?: ExpensesMinAggregateInputType
_max?: ExpensesMaxAggregateInputType
}
export type ExpensesGroupByOutputType = {
id: string
time_sheet_id: string | null
date: string | null
code: string | null
value: number | null
description: string | null
evidence_id: string | null
status: boolean | null
created_at: bigint | null
updated_at: bigint | null
supervisor_note: string | null
_count: ExpensesCountAggregateOutputType | null
_avg: ExpensesAvgAggregateOutputType | null
_sum: ExpensesSumAggregateOutputType | null
_min: ExpensesMinAggregateOutputType | null
_max: ExpensesMaxAggregateOutputType | null
}
type GetExpensesGroupByPayload<T extends expensesGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ExpensesGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ExpensesGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ExpensesGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ExpensesGroupByOutputType[P]>
}
>
>
export type expensesWhereInput = {
AND?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[]
OR?: Prisma.expensesWhereInput[]
NOT?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[]
id?: Prisma.UuidFilter<"expenses"> | string
time_sheet_id?: Prisma.StringNullableFilter<"expenses"> | string | null
date?: Prisma.StringNullableFilter<"expenses"> | string | null
code?: Prisma.StringNullableFilter<"expenses"> | string | null
value?: Prisma.FloatNullableFilter<"expenses"> | number | null
description?: Prisma.StringNullableFilter<"expenses"> | string | null
evidence_id?: Prisma.StringNullableFilter<"expenses"> | string | null
status?: Prisma.BoolNullableFilter<"expenses"> | boolean | null
created_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null
updated_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null
supervisor_note?: Prisma.StringNullableFilter<"expenses"> | string | null
}
export type expensesOrderByWithRelationInput = {
id?: Prisma.SortOrder
time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder
date?: Prisma.SortOrderInput | Prisma.SortOrder
code?: Prisma.SortOrderInput | Prisma.SortOrder
value?: Prisma.SortOrderInput | Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
evidence_id?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder
}
export type expensesWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[]
OR?: Prisma.expensesWhereInput[]
NOT?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[]
time_sheet_id?: Prisma.StringNullableFilter<"expenses"> | string | null
date?: Prisma.StringNullableFilter<"expenses"> | string | null
code?: Prisma.StringNullableFilter<"expenses"> | string | null
value?: Prisma.FloatNullableFilter<"expenses"> | number | null
description?: Prisma.StringNullableFilter<"expenses"> | string | null
evidence_id?: Prisma.StringNullableFilter<"expenses"> | string | null
status?: Prisma.BoolNullableFilter<"expenses"> | boolean | null
created_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null
updated_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null
supervisor_note?: Prisma.StringNullableFilter<"expenses"> | string | null
}, "id">
export type expensesOrderByWithAggregationInput = {
id?: Prisma.SortOrder
time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder
date?: Prisma.SortOrderInput | Prisma.SortOrder
code?: Prisma.SortOrderInput | Prisma.SortOrder
value?: Prisma.SortOrderInput | Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
evidence_id?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrderInput | Prisma.SortOrder
updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.expensesCountOrderByAggregateInput
_avg?: Prisma.expensesAvgOrderByAggregateInput
_max?: Prisma.expensesMaxOrderByAggregateInput
_min?: Prisma.expensesMinOrderByAggregateInput
_sum?: Prisma.expensesSumOrderByAggregateInput
}
export type expensesScalarWhereWithAggregatesInput = {
AND?: Prisma.expensesScalarWhereWithAggregatesInput | Prisma.expensesScalarWhereWithAggregatesInput[]
OR?: Prisma.expensesScalarWhereWithAggregatesInput[]
NOT?: Prisma.expensesScalarWhereWithAggregatesInput | Prisma.expensesScalarWhereWithAggregatesInput[]
id?: Prisma.UuidWithAggregatesFilter<"expenses"> | string
time_sheet_id?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null
date?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null
code?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null
value?: Prisma.FloatNullableWithAggregatesFilter<"expenses"> | number | null
description?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null
evidence_id?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null
status?: Prisma.BoolNullableWithAggregatesFilter<"expenses"> | boolean | null
created_at?: Prisma.BigIntNullableWithAggregatesFilter<"expenses"> | bigint | number | null
updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"expenses"> | bigint | number | null
supervisor_note?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null
}
export type expensesCreateInput = {
id: string
time_sheet_id?: string | null
date?: string | null
code?: string | null
value?: number | null
description?: string | null
evidence_id?: string | null
status?: boolean | null
created_at?: bigint | number | null
updated_at?: bigint | number | null
supervisor_note?: string | null
}
export type expensesUncheckedCreateInput = {
id: string
time_sheet_id?: string | null
date?: string | null
code?: string | null
value?: number | null
description?: string | null
evidence_id?: string | null
status?: boolean | null
created_at?: bigint | number | null
updated_at?: bigint | number | null
supervisor_note?: string | null
}
export type expensesUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type expensesUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type expensesCreateManyInput = {
id: string
time_sheet_id?: string | null
date?: string | null
code?: string | null
value?: number | null
description?: string | null
evidence_id?: string | null
status?: boolean | null
created_at?: bigint | number | null
updated_at?: bigint | number | null
supervisor_note?: string | null
}
export type expensesUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type expensesUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type expensesCountOrderByAggregateInput = {
id?: Prisma.SortOrder
time_sheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
code?: Prisma.SortOrder
value?: Prisma.SortOrder
description?: Prisma.SortOrder
evidence_id?: Prisma.SortOrder
status?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
supervisor_note?: Prisma.SortOrder
}
export type expensesAvgOrderByAggregateInput = {
value?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type expensesMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
time_sheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
code?: Prisma.SortOrder
value?: Prisma.SortOrder
description?: Prisma.SortOrder
evidence_id?: Prisma.SortOrder
status?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
supervisor_note?: Prisma.SortOrder
}
export type expensesMinOrderByAggregateInput = {
id?: Prisma.SortOrder
time_sheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
code?: Prisma.SortOrder
value?: Prisma.SortOrder
description?: Prisma.SortOrder
evidence_id?: Prisma.SortOrder
status?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
supervisor_note?: Prisma.SortOrder
}
export type expensesSumOrderByAggregateInput = {
value?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
}
export type expensesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
time_sheet_id?: boolean
date?: boolean
code?: boolean
value?: boolean
description?: boolean
evidence_id?: boolean
status?: boolean
created_at?: boolean
updated_at?: boolean
supervisor_note?: boolean
}, ExtArgs["result"]["expenses"]>
export type expensesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
time_sheet_id?: boolean
date?: boolean
code?: boolean
value?: boolean
description?: boolean
evidence_id?: boolean
status?: boolean
created_at?: boolean
updated_at?: boolean
supervisor_note?: boolean
}, ExtArgs["result"]["expenses"]>
export type expensesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
time_sheet_id?: boolean
date?: boolean
code?: boolean
value?: boolean
description?: boolean
evidence_id?: boolean
status?: boolean
created_at?: boolean
updated_at?: boolean
supervisor_note?: boolean
}, ExtArgs["result"]["expenses"]>
export type expensesSelectScalar = {
id?: boolean
time_sheet_id?: boolean
date?: boolean
code?: boolean
value?: boolean
description?: boolean
evidence_id?: boolean
status?: boolean
created_at?: boolean
updated_at?: boolean
supervisor_note?: boolean
}
export type expensesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "time_sheet_id" | "date" | "code" | "value" | "description" | "evidence_id" | "status" | "created_at" | "updated_at" | "supervisor_note", ExtArgs["result"]["expenses"]>
export type $expensesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "expenses"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
time_sheet_id: string | null
date: string | null
code: string | null
value: number | null
description: string | null
evidence_id: string | null
status: boolean | null
created_at: bigint | null
updated_at: bigint | null
supervisor_note: string | null
}, ExtArgs["result"]["expenses"]>
composites: {}
}
export type expensesGetPayload<S extends boolean | null | undefined | expensesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$expensesPayload, S>
export type expensesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<expensesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ExpensesCountAggregateInputType | true
}
export interface expensesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['expenses'], meta: { name: 'expenses' } }
/**
* Find zero or one Expenses that matches the filter.
* @param {expensesFindUniqueArgs} args - Arguments to find a Expenses
* @example
* // Get one Expenses
* const expenses = await prisma.expenses.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends expensesFindUniqueArgs>(args: Prisma.SelectSubset<T, expensesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__expensesClient<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Expenses that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {expensesFindUniqueOrThrowArgs} args - Arguments to find a Expenses
* @example
* // Get one Expenses
* const expenses = await prisma.expenses.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends expensesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, expensesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__expensesClient<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Expenses 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 {expensesFindFirstArgs} args - Arguments to find a Expenses
* @example
* // Get one Expenses
* const expenses = await prisma.expenses.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends expensesFindFirstArgs>(args?: Prisma.SelectSubset<T, expensesFindFirstArgs<ExtArgs>>): Prisma.Prisma__expensesClient<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Expenses 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 {expensesFindFirstOrThrowArgs} args - Arguments to find a Expenses
* @example
* // Get one Expenses
* const expenses = await prisma.expenses.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends expensesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, expensesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__expensesClient<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Expenses 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 {expensesFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Expenses
* const expenses = await prisma.expenses.findMany()
*
* // Get first 10 Expenses
* const expenses = await prisma.expenses.findMany({ take: 10 })
*
* // Only select the `id`
* const expensesWithIdOnly = await prisma.expenses.findMany({ select: { id: true } })
*
*/
findMany<T extends expensesFindManyArgs>(args?: Prisma.SelectSubset<T, expensesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Expenses.
* @param {expensesCreateArgs} args - Arguments to create a Expenses.
* @example
* // Create one Expenses
* const Expenses = await prisma.expenses.create({
* data: {
* // ... data to create a Expenses
* }
* })
*
*/
create<T extends expensesCreateArgs>(args: Prisma.SelectSubset<T, expensesCreateArgs<ExtArgs>>): Prisma.Prisma__expensesClient<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Expenses.
* @param {expensesCreateManyArgs} args - Arguments to create many Expenses.
* @example
* // Create many Expenses
* const expenses = await prisma.expenses.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends expensesCreateManyArgs>(args?: Prisma.SelectSubset<T, expensesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Expenses and returns the data saved in the database.
* @param {expensesCreateManyAndReturnArgs} args - Arguments to create many Expenses.
* @example
* // Create many Expenses
* const expenses = await prisma.expenses.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Expenses and only return the `id`
* const expensesWithIdOnly = await prisma.expenses.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 expensesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, expensesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Expenses.
* @param {expensesDeleteArgs} args - Arguments to delete one Expenses.
* @example
* // Delete one Expenses
* const Expenses = await prisma.expenses.delete({
* where: {
* // ... filter to delete one Expenses
* }
* })
*
*/
delete<T extends expensesDeleteArgs>(args: Prisma.SelectSubset<T, expensesDeleteArgs<ExtArgs>>): Prisma.Prisma__expensesClient<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Expenses.
* @param {expensesUpdateArgs} args - Arguments to update one Expenses.
* @example
* // Update one Expenses
* const expenses = await prisma.expenses.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends expensesUpdateArgs>(args: Prisma.SelectSubset<T, expensesUpdateArgs<ExtArgs>>): Prisma.Prisma__expensesClient<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Expenses.
* @param {expensesDeleteManyArgs} args - Arguments to filter Expenses to delete.
* @example
* // Delete a few Expenses
* const { count } = await prisma.expenses.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends expensesDeleteManyArgs>(args?: Prisma.SelectSubset<T, expensesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Expenses.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {expensesUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Expenses
* const expenses = await prisma.expenses.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends expensesUpdateManyArgs>(args: Prisma.SelectSubset<T, expensesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Expenses and returns the data updated in the database.
* @param {expensesUpdateManyAndReturnArgs} args - Arguments to update many Expenses.
* @example
* // Update many Expenses
* const expenses = await prisma.expenses.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Expenses and only return the `id`
* const expensesWithIdOnly = await prisma.expenses.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 expensesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, expensesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Expenses.
* @param {expensesUpsertArgs} args - Arguments to update or create a Expenses.
* @example
* // Update or create a Expenses
* const expenses = await prisma.expenses.upsert({
* create: {
* // ... data to create a Expenses
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Expenses we want to update
* }
* })
*/
upsert<T extends expensesUpsertArgs>(args: Prisma.SelectSubset<T, expensesUpsertArgs<ExtArgs>>): Prisma.Prisma__expensesClient<runtime.Types.Result.GetResult<Prisma.$expensesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Expenses.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {expensesCountArgs} args - Arguments to filter Expenses to count.
* @example
* // Count the number of Expenses
* const count = await prisma.expenses.count({
* where: {
* // ... the filter for the Expenses we want to count
* }
* })
**/
count<T extends expensesCountArgs>(
args?: Prisma.Subset<T, expensesCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ExpensesCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Expenses.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ExpensesAggregateArgs} 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 ExpensesAggregateArgs>(args: Prisma.Subset<T, ExpensesAggregateArgs>): Prisma.PrismaPromise<GetExpensesAggregateType<T>>
/**
* Group by Expenses.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {expensesGroupByArgs} 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 expensesGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: expensesGroupByArgs['orderBy'] }
: { orderBy?: expensesGroupByArgs['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, expensesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetExpensesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the expenses model
*/
readonly fields: expensesFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for expenses.
* 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__expensesClient<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 expenses model
*/
export interface expensesFieldRefs {
readonly id: Prisma.FieldRef<"expenses", 'String'>
readonly time_sheet_id: Prisma.FieldRef<"expenses", 'String'>
readonly date: Prisma.FieldRef<"expenses", 'String'>
readonly code: Prisma.FieldRef<"expenses", 'String'>
readonly value: Prisma.FieldRef<"expenses", 'Float'>
readonly description: Prisma.FieldRef<"expenses", 'String'>
readonly evidence_id: Prisma.FieldRef<"expenses", 'String'>
readonly status: Prisma.FieldRef<"expenses", 'Boolean'>
readonly created_at: Prisma.FieldRef<"expenses", 'BigInt'>
readonly updated_at: Prisma.FieldRef<"expenses", 'BigInt'>
readonly supervisor_note: Prisma.FieldRef<"expenses", 'String'>
}
// Custom InputTypes
/**
* expenses findUnique
*/
export type expensesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* Filter, which expenses to fetch.
*/
where: Prisma.expensesWhereUniqueInput
}
/**
* expenses findUniqueOrThrow
*/
export type expensesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* Filter, which expenses to fetch.
*/
where: Prisma.expensesWhereUniqueInput
}
/**
* expenses findFirst
*/
export type expensesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* Filter, which expenses to fetch.
*/
where?: Prisma.expensesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of expenses to fetch.
*/
orderBy?: Prisma.expensesOrderByWithRelationInput | Prisma.expensesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for expenses.
*/
cursor?: Prisma.expensesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` expenses 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` expenses.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of expenses.
*/
distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[]
}
/**
* expenses findFirstOrThrow
*/
export type expensesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* Filter, which expenses to fetch.
*/
where?: Prisma.expensesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of expenses to fetch.
*/
orderBy?: Prisma.expensesOrderByWithRelationInput | Prisma.expensesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for expenses.
*/
cursor?: Prisma.expensesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` expenses 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` expenses.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of expenses.
*/
distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[]
}
/**
* expenses findMany
*/
export type expensesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* Filter, which expenses to fetch.
*/
where?: Prisma.expensesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of expenses to fetch.
*/
orderBy?: Prisma.expensesOrderByWithRelationInput | Prisma.expensesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing expenses.
*/
cursor?: Prisma.expensesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` expenses 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` expenses.
*/
skip?: number
distinct?: Prisma.ExpensesScalarFieldEnum | Prisma.ExpensesScalarFieldEnum[]
}
/**
* expenses create
*/
export type expensesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* The data needed to create a expenses.
*/
data: Prisma.XOR<Prisma.expensesCreateInput, Prisma.expensesUncheckedCreateInput>
}
/**
* expenses createMany
*/
export type expensesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many expenses.
*/
data: Prisma.expensesCreateManyInput | Prisma.expensesCreateManyInput[]
skipDuplicates?: boolean
}
/**
* expenses createManyAndReturn
*/
export type expensesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* The data used to create many expenses.
*/
data: Prisma.expensesCreateManyInput | Prisma.expensesCreateManyInput[]
skipDuplicates?: boolean
}
/**
* expenses update
*/
export type expensesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* The data needed to update a expenses.
*/
data: Prisma.XOR<Prisma.expensesUpdateInput, Prisma.expensesUncheckedUpdateInput>
/**
* Choose, which expenses to update.
*/
where: Prisma.expensesWhereUniqueInput
}
/**
* expenses updateMany
*/
export type expensesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update expenses.
*/
data: Prisma.XOR<Prisma.expensesUpdateManyMutationInput, Prisma.expensesUncheckedUpdateManyInput>
/**
* Filter which expenses to update
*/
where?: Prisma.expensesWhereInput
/**
* Limit how many expenses to update.
*/
limit?: number
}
/**
* expenses updateManyAndReturn
*/
export type expensesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* The data used to update expenses.
*/
data: Prisma.XOR<Prisma.expensesUpdateManyMutationInput, Prisma.expensesUncheckedUpdateManyInput>
/**
* Filter which expenses to update
*/
where?: Prisma.expensesWhereInput
/**
* Limit how many expenses to update.
*/
limit?: number
}
/**
* expenses upsert
*/
export type expensesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* The filter to search for the expenses to update in case it exists.
*/
where: Prisma.expensesWhereUniqueInput
/**
* In case the expenses found by the `where` argument doesn't exist, create a new expenses with this data.
*/
create: Prisma.XOR<Prisma.expensesCreateInput, Prisma.expensesUncheckedCreateInput>
/**
* In case the expenses was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.expensesUpdateInput, Prisma.expensesUncheckedUpdateInput>
}
/**
* expenses delete
*/
export type expensesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
/**
* Filter which expenses to delete.
*/
where: Prisma.expensesWhereUniqueInput
}
/**
* expenses deleteMany
*/
export type expensesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which expenses to delete
*/
where?: Prisma.expensesWhereInput
/**
* Limit how many expenses to delete.
*/
limit?: number
}
/**
* expenses without action
*/
export type expensesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the expenses
*/
select?: Prisma.expensesSelect<ExtArgs> | null
/**
* Omit specific fields from the expenses
*/
omit?: Prisma.expensesOmit<ExtArgs> | null
}