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

export type AggregateSoumission_template = {
  _count: Soumission_templateCountAggregateOutputType | null
  _avg: Soumission_templateAvgAggregateOutputType | null
  _sum: Soumission_templateSumAggregateOutputType | null
  _min: Soumission_templateMinAggregateOutputType | null
  _max: Soumission_templateMaxAggregateOutputType | null
}

export type Soumission_templateAvgAggregateOutputType = {
  id: number | null
}

export type Soumission_templateSumAggregateOutputType = {
  id: number | null
}

export type Soumission_templateMinAggregateOutputType = {
  id: number | null
  name: string | null
  materiel: string | null
  mensuel: string | null
}

export type Soumission_templateMaxAggregateOutputType = {
  id: number | null
  name: string | null
  materiel: string | null
  mensuel: string | null
}

export type Soumission_templateCountAggregateOutputType = {
  id: number
  name: number
  materiel: number
  mensuel: number
  _all: number
}


export type Soumission_templateAvgAggregateInputType = {
  id?: true
}

export type Soumission_templateSumAggregateInputType = {
  id?: true
}

export type Soumission_templateMinAggregateInputType = {
  id?: true
  name?: true
  materiel?: true
  mensuel?: true
}

export type Soumission_templateMaxAggregateInputType = {
  id?: true
  name?: true
  materiel?: true
  mensuel?: true
}

export type Soumission_templateCountAggregateInputType = {
  id?: true
  name?: true
  materiel?: true
  mensuel?: true
  _all?: true
}

export type Soumission_templateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which soumission_template to aggregate.
   */
  where?: Prisma.soumission_templateWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of soumission_templates to fetch.
   */
  orderBy?: Prisma.soumission_templateOrderByWithRelationInput | Prisma.soumission_templateOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.soumission_templateWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` soumission_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` soumission_templates.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned soumission_templates
  **/
  _count?: true | Soumission_templateCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Soumission_templateAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Soumission_templateSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Soumission_templateMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Soumission_templateMaxAggregateInputType
}

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




export type soumission_templateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.soumission_templateWhereInput
  orderBy?: Prisma.soumission_templateOrderByWithAggregationInput | Prisma.soumission_templateOrderByWithAggregationInput[]
  by: Prisma.Soumission_templateScalarFieldEnum[] | Prisma.Soumission_templateScalarFieldEnum
  having?: Prisma.soumission_templateScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Soumission_templateCountAggregateInputType | true
  _avg?: Soumission_templateAvgAggregateInputType
  _sum?: Soumission_templateSumAggregateInputType
  _min?: Soumission_templateMinAggregateInputType
  _max?: Soumission_templateMaxAggregateInputType
}

export type Soumission_templateGroupByOutputType = {
  id: number
  name: string
  materiel: string
  mensuel: string
  _count: Soumission_templateCountAggregateOutputType | null
  _avg: Soumission_templateAvgAggregateOutputType | null
  _sum: Soumission_templateSumAggregateOutputType | null
  _min: Soumission_templateMinAggregateOutputType | null
  _max: Soumission_templateMaxAggregateOutputType | null
}

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



export type soumission_templateWhereInput = {
  AND?: Prisma.soumission_templateWhereInput | Prisma.soumission_templateWhereInput[]
  OR?: Prisma.soumission_templateWhereInput[]
  NOT?: Prisma.soumission_templateWhereInput | Prisma.soumission_templateWhereInput[]
  id?: Prisma.IntFilter<"soumission_template"> | number
  name?: Prisma.StringFilter<"soumission_template"> | string
  materiel?: Prisma.StringFilter<"soumission_template"> | string
  mensuel?: Prisma.StringFilter<"soumission_template"> | string
}

export type soumission_templateOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  materiel?: Prisma.SortOrder
  mensuel?: Prisma.SortOrder
  _relevance?: Prisma.soumission_templateOrderByRelevanceInput
}

