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

export type AggregateSoumission = {
  _count: SoumissionCountAggregateOutputType | null
  _avg: SoumissionAvgAggregateOutputType | null
  _sum: SoumissionSumAggregateOutputType | null
  _min: SoumissionMinAggregateOutputType | null
  _max: SoumissionMaxAggregateOutputType | null
}

export type SoumissionAvgAggregateOutputType = {
  id: number | null
  account_id: number | null
  tax: number | null
}

export type SoumissionSumAggregateOutputType = {
  id: number | null
  account_id: bigint | null
  tax: number | null
}

export type SoumissionMinAggregateOutputType = {
  id: number | null
  account_id: bigint | null
  name: string | null
  po: string | null
  date: string | null
  tax: number | null
  materiel: string | null
  mensuel: string | null
  text: string | null
}

export type SoumissionMaxAggregateOutputType = {
  id: number | null
  account_id: bigint | null
  name: string | null
  po: string | null
  date: string | null
  tax: number | null
  materiel: string | null
  mensuel: string | null
  text: string | null
}

export type SoumissionCountAggregateOutputType = {
  id: number
  account_id: number
  name: number
  po: number
  date: number
  tax: number
  materiel: number
  mensuel: number
  text: number
  _all: number
}


export type SoumissionAvgAggregateInputType = {
  id?: true
  account_id?: true
  tax?: true
}

export type SoumissionSumAggregateInputType = {
  id?: true
  account_id?: true
  tax?: true
}

export type SoumissionMinAggregateInputType = {
  id?: true
  account_id?: true
  name?: true
  po?: true
  date?: true
  tax?: true
  materiel?: true
  mensuel?: true
  text?: true
}

export type SoumissionMaxAggregateInputType = {
  id?: true
  account_id?: true
  name?: true
  po?: true
  date?: true
  tax?: true
  materiel?: true
  mensuel?: true
  text?: true
}

export type SoumissionCountAggregateInputType = {
  id?: true
  account_id?: true
  name?: true
  po?: true
  date?: true
  tax?: true
  materiel?: true
  mensuel?: true
  text?: true
  _all?: true
}

export type SoumissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which soumission to aggregate.
   */
  where?: Prisma.soumissionWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of soumissions to fetch.
   */
  orderBy?: Prisma.soumissionOrderByWithRelationInput | Prisma.soumissionOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.soumissionWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` soumissions 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` soumissions.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned soumissions
  **/
  _count?: true | SoumissionCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: SoumissionAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: SoumissionSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: SoumissionMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: SoumissionMaxAggregateInputType
}

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




export type soumissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.soumissionWhereInput
  orderBy?: Prisma.soumissionOrderByWithAggregationInput | Prisma.soumissionOrderByWithAggregationInput[]
  by: Prisma.SoumissionScalarFieldEnum[] | Prisma.SoumissionScalarFieldEnum
  having?: Prisma.soumissionScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: SoumissionCountAggregateInputType | true
  _avg?: SoumissionAvgAggregateInputType
  _sum?: SoumissionSumAggregateInputType
  _min?: SoumissionMinAggregateInputType
  _max?: SoumissionMaxAggregateInputType
}

export type SoumissionGroupByOutputType = {
  id: number
  account_id: bigint
  name: string
  po: string | null
  date: string
  tax: number
  materiel: string | null
  mensuel: string | null
  text: string | null
  _count: SoumissionCountAggregateOutputType | null
  _avg: SoumissionAvgAggregateOutputType | null
  _sum: SoumissionSumAggregateOutputType | null
  _min: SoumissionMinAggregateOutputType | null
  _max: SoumissionMaxAggregateOutputType | null
}

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



export type soumissionWhereInput = {
  AND?: Prisma.soumissionWhereInput | Prisma.soumissionWhereInput[]
  OR?: Prisma.soumissionWhereInput[]
  NOT?: Prisma.soumissionWhereInput | Prisma.soumissionWhereInput[]
  id?: Prisma.IntFilter<"soumission"> | number
  account_id?: Prisma.BigIntFilter<"soumission"> | bigint | number
  name?: Prisma.StringFilter<"soumission"> | string
  po?: Prisma.StringNullableFilter<"soumission"> | string | null
  date?: Prisma.StringFilter<"soumission"> | string
  tax?: Prisma.IntFilter<"soumission"> | number
  materiel?: Prisma.StringNullableFilter<"soumission"> | string | null
  mensuel?: Prisma.StringNullableFilter<"soumission"> | string | null
  text?: Prisma.StringNullableFilter<"soumission"> | string | null
}

export type soumissionOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  po?: Prisma.SortOrderInput | Prisma.SortOrder
  date?: Prisma.SortOrder
  tax?: Prisma.SortOrder
  materiel?: Prisma.SortOrderInput | Prisma.SortOrder
  mensuel?: Prisma.SortOrderInput | Prisma.SortOrder
  text?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.soumissionOrderByRelevanceInput
}

