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

export type AggregateInvoice_tax = {
  _count: Invoice_taxCountAggregateOutputType | null
  _avg: Invoice_taxAvgAggregateOutputType | null
  _sum: Invoice_taxSumAggregateOutputType | null
  _min: Invoice_taxMinAggregateOutputType | null
  _max: Invoice_taxMaxAggregateOutputType | null
}

export type Invoice_taxAvgAggregateOutputType = {
  id: number | null
  invoice_id: number | null
  tax_rate: number | null
  amount: number | null
}

export type Invoice_taxSumAggregateOutputType = {
  id: bigint | null
  invoice_id: bigint | null
  tax_rate: number | null
  amount: number | null
}

export type Invoice_taxMinAggregateOutputType = {
  id: bigint | null
  invoice_id: bigint | null
  tax_name: string | null
  tax_description: string | null
  tax_rate: number | null
  amount: number | null
}

export type Invoice_taxMaxAggregateOutputType = {
  id: bigint | null
  invoice_id: bigint | null
  tax_name: string | null
  tax_description: string | null
  tax_rate: number | null
  amount: number | null
}

export type Invoice_taxCountAggregateOutputType = {
  id: number
  invoice_id: number
  tax_name: number
  tax_description: number
  tax_rate: number
  amount: number
  _all: number
}


export type Invoice_taxAvgAggregateInputType = {
  id?: true
  invoice_id?: true
  tax_rate?: true
  amount?: true
}

export type Invoice_taxSumAggregateInputType = {
  id?: true
  invoice_id?: true
  tax_rate?: true
  amount?: true
}

export type Invoice_taxMinAggregateInputType = {
  id?: true
  invoice_id?: true
  tax_name?: true
  tax_description?: true
  tax_rate?: true
  amount?: true
}

export type Invoice_taxMaxAggregateInputType = {
  id?: true
  invoice_id?: true
  tax_name?: true
  tax_description?: true
  tax_rate?: true
  amount?: true
}

export type Invoice_taxCountAggregateInputType = {
  id?: true
  invoice_id?: true
  tax_name?: true
  tax_description?: true
  tax_rate?: true
  amount?: true
  _all?: true
}

export type Invoice_taxAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which invoice_tax to aggregate.
   */
  where?: Prisma.invoice_taxWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of invoice_taxes to fetch.
   */
  orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.invoice_taxWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` invoice_taxes 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` invoice_taxes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned invoice_taxes
  **/
  _count?: true | Invoice_taxCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Invoice_taxAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Invoice_taxSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Invoice_taxMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Invoice_taxMaxAggregateInputType
}

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




export type invoice_taxGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.invoice_taxWhereInput
  orderBy?: Prisma.invoice_taxOrderByWithAggregationInput | Prisma.invoice_taxOrderByWithAggregationInput[]
  by: Prisma.Invoice_taxScalarFieldEnum[] | Prisma.Invoice_taxScalarFieldEnum
  having?: Prisma.invoice_taxScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Invoice_taxCountAggregateInputType | true
  _avg?: Invoice_taxAvgAggregateInputType
  _sum?: Invoice_taxSumAggregateInputType
  _min?: Invoice_taxMinAggregateInputType
  _max?: Invoice_taxMaxAggregateInputType
}

export type Invoice_taxGroupByOutputType = {
  id: bigint
  invoice_id: bigint | null
  tax_name: string | null
  tax_description: string | null
  tax_rate: number | null
  amount: number | null
  _count: Invoice_taxCountAggregateOutputType | null
  _avg: Invoice_taxAvgAggregateOutputType | null
  _sum: Invoice_taxSumAggregateOutputType | null
  _min: Invoice_taxMinAggregateOutputType | null
  _max: Invoice_taxMaxAggregateOutputType | null
}

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



export type invoice_taxWhereInput = {
  AND?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[]
  OR?: Prisma.invoice_taxWhereInput[]
  NOT?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[]
  id?: Prisma.BigIntFilter<"invoice_tax"> | bigint | number
  invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax"> | bigint | number | null
  tax_name?: Prisma.StringNullableFilter<"invoice_tax"> | string | null
  tax_description?: Prisma.StringNullableFilter<"invoice_tax"> | string | null
  tax_rate?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null
  amount?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null
}

export type invoice_taxOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder
  tax_name?: Prisma.SortOrderInput | Prisma.SortOrder
  tax_description?: Prisma.SortOrderInput | Prisma.SortOrder
  tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder
  amount?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.invoice_taxOrderByRelevanceInput
}

export type invoice_taxWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[]
  OR?: Prisma.invoice_taxWhereInput[]
  NOT?: Prisma.invoice_taxWhereInput | Prisma.invoice_taxWhereInput[]
  invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax"> | bigint | number | null
  tax_name?: Prisma.StringNullableFilter<"invoice_tax"> | string | null
  tax_description?: Prisma.StringNullableFilter<"invoice_tax"> | string | null
  tax_rate?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null
  amount?: Prisma.FloatNullableFilter<"invoice_tax"> | number | null
}, "id">

