targo-backend/prisma/generated/postgres/models/Expenses.ts

2071 lines
87 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 = {
id: number | null
timesheet_id: number | null
amount: runtime.Decimal | null
bank_code_id: number | null
attachment: number | null
mileage: runtime.Decimal | null
}
export type ExpensesSumAggregateOutputType = {
id: number | null
timesheet_id: number | null
amount: runtime.Decimal | null
bank_code_id: number | null
attachment: number | null
mileage: runtime.Decimal | null
}
export type ExpensesMinAggregateOutputType = {
id: number | null
timesheet_id: number | null
date: Date | null
amount: runtime.Decimal | null
is_approved: boolean | null
supervisor_comment: string | null
bank_code_id: number | null
comment: string | null
attachment: number | null
mileage: runtime.Decimal | null
}
export type ExpensesMaxAggregateOutputType = {
id: number | null
timesheet_id: number | null
date: Date | null
amount: runtime.Decimal | null
is_approved: boolean | null
supervisor_comment: string | null
bank_code_id: number | null
comment: string | null
attachment: number | null
mileage: runtime.Decimal | null
}
export type ExpensesCountAggregateOutputType = {
id: number
timesheet_id: number
date: number
amount: number
is_approved: number
supervisor_comment: number
bank_code_id: number
comment: number
attachment: number
mileage: number
_all: number
}
export type ExpensesAvgAggregateInputType = {
id?: true
timesheet_id?: true
amount?: true
bank_code_id?: true
attachment?: true
mileage?: true
}
export type ExpensesSumAggregateInputType = {
id?: true
timesheet_id?: true
amount?: true
bank_code_id?: true
attachment?: true
mileage?: true
}
export type ExpensesMinAggregateInputType = {
id?: true
timesheet_id?: true
date?: true
amount?: true
is_approved?: true
supervisor_comment?: true
bank_code_id?: true
comment?: true
attachment?: true
mileage?: true
}
export type ExpensesMaxAggregateInputType = {
id?: true
timesheet_id?: true
date?: true
amount?: true
is_approved?: true
supervisor_comment?: true
bank_code_id?: true
comment?: true
attachment?: true
mileage?: true
}
export type ExpensesCountAggregateInputType = {
id?: true
timesheet_id?: true
date?: true
amount?: true
is_approved?: true
supervisor_comment?: true
bank_code_id?: true
comment?: true
attachment?: true
mileage?: 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: number
timesheet_id: number
date: Date
amount: runtime.Decimal | null
is_approved: boolean
supervisor_comment: string | null
bank_code_id: number
comment: string
attachment: number | null
mileage: runtime.Decimal | 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.IntFilter<"Expenses"> | number
timesheet_id?: Prisma.IntFilter<"Expenses"> | number
date?: Prisma.DateTimeFilter<"Expenses"> | Date | string
amount?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFilter<"Expenses"> | boolean
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
comment?: Prisma.StringFilter<"Expenses"> | string
attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.XOR<Prisma.AttachmentsNullableScalarRelationFilter, Prisma.AttachmentsWhereInput> | null
bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
archive?: Prisma.ExpensesArchiveListRelationFilter
}
export type ExpensesOrderByWithRelationInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
amount?: Prisma.SortOrderInput | Prisma.SortOrder
is_approved?: Prisma.SortOrder
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrder
attachment?: Prisma.SortOrderInput | Prisma.SortOrder
mileage?: Prisma.SortOrderInput | Prisma.SortOrder
attachment_record?: Prisma.AttachmentsOrderByWithRelationInput
bank_code?: Prisma.BankCodesOrderByWithRelationInput
timesheet?: Prisma.TimesheetsOrderByWithRelationInput
archive?: Prisma.ExpensesArchiveOrderByRelationAggregateInput
}
export type ExpensesWhereUniqueInput = Prisma.AtLeast<{
id?: number
unique_ts_id_date_amount_mileage?: Prisma.ExpensesUnique_ts_id_date_amount_mileageCompoundUniqueInput
AND?: Prisma.ExpensesWhereInput | Prisma.ExpensesWhereInput[]
OR?: Prisma.ExpensesWhereInput[]
NOT?: Prisma.ExpensesWhereInput | Prisma.ExpensesWhereInput[]
timesheet_id?: Prisma.IntFilter<"Expenses"> | number
date?: Prisma.DateTimeFilter<"Expenses"> | Date | string
amount?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFilter<"Expenses"> | boolean
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
comment?: Prisma.StringFilter<"Expenses"> | string
attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.XOR<Prisma.AttachmentsNullableScalarRelationFilter, Prisma.AttachmentsWhereInput> | null
bank_code?: Prisma.XOR<Prisma.BankCodesScalarRelationFilter, Prisma.BankCodesWhereInput>
timesheet?: Prisma.XOR<Prisma.TimesheetsScalarRelationFilter, Prisma.TimesheetsWhereInput>
archive?: Prisma.ExpensesArchiveListRelationFilter
}, "id" | "unique_ts_id_date_amount_mileage">
export type ExpensesOrderByWithAggregationInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
amount?: Prisma.SortOrderInput | Prisma.SortOrder
is_approved?: Prisma.SortOrder
supervisor_comment?: Prisma.SortOrderInput | Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrder
attachment?: Prisma.SortOrderInput | Prisma.SortOrder
mileage?: 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.IntWithAggregatesFilter<"Expenses"> | number
timesheet_id?: Prisma.IntWithAggregatesFilter<"Expenses"> | number
date?: Prisma.DateTimeWithAggregatesFilter<"Expenses"> | Date | string
amount?: Prisma.DecimalNullableWithAggregatesFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolWithAggregatesFilter<"Expenses"> | boolean
supervisor_comment?: Prisma.StringNullableWithAggregatesFilter<"Expenses"> | string | null
bank_code_id?: Prisma.IntWithAggregatesFilter<"Expenses"> | number
comment?: Prisma.StringWithAggregatesFilter<"Expenses"> | string
attachment?: Prisma.IntNullableWithAggregatesFilter<"Expenses"> | number | null
mileage?: Prisma.DecimalNullableWithAggregatesFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesCreateInput = {
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
comment: string
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
}
export type ExpensesUncheckedCreateInput = {
id?: number
timesheet_id: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
bank_code_id: number
comment: string
attachment?: number | null
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
}
export type ExpensesUpdateInput = {
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.StringFieldUpdateOperationsInput | string
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
}
export type ExpensesUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.StringFieldUpdateOperationsInput | string
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
}
export type ExpensesCreateManyInput = {
id?: number
timesheet_id: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
bank_code_id: number
comment: string
attachment?: number | null
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesUpdateManyMutationInput = {
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.StringFieldUpdateOperationsInput | string
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.StringFieldUpdateOperationsInput | string
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesListRelationFilter = {
every?: Prisma.ExpensesWhereInput
some?: Prisma.ExpensesWhereInput
none?: Prisma.ExpensesWhereInput
}
export type ExpensesOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type ExpensesUnique_ts_id_date_amount_mileageCompoundUniqueInput = {
timesheet_id: number
date: Date | string
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
mileage: runtime.Decimal | runtime.DecimalJsLike | number | string
}
export type ExpensesCountOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
amount?: Prisma.SortOrder
is_approved?: Prisma.SortOrder
supervisor_comment?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrder
attachment?: Prisma.SortOrder
mileage?: Prisma.SortOrder
}
export type ExpensesAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
amount?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
attachment?: Prisma.SortOrder
mileage?: Prisma.SortOrder
}
export type ExpensesMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
amount?: Prisma.SortOrder
is_approved?: Prisma.SortOrder
supervisor_comment?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrder
attachment?: Prisma.SortOrder
mileage?: Prisma.SortOrder
}
export type ExpensesMinOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
date?: Prisma.SortOrder
amount?: Prisma.SortOrder
is_approved?: Prisma.SortOrder
supervisor_comment?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
comment?: Prisma.SortOrder
attachment?: Prisma.SortOrder
mileage?: Prisma.SortOrder
}
export type ExpensesSumOrderByAggregateInput = {
id?: Prisma.SortOrder
timesheet_id?: Prisma.SortOrder
amount?: Prisma.SortOrder
bank_code_id?: Prisma.SortOrder
attachment?: Prisma.SortOrder
mileage?: Prisma.SortOrder
}
export type ExpensesScalarRelationFilter = {
is?: Prisma.ExpensesWhereInput
isNot?: Prisma.ExpensesWhereInput
}
export type ExpensesCreateNestedManyWithoutTimesheetInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutTimesheetInput, Prisma.ExpensesUncheckedCreateWithoutTimesheetInput> | Prisma.ExpensesCreateWithoutTimesheetInput[] | Prisma.ExpensesUncheckedCreateWithoutTimesheetInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[]
createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
}
export type ExpensesUncheckedCreateNestedManyWithoutTimesheetInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutTimesheetInput, Prisma.ExpensesUncheckedCreateWithoutTimesheetInput> | Prisma.ExpensesCreateWithoutTimesheetInput[] | Prisma.ExpensesUncheckedCreateWithoutTimesheetInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[]
createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
}
export type ExpensesUpdateManyWithoutTimesheetNestedInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutTimesheetInput, Prisma.ExpensesUncheckedCreateWithoutTimesheetInput> | Prisma.ExpensesCreateWithoutTimesheetInput[] | Prisma.ExpensesUncheckedCreateWithoutTimesheetInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[]
upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutTimesheetInput[]
createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope
set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutTimesheetInput[]
updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutTimesheetInput | Prisma.ExpensesUpdateManyWithWhereWithoutTimesheetInput[]
deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
}
export type ExpensesUncheckedUpdateManyWithoutTimesheetNestedInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutTimesheetInput, Prisma.ExpensesUncheckedCreateWithoutTimesheetInput> | Prisma.ExpensesCreateWithoutTimesheetInput[] | Prisma.ExpensesUncheckedCreateWithoutTimesheetInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[]
upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutTimesheetInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutTimesheetInput[]
createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope
set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutTimesheetInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutTimesheetInput[]
updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutTimesheetInput | Prisma.ExpensesUpdateManyWithWhereWithoutTimesheetInput[]
deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
}
export type ExpensesCreateNestedManyWithoutBank_codeInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutBank_codeInput, Prisma.ExpensesUncheckedCreateWithoutBank_codeInput> | Prisma.ExpensesCreateWithoutBank_codeInput[] | Prisma.ExpensesUncheckedCreateWithoutBank_codeInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutBank_codeInput | Prisma.ExpensesCreateOrConnectWithoutBank_codeInput[]
createMany?: Prisma.ExpensesCreateManyBank_codeInputEnvelope
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
}
export type ExpensesUncheckedCreateNestedManyWithoutBank_codeInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutBank_codeInput, Prisma.ExpensesUncheckedCreateWithoutBank_codeInput> | Prisma.ExpensesCreateWithoutBank_codeInput[] | Prisma.ExpensesUncheckedCreateWithoutBank_codeInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutBank_codeInput | Prisma.ExpensesCreateOrConnectWithoutBank_codeInput[]
createMany?: Prisma.ExpensesCreateManyBank_codeInputEnvelope
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
}
export type ExpensesUpdateManyWithoutBank_codeNestedInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutBank_codeInput, Prisma.ExpensesUncheckedCreateWithoutBank_codeInput> | Prisma.ExpensesCreateWithoutBank_codeInput[] | Prisma.ExpensesUncheckedCreateWithoutBank_codeInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutBank_codeInput | Prisma.ExpensesCreateOrConnectWithoutBank_codeInput[]
upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutBank_codeInput[]
createMany?: Prisma.ExpensesCreateManyBank_codeInputEnvelope
set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutBank_codeInput[]
updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutBank_codeInput | Prisma.ExpensesUpdateManyWithWhereWithoutBank_codeInput[]
deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
}
export type ExpensesUncheckedUpdateManyWithoutBank_codeNestedInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutBank_codeInput, Prisma.ExpensesUncheckedCreateWithoutBank_codeInput> | Prisma.ExpensesCreateWithoutBank_codeInput[] | Prisma.ExpensesUncheckedCreateWithoutBank_codeInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutBank_codeInput | Prisma.ExpensesCreateOrConnectWithoutBank_codeInput[]
upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutBank_codeInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutBank_codeInput[]
createMany?: Prisma.ExpensesCreateManyBank_codeInputEnvelope
set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutBank_codeInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutBank_codeInput[]
updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutBank_codeInput | Prisma.ExpensesUpdateManyWithWhereWithoutBank_codeInput[]
deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
}
export type ExpensesCreateNestedOneWithoutArchiveInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutArchiveInput, Prisma.ExpensesUncheckedCreateWithoutArchiveInput>
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutArchiveInput
connect?: Prisma.ExpensesWhereUniqueInput
}
export type ExpensesUpdateOneRequiredWithoutArchiveNestedInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutArchiveInput, Prisma.ExpensesUncheckedCreateWithoutArchiveInput>
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutArchiveInput
upsert?: Prisma.ExpensesUpsertWithoutArchiveInput
connect?: Prisma.ExpensesWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ExpensesUpdateToOneWithWhereWithoutArchiveInput, Prisma.ExpensesUpdateWithoutArchiveInput>, Prisma.ExpensesUncheckedUpdateWithoutArchiveInput>
}
export type ExpensesCreateNestedManyWithoutAttachment_recordInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[]
createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
}
export type ExpensesUncheckedCreateNestedManyWithoutAttachment_recordInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[]
createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
}
export type ExpensesUpdateManyWithoutAttachment_recordNestedInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[]
upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput[]
createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope
set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput[]
updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput[]
deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
}
export type ExpensesUncheckedUpdateManyWithoutAttachment_recordNestedInput = {
create?: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput> | Prisma.ExpensesCreateWithoutAttachment_recordInput[] | Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput[]
connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput | Prisma.ExpensesCreateOrConnectWithoutAttachment_recordInput[]
upsert?: Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput[]
createMany?: Prisma.ExpensesCreateManyAttachment_recordInputEnvelope
set?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
disconnect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
delete?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[]
update?: Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput | Prisma.ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput[]
updateMany?: Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput | Prisma.ExpensesUpdateManyWithWhereWithoutAttachment_recordInput[]
deleteMany?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
}
export type ExpensesCreateWithoutTimesheetInput = {
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
comment: string
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
}
export type ExpensesUncheckedCreateWithoutTimesheetInput = {
id?: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
bank_code_id: number
comment: string
attachment?: number | null
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
}
export type ExpensesCreateOrConnectWithoutTimesheetInput = {
where: Prisma.ExpensesWhereUniqueInput
create: Prisma.XOR<Prisma.ExpensesCreateWithoutTimesheetInput, Prisma.ExpensesUncheckedCreateWithoutTimesheetInput>
}
export type ExpensesCreateManyTimesheetInputEnvelope = {
data: Prisma.ExpensesCreateManyTimesheetInput | Prisma.ExpensesCreateManyTimesheetInput[]
skipDuplicates?: boolean
}
export type ExpensesUpsertWithWhereUniqueWithoutTimesheetInput = {
where: Prisma.ExpensesWhereUniqueInput
update: Prisma.XOR<Prisma.ExpensesUpdateWithoutTimesheetInput, Prisma.ExpensesUncheckedUpdateWithoutTimesheetInput>
create: Prisma.XOR<Prisma.ExpensesCreateWithoutTimesheetInput, Prisma.ExpensesUncheckedCreateWithoutTimesheetInput>
}
export type ExpensesUpdateWithWhereUniqueWithoutTimesheetInput = {
where: Prisma.ExpensesWhereUniqueInput
data: Prisma.XOR<Prisma.ExpensesUpdateWithoutTimesheetInput, Prisma.ExpensesUncheckedUpdateWithoutTimesheetInput>
}
export type ExpensesUpdateManyWithWhereWithoutTimesheetInput = {
where: Prisma.ExpensesScalarWhereInput
data: Prisma.XOR<Prisma.ExpensesUpdateManyMutationInput, Prisma.ExpensesUncheckedUpdateManyWithoutTimesheetInput>
}
export type ExpensesScalarWhereInput = {
AND?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
OR?: Prisma.ExpensesScalarWhereInput[]
NOT?: Prisma.ExpensesScalarWhereInput | Prisma.ExpensesScalarWhereInput[]
id?: Prisma.IntFilter<"Expenses"> | number
timesheet_id?: Prisma.IntFilter<"Expenses"> | number
date?: Prisma.DateTimeFilter<"Expenses"> | Date | string
amount?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFilter<"Expenses"> | boolean
supervisor_comment?: Prisma.StringNullableFilter<"Expenses"> | string | null
bank_code_id?: Prisma.IntFilter<"Expenses"> | number
comment?: Prisma.StringFilter<"Expenses"> | string
attachment?: Prisma.IntNullableFilter<"Expenses"> | number | null
mileage?: Prisma.DecimalNullableFilter<"Expenses"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesCreateWithoutBank_codeInput = {
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
comment: string
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
}
export type ExpensesUncheckedCreateWithoutBank_codeInput = {
id?: number
timesheet_id: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
comment: string
attachment?: number | null
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
}
export type ExpensesCreateOrConnectWithoutBank_codeInput = {
where: Prisma.ExpensesWhereUniqueInput
create: Prisma.XOR<Prisma.ExpensesCreateWithoutBank_codeInput, Prisma.ExpensesUncheckedCreateWithoutBank_codeInput>
}
export type ExpensesCreateManyBank_codeInputEnvelope = {
data: Prisma.ExpensesCreateManyBank_codeInput | Prisma.ExpensesCreateManyBank_codeInput[]
skipDuplicates?: boolean
}
export type ExpensesUpsertWithWhereUniqueWithoutBank_codeInput = {
where: Prisma.ExpensesWhereUniqueInput
update: Prisma.XOR<Prisma.ExpensesUpdateWithoutBank_codeInput, Prisma.ExpensesUncheckedUpdateWithoutBank_codeInput>
create: Prisma.XOR<Prisma.ExpensesCreateWithoutBank_codeInput, Prisma.ExpensesUncheckedCreateWithoutBank_codeInput>
}
export type ExpensesUpdateWithWhereUniqueWithoutBank_codeInput = {
where: Prisma.ExpensesWhereUniqueInput
data: Prisma.XOR<Prisma.ExpensesUpdateWithoutBank_codeInput, Prisma.ExpensesUncheckedUpdateWithoutBank_codeInput>
}
export type ExpensesUpdateManyWithWhereWithoutBank_codeInput = {
where: Prisma.ExpensesScalarWhereInput
data: Prisma.XOR<Prisma.ExpensesUpdateManyMutationInput, Prisma.ExpensesUncheckedUpdateManyWithoutBank_codeInput>
}
export type ExpensesCreateWithoutArchiveInput = {
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
comment: string
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.AttachmentsCreateNestedOneWithoutExpensesInput
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
}
export type ExpensesUncheckedCreateWithoutArchiveInput = {
id?: number
timesheet_id: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
bank_code_id: number
comment: string
attachment?: number | null
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesCreateOrConnectWithoutArchiveInput = {
where: Prisma.ExpensesWhereUniqueInput
create: Prisma.XOR<Prisma.ExpensesCreateWithoutArchiveInput, Prisma.ExpensesUncheckedCreateWithoutArchiveInput>
}
export type ExpensesUpsertWithoutArchiveInput = {
update: Prisma.XOR<Prisma.ExpensesUpdateWithoutArchiveInput, Prisma.ExpensesUncheckedUpdateWithoutArchiveInput>
create: Prisma.XOR<Prisma.ExpensesCreateWithoutArchiveInput, Prisma.ExpensesUncheckedCreateWithoutArchiveInput>
where?: Prisma.ExpensesWhereInput
}
export type ExpensesUpdateToOneWithWhereWithoutArchiveInput = {
where?: Prisma.ExpensesWhereInput
data: Prisma.XOR<Prisma.ExpensesUpdateWithoutArchiveInput, Prisma.ExpensesUncheckedUpdateWithoutArchiveInput>
}
export type ExpensesUpdateWithoutArchiveInput = {
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.StringFieldUpdateOperationsInput | string
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
}
export type ExpensesUncheckedUpdateWithoutArchiveInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.StringFieldUpdateOperationsInput | string
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesCreateWithoutAttachment_recordInput = {
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
comment: string
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
bank_code: Prisma.BankCodesCreateNestedOneWithoutExpensesInput
timesheet: Prisma.TimesheetsCreateNestedOneWithoutExpenseInput
archive?: Prisma.ExpensesArchiveCreateNestedManyWithoutExpenseInput
}
export type ExpensesUncheckedCreateWithoutAttachment_recordInput = {
id?: number
timesheet_id: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
bank_code_id: number
comment: string
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
archive?: Prisma.ExpensesArchiveUncheckedCreateNestedManyWithoutExpenseInput
}
export type ExpensesCreateOrConnectWithoutAttachment_recordInput = {
where: Prisma.ExpensesWhereUniqueInput
create: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput>
}
export type ExpensesCreateManyAttachment_recordInputEnvelope = {
data: Prisma.ExpensesCreateManyAttachment_recordInput | Prisma.ExpensesCreateManyAttachment_recordInput[]
skipDuplicates?: boolean
}
export type ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput = {
where: Prisma.ExpensesWhereUniqueInput
update: Prisma.XOR<Prisma.ExpensesUpdateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedUpdateWithoutAttachment_recordInput>
create: Prisma.XOR<Prisma.ExpensesCreateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedCreateWithoutAttachment_recordInput>
}
export type ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput = {
where: Prisma.ExpensesWhereUniqueInput
data: Prisma.XOR<Prisma.ExpensesUpdateWithoutAttachment_recordInput, Prisma.ExpensesUncheckedUpdateWithoutAttachment_recordInput>
}
export type ExpensesUpdateManyWithWhereWithoutAttachment_recordInput = {
where: Prisma.ExpensesScalarWhereInput
data: Prisma.XOR<Prisma.ExpensesUpdateManyMutationInput, Prisma.ExpensesUncheckedUpdateManyWithoutAttachment_recordInput>
}
export type ExpensesCreateManyTimesheetInput = {
id?: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
bank_code_id: number
comment: string
attachment?: number | null
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesUpdateWithoutTimesheetInput = {
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.StringFieldUpdateOperationsInput | string
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
}
export type ExpensesUncheckedUpdateWithoutTimesheetInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.StringFieldUpdateOperationsInput | string
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
}
export type ExpensesUncheckedUpdateManyWithoutTimesheetInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.StringFieldUpdateOperationsInput | string
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesCreateManyBank_codeInput = {
id?: number
timesheet_id: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
comment: string
attachment?: number | null
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesUpdateWithoutBank_codeInput = {
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.StringFieldUpdateOperationsInput | string
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
attachment_record?: Prisma.AttachmentsUpdateOneWithoutExpensesNestedInput
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
}
export type ExpensesUncheckedUpdateWithoutBank_codeInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.StringFieldUpdateOperationsInput | string
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
}
export type ExpensesUncheckedUpdateManyWithoutBank_codeInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.StringFieldUpdateOperationsInput | string
attachment?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesCreateManyAttachment_recordInput = {
id?: number
timesheet_id: number
date: Date | string
amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: boolean
supervisor_comment?: string | null
bank_code_id: number
comment: string
mileage?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
export type ExpensesUpdateWithoutAttachment_recordInput = {
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
comment?: Prisma.StringFieldUpdateOperationsInput | string
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
bank_code?: Prisma.BankCodesUpdateOneRequiredWithoutExpensesNestedInput
timesheet?: Prisma.TimesheetsUpdateOneRequiredWithoutExpenseNestedInput
archive?: Prisma.ExpensesArchiveUpdateManyWithoutExpenseNestedInput
}
export type ExpensesUncheckedUpdateWithoutAttachment_recordInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.StringFieldUpdateOperationsInput | string
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
archive?: Prisma.ExpensesArchiveUncheckedUpdateManyWithoutExpenseNestedInput
}
export type ExpensesUncheckedUpdateManyWithoutAttachment_recordInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
timesheet_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
is_approved?: Prisma.BoolFieldUpdateOperationsInput | boolean
supervisor_comment?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bank_code_id?: Prisma.IntFieldUpdateOperationsInput | number
comment?: Prisma.StringFieldUpdateOperationsInput | string
mileage?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
}
/**
* Count Type ExpensesCountOutputType
*/
export type ExpensesCountOutputType = {
archive: number
}
export type ExpensesCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
archive?: boolean | ExpensesCountOutputTypeCountArchiveArgs
}
/**
* ExpensesCountOutputType without action
*/
export type ExpensesCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ExpensesCountOutputType
*/
select?: Prisma.ExpensesCountOutputTypeSelect<ExtArgs> | null
}
/**
* ExpensesCountOutputType without action
*/
export type ExpensesCountOutputTypeCountArchiveArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.ExpensesArchiveWhereInput
}
export type ExpensesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
timesheet_id?: boolean
date?: boolean
amount?: boolean
is_approved?: boolean
supervisor_comment?: boolean
bank_code_id?: boolean
comment?: boolean
attachment?: boolean
mileage?: boolean
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
archive?: boolean | Prisma.Expenses$archiveArgs<ExtArgs>
_count?: boolean | Prisma.ExpensesCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["expenses"]>
export type ExpensesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
timesheet_id?: boolean
date?: boolean
amount?: boolean
is_approved?: boolean
supervisor_comment?: boolean
bank_code_id?: boolean
comment?: boolean
attachment?: boolean
mileage?: boolean
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["expenses"]>
export type ExpensesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
timesheet_id?: boolean
date?: boolean
amount?: boolean
is_approved?: boolean
supervisor_comment?: boolean
bank_code_id?: boolean
comment?: boolean
attachment?: boolean
mileage?: boolean
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}, ExtArgs["result"]["expenses"]>
export type ExpensesSelectScalar = {
id?: boolean
timesheet_id?: boolean
date?: boolean
amount?: boolean
is_approved?: boolean
supervisor_comment?: boolean
bank_code_id?: boolean
comment?: boolean
attachment?: boolean
mileage?: boolean
}
export type ExpensesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "timesheet_id" | "date" | "amount" | "is_approved" | "supervisor_comment" | "bank_code_id" | "comment" | "attachment" | "mileage", ExtArgs["result"]["expenses"]>
export type ExpensesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
archive?: boolean | Prisma.Expenses$archiveArgs<ExtArgs>
_count?: boolean | Prisma.ExpensesCountOutputTypeDefaultArgs<ExtArgs>
}
export type ExpensesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}
export type ExpensesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs<ExtArgs>
bank_code?: boolean | Prisma.BankCodesDefaultArgs<ExtArgs>
timesheet?: boolean | Prisma.TimesheetsDefaultArgs<ExtArgs>
}
export type $ExpensesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Expenses"
objects: {
attachment_record: Prisma.$AttachmentsPayload<ExtArgs> | null
bank_code: Prisma.$BankCodesPayload<ExtArgs>
timesheet: Prisma.$TimesheetsPayload<ExtArgs>
archive: Prisma.$ExpensesArchivePayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
timesheet_id: number
date: Date
amount: runtime.Decimal | null
is_approved: boolean
supervisor_comment: string | null
bank_code_id: number
comment: string
attachment: number | null
mileage: runtime.Decimal | 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"
attachment_record<T extends Prisma.Expenses$attachment_recordArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Expenses$attachment_recordArgs<ExtArgs>>): Prisma.Prisma__AttachmentsClient<runtime.Types.Result.GetResult<Prisma.$AttachmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
bank_code<T extends Prisma.BankCodesDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankCodesDefaultArgs<ExtArgs>>): Prisma.Prisma__BankCodesClient<runtime.Types.Result.GetResult<Prisma.$BankCodesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
timesheet<T extends Prisma.TimesheetsDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TimesheetsDefaultArgs<ExtArgs>>): Prisma.Prisma__TimesheetsClient<runtime.Types.Result.GetResult<Prisma.$TimesheetsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
archive<T extends Prisma.Expenses$archiveArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Expenses$archiveArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExpensesArchivePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* 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", 'Int'>
readonly timesheet_id: Prisma.FieldRef<"Expenses", 'Int'>
readonly date: Prisma.FieldRef<"Expenses", 'DateTime'>
readonly amount: Prisma.FieldRef<"Expenses", 'Decimal'>
readonly is_approved: Prisma.FieldRef<"Expenses", 'Boolean'>
readonly supervisor_comment: Prisma.FieldRef<"Expenses", 'String'>
readonly bank_code_id: Prisma.FieldRef<"Expenses", 'Int'>
readonly comment: Prisma.FieldRef<"Expenses", 'String'>
readonly attachment: Prisma.FieldRef<"Expenses", 'Int'>
readonly mileage: Prisma.FieldRef<"Expenses", 'Decimal'>
}
// 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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* 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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* 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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<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.attachment_record
*/
export type Expenses$attachment_recordArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Attachments
*/
select?: Prisma.AttachmentsSelect<ExtArgs> | null
/**
* Omit specific fields from the Attachments
*/
omit?: Prisma.AttachmentsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AttachmentsInclude<ExtArgs> | null
where?: Prisma.AttachmentsWhereInput
}
/**
* Expenses.archive
*/
export type Expenses$archiveArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the ExpensesArchive
*/
select?: Prisma.ExpensesArchiveSelect<ExtArgs> | null
/**
* Omit specific fields from the ExpensesArchive
*/
omit?: Prisma.ExpensesArchiveOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesArchiveInclude<ExtArgs> | null
where?: Prisma.ExpensesArchiveWhereInput
orderBy?: Prisma.ExpensesArchiveOrderByWithRelationInput | Prisma.ExpensesArchiveOrderByWithRelationInput[]
cursor?: Prisma.ExpensesArchiveWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.ExpensesArchiveScalarFieldEnum | Prisma.ExpensesArchiveScalarFieldEnum[]
}
/**
* 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
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ExpensesInclude<ExtArgs> | null
}