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

export type AggregateCompta_periode = {
  _count: Compta_periodeCountAggregateOutputType | null
  _avg: Compta_periodeAvgAggregateOutputType | null
  _sum: Compta_periodeSumAggregateOutputType | null
  _min: Compta_periodeMinAggregateOutputType | null
  _max: Compta_periodeMaxAggregateOutputType | null
}

export type Compta_periodeAvgAggregateOutputType = {
  month: number | null
}

export type Compta_periodeSumAggregateOutputType = {
  month: number | null
}

export type Compta_periodeMinAggregateOutputType = {
  month: number | null
}

export type Compta_periodeMaxAggregateOutputType = {
  month: number | null
}

export type Compta_periodeCountAggregateOutputType = {
  month: number
  _all: number
}


export type Compta_periodeAvgAggregateInputType = {
  month?: true
}

export type Compta_periodeSumAggregateInputType = {
  month?: true
}

export type Compta_periodeMinAggregateInputType = {
  month?: true
}

export type Compta_periodeMaxAggregateInputType = {
  month?: true
}

export type Compta_periodeCountAggregateInputType = {
  month?: true
  _all?: true
}

export type Compta_periodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which compta_periode to aggregate.
   */
  where?: Prisma.compta_periodeWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of compta_periodes to fetch.
   */
  orderBy?: Prisma.compta_periodeOrderByWithRelationInput | Prisma.compta_periodeOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.compta_periodeWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` compta_periodes 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` compta_periodes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned compta_periodes
  **/
  _count?: true | Compta_periodeCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Compta_periodeAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Compta_periodeSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Compta_periodeMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Compta_periodeMaxAggregateInputType
}

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




export type compta_periodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.compta_periodeWhereInput
  orderBy?: Prisma.compta_periodeOrderByWithAggregationInput | Prisma.compta_periodeOrderByWithAggregationInput[]
  by: Prisma.Compta_periodeScalarFieldEnum[] | Prisma.Compta_periodeScalarFieldEnum
  having?: Prisma.compta_periodeScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Compta_periodeCountAggregateInputType | true
  _avg?: Compta_periodeAvgAggregateInputType
  _sum?: Compta_periodeSumAggregateInputType
  _min?: Compta_periodeMinAggregateInputType
  _max?: Compta_periodeMaxAggregateInputType
}

export type Compta_periodeGroupByOutputType = {
  month: number
  _count: Compta_periodeCountAggregateOutputType | null
  _avg: Compta_periodeAvgAggregateOutputType | null
  _sum: Compta_periodeSumAggregateOutputType | null
  _min: Compta_periodeMinAggregateOutputType | null
  _max: Compta_periodeMaxAggregateOutputType | null
}

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



export type compta_periodeWhereInput = {
  AND?: Prisma.compta_periodeWhereInput | Prisma.compta_periodeWhereInput[]
  OR?: Prisma.compta_periodeWhereInput[]
  NOT?: Prisma.compta_periodeWhereInput | Prisma.compta_periodeWhereInput[]
  month?: Prisma.IntFilter<"compta_periode"> | number
}

export type compta_periodeOrderByWithRelationInput = {
  month?: Prisma.SortOrder
}

export type compta_periodeWhereUniqueInput = Prisma.AtLeast<{
  month?: number
  AND?: Prisma.compta_periodeWhereInput | Prisma.compta_periodeWhereInput[]
  OR?: Prisma.compta_periodeWhereInput[]
  NOT?: Prisma.compta_periodeWhereInput | Prisma.compta_periodeWhereInput[]
}, "month">

export type compta_periodeOrderByWithAggregationInput = {
  month?: Prisma.SortOrder
  _count?: Prisma.compta_periodeCountOrderByAggregateInput
  _avg?: Prisma.compta_periodeAvgOrderByAggregateInput
  _max?: Prisma.compta_periodeMaxOrderByAggregateInput
  _min?: Prisma.compta_periodeMinOrderByAggregateInput
  _sum?: Prisma.compta_periodeSumOrderByAggregateInput
}

export type compta_periodeScalarWhereWithAggregatesInput = {
  AND?: Prisma.compta_periodeScalarWhereWithAggregatesInput | Prisma.compta_periodeScalarWhereWithAggregatesInput[]
  OR?: Prisma.compta_periodeScalarWhereWithAggregatesInput[]
  NOT?: Prisma.compta_periodeScalarWhereWithAggregatesInput | Prisma.compta_periodeScalarWhereWithAggregatesInput[]
  month?: Prisma.IntWithAggregatesFilter<"compta_periode"> | number
}

export type compta_periodeCreateInput = {
  month?: number
}

export type compta_periodeUncheckedCreateInput = {
  month?: number
}

export type compta_periodeUpdateInput = {
  month?: Prisma.IntFieldUpdateOperationsInput | number
}

export type compta_periodeUncheckedUpdateInput = {
  month?: Prisma.IntFieldUpdateOperationsInput | number
}

