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

export type AggregateTax_group = {
  _count: Tax_groupCountAggregateOutputType | null
  _avg: Tax_groupAvgAggregateOutputType | null
  _sum: Tax_groupSumAggregateOutputType | null
  _min: Tax_groupMinAggregateOutputType | null
  _max: Tax_groupMaxAggregateOutputType | null
}

export type Tax_groupAvgAggregateOutputType = {
  id: number | null
}

export type Tax_groupSumAggregateOutputType = {
  id: number | null
}

export type Tax_groupMinAggregateOutputType = {
  id: number | null
  name: string | null
  description: string | null
  tax: string | null
}

export type Tax_groupMaxAggregateOutputType = {
  id: number | null
  name: string | null
  description: string | null
  tax: string | null
}

export type Tax_groupCountAggregateOutputType = {
  id: number
  name: number
  description: number
  tax: number
  _all: number
}


export type Tax_groupAvgAggregateInputType = {
  id?: true
}

export type Tax_groupSumAggregateInputType = {
  id?: true
}

export type Tax_groupMinAggregateInputType = {
  id?: true
  name?: true
  description?: true
  tax?: true
}

export type Tax_groupMaxAggregateInputType = {
  id?: true
  name?: true
  description?: true
  tax?: true
}

export type Tax_groupCountAggregateInputType = {
  id?: true
  name?: true
  description?: true
  tax?: true
  _all?: true
}

export type Tax_groupAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which tax_group to aggregate.
   */
  where?: Prisma.tax_groupWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of tax_groups to fetch.
   */
  orderBy?: Prisma.tax_groupOrderByWithRelationInput | Prisma.tax_groupOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.tax_groupWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` tax_groups 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` tax_groups.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned tax_groups
  **/
  _count?: true | Tax_groupCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Tax_groupAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Tax_groupSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Tax_groupMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Tax_groupMaxAggregateInputType
}

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




export type tax_groupGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.tax_groupWhereInput
  orderBy?: Prisma.tax_groupOrderByWithAggregationInput | Prisma.tax_groupOrderByWithAggregationInput[]
  by: Prisma.Tax_groupScalarFieldEnum[] | Prisma.Tax_groupScalarFieldEnum
  having?: Prisma.tax_groupScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Tax_groupCountAggregateInputType | true
  _avg?: Tax_groupAvgAggregateInputType
  _sum?: Tax_groupSumAggregateInputType
  _min?: Tax_groupMinAggregateInputType
  _max?: Tax_groupMaxAggregateInputType
}

export type Tax_groupGroupByOutputType = {
  id: number
  name: string | null
  description: string | null
  tax: string | null
  _count: Tax_groupCountAggregateOutputType | null
  _avg: Tax_groupAvgAggregateOutputType | null
  _sum: Tax_groupSumAggregateOutputType | null
  _min: Tax_groupMinAggregateOutputType | null
  _max: Tax_groupMaxAggregateOutputType | null
}

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



export type tax_groupWhereInput = {
  AND?: Prisma.tax_groupWhereInput | Prisma.tax_groupWhereInput[]
  OR?: Prisma.tax_groupWhereInput[]
  NOT?: Prisma.tax_groupWhereInput | Prisma.tax_groupWhereInput[]
  id?: Prisma.IntFilter<"tax_group"> | number
  name?: Prisma.StringNullableFilter<"tax_group"> | string | null
  description?: Prisma.StringNullableFilter<"tax_group"> | string | null
  tax?: Prisma.StringNullableFilter<"tax_group"> | string | null
}

export type tax_groupOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  tax?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.tax_groupOrderByRelevanceInput
}

export type tax_groupWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.tax_groupWhereInput | Prisma.tax_groupWhereInput[]
  OR?: Prisma.tax_groupWhereInput[]
  NOT?: Prisma.tax_groupWhereInput | Prisma.tax_groupWhereInput[]
  name?: Prisma.StringNullableFilter<"tax_group"> | string | null
  description?: Prisma.StringNullableFilter<"tax_group"> | string | null
  tax?: Prisma.StringNullableFilter<"tax_group"> | string | null
}, "id">

export type tax_groupOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  tax?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.tax_groupCountOrderByAggregateInput
  _avg?: Prisma.tax_groupAvgOrderByAggregateInput
  _max?: Prisma.tax_groupMaxOrderByAggregateInput
  _min?: Prisma.tax_groupMinOrderByAggregateInput
  _sum?: Prisma.tax_groupSumOrderByAggregateInput
}

export type tax_groupScalarWhereWithAggregatesInput = {
  AND?: Prisma.tax_groupScalarWhereWithAggregatesInput | Prisma.tax_groupScalarWhereWithAggregatesInput[]
  OR?: Prisma.tax_groupScalarWhereWithAggregatesInput[]
  NOT?: Prisma.tax_groupScalarWhereWithAggregatesInput | Prisma.tax_groupScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"tax_group"> | number
  name?: Prisma.StringNullableWithAggregatesFilter<"tax_group"> | string | null
  description?: Prisma.StringNullableWithAggregatesFilter<"tax_group"> | string | null
  tax?: Prisma.StringNullableWithAggregatesFilter<"tax_group"> | string | null
}

