
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `ExpenseType` 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 ExpenseType
 * 
 */
export type ExpenseTypeModel = runtime.Types.Result.DefaultSelection<Prisma.$ExpenseTypePayload>

export type AggregateExpenseType = {
  _count: ExpenseTypeCountAggregateOutputType | null
  _min: ExpenseTypeMinAggregateOutputType | null
  _max: ExpenseTypeMaxAggregateOutputType | null
}

export type ExpenseTypeMinAggregateOutputType = {
  id: string | null
  name: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ExpenseTypeMaxAggregateOutputType = {
  id: string | null
  name: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ExpenseTypeCountAggregateOutputType = {
  id: number
  name: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type ExpenseTypeMinAggregateInputType = {
  id?: true
  name?: true
  createdAt?: true
  updatedAt?: true
}

export type ExpenseTypeMaxAggregateInputType = {
  id?: true
  name?: true
  createdAt?: true
  updatedAt?: true
}

export type ExpenseTypeCountAggregateInputType = {
  id?: true
  name?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type ExpenseTypeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ExpenseType to aggregate.
   */
  where?: Prisma.ExpenseTypeWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ExpenseTypes to fetch.
   */
  orderBy?: Prisma.ExpenseTypeOrderByWithRelationInput | Prisma.ExpenseTypeOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ExpenseTypeWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ExpenseTypes 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` ExpenseTypes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ExpenseTypes
  **/
  _count?: true | ExpenseTypeCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ExpenseTypeMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ExpenseTypeMaxAggregateInputType
}

export type GetExpenseTypeAggregateType<T extends ExpenseTypeAggregateArgs> = {
      [P in keyof T & keyof AggregateExpenseType]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateExpenseType[P]>
    : Prisma.GetScalarType<T[P], AggregateExpenseType[P]>
}




export type ExpenseTypeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ExpenseTypeWhereInput
  orderBy?: Prisma.ExpenseTypeOrderByWithAggregationInput | Prisma.ExpenseTypeOrderByWithAggregationInput[]
  by: Prisma.ExpenseTypeScalarFieldEnum[] | Prisma.ExpenseTypeScalarFieldEnum
  having?: Prisma.ExpenseTypeScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ExpenseTypeCountAggregateInputType | true
  _min?: ExpenseTypeMinAggregateInputType
  _max?: ExpenseTypeMaxAggregateInputType
}

export type ExpenseTypeGroupByOutputType = {
  id: string
  name: string
  createdAt: Date
  updatedAt: Date
  _count: ExpenseTypeCountAggregateOutputType | null
  _min: ExpenseTypeMinAggregateOutputType | null
  _max: ExpenseTypeMaxAggregateOutputType | null
}

export type GetExpenseTypeGroupByPayload<T extends ExpenseTypeGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<ExpenseTypeGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof ExpenseTypeGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], ExpenseTypeGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], ExpenseTypeGroupByOutputType[P]>
      }
    >
  >



export type ExpenseTypeWhereInput = {
  AND?: Prisma.ExpenseTypeWhereInput | Prisma.ExpenseTypeWhereInput[]
  OR?: Prisma.ExpenseTypeWhereInput[]
  NOT?: Prisma.ExpenseTypeWhereInput | Prisma.ExpenseTypeWhereInput[]
  id?: Prisma.StringFilter<"ExpenseType"> | string
  name?: Prisma.StringFilter<"ExpenseType"> | string
  createdAt?: Prisma.DateTimeFilter<"ExpenseType"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ExpenseType"> | Date | string
}

export type ExpenseTypeOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _relevance?: Prisma.ExpenseTypeOrderByRelevanceInput
}

export type ExpenseTypeWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  name?: string
  AND?: Prisma.ExpenseTypeWhereInput | Prisma.ExpenseTypeWhereInput[]
  OR?: Prisma.ExpenseTypeWhereInput[]
  NOT?: Prisma.ExpenseTypeWhereInput | Prisma.ExpenseTypeWhereInput[]
  createdAt?: Prisma.DateTimeFilter<"ExpenseType"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ExpenseType"> | Date | string
}, "id" | "name">

export type ExpenseTypeOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.ExpenseTypeCountOrderByAggregateInput
  _max?: Prisma.ExpenseTypeMaxOrderByAggregateInput
  _min?: Prisma.ExpenseTypeMinOrderByAggregateInput
}

export type ExpenseTypeScalarWhereWithAggregatesInput = {
  AND?: Prisma.ExpenseTypeScalarWhereWithAggregatesInput | Prisma.ExpenseTypeScalarWhereWithAggregatesInput[]
  OR?: Prisma.ExpenseTypeScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ExpenseTypeScalarWhereWithAggregatesInput | Prisma.ExpenseTypeScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ExpenseType"> | string
  name?: Prisma.StringWithAggregatesFilter<"ExpenseType"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ExpenseType"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ExpenseType"> | Date | string
}

export type ExpenseTypeCreateInput = {
  id?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ExpenseTypeUncheckedCreateInput = {
  id?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ExpenseTypeUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ExpenseTypeUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ExpenseTypeCreateManyInput = {
  id?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ExpenseTypeUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ExpenseTypeUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ExpenseTypeOrderByRelevanceInput = {
  fields: Prisma.ExpenseTypeOrderByRelevanceFieldEnum | Prisma.ExpenseTypeOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type ExpenseTypeCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ExpenseTypeMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ExpenseTypeMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}



export type ExpenseTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["expenseType"]>



export type ExpenseTypeSelectScalar = {
  id?: boolean
  name?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type ExpenseTypeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt", ExtArgs["result"]["expenseType"]>

export type $ExpenseTypePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ExpenseType"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    name: string
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["expenseType"]>
  composites: {}
}

export type ExpenseTypeGetPayload<S extends boolean | null | undefined | ExpenseTypeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload, S>

export type ExpenseTypeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<ExpenseTypeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: ExpenseTypeCountAggregateInputType | true
  }

export interface ExpenseTypeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ExpenseType'], meta: { name: 'ExpenseType' } }
  /**
   * Find zero or one ExpenseType that matches the filter.
   * @param {ExpenseTypeFindUniqueArgs} args - Arguments to find a ExpenseType
   * @example
   * // Get one ExpenseType
   * const expenseType = await prisma.expenseType.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends ExpenseTypeFindUniqueArgs>(args: Prisma.SelectSubset<T, ExpenseTypeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ExpenseTypeClient<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one ExpenseType that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {ExpenseTypeFindUniqueOrThrowArgs} args - Arguments to find a ExpenseType
   * @example
   * // Get one ExpenseType
   * const expenseType = await prisma.expenseType.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends ExpenseTypeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ExpenseTypeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ExpenseTypeClient<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first ExpenseType 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 {ExpenseTypeFindFirstArgs} args - Arguments to find a ExpenseType
   * @example
   * // Get one ExpenseType
   * const expenseType = await prisma.expenseType.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends ExpenseTypeFindFirstArgs>(args?: Prisma.SelectSubset<T, ExpenseTypeFindFirstArgs<ExtArgs>>): Prisma.Prisma__ExpenseTypeClient<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first ExpenseType 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 {ExpenseTypeFindFirstOrThrowArgs} args - Arguments to find a ExpenseType
   * @example
   * // Get one ExpenseType
   * const expenseType = await prisma.expenseType.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends ExpenseTypeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ExpenseTypeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ExpenseTypeClient<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more ExpenseTypes 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 {ExpenseTypeFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all ExpenseTypes
   * const expenseTypes = await prisma.expenseType.findMany()
   * 
   * // Get first 10 ExpenseTypes
   * const expenseTypes = await prisma.expenseType.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const expenseTypeWithIdOnly = await prisma.expenseType.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends ExpenseTypeFindManyArgs>(args?: Prisma.SelectSubset<T, ExpenseTypeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a ExpenseType.
   * @param {ExpenseTypeCreateArgs} args - Arguments to create a ExpenseType.
   * @example
   * // Create one ExpenseType
   * const ExpenseType = await prisma.expenseType.create({
   *   data: {
   *     // ... data to create a ExpenseType
   *   }
   * })
   * 
   */
  create<T extends ExpenseTypeCreateArgs>(args: Prisma.SelectSubset<T, ExpenseTypeCreateArgs<ExtArgs>>): Prisma.Prisma__ExpenseTypeClient<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many ExpenseTypes.
   * @param {ExpenseTypeCreateManyArgs} args - Arguments to create many ExpenseTypes.
   * @example
   * // Create many ExpenseTypes
   * const expenseType = await prisma.expenseType.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends ExpenseTypeCreateManyArgs>(args?: Prisma.SelectSubset<T, ExpenseTypeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Delete a ExpenseType.
   * @param {ExpenseTypeDeleteArgs} args - Arguments to delete one ExpenseType.
   * @example
   * // Delete one ExpenseType
   * const ExpenseType = await prisma.expenseType.delete({
   *   where: {
   *     // ... filter to delete one ExpenseType
   *   }
   * })
   * 
   */
  delete<T extends ExpenseTypeDeleteArgs>(args: Prisma.SelectSubset<T, ExpenseTypeDeleteArgs<ExtArgs>>): Prisma.Prisma__ExpenseTypeClient<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one ExpenseType.
   * @param {ExpenseTypeUpdateArgs} args - Arguments to update one ExpenseType.
   * @example
   * // Update one ExpenseType
   * const expenseType = await prisma.expenseType.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends ExpenseTypeUpdateArgs>(args: Prisma.SelectSubset<T, ExpenseTypeUpdateArgs<ExtArgs>>): Prisma.Prisma__ExpenseTypeClient<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more ExpenseTypes.
   * @param {ExpenseTypeDeleteManyArgs} args - Arguments to filter ExpenseTypes to delete.
   * @example
   * // Delete a few ExpenseTypes
   * const { count } = await prisma.expenseType.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends ExpenseTypeDeleteManyArgs>(args?: Prisma.SelectSubset<T, ExpenseTypeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more ExpenseTypes.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ExpenseTypeUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many ExpenseTypes
   * const expenseType = await prisma.expenseType.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends ExpenseTypeUpdateManyArgs>(args: Prisma.SelectSubset<T, ExpenseTypeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create or update one ExpenseType.
   * @param {ExpenseTypeUpsertArgs} args - Arguments to update or create a ExpenseType.
   * @example
   * // Update or create a ExpenseType
   * const expenseType = await prisma.expenseType.upsert({
   *   create: {
   *     // ... data to create a ExpenseType
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the ExpenseType we want to update
   *   }
   * })
   */
  upsert<T extends ExpenseTypeUpsertArgs>(args: Prisma.SelectSubset<T, ExpenseTypeUpsertArgs<ExtArgs>>): Prisma.Prisma__ExpenseTypeClient<runtime.Types.Result.GetResult<Prisma.$ExpenseTypePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of ExpenseTypes.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ExpenseTypeCountArgs} args - Arguments to filter ExpenseTypes to count.
   * @example
   * // Count the number of ExpenseTypes
   * const count = await prisma.expenseType.count({
   *   where: {
   *     // ... the filter for the ExpenseTypes we want to count
   *   }
   * })
  **/
  count<T extends ExpenseTypeCountArgs>(
    args?: Prisma.Subset<T, ExpenseTypeCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], ExpenseTypeCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a ExpenseType.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ExpenseTypeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
   * @example
   * // Ordered by age ascending
   * // Where email contains prisma.io
   * // Limited to the 10 users
   * const aggregations = await prisma.user.aggregate({
   *   _avg: {
   *     age: true,
   *   },
   *   where: {
   *     email: {
   *       contains: "prisma.io",
   *     },
   *   },
   *   orderBy: {
   *     age: "asc",
   *   },
   *   take: 10,
   * })
  **/
  aggregate<T extends ExpenseTypeAggregateArgs>(args: Prisma.Subset<T, ExpenseTypeAggregateArgs>): Prisma.PrismaPromise<GetExpenseTypeAggregateType<T>>

  /**
   * Group by ExpenseType.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ExpenseTypeGroupByArgs} 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 ExpenseTypeGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: ExpenseTypeGroupByArgs['orderBy'] }
      : { orderBy?: ExpenseTypeGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
    InputErrors extends ByEmpty extends Prisma.True
    ? `Error: "by" must not be empty.`
    : HavingValid extends Prisma.False
    ? {
        [P in HavingFields]: P extends ByFields
          ? never
          : P extends string
          ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
          : [
              Error,
              'Field ',
              P,
              ` in "having" needs to be provided in "by"`,
            ]
      }[HavingFields]
    : 'take' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "take", you also need to provide "orderBy"'
    : 'skip' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "skip", you also need to provide "orderBy"'
    : ByValid extends Prisma.True
    ? {}
    : {
        [P in OrderFields]: P extends ByFields
          ? never
          : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
      }[OrderFields]
  >(args: Prisma.SubsetIntersection<T, ExpenseTypeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetExpenseTypeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the ExpenseType model
 */
readonly fields: ExpenseTypeFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for ExpenseType.
 * 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__ExpenseTypeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the ExpenseType model
 */
export interface ExpenseTypeFieldRefs {
  readonly id: Prisma.FieldRef<"ExpenseType", 'String'>
  readonly name: Prisma.FieldRef<"ExpenseType", 'String'>
  readonly createdAt: Prisma.FieldRef<"ExpenseType", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"ExpenseType", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ExpenseType findUnique
 */
export type ExpenseTypeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * Filter, which ExpenseType to fetch.
   */
  where: Prisma.ExpenseTypeWhereUniqueInput
}

/**
 * ExpenseType findUniqueOrThrow
 */
export type ExpenseTypeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * Filter, which ExpenseType to fetch.
   */
  where: Prisma.ExpenseTypeWhereUniqueInput
}

/**
 * ExpenseType findFirst
 */
export type ExpenseTypeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * Filter, which ExpenseType to fetch.
   */
  where?: Prisma.ExpenseTypeWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ExpenseTypes to fetch.
   */
  orderBy?: Prisma.ExpenseTypeOrderByWithRelationInput | Prisma.ExpenseTypeOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ExpenseTypes.
   */
  cursor?: Prisma.ExpenseTypeWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ExpenseTypes 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` ExpenseTypes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ExpenseTypes.
   */
  distinct?: Prisma.ExpenseTypeScalarFieldEnum | Prisma.ExpenseTypeScalarFieldEnum[]
}

/**
 * ExpenseType findFirstOrThrow
 */
export type ExpenseTypeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * Filter, which ExpenseType to fetch.
   */
  where?: Prisma.ExpenseTypeWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ExpenseTypes to fetch.
   */
  orderBy?: Prisma.ExpenseTypeOrderByWithRelationInput | Prisma.ExpenseTypeOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ExpenseTypes.
   */
  cursor?: Prisma.ExpenseTypeWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ExpenseTypes 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` ExpenseTypes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ExpenseTypes.
   */
  distinct?: Prisma.ExpenseTypeScalarFieldEnum | Prisma.ExpenseTypeScalarFieldEnum[]
}

/**
 * ExpenseType findMany
 */
export type ExpenseTypeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * Filter, which ExpenseTypes to fetch.
   */
  where?: Prisma.ExpenseTypeWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ExpenseTypes to fetch.
   */
  orderBy?: Prisma.ExpenseTypeOrderByWithRelationInput | Prisma.ExpenseTypeOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing ExpenseTypes.
   */
  cursor?: Prisma.ExpenseTypeWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ExpenseTypes 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` ExpenseTypes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ExpenseTypes.
   */
  distinct?: Prisma.ExpenseTypeScalarFieldEnum | Prisma.ExpenseTypeScalarFieldEnum[]
}

/**
 * ExpenseType create
 */
export type ExpenseTypeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * The data needed to create a ExpenseType.
   */
  data: Prisma.XOR<Prisma.ExpenseTypeCreateInput, Prisma.ExpenseTypeUncheckedCreateInput>
}

/**
 * ExpenseType createMany
 */
export type ExpenseTypeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many ExpenseTypes.
   */
  data: Prisma.ExpenseTypeCreateManyInput | Prisma.ExpenseTypeCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * ExpenseType update
 */
export type ExpenseTypeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * The data needed to update a ExpenseType.
   */
  data: Prisma.XOR<Prisma.ExpenseTypeUpdateInput, Prisma.ExpenseTypeUncheckedUpdateInput>
  /**
   * Choose, which ExpenseType to update.
   */
  where: Prisma.ExpenseTypeWhereUniqueInput
}