export type compta_periodeCreateManyInput = {
  month?: number
}

export type compta_periodeUpdateManyMutationInput = {
  month?: Prisma.IntFieldUpdateOperationsInput | number
}

export type compta_periodeUncheckedUpdateManyInput = {
  month?: Prisma.IntFieldUpdateOperationsInput | number
}

export type compta_periodeCountOrderByAggregateInput = {
  month?: Prisma.SortOrder
}

export type compta_periodeAvgOrderByAggregateInput = {
  month?: Prisma.SortOrder
}

export type compta_periodeMaxOrderByAggregateInput = {
  month?: Prisma.SortOrder
}

export type compta_periodeMinOrderByAggregateInput = {
  month?: Prisma.SortOrder
}

export type compta_periodeSumOrderByAggregateInput = {
  month?: Prisma.SortOrder
}



export type compta_periodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  month?: boolean
}, ExtArgs["result"]["compta_periode"]>



export type compta_periodeSelectScalar = {
  month?: boolean
}

export type compta_periodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"month", ExtArgs["result"]["compta_periode"]>

export type $compta_periodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "compta_periode"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    month: number
  }, ExtArgs["result"]["compta_periode"]>
  composites: {}
}

export type compta_periodeGetPayload<S extends boolean | null | undefined | compta_periodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$compta_periodePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for compta_periode.
 * 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__compta_periodeClient<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 compta_periode model
 */
export interface compta_periodeFieldRefs {
  readonly month: Prisma.FieldRef<"compta_periode", 'Int'>
}
    

// Custom InputTypes
/**
 * compta_periode findUnique
 */
export type compta_periodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the compta_periode
   */
  select?: Prisma.compta_periodeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the compta_periode
   */
  omit?: Prisma.compta_periodeOmit<ExtArgs> | null
  /**
   * Filter, which compta_periode to fetch.
   */
  where: Prisma.compta_periodeWhereUniqueInput
}

/**
 * compta_periode findUniqueOrThrow
 */
export type compta_periodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the compta_periode
   */
  select?: Prisma.compta_periodeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the compta_periode
   */
  omit?: Prisma.compta_periodeOmit<ExtArgs> | null
  /**
   * Filter, which compta_periode to fetch.
   */
  where: Prisma.compta_periodeWhereUniqueInput
}

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

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

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

/**
 * compta_periode create
 */
export type compta_periodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the compta_periode
   */
  select?: Prisma.compta_periodeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the compta_periode
   */
  omit?: Prisma.compta_periodeOmit<ExtArgs> | null
  /**
   * The data needed to create a compta_periode.
   */
  data?: Prisma.XOR<Prisma.compta_periodeCreateInput, Prisma.compta_periodeUncheckedCreateInput>
}

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

/**
 * compta_periode update
 */
export type compta_periodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the compta_periode
   */
  select?: Prisma.compta_periodeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the compta_periode
   */
  omit?: Prisma.compta_periodeOmit<ExtArgs> | null
  /**
   * The data needed to update a compta_periode.
   */
  data: Prisma.XOR<Prisma.compta_periodeUpdateInput, Prisma.compta_periodeUncheckedUpdateInput>
  /**
   * Choose, which compta_periode to update.
   */
  where: Prisma.compta_periodeWhereUniqueInput
}

/**
 * compta_periode updateMany
 */
export type compta_periodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update compta_periodes.
   */
  data: Prisma.XOR<Prisma.compta_periodeUpdateManyMutationInput, Prisma.compta_periodeUncheckedUpdateManyInput>
  /**
   * Filter which compta_periodes to update
   */
  where?: Prisma.compta_periodeWhereInput
  /**
   * Limit how many compta_periodes to update.
   */
  limit?: number
}

/**
 * compta_periode upsert
 */
export type compta_periodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the compta_periode
   */
  select?: Prisma.compta_periodeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the compta_periode
   */
  omit?: Prisma.compta_periodeOmit<ExtArgs> | null
  /**
   * The filter to search for the compta_periode to update in case it exists.
   */
  where: Prisma.compta_periodeWhereUniqueInput
  /**
   * In case the compta_periode found by the `where` argument doesn't exist, create a new compta_periode with this data.
   */
  create: Prisma.XOR<Prisma.compta_periodeCreateInput, Prisma.compta_periodeUncheckedCreateInput>
  /**
   * In case the compta_periode was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.compta_periodeUpdateInput, Prisma.compta_periodeUncheckedUpdateInput>
}

/**
 * compta_periode delete
 */
export type compta_periodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the compta_periode
   */
  select?: Prisma.compta_periodeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the compta_periode
   */
  omit?: Prisma.compta_periodeOmit<ExtArgs> | null
  /**
   * Filter which compta_periode to delete.
   */
  where: Prisma.compta_periodeWhereUniqueInput
}

/**
 * compta_periode deleteMany
 */
export type compta_periodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which compta_periodes to delete
   */
  where?: Prisma.compta_periodeWhereInput
  /**
   * Limit how many compta_periodes to delete.
   */
  limit?: number
}

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