export type tax_groupCreateInput = {
  name?: string | null
  description?: string | null
  tax?: string | null
}

export type tax_groupUncheckedCreateInput = {
  id?: number
  name?: string | null
  description?: string | null
  tax?: string | null
}

export type tax_groupUpdateInput = {
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type tax_groupUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type tax_groupCreateManyInput = {
  id?: number
  name?: string | null
  description?: string | null
  tax?: string | null
}

export type tax_groupUpdateManyMutationInput = {
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type tax_groupUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tax?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

export type tax_groupCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  tax?: Prisma.SortOrder
}

export type tax_groupAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type tax_groupMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  tax?: Prisma.SortOrder
}

export type tax_groupMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  tax?: Prisma.SortOrder
}

export type tax_groupSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
}



export type tax_groupSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  description?: boolean
  tax?: boolean
}, ExtArgs["result"]["tax_group"]>



export type tax_groupSelectScalar = {
  id?: boolean
  name?: boolean
  description?: boolean
  tax?: boolean
}

export type tax_groupOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "tax", ExtArgs["result"]["tax_group"]>

export type $tax_groupPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "tax_group"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    name: string | null
    description: string | null
    tax: string | null
  }, ExtArgs["result"]["tax_group"]>
  composites: {}
}

export type tax_groupGetPayload<S extends boolean | null | undefined | tax_groupDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tax_groupPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for tax_group.
 * 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__tax_groupClient<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 tax_group model
 */
export interface tax_groupFieldRefs {
  readonly id: Prisma.FieldRef<"tax_group", 'Int'>
  readonly name: Prisma.FieldRef<"tax_group", 'String'>
  readonly description: Prisma.FieldRef<"tax_group", 'String'>
  readonly tax: Prisma.FieldRef<"tax_group", 'String'>
}
    

// Custom InputTypes
/**
 * tax_group findUnique
 */
export type tax_groupFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tax_group
   */
  select?: Prisma.tax_groupSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tax_group
   */
  omit?: Prisma.tax_groupOmit<ExtArgs> | null
  /**
   * Filter, which tax_group to fetch.
   */
  where: Prisma.tax_groupWhereUniqueInput
}

/**
 * tax_group findUniqueOrThrow
 */
export type tax_groupFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tax_group
   */
  select?: Prisma.tax_groupSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tax_group
   */
  omit?: Prisma.tax_groupOmit<ExtArgs> | null
  /**
   * Filter, which tax_group to fetch.
   */
  where: Prisma.tax_groupWhereUniqueInput
}

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

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

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

/**
 * tax_group create
 */
export type tax_groupCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tax_group
   */
  select?: Prisma.tax_groupSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tax_group
   */
  omit?: Prisma.tax_groupOmit<ExtArgs> | null
  /**
   * The data needed to create a tax_group.
   */
  data?: Prisma.XOR<Prisma.tax_groupCreateInput, Prisma.tax_groupUncheckedCreateInput>
}

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

/**
 * tax_group update
 */
export type tax_groupUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tax_group
   */
  select?: Prisma.tax_groupSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tax_group
   */
  omit?: Prisma.tax_groupOmit<ExtArgs> | null
  /**
   * The data needed to update a tax_group.
   */
  data: Prisma.XOR<Prisma.tax_groupUpdateInput, Prisma.tax_groupUncheckedUpdateInput>
  /**
   * Choose, which tax_group to update.
   */
  where: Prisma.tax_groupWhereUniqueInput
}

/**
 * tax_group updateMany
 */
export type tax_groupUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update tax_groups.
   */
  data: Prisma.XOR<Prisma.tax_groupUpdateManyMutationInput, Prisma.tax_groupUncheckedUpdateManyInput>
  /**
   * Filter which tax_groups to update
   */
  where?: Prisma.tax_groupWhereInput
  /**
   * Limit how many tax_groups to update.
   */
  limit?: number
}

/**
 * tax_group upsert
 */
export type tax_groupUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tax_group
   */
  select?: Prisma.tax_groupSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tax_group
   */
  omit?: Prisma.tax_groupOmit<ExtArgs> | null
  /**
   * The filter to search for the tax_group to update in case it exists.
   */
  where: Prisma.tax_groupWhereUniqueInput
  /**
   * In case the tax_group found by the `where` argument doesn't exist, create a new tax_group with this data.
   */
  create: Prisma.XOR<Prisma.tax_groupCreateInput, Prisma.tax_groupUncheckedCreateInput>
  /**
   * In case the tax_group was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.tax_groupUpdateInput, Prisma.tax_groupUncheckedUpdateInput>
}

/**
 * tax_group delete
 */
export type tax_groupDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the tax_group
   */
  select?: Prisma.tax_groupSelect<ExtArgs> | null
  /**
   * Omit specific fields from the tax_group
   */
  omit?: Prisma.tax_groupOmit<ExtArgs> | null
  /**
   * Filter which tax_group to delete.
   */
  where: Prisma.tax_groupWhereUniqueInput
}

/**
 * tax_group deleteMany
 */
export type tax_groupDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which tax_groups to delete
   */
  where?: Prisma.tax_groupWhereInput
  /**
   * Limit how many tax_groups to delete.
   */
  limit?: number
}

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