export type invoice_taxOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder
  tax_name?: Prisma.SortOrderInput | Prisma.SortOrder
  tax_description?: Prisma.SortOrderInput | Prisma.SortOrder
  tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder
  amount?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.invoice_taxCountOrderByAggregateInput
  _avg?: Prisma.invoice_taxAvgOrderByAggregateInput
  _max?: Prisma.invoice_taxMaxOrderByAggregateInput
  _min?: Prisma.invoice_taxMinOrderByAggregateInput
  _sum?: Prisma.invoice_taxSumOrderByAggregateInput
}

export type invoice_taxScalarWhereWithAggregatesInput = {
  AND?: Prisma.invoice_taxScalarWhereWithAggregatesInput | Prisma.invoice_taxScalarWhereWithAggregatesInput[]
  OR?: Prisma.invoice_taxScalarWhereWithAggregatesInput[]
  NOT?: Prisma.invoice_taxScalarWhereWithAggregatesInput | Prisma.invoice_taxScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"invoice_tax"> | bigint | number
  invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_tax"> | bigint | number | null
  tax_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax"> | string | null
  tax_description?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax"> | string | null
  tax_rate?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax"> | number | null
  amount?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax"> | number | null
}

export type invoice_taxCreateInput = {
  id?: bigint | number
  invoice_id?: bigint | number | null
  tax_name?: string | null
  tax_description?: string | null
  tax_rate?: number | null
  amount?: number | null
}

export type invoice_taxUncheckedCreateInput = {
  id?: bigint | number
  invoice_id?: bigint | number | null
  tax_name?: string | null
  tax_description?: string | null
  tax_rate?: number | null
  amount?: number | null
}

export type invoice_taxUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

export type invoice_taxUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

export type invoice_taxCreateManyInput = {
  id?: bigint | number
  invoice_id?: bigint | number | null
  tax_name?: string | null
  tax_description?: string | null
  tax_rate?: number | null
  amount?: number | null
}

export type invoice_taxUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

export type invoice_taxUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
  amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}

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

export type invoice_taxCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  invoice_id?: Prisma.SortOrder
  tax_name?: Prisma.SortOrder
  tax_description?: Prisma.SortOrder
  tax_rate?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}

export type invoice_taxAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  invoice_id?: Prisma.SortOrder
  tax_rate?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}

export type invoice_taxMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  invoice_id?: Prisma.SortOrder
  tax_name?: Prisma.SortOrder
  tax_description?: Prisma.SortOrder
  tax_rate?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}

export type invoice_taxMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  invoice_id?: Prisma.SortOrder
  tax_name?: Prisma.SortOrder
  tax_description?: Prisma.SortOrder
  tax_rate?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}

export type invoice_taxSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  invoice_id?: Prisma.SortOrder
  tax_rate?: Prisma.SortOrder
  amount?: Prisma.SortOrder
}



export type invoice_taxSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  invoice_id?: boolean
  tax_name?: boolean
  tax_description?: boolean
  tax_rate?: boolean
  amount?: boolean
}, ExtArgs["result"]["invoice_tax"]>



export type invoice_taxSelectScalar = {
  id?: boolean
  invoice_id?: boolean
  tax_name?: boolean
  tax_description?: boolean
  tax_rate?: boolean
  amount?: boolean
}

export type invoice_taxOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "invoice_id" | "tax_name" | "tax_description" | "tax_rate" | "amount", ExtArgs["result"]["invoice_tax"]>

export type $invoice_taxPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "invoice_tax"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    invoice_id: bigint | null
    tax_name: string | null
    tax_description: string | null
    tax_rate: number | null
    amount: number | null
  }, ExtArgs["result"]["invoice_tax"]>
  composites: {}
}

export type invoice_taxGetPayload<S extends boolean | null | undefined | invoice_taxDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$invoice_taxPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

  /**
   * Allows you to perform aggregations operations on a Invoice_tax.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {Invoice_taxAggregateArgs} 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 Invoice_taxAggregateArgs>(args: Prisma.Subset<T, Invoice_taxAggregateArgs>): Prisma.PrismaPromise<GetInvoice_taxAggregateType<T>>

  /**
   * Group by Invoice_tax.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {invoice_taxGroupByArgs} 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 invoice_taxGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: invoice_taxGroupByArgs['orderBy'] }
      : { orderBy?: invoice_taxGroupByArgs['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, invoice_taxGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoice_taxGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the invoice_tax model
 */
readonly fields: invoice_taxFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for invoice_tax.
 * 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__invoice_taxClient<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 invoice_tax model
 */