export type soumissionWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.soumissionWhereInput | Prisma.soumissionWhereInput[]
  OR?: Prisma.soumissionWhereInput[]
  NOT?: Prisma.soumissionWhereInput | Prisma.soumissionWhereInput[]
  account_id?: Prisma.BigIntFilter<"soumission"> | bigint | number
  name?: Prisma.StringFilter<"soumission"> | string
  po?: Prisma.StringNullableFilter<"soumission"> | string | null
  date?: Prisma.StringFilter<"soumission"> | string
  tax?: Prisma.IntFilter<"soumission"> | number
  materiel?: Prisma.StringNullableFilter<"soumission"> | string | null
  mensuel?: Prisma.StringNullableFilter<"soumission"> | string | null
  text?: Prisma.StringNullableFilter<"soumission"> | string | null
}, "id">

export type soumissionOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  po?: Prisma.SortOrderInput | Prisma.SortOrder
  date?: Prisma.SortOrder
  tax?: Prisma.SortOrder
  materiel?: Prisma.SortOrderInput | Prisma.SortOrder
  mensuel?: Prisma.SortOrderInput | Prisma.SortOrder
  text?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.soumissionCountOrderByAggregateInput
  _avg?: Prisma.soumissionAvgOrderByAggregateInput
  _max?: Prisma.soumissionMaxOrderByAggregateInput
  _min?: Prisma.soumissionMinOrderByAggregateInput
  _sum?: Prisma.soumissionSumOrderByAggregateInput
}

export type soumissionScalarWhereWithAggregatesInput = {
  AND?: Prisma.soumissionScalarWhereWithAggregatesInput | Prisma.soumissionScalarWhereWithAggregatesInput[]
  OR?: Prisma.soumissionScalarWhereWithAggregatesInput[]
  NOT?: Prisma.soumissionScalarWhereWithAggregatesInput | Prisma.soumissionScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"soumission"> | number
  account_id?: Prisma.BigIntWithAggregatesFilter<"soumission"> | bigint | number
  name?: Prisma.StringWithAggregatesFilter<"soumission"> | string
  po?: Prisma.StringNullableWithAggregatesFilter<"soumission"> | string | null
  date?: Prisma.StringWithAggregatesFilter<"soumission"> | string
  tax?: Prisma.IntWithAggregatesFilter<"soumission"> | number
  materiel?: Prisma.StringNullableWithAggregatesFilter<"soumission"> | string | null
  mensuel?: Prisma.StringNullableWithAggregatesFilter<"soumission"> | string | null
  text?: Prisma.StringNullableWithAggregatesFilter<"soumission"> | string | null
}

export type soumissionCreateInput = {
  account_id: bigint | number
  name: string
  po?: string | null
  date: string
  tax: number
  materiel?: string | null
  mensuel?: string | null
  text?: string | null
}

export type soumissionUncheckedCreateInput = {
  id?: number
  account_id: bigint | number
  name: string
  po?: string | null
  date: string
  tax: number
  materiel?: string | null
  mensuel?: string | null
  text?: string | null
}

export type soumissionUpdateInput = {
  account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.StringFieldUpdateOperationsInput | string
  tax?: Prisma.IntFieldUpdateOperationsInput | number
  materiel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  mensuel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  text?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type soumissionUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.StringFieldUpdateOperationsInput | string
  tax?: Prisma.IntFieldUpdateOperationsInput | number
  materiel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  mensuel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  text?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type soumissionCreateManyInput = {
  id?: number
  account_id: bigint | number
  name: string
  po?: string | null
  date: string
  tax: number
  materiel?: string | null
  mensuel?: string | null
  text?: string | null
}

export type soumissionUpdateManyMutationInput = {
  account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.StringFieldUpdateOperationsInput | string
  tax?: Prisma.IntFieldUpdateOperationsInput | number
  materiel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  mensuel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  text?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type soumissionUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  account_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  po?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  date?: Prisma.StringFieldUpdateOperationsInput | string
  tax?: Prisma.IntFieldUpdateOperationsInput | number
  materiel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  mensuel?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  text?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

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

export type soumissionCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  po?: Prisma.SortOrder
  date?: Prisma.SortOrder
  tax?: Prisma.SortOrder
  materiel?: Prisma.SortOrder
  mensuel?: Prisma.SortOrder
  text?: Prisma.SortOrder
}

export type soumissionAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  tax?: Prisma.SortOrder
}

export type soumissionMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  po?: Prisma.SortOrder
  date?: Prisma.SortOrder
  tax?: Prisma.SortOrder
  materiel?: Prisma.SortOrder
  mensuel?: Prisma.SortOrder
  text?: Prisma.SortOrder
}

export type soumissionMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  po?: Prisma.SortOrder
  date?: Prisma.SortOrder
  tax?: Prisma.SortOrder
  materiel?: Prisma.SortOrder
  mensuel?: Prisma.SortOrder
  text?: Prisma.SortOrder
}

