
/* !!! 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_msg_template` 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_msg_template
 * 
 */
export type invoice_msg_templateModel = runtime.Types.Result.DefaultSelection<Prisma.$invoice_msg_templatePayload>

export type AggregateInvoice_msg_template = {
  _count: Invoice_msg_templateCountAggregateOutputType | null
  _avg: Invoice_msg_templateAvgAggregateOutputType | null
  _sum: Invoice_msg_templateSumAggregateOutputType | null
  _min: Invoice_msg_templateMinAggregateOutputType | null
  _max: Invoice_msg_templateMaxAggregateOutputType | null
}

export type Invoice_msg_templateAvgAggregateOutputType = {
  id: number | null
}

export type Invoice_msg_templateSumAggregateOutputType = {
  id: bigint | null
}

export type Invoice_msg_templateMinAggregateOutputType = {
  id: bigint | null
  name: string | null
  message: string | null
}

export type Invoice_msg_templateMaxAggregateOutputType = {
  id: bigint | null
  name: string | null
  message: string | null
}

export type Invoice_msg_templateCountAggregateOutputType = {
  id: number
  name: number
  message: number
  _all: number
}


export type Invoice_msg_templateAvgAggregateInputType = {
  id?: true
}

export type Invoice_msg_templateSumAggregateInputType = {
  id?: true
}

export type Invoice_msg_templateMinAggregateInputType = {
  id?: true
  name?: true
  message?: true
}

export type Invoice_msg_templateMaxAggregateInputType = {
  id?: true
  name?: true
  message?: true
}

export type Invoice_msg_templateCountAggregateInputType = {
  id?: true
  name?: true
  message?: true
  _all?: true
}