/**
 * ExpenseType updateMany
 */
export type ExpenseTypeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ExpenseTypes.
   */
  data: Prisma.XOR<Prisma.ExpenseTypeUpdateManyMutationInput, Prisma.ExpenseTypeUncheckedUpdateManyInput>
  /**
   * Filter which ExpenseTypes to update
   */
  where?: Prisma.ExpenseTypeWhereInput
  /**
   * Limit how many ExpenseTypes to update.
   */
  limit?: number
}

/**
 * ExpenseType upsert
 */
export type ExpenseTypeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * The filter to search for the ExpenseType to update in case it exists.
   */
  where: Prisma.ExpenseTypeWhereUniqueInput
  /**
   * In case the ExpenseType found by the `where` argument doesn't exist, create a new ExpenseType with this data.
   */
  create: Prisma.XOR<Prisma.ExpenseTypeCreateInput, Prisma.ExpenseTypeUncheckedCreateInput>
  /**
   * In case the ExpenseType was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ExpenseTypeUpdateInput, Prisma.ExpenseTypeUncheckedUpdateInput>
}

/**
 * ExpenseType delete
 */
export type ExpenseTypeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
  /**
   * Filter which ExpenseType to delete.
   */
  where: Prisma.ExpenseTypeWhereUniqueInput
}

/**
 * ExpenseType deleteMany
 */
export type ExpenseTypeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ExpenseTypes to delete
   */
  where?: Prisma.ExpenseTypeWhereInput
  /**
   * Limit how many ExpenseTypes to delete.
   */
  limit?: number
}

/**
 * ExpenseType without action
 */
export type ExpenseTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ExpenseType
   */
  select?: Prisma.ExpenseTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ExpenseType
   */
  omit?: Prisma.ExpenseTypeOmit<ExtArgs> | null
}