export type soumissionSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  tax?: Prisma.SortOrder
}



export type soumissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  account_id?: boolean
  name?: boolean
  po?: boolean
  date?: boolean
  tax?: boolean
  materiel?: boolean
  mensuel?: boolean
  text?: boolean
}, ExtArgs["result"]["soumission"]>



export type soumissionSelectScalar = {
  id?: boolean
  account_id?: boolean
  name?: boolean
  po?: boolean
  date?: boolean
  tax?: boolean
  materiel?: boolean
  mensuel?: boolean
  text?: boolean
}

export type soumissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "name" | "po" | "date" | "tax" | "materiel" | "mensuel" | "text", ExtArgs["result"]["soumission"]>

export type $soumissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "soumission"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    account_id: bigint
    name: string
    po: string | null
    date: string
    tax: number
    materiel: string | null
    mensuel: string | null
    text: string | null
  }, ExtArgs["result"]["soumission"]>
  composites: {}
}

export type soumissionGetPayload<S extends boolean | null | undefined | soumissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$soumissionPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for soumission.
 * 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__soumissionClient<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 model
 */
export interface soumissionFieldRefs {
  readonly id: Prisma.FieldRef<"soumission", 'Int'>
  readonly account_id: Prisma.FieldRef<"soumission", 'BigInt'>
  readonly name: Prisma.FieldRef<"soumission", 'String'>
  readonly po: Prisma.FieldRef<"soumission", 'String'>
  readonly date: Prisma.FieldRef<"soumission", 'String'>
  readonly tax: Prisma.FieldRef<"soumission", 'Int'>
  readonly materiel: Prisma.FieldRef<"soumission", 'String'>
  readonly mensuel: Prisma.FieldRef<"soumission", 'String'>
  readonly text: Prisma.FieldRef<"soumission", 'String'>
}
    

// Custom InputTypes
/**
 * soumission findUnique
 */
export type soumissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission
   */
  select?: Prisma.soumissionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission
   */
  omit?: Prisma.soumissionOmit<ExtArgs> | null
  /**
   * Filter, which soumission to fetch.
   */
  where: Prisma.soumissionWhereUniqueInput
}

/**
 * soumission findUniqueOrThrow
 */
export type soumissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission
   */
  select?: Prisma.soumissionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission
   */
  omit?: Prisma.soumissionOmit<ExtArgs> | null
  /**
   * Filter, which soumission to fetch.
   */
  where: Prisma.soumissionWhereUniqueInput
}

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

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

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

/**
 * soumission create
 */
export type soumissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission
   */
  select?: Prisma.soumissionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission
   */
  omit?: Prisma.soumissionOmit<ExtArgs> | null
  /**
   * The data needed to create a soumission.
   */
  data: Prisma.XOR<Prisma.soumissionCreateInput, Prisma.soumissionUncheckedCreateInput>
}

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

/**
 * soumission update
 */
export type soumissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission
   */
  select?: Prisma.soumissionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission
   */
  omit?: Prisma.soumissionOmit<ExtArgs> | null
  /**
   * The data needed to update a soumission.
   */
  data: Prisma.XOR<Prisma.soumissionUpdateInput, Prisma.soumissionUncheckedUpdateInput>
  /**
   * Choose, which soumission to update.
   */
  where: Prisma.soumissionWhereUniqueInput
}

/**
 * soumission updateMany
 */
export type soumissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update soumissions.
   */
  data: Prisma.XOR<Prisma.soumissionUpdateManyMutationInput, Prisma.soumissionUncheckedUpdateManyInput>
  /**
   * Filter which soumissions to update
   */
  where?: Prisma.soumissionWhereInput
  /**
   * Limit how many soumissions to update.
   */
  limit?: number
}

/**
 * soumission upsert
 */
export type soumissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission
   */
  select?: Prisma.soumissionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission
   */
  omit?: Prisma.soumissionOmit<ExtArgs> | null
  /**
   * The filter to search for the soumission to update in case it exists.
   */
  where: Prisma.soumissionWhereUniqueInput
  /**
   * In case the soumission found by the `where` argument doesn't exist, create a new soumission with this data.
   */
  create: Prisma.XOR<Prisma.soumissionCreateInput, Prisma.soumissionUncheckedCreateInput>
  /**
   * In case the soumission was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.soumissionUpdateInput, Prisma.soumissionUncheckedUpdateInput>
}

/**
 * soumission delete
 */
export type soumissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the soumission
   */
  select?: Prisma.soumissionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the soumission
   */
  omit?: Prisma.soumissionOmit<ExtArgs> | null
  /**
   * Filter which soumission to delete.
   */
  where: Prisma.soumissionWhereUniqueInput
}

/**
 * soumission deleteMany
 */
export type soumissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which soumissions to delete
   */
  where?: Prisma.soumissionWhereInput
  /**
   * Limit how many soumissions to delete.
   */
  limit?: number
}

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