/* !!! 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 = { value: number | null created_at: number | null updated_at: number | null } export type ExpensesSumAggregateOutputType = { value: number | null created_at: bigint | null updated_at: bigint | null } export type ExpensesMinAggregateOutputType = { id: string | null time_sheet_id: string | null date: string | null code: string | null value: number | null description: string | null evidence_id: string | null status: boolean | null created_at: bigint | null updated_at: bigint | null supervisor_note: string | null } export type ExpensesMaxAggregateOutputType = { id: string | null time_sheet_id: string | null date: string | null code: string | null value: number | null description: string | null evidence_id: string | null status: boolean | null created_at: bigint | null updated_at: bigint | null supervisor_note: string | null } export type ExpensesCountAggregateOutputType = { id: number time_sheet_id: number date: number code: number value: number description: number evidence_id: number status: number created_at: number updated_at: number supervisor_note: number _all: number } export type ExpensesAvgAggregateInputType = { value?: true created_at?: true updated_at?: true } export type ExpensesSumAggregateInputType = { value?: true created_at?: true updated_at?: true } export type ExpensesMinAggregateInputType = { id?: true time_sheet_id?: true date?: true code?: true value?: true description?: true evidence_id?: true status?: true created_at?: true updated_at?: true supervisor_note?: true } export type ExpensesMaxAggregateInputType = { id?: true time_sheet_id?: true date?: true code?: true value?: true description?: true evidence_id?: true status?: true created_at?: true updated_at?: true supervisor_note?: true } export type ExpensesCountAggregateInputType = { id?: true time_sheet_id?: true date?: true code?: true value?: true description?: true evidence_id?: true status?: true created_at?: true updated_at?: true supervisor_note?: true _all?: true } export type ExpensesAggregateArgs = { /** * 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: string time_sheet_id: string | null date: string | null code: string | null value: number | null description: string | null evidence_id: string | null status: boolean | null created_at: bigint | null updated_at: bigint | null supervisor_note: string | null _count: ExpensesCountAggregateOutputType | null _avg: ExpensesAvgAggregateOutputType | null _sum: ExpensesSumAggregateOutputType | null _min: ExpensesMinAggregateOutputType | null _max: ExpensesMaxAggregateOutputType | null } type GetExpensesGroupByPayload = 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.UuidFilter<"expenses"> | string time_sheet_id?: Prisma.StringNullableFilter<"expenses"> | string | null date?: Prisma.StringNullableFilter<"expenses"> | string | null code?: Prisma.StringNullableFilter<"expenses"> | string | null value?: Prisma.FloatNullableFilter<"expenses"> | number | null description?: Prisma.StringNullableFilter<"expenses"> | string | null evidence_id?: Prisma.StringNullableFilter<"expenses"> | string | null status?: Prisma.BoolNullableFilter<"expenses"> | boolean | null created_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null supervisor_note?: Prisma.StringNullableFilter<"expenses"> | string | null } export type expensesOrderByWithRelationInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder date?: Prisma.SortOrderInput | Prisma.SortOrder code?: Prisma.SortOrderInput | Prisma.SortOrder value?: Prisma.SortOrderInput | Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder evidence_id?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder } export type expensesWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[] OR?: Prisma.expensesWhereInput[] NOT?: Prisma.expensesWhereInput | Prisma.expensesWhereInput[] time_sheet_id?: Prisma.StringNullableFilter<"expenses"> | string | null date?: Prisma.StringNullableFilter<"expenses"> | string | null code?: Prisma.StringNullableFilter<"expenses"> | string | null value?: Prisma.FloatNullableFilter<"expenses"> | number | null description?: Prisma.StringNullableFilter<"expenses"> | string | null evidence_id?: Prisma.StringNullableFilter<"expenses"> | string | null status?: Prisma.BoolNullableFilter<"expenses"> | boolean | null created_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null updated_at?: Prisma.BigIntNullableFilter<"expenses"> | bigint | number | null supervisor_note?: Prisma.StringNullableFilter<"expenses"> | string | null }, "id"> export type expensesOrderByWithAggregationInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrderInput | Prisma.SortOrder date?: Prisma.SortOrderInput | Prisma.SortOrder code?: Prisma.SortOrderInput | Prisma.SortOrder value?: Prisma.SortOrderInput | Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder evidence_id?: Prisma.SortOrderInput | Prisma.SortOrder status?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrderInput | Prisma.SortOrder updated_at?: Prisma.SortOrderInput | Prisma.SortOrder supervisor_note?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.expensesCountOrderByAggregateInput _avg?: Prisma.expensesAvgOrderByAggregateInput _max?: Prisma.expensesMaxOrderByAggregateInput _min?: Prisma.expensesMinOrderByAggregateInput _sum?: Prisma.expensesSumOrderByAggregateInput } export type expensesScalarWhereWithAggregatesInput = { AND?: Prisma.expensesScalarWhereWithAggregatesInput | Prisma.expensesScalarWhereWithAggregatesInput[] OR?: Prisma.expensesScalarWhereWithAggregatesInput[] NOT?: Prisma.expensesScalarWhereWithAggregatesInput | Prisma.expensesScalarWhereWithAggregatesInput[] id?: Prisma.UuidWithAggregatesFilter<"expenses"> | string time_sheet_id?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null date?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null code?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null value?: Prisma.FloatNullableWithAggregatesFilter<"expenses"> | number | null description?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null evidence_id?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null status?: Prisma.BoolNullableWithAggregatesFilter<"expenses"> | boolean | null created_at?: Prisma.BigIntNullableWithAggregatesFilter<"expenses"> | bigint | number | null updated_at?: Prisma.BigIntNullableWithAggregatesFilter<"expenses"> | bigint | number | null supervisor_note?: Prisma.StringNullableWithAggregatesFilter<"expenses"> | string | null } export type expensesCreateInput = { id: string time_sheet_id?: string | null date?: string | null code?: string | null value?: number | null description?: string | null evidence_id?: string | null status?: boolean | null created_at?: bigint | number | null updated_at?: bigint | number | null supervisor_note?: string | null } export type expensesUncheckedCreateInput = { id: string time_sheet_id?: string | null date?: string | null code?: string | null value?: number | null description?: string | null evidence_id?: string | null status?: boolean | null created_at?: bigint | number | null updated_at?: bigint | number | null supervisor_note?: string | null } export type expensesUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type expensesUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type expensesCreateManyInput = { id: string time_sheet_id?: string | null date?: string | null code?: string | null value?: number | null description?: string | null evidence_id?: string | null status?: boolean | null created_at?: bigint | number | null updated_at?: bigint | number | null supervisor_note?: string | null } export type expensesUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type expensesUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string time_sheet_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date?: Prisma.NullableStringFieldUpdateOperationsInput | string | null code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null value?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null evidence_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null status?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null created_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null updated_at?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null supervisor_note?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type expensesCountOrderByAggregateInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrder date?: Prisma.SortOrder code?: Prisma.SortOrder value?: Prisma.SortOrder description?: Prisma.SortOrder evidence_id?: Prisma.SortOrder status?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder supervisor_note?: Prisma.SortOrder } export type expensesAvgOrderByAggregateInput = { value?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type expensesMaxOrderByAggregateInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrder date?: Prisma.SortOrder code?: Prisma.SortOrder value?: Prisma.SortOrder description?: Prisma.SortOrder evidence_id?: Prisma.SortOrder status?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder supervisor_note?: Prisma.SortOrder } export type expensesMinOrderByAggregateInput = { id?: Prisma.SortOrder time_sheet_id?: Prisma.SortOrder date?: Prisma.SortOrder code?: Prisma.SortOrder value?: Prisma.SortOrder description?: Prisma.SortOrder evidence_id?: Prisma.SortOrder status?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder supervisor_note?: Prisma.SortOrder } export type expensesSumOrderByAggregateInput = { value?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type expensesSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean time_sheet_id?: boolean date?: boolean code?: boolean value?: boolean description?: boolean evidence_id?: boolean status?: boolean created_at?: boolean updated_at?: boolean supervisor_note?: boolean }, ExtArgs["result"]["expenses"]> export type expensesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean time_sheet_id?: boolean date?: boolean code?: boolean value?: boolean description?: boolean evidence_id?: boolean status?: boolean created_at?: boolean updated_at?: boolean supervisor_note?: boolean }, ExtArgs["result"]["expenses"]> export type expensesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean time_sheet_id?: boolean date?: boolean code?: boolean value?: boolean description?: boolean evidence_id?: boolean status?: boolean created_at?: boolean updated_at?: boolean supervisor_note?: boolean }, ExtArgs["result"]["expenses"]> export type expensesSelectScalar = { id?: boolean time_sheet_id?: boolean date?: boolean code?: boolean value?: boolean description?: boolean evidence_id?: boolean status?: boolean created_at?: boolean updated_at?: boolean supervisor_note?: boolean } export type expensesOmit = runtime.Types.Extensions.GetOmit<"id" | "time_sheet_id" | "date" | "code" | "value" | "description" | "evidence_id" | "status" | "created_at" | "updated_at" | "supervisor_note", ExtArgs["result"]["expenses"]> export type $expensesPayload = { name: "expenses" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string time_sheet_id: string | null date: string | null code: string | null value: number | null description: string | null evidence_id: string | null status: boolean | null created_at: bigint | null updated_at: bigint | null supervisor_note: string | null }, ExtArgs["result"]["expenses"]> composites: {} } export type expensesGetPayload = 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" /** * 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", 'String'> readonly time_sheet_id: Prisma.FieldRef<"expenses", 'String'> readonly date: Prisma.FieldRef<"expenses", 'String'> readonly code: Prisma.FieldRef<"expenses", 'String'> readonly value: Prisma.FieldRef<"expenses", 'Float'> readonly description: Prisma.FieldRef<"expenses", 'String'> readonly evidence_id: Prisma.FieldRef<"expenses", 'String'> readonly status: Prisma.FieldRef<"expenses", 'Boolean'> readonly created_at: Prisma.FieldRef<"expenses", 'BigInt'> readonly updated_at: Prisma.FieldRef<"expenses", 'BigInt'> readonly supervisor_note: Prisma.FieldRef<"expenses", 'String'> } // Custom InputTypes /** * expenses findUnique */ export type expensesFindUniqueArgs = { /** * Select specific fields to fetch from the expenses */ select?: Prisma.expensesSelect | null /** * Omit specific fields from the expenses */ omit?: Prisma.expensesOmit | 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 /** * 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 /** * 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 /** * 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 /** * 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 /** * 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 } /** * 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 /** * 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 } /** * 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 /** * 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 /** * 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 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 }