/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateExpenses]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ExpensesGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ExpensesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 | null bank_code?: Prisma.XOR timesheet?: Prisma.XOR 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 | null bank_code?: Prisma.XOR timesheet?: Prisma.XOR 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[] connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutTimesheetInput | Prisma.ExpensesCreateOrConnectWithoutTimesheetInput[] createMany?: Prisma.ExpensesCreateManyTimesheetInputEnvelope connect?: Prisma.ExpensesWhereUniqueInput | Prisma.ExpensesWhereUniqueInput[] } export type ExpensesUncheckedCreateNestedManyWithoutTimesheetInput = { create?: Prisma.XOR | 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[] 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[] 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[] 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[] 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[] 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[] 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 connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutArchiveInput connect?: Prisma.ExpensesWhereUniqueInput } export type ExpensesUpdateOneRequiredWithoutArchiveNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.ExpensesCreateOrConnectWithoutArchiveInput upsert?: Prisma.ExpensesUpsertWithoutArchiveInput connect?: Prisma.ExpensesWhereUniqueInput update?: Prisma.XOR, Prisma.ExpensesUncheckedUpdateWithoutArchiveInput> } export type ExpensesCreateNestedManyWithoutAttachment_recordInput = { create?: Prisma.XOR | 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[] 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[] 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[] 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 } export type ExpensesCreateManyTimesheetInputEnvelope = { data: Prisma.ExpensesCreateManyTimesheetInput | Prisma.ExpensesCreateManyTimesheetInput[] skipDuplicates?: boolean } export type ExpensesUpsertWithWhereUniqueWithoutTimesheetInput = { where: Prisma.ExpensesWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ExpensesUpdateWithWhereUniqueWithoutTimesheetInput = { where: Prisma.ExpensesWhereUniqueInput data: Prisma.XOR } export type ExpensesUpdateManyWithWhereWithoutTimesheetInput = { where: Prisma.ExpensesScalarWhereInput data: Prisma.XOR } 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 } export type ExpensesCreateManyBank_codeInputEnvelope = { data: Prisma.ExpensesCreateManyBank_codeInput | Prisma.ExpensesCreateManyBank_codeInput[] skipDuplicates?: boolean } export type ExpensesUpsertWithWhereUniqueWithoutBank_codeInput = { where: Prisma.ExpensesWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ExpensesUpdateWithWhereUniqueWithoutBank_codeInput = { where: Prisma.ExpensesWhereUniqueInput data: Prisma.XOR } export type ExpensesUpdateManyWithWhereWithoutBank_codeInput = { where: Prisma.ExpensesScalarWhereInput data: Prisma.XOR } 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 } export type ExpensesUpsertWithoutArchiveInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.ExpensesWhereInput } export type ExpensesUpdateToOneWithWhereWithoutArchiveInput = { where?: Prisma.ExpensesWhereInput data: Prisma.XOR } 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 } export type ExpensesCreateManyAttachment_recordInputEnvelope = { data: Prisma.ExpensesCreateManyAttachment_recordInput | Prisma.ExpensesCreateManyAttachment_recordInput[] skipDuplicates?: boolean } export type ExpensesUpsertWithWhereUniqueWithoutAttachment_recordInput = { where: Prisma.ExpensesWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type ExpensesUpdateWithWhereUniqueWithoutAttachment_recordInput = { where: Prisma.ExpensesWhereUniqueInput data: Prisma.XOR } export type ExpensesUpdateManyWithWhereWithoutAttachment_recordInput = { where: Prisma.ExpensesScalarWhereInput data: Prisma.XOR } 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 = { archive?: boolean | ExpensesCountOutputTypeCountArchiveArgs } /** * ExpensesCountOutputType without action */ export type ExpensesCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the ExpensesCountOutputType */ select?: Prisma.ExpensesCountOutputTypeSelect | null } /** * ExpensesCountOutputType without action */ export type ExpensesCountOutputTypeCountArchiveArgs = { where?: Prisma.ExpensesArchiveWhereInput } export type ExpensesSelect = 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 bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs archive?: boolean | Prisma.Expenses$archiveArgs _count?: boolean | Prisma.ExpensesCountOutputTypeDefaultArgs }, ExtArgs["result"]["expenses"]> export type ExpensesSelectCreateManyAndReturn = 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 bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs }, ExtArgs["result"]["expenses"]> export type ExpensesSelectUpdateManyAndReturn = 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 bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs }, 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 = 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 = { attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs archive?: boolean | Prisma.Expenses$archiveArgs _count?: boolean | Prisma.ExpensesCountOutputTypeDefaultArgs } export type ExpensesIncludeCreateManyAndReturn = { attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs } export type ExpensesIncludeUpdateManyAndReturn = { attachment_record?: boolean | Prisma.Expenses$attachment_recordArgs bank_code?: boolean | Prisma.BankCodesDefaultArgs timesheet?: boolean | Prisma.TimesheetsDefaultArgs } export type $ExpensesPayload = { name: "Expenses" objects: { attachment_record: Prisma.$AttachmentsPayload | null bank_code: Prisma.$BankCodesPayload timesheet: Prisma.$TimesheetsPayload archive: Prisma.$ExpensesArchivePayload[] } 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 = runtime.Types.Result.GetResult export type ExpensesCountArgs = Omit & { select?: ExpensesCountAggregateInputType | true } export interface ExpensesDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__ExpensesClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ExpensesGroupByArgs['orderBy'] } : { orderBy?: ExpensesGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetExpensesGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" attachment_record = {}>(args?: Prisma.Subset>): Prisma.Prisma__AttachmentsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> bank_code = {}>(args?: Prisma.Subset>): Prisma.Prisma__BankCodesClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> timesheet = {}>(args?: Prisma.Subset>): Prisma.Prisma__TimesheetsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> archive = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | null /** * Filter, which Expenses to fetch. */ where: Prisma.ExpensesWhereUniqueInput } /** * Expenses findUniqueOrThrow */ export type ExpensesFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | null /** * Filter, which Expenses to fetch. */ where: Prisma.ExpensesWhereUniqueInput } /** * Expenses findFirst */ export type ExpensesFindFirstArgs = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | 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 = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | 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 = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | 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 = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | null /** * The data needed to create a Expenses. */ data: Prisma.XOR } /** * Expenses createMany */ export type ExpensesCreateManyArgs = { /** * The data used to create many Expenses. */ data: Prisma.ExpensesCreateManyInput | Prisma.ExpensesCreateManyInput[] skipDuplicates?: boolean } /** * Expenses createManyAndReturn */ export type ExpensesCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelectCreateManyAndReturn | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | 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 | null } /** * Expenses update */ export type ExpensesUpdateArgs = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | null /** * The data needed to update a Expenses. */ data: Prisma.XOR /** * Choose, which Expenses to update. */ where: Prisma.ExpensesWhereUniqueInput } /** * Expenses updateMany */ export type ExpensesUpdateManyArgs = { /** * The data used to update Expenses. */ data: Prisma.XOR /** * Filter which Expenses to update */ where?: Prisma.ExpensesWhereInput /** * Limit how many Expenses to update. */ limit?: number } /** * Expenses updateManyAndReturn */ export type ExpensesUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelectUpdateManyAndReturn | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * The data used to update Expenses. */ data: Prisma.XOR /** * 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 | null } /** * Expenses upsert */ export type ExpensesUpsertArgs = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | 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 /** * In case the Expenses was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Expenses delete */ export type ExpensesDeleteArgs = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | null /** * Filter which Expenses to delete. */ where: Prisma.ExpensesWhereUniqueInput } /** * Expenses deleteMany */ export type ExpensesDeleteManyArgs = { /** * Filter which Expenses to delete */ where?: Prisma.ExpensesWhereInput /** * Limit how many Expenses to delete. */ limit?: number } /** * Expenses.attachment_record */ export type Expenses$attachment_recordArgs = { /** * Select specific fields to fetch from the Attachments */ select?: Prisma.AttachmentsSelect | null /** * Omit specific fields from the Attachments */ omit?: Prisma.AttachmentsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AttachmentsInclude | null where?: Prisma.AttachmentsWhereInput } /** * Expenses.archive */ export type Expenses$archiveArgs = { /** * Select specific fields to fetch from the ExpensesArchive */ select?: Prisma.ExpensesArchiveSelect | null /** * Omit specific fields from the ExpensesArchive */ omit?: Prisma.ExpensesArchiveOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesArchiveInclude | 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 = { /** * Select specific fields to fetch from the Expenses */ select?: Prisma.ExpensesSelect | null /** * Omit specific fields from the Expenses */ omit?: Prisma.ExpensesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ExpensesInclude | null }