export type soumission_templateWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.soumission_templateWhereInput | Prisma.soumission_templateWhereInput[]
  OR?: Prisma.soumission_templateWhereInput[]
  NOT?: Prisma.soumission_templateWhereInput | Prisma.soumission_templateWhereInput[]
  name?: Prisma.StringFilter<"soumission_template"> | string
  materiel?: Prisma.StringFilter<"soumission_template"> | string
  mensuel?: Prisma.StringFilter<"soumission_template"> | string
}, "id">

export type soumission_templateOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  materiel?: Prisma.SortOrder
  mensuel?: Prisma.SortOrder
  _count?: Prisma.soumission_templateCountOrderByAggregateInput
  _avg?: Prisma.soumission_templateAvgOrderByAggregateInput
  _max?: Prisma.soumission_templateMaxOrderByAggregateInput
  _min?: Prisma.soumission_templateMinOrderByAggregateInput
  _sum?: Prisma.soumission_templateSumOrderByAggregateInput
}

export type soumission_templateScalarWhereWithAggregatesInput = {
  AND?: Prisma.soumission_templateScalarWhereWithAggregatesInput | Prisma.soumission_templateScalarWhereWithAggregatesInput[]
  OR?: Prisma.soumission_templateScalarWhereWithAggregatesInput[]
  NOT?: Prisma.soumission_templateScalarWhereWithAggregatesInput | Prisma.soumission_templateScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"soumission_template"> | number
  name?: Prisma.StringWithAggregatesFilter<"soumission_template"> | string
  materiel?: Prisma.StringWithAggregatesFilter<"soumission_template"> | string
  mensuel?: Prisma.StringWithAggregatesFilter<"soumission_template"> | string
}

export type soumission_templateCreateInput = {
  name: string
  materiel: string
  mensuel: string
}

export type soumission_templateUncheckedCreateInput = {
  id?: number
  name: string
  materiel: string
  mensuel: string
}

export type soumission_templateUpdateInput = {
  name?: Prisma.StringFieldUpdateOperationsInput | string
  materiel?: Prisma.StringFieldUpdateOperationsInput | string
  mensuel?: Prisma.StringFieldUpdateOperationsInput | string
}

export type soumission_templateUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  materiel?: Prisma.StringFieldUpdateOperationsInput | string
  mensuel?: Prisma.StringFieldUpdateOperationsInput | string
}

export type soumission_templateCreateManyInput = {
  id?: number
  name: string
  materiel: string
  mensuel: string
}

export type soumission_templateUpdateManyMutationInput = {
  name?: Prisma.StringFieldUpdateOperationsInput | string
  materiel?: Prisma.StringFieldUpdateOperationsInput | string
  mensuel?: Prisma.StringFieldUpdateOperationsInput | string
}

export type soumission_templateUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  materiel?: Prisma.StringFieldUpdateOperationsInput | string
  mensuel?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type soumission_templateCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  materiel?: Prisma.SortOrder
  mensuel?: Prisma.SortOrder
}

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

export type soumission_templateMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  materiel?: Prisma.SortOrder
  mensuel?: Prisma.SortOrder
}

export type soumission_templateMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  materiel?: Prisma.SortOrder
  mensuel?: Prisma.SortOrder
}

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



export type soumission_templateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  materiel?: boolean
  mensuel?: boolean
}, ExtArgs["result"]["soumission_template"]>



export type soumission_templateSelectScalar = {
  id?: boolean
  name?: boolean
  materiel?: boolean
  mensuel?: boolean
}

export type soumission_templateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "materiel" | "mensuel", ExtArgs["result"]["soumission_template"]>

export type $soumission_templatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "soumission_template"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    name: string
    materiel: string
    mensuel: string
  }, ExtArgs["result"]["soumission_template"]>
  composites: {}
}

export type soumission_templateGetPayload<S extends boolean | null | undefined | soumission_templateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$soumission_templatePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for soumission_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__soumission_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 soumission_template model
 */