export type Invoice_msg_templateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which invoice_msg_template to aggregate.
   */
  where?: Prisma.invoice_msg_templateWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of invoice_msg_templates to fetch.
   */
  orderBy?: Prisma.invoice_msg_templateOrderByWithRelationInput | Prisma.invoice_msg_templateOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.invoice_msg_templateWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` invoice_msg_templates 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_msg_templates.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned invoice_msg_templates
  **/
  _count?: true | Invoice_msg_templateCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Invoice_msg_templateAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Invoice_msg_templateSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Invoice_msg_templateMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Invoice_msg_templateMaxAggregateInputType
}

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




export type invoice_msg_templateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.invoice_msg_templateWhereInput
  orderBy?: Prisma.invoice_msg_templateOrderByWithAggregationInput | Prisma.invoice_msg_templateOrderByWithAggregationInput[]
  by: Prisma.Invoice_msg_templateScalarFieldEnum[] | Prisma.Invoice_msg_templateScalarFieldEnum
  having?: Prisma.invoice_msg_templateScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Invoice_msg_templateCountAggregateInputType | true
  _avg?: Invoice_msg_templateAvgAggregateInputType
  _sum?: Invoice_msg_templateSumAggregateInputType
  _min?: Invoice_msg_templateMinAggregateInputType
  _max?: Invoice_msg_templateMaxAggregateInputType
}

export type Invoice_msg_templateGroupByOutputType = {
  id: bigint
  name: string | null
  message: string | null
  _count: Invoice_msg_templateCountAggregateOutputType | null
  _avg: Invoice_msg_templateAvgAggregateOutputType | null
  _sum: Invoice_msg_templateSumAggregateOutputType | null
  _min: Invoice_msg_templateMinAggregateOutputType | null
  _max: Invoice_msg_templateMaxAggregateOutputType | null
}

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



export type invoice_msg_templateWhereInput = {
  AND?: Prisma.invoice_msg_templateWhereInput | Prisma.invoice_msg_templateWhereInput[]
  OR?: Prisma.invoice_msg_templateWhereInput[]
  NOT?: Prisma.invoice_msg_templateWhereInput | Prisma.invoice_msg_templateWhereInput[]
  id?: Prisma.BigIntFilter<"invoice_msg_template"> | bigint | number
  name?: Prisma.StringNullableFilter<"invoice_msg_template"> | string | null
  message?: Prisma.StringNullableFilter<"invoice_msg_template"> | string | null
}

export type invoice_msg_templateOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  message?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.invoice_msg_templateOrderByRelevanceInput
}

export type invoice_msg_templateWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.invoice_msg_templateWhereInput | Prisma.invoice_msg_templateWhereInput[]
  OR?: Prisma.invoice_msg_templateWhereInput[]
  NOT?: Prisma.invoice_msg_templateWhereInput | Prisma.invoice_msg_templateWhereInput[]
  name?: Prisma.StringNullableFilter<"invoice_msg_template"> | string | null
  message?: Prisma.StringNullableFilter<"invoice_msg_template"> | string | null
}, "id">

export type invoice_msg_templateOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  message?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.invoice_msg_templateCountOrderByAggregateInput
  _avg?: Prisma.invoice_msg_templateAvgOrderByAggregateInput
  _max?: Prisma.invoice_msg_templateMaxOrderByAggregateInput
  _min?: Prisma.invoice_msg_templateMinOrderByAggregateInput
  _sum?: Prisma.invoice_msg_templateSumOrderByAggregateInput
}

export type invoice_msg_templateScalarWhereWithAggregatesInput = {
  AND?: Prisma.invoice_msg_templateScalarWhereWithAggregatesInput | Prisma.invoice_msg_templateScalarWhereWithAggregatesInput[]
  OR?: Prisma.invoice_msg_templateScalarWhereWithAggregatesInput[]
  NOT?: Prisma.invoice_msg_templateScalarWhereWithAggregatesInput | Prisma.invoice_msg_templateScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"invoice_msg_template"> | bigint | number
  name?: Prisma.StringNullableWithAggregatesFilter<"invoice_msg_template"> | string | null
  message?: Prisma.StringNullableWithAggregatesFilter<"invoice_msg_template"> | string | null
}

export type invoice_msg_templateCreateInput = {
  id?: bigint | number
  name?: string | null
  message?: string | null
}

export type invoice_msg_templateUncheckedCreateInput = {
  id?: bigint | number
  name?: string | null
  message?: string | null
}

export type invoice_msg_templateUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type invoice_msg_templateUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type invoice_msg_templateCreateManyInput = {
  id?: bigint | number
  name?: string | null
  message?: string | null
}

export type invoice_msg_templateUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type invoice_msg_templateUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  message?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

export type invoice_msg_templateCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  message?: Prisma.SortOrder
}

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

export type invoice_msg_templateMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  message?: Prisma.SortOrder
}

export type invoice_msg_templateMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  message?: Prisma.SortOrder
}

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



export type invoice_msg_templateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  message?: boolean
}, ExtArgs["result"]["invoice_msg_template"]>



export type invoice_msg_templateSelectScalar = {
  id?: boolean
  name?: boolean
  message?: boolean
}

export type invoice_msg_templateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "message", ExtArgs["result"]["invoice_msg_template"]>

export type $invoice_msg_templatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "invoice_msg_template"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    name: string | null
    message: string | null
  }, ExtArgs["result"]["invoice_msg_template"]>
  composites: {}
}

export type invoice_msg_templateGetPayload<S extends boolean | null | undefined | invoice_msg_templateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$invoice_msg_templatePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for invoice_msg_template.
 * 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_msg_templateClient<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_msg_template model
 */
export interface invoice_msg_templateFieldRefs {
  readonly id: Prisma.FieldRef<"invoice_msg_template", 'BigInt'>
  readonly name: Prisma.FieldRef<"invoice_msg_template", 'String'>
  readonly message: Prisma.FieldRef<"invoice_msg_template", 'String'>
}
    

// Custom InputTypes
/**
 * invoice_msg_template findUnique
 */
export type invoice_msg_templateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_msg_template
   */
  select?: Prisma.invoice_msg_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_msg_template
   */
  omit?: Prisma.invoice_msg_templateOmit<ExtArgs> | null
  /**
   * Filter, which invoice_msg_template to fetch.
   */
  where: Prisma.invoice_msg_templateWhereUniqueInput
}

/**
 * invoice_msg_template findUniqueOrThrow
 */
export type invoice_msg_templateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_msg_template
   */
  select?: Prisma.invoice_msg_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_msg_template
   */
  omit?: Prisma.invoice_msg_templateOmit<ExtArgs> | null
  /**
   * Filter, which invoice_msg_template to fetch.
   */
  where: Prisma.invoice_msg_templateWhereUniqueInput
}

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

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

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

/**
 * invoice_msg_template create
 */
export type invoice_msg_templateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_msg_template
   */
  select?: Prisma.invoice_msg_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_msg_template
   */
  omit?: Prisma.invoice_msg_templateOmit<ExtArgs> | null
  /**
   * The data needed to create a invoice_msg_template.
   */
  data?: Prisma.XOR<Prisma.invoice_msg_templateCreateInput, Prisma.invoice_msg_templateUncheckedCreateInput>
}

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

/**
 * invoice_msg_template update
 */
export type invoice_msg_templateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_msg_template
   */
  select?: Prisma.invoice_msg_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_msg_template
   */
  omit?: Prisma.invoice_msg_templateOmit<ExtArgs> | null
  /**
   * The data needed to update a invoice_msg_template.
   */
  data: Prisma.XOR<Prisma.invoice_msg_templateUpdateInput, Prisma.invoice_msg_templateUncheckedUpdateInput>
  /**
   * Choose, which invoice_msg_template to update.
   */
  where: Prisma.invoice_msg_templateWhereUniqueInput
}

/**
 * invoice_msg_template updateMany
 */
export type invoice_msg_templateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update invoice_msg_templates.
   */
  data: Prisma.XOR<Prisma.invoice_msg_templateUpdateManyMutationInput, Prisma.invoice_msg_templateUncheckedUpdateManyInput>
  /**
   * Filter which invoice_msg_templates to update
   */
  where?: Prisma.invoice_msg_templateWhereInput
  /**
   * Limit how many invoice_msg_templates to update.
   */
  limit?: number
}

/**
 * invoice_msg_template upsert
 */
export type invoice_msg_templateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_msg_template
   */
  select?: Prisma.invoice_msg_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_msg_template
   */
  omit?: Prisma.invoice_msg_templateOmit<ExtArgs> | null
  /**
   * The filter to search for the invoice_msg_template to update in case it exists.
   */
  where: Prisma.invoice_msg_templateWhereUniqueInput
  /**
   * In case the invoice_msg_template found by the `where` argument doesn't exist, create a new invoice_msg_template with this data.
   */
  create: Prisma.XOR<Prisma.invoice_msg_templateCreateInput, Prisma.invoice_msg_templateUncheckedCreateInput>
  /**
   * In case the invoice_msg_template was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.invoice_msg_templateUpdateInput, Prisma.invoice_msg_templateUncheckedUpdateInput>
}

/**
 * invoice_msg_template delete
 */
export type invoice_msg_templateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the invoice_msg_template
   */
  select?: Prisma.invoice_msg_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the invoice_msg_template
   */
  omit?: Prisma.invoice_msg_templateOmit<ExtArgs> | null
  /**
   * Filter which invoice_msg_template to delete.
   */
  where: Prisma.invoice_msg_templateWhereUniqueInput
}

/**
 * invoice_msg_template deleteMany
 */
export type invoice_msg_templateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which invoice_msg_templates to delete
   */
  where?: Prisma.invoice_msg_templateWhereInput
  /**
   * Limit how many invoice_msg_templates to delete.
   */
  limit?: number
}

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