export interface invoice_taxFieldRefs {
  readonly id: Prisma.FieldRef<"invoice_tax", 'BigInt'>
  readonly invoice_id: Prisma.FieldRef<"invoice_tax", 'BigInt'>
  readonly tax_name: Prisma.FieldRef<"invoice_tax", 'String'>
  readonly tax_description: Prisma.FieldRef<"invoice_tax", 'String'>
  readonly tax_rate: Prisma.FieldRef<"invoice_tax", 'Float'>
  readonly amount: Prisma.FieldRef<"invoice_tax", 'Float'>
}
    

// Custom InputTypes
/**
 * invoice_tax findUnique
 */
export type invoice_taxFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_tax
   */
  select?: Prisma.invoice_taxSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_tax
   */
  omit?: Prisma.invoice_taxOmit<ExtArgs> | null
  /**
   * Filter, which invoice_tax to fetch.
   */
  where: Prisma.invoice_taxWhereUniqueInput
}

/**
 * invoice_tax findUniqueOrThrow
 */
export type invoice_taxFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_tax
   */
  select?: Prisma.invoice_taxSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_tax
   */
  omit?: Prisma.invoice_taxOmit<ExtArgs> | null
  /**
   * Filter, which invoice_tax to fetch.
   */
  where: Prisma.invoice_taxWhereUniqueInput
}

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

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

/**
 * invoice_tax findMany
 */
export type invoice_taxFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_tax
   */
  select?: Prisma.invoice_taxSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_tax
   */
  omit?: Prisma.invoice_taxOmit<ExtArgs> | null
  /**
   * Filter, which invoice_taxes to fetch.
   */
  where?: Prisma.invoice_taxWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of invoice_taxes to fetch.
   */
  orderBy?: Prisma.invoice_taxOrderByWithRelationInput | Prisma.invoice_taxOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing invoice_taxes.
   */
  cursor?: Prisma.invoice_taxWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` invoice_taxes 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` invoice_taxes.
   */
  skip?: number
  distinct?: Prisma.Invoice_taxScalarFieldEnum | Prisma.Invoice_taxScalarFieldEnum[]
}

/**
 * invoice_tax create
 */
export type invoice_taxCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_tax
   */
  select?: Prisma.invoice_taxSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_tax
   */
  omit?: Prisma.invoice_taxOmit<ExtArgs> | null
  /**
   * The data needed to create a invoice_tax.
   */
  data?: Prisma.XOR<Prisma.invoice_taxCreateInput, Prisma.invoice_taxUncheckedCreateInput>
}

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

/**
 * invoice_tax update
 */
export type invoice_taxUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_tax
   */
  select?: Prisma.invoice_taxSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_tax
   */
  omit?: Prisma.invoice_taxOmit<ExtArgs> | null
  /**
   * The data needed to update a invoice_tax.
   */
  data: Prisma.XOR<Prisma.invoice_taxUpdateInput, Prisma.invoice_taxUncheckedUpdateInput>
  /**
   * Choose, which invoice_tax to update.
   */
  where: Prisma.invoice_taxWhereUniqueInput
}

/**
 * invoice_tax updateMany
 */
export type invoice_taxUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update invoice_taxes.
   */
  data: Prisma.XOR<Prisma.invoice_taxUpdateManyMutationInput, Prisma.invoice_taxUncheckedUpdateManyInput>
  /**
   * Filter which invoice_taxes to update
   */
  where?: Prisma.invoice_taxWhereInput
  /**
   * Limit how many invoice_taxes to update.
   */
  limit?: number
}

/**
 * invoice_tax upsert
 */
export type invoice_taxUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_tax
   */
  select?: Prisma.invoice_taxSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_tax
   */
  omit?: Prisma.invoice_taxOmit<ExtArgs> | null
  /**
   * The filter to search for the invoice_tax to update in case it exists.
   */
  where: Prisma.invoice_taxWhereUniqueInput
  /**
   * In case the invoice_tax found by the `where` argument doesn't exist, create a new invoice_tax with this data.
   */
  create: Prisma.XOR<Prisma.invoice_taxCreateInput, Prisma.invoice_taxUncheckedCreateInput>
  /**
   * In case the invoice_tax was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.invoice_taxUpdateInput, Prisma.invoice_taxUncheckedUpdateInput>
}

/**
 * invoice_tax delete
 */
export type invoice_taxDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_tax
   */
  select?: Prisma.invoice_taxSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_tax
   */
  omit?: Prisma.invoice_taxOmit<ExtArgs> | null
  /**
   * Filter which invoice_tax to delete.
   */
  where: Prisma.invoice_taxWhereUniqueInput
}

/**
 * invoice_tax deleteMany
 */
export type invoice_taxDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which invoice_taxes to delete
   */
  where?: Prisma.invoice_taxWhereInput
  /**
   * Limit how many invoice_taxes to delete.
   */
  limit?: number
}

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