export interface soumission_templateFieldRefs {
  readonly id: Prisma.FieldRef<"soumission_template", 'Int'>
  readonly name: Prisma.FieldRef<"soumission_template", 'String'>
  readonly materiel: Prisma.FieldRef<"soumission_template", 'String'>
  readonly mensuel: Prisma.FieldRef<"soumission_template", 'String'>
}
    

// Custom InputTypes
/**
 * soumission_template findUnique
 */
export type soumission_templateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission_template
   */
  select?: Prisma.soumission_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission_template
   */
  omit?: Prisma.soumission_templateOmit<ExtArgs> | null
  /**
   * Filter, which soumission_template to fetch.
   */
  where: Prisma.soumission_templateWhereUniqueInput
}

/**
 * soumission_template findUniqueOrThrow
 */
export type soumission_templateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission_template
   */
  select?: Prisma.soumission_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission_template
   */
  omit?: Prisma.soumission_templateOmit<ExtArgs> | null
  /**
   * Filter, which soumission_template to fetch.
   */
  where: Prisma.soumission_templateWhereUniqueInput
}

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

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

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

/**
 * soumission_template create
 */
export type soumission_templateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission_template
   */
  select?: Prisma.soumission_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission_template
   */
  omit?: Prisma.soumission_templateOmit<ExtArgs> | null
  /**
   * The data needed to create a soumission_template.
   */
  data: Prisma.XOR<Prisma.soumission_templateCreateInput, Prisma.soumission_templateUncheckedCreateInput>
}

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

/**
 * soumission_template update
 */
export type soumission_templateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission_template
   */
  select?: Prisma.soumission_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission_template
   */
  omit?: Prisma.soumission_templateOmit<ExtArgs> | null
  /**
   * The data needed to update a soumission_template.
   */
  data: Prisma.XOR<Prisma.soumission_templateUpdateInput, Prisma.soumission_templateUncheckedUpdateInput>
  /**
   * Choose, which soumission_template to update.
   */
  where: Prisma.soumission_templateWhereUniqueInput
}

/**
 * soumission_template updateMany
 */
export type soumission_templateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update soumission_templates.
   */
  data: Prisma.XOR<Prisma.soumission_templateUpdateManyMutationInput, Prisma.soumission_templateUncheckedUpdateManyInput>
  /**
   * Filter which soumission_templates to update
   */
  where?: Prisma.soumission_templateWhereInput
  /**
   * Limit how many soumission_templates to update.
   */
  limit?: number
}

/**
 * soumission_template upsert
 */
export type soumission_templateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission_template
   */
  select?: Prisma.soumission_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission_template
   */
  omit?: Prisma.soumission_templateOmit<ExtArgs> | null
  /**
   * The filter to search for the soumission_template to update in case it exists.
   */
  where: Prisma.soumission_templateWhereUniqueInput
  /**
   * In case the soumission_template found by the `where` argument doesn't exist, create a new soumission_template with this data.
   */
  create: Prisma.XOR<Prisma.soumission_templateCreateInput, Prisma.soumission_templateUncheckedCreateInput>
  /**
   * In case the soumission_template was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.soumission_templateUpdateInput, Prisma.soumission_templateUncheckedUpdateInput>
}

/**
 * soumission_template delete
 */
export type soumission_templateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission_template
   */
  select?: Prisma.soumission_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission_template
   */
  omit?: Prisma.soumission_templateOmit<ExtArgs> | null
  /**
   * Filter which soumission_template to delete.
   */
  where: Prisma.soumission_templateWhereUniqueInput
}

/**
 * soumission_template deleteMany
 */
export type soumission_templateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which soumission_templates to delete
   */
  where?: Prisma.soumission_templateWhereInput
  /**
   * Limit how many soumission_templates to delete.
   */
  limit?: number
}

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