/* !!! 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_setup` 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_setup * */ export type compta_setupModel = runtime.Types.Result.DefaultSelection export type AggregateCompta_setup = { _count: Compta_setupCountAggregateOutputType | null _avg: Compta_setupAvgAggregateOutputType | null _sum: Compta_setupSumAggregateOutputType | null _min: Compta_setupMinAggregateOutputType | null _max: Compta_setupMaxAggregateOutputType | null } export type Compta_setupAvgAggregateOutputType = { setup_id: number | null period_month: number | null ppa_id: number | null excedent_max: number | null month_closed: number | null pay_week_closed: number | null netadmin_dispo: number | null } export type Compta_setupSumAggregateOutputType = { setup_id: number | null period_month: number | null ppa_id: number | null excedent_max: number | null month_closed: bigint | null pay_week_closed: number | null netadmin_dispo: number | null } export type Compta_setupMinAggregateOutputType = { setup_id: number | null period_month: number | null ppa_id: number | null excedent_max: number | null month_closed: bigint | null pay_week_closed: number | null attachment_ext: string | null netadmin_dispo: number | null imap_token: string | null } export type Compta_setupMaxAggregateOutputType = { setup_id: number | null period_month: number | null ppa_id: number | null excedent_max: number | null month_closed: bigint | null pay_week_closed: number | null attachment_ext: string | null netadmin_dispo: number | null imap_token: string | null } export type Compta_setupCountAggregateOutputType = { setup_id: number period_month: number ppa_id: number excedent_max: number month_closed: number pay_week_closed: number attachment_ext: number netadmin_dispo: number imap_token: number _all: number } export type Compta_setupAvgAggregateInputType = { setup_id?: true period_month?: true ppa_id?: true excedent_max?: true month_closed?: true pay_week_closed?: true netadmin_dispo?: true } export type Compta_setupSumAggregateInputType = { setup_id?: true period_month?: true ppa_id?: true excedent_max?: true month_closed?: true pay_week_closed?: true netadmin_dispo?: true } export type Compta_setupMinAggregateInputType = { setup_id?: true period_month?: true ppa_id?: true excedent_max?: true month_closed?: true pay_week_closed?: true attachment_ext?: true netadmin_dispo?: true imap_token?: true } export type Compta_setupMaxAggregateInputType = { setup_id?: true period_month?: true ppa_id?: true excedent_max?: true month_closed?: true pay_week_closed?: true attachment_ext?: true netadmin_dispo?: true imap_token?: true } export type Compta_setupCountAggregateInputType = { setup_id?: true period_month?: true ppa_id?: true excedent_max?: true month_closed?: true pay_week_closed?: true attachment_ext?: true netadmin_dispo?: true imap_token?: true _all?: true } export type Compta_setupAggregateArgs = { /** * Filter which compta_setup to aggregate. */ where?: Prisma.compta_setupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of compta_setups to fetch. */ orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.compta_setupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` compta_setups 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_setups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned compta_setups **/ _count?: true | Compta_setupCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Compta_setupAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Compta_setupSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Compta_setupMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Compta_setupMaxAggregateInputType } export type GetCompta_setupAggregateType = { [P in keyof T & keyof AggregateCompta_setup]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type compta_setupGroupByArgs = { where?: Prisma.compta_setupWhereInput orderBy?: Prisma.compta_setupOrderByWithAggregationInput | Prisma.compta_setupOrderByWithAggregationInput[] by: Prisma.Compta_setupScalarFieldEnum[] | Prisma.Compta_setupScalarFieldEnum having?: Prisma.compta_setupScalarWhereWithAggregatesInput take?: number skip?: number _count?: Compta_setupCountAggregateInputType | true _avg?: Compta_setupAvgAggregateInputType _sum?: Compta_setupSumAggregateInputType _min?: Compta_setupMinAggregateInputType _max?: Compta_setupMaxAggregateInputType } export type Compta_setupGroupByOutputType = { setup_id: number period_month: number ppa_id: number excedent_max: number month_closed: bigint | null pay_week_closed: number attachment_ext: string netadmin_dispo: number imap_token: string | null _count: Compta_setupCountAggregateOutputType | null _avg: Compta_setupAvgAggregateOutputType | null _sum: Compta_setupSumAggregateOutputType | null _min: Compta_setupMinAggregateOutputType | null _max: Compta_setupMaxAggregateOutputType | null } type GetCompta_setupGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Compta_setupGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type compta_setupWhereInput = { AND?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[] OR?: Prisma.compta_setupWhereInput[] NOT?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[] setup_id?: Prisma.IntFilter<"compta_setup"> | number period_month?: Prisma.IntFilter<"compta_setup"> | number ppa_id?: Prisma.IntFilter<"compta_setup"> | number excedent_max?: Prisma.FloatFilter<"compta_setup"> | number month_closed?: Prisma.BigIntNullableFilter<"compta_setup"> | bigint | number | null pay_week_closed?: Prisma.IntFilter<"compta_setup"> | number attachment_ext?: Prisma.StringFilter<"compta_setup"> | string netadmin_dispo?: Prisma.IntFilter<"compta_setup"> | number imap_token?: Prisma.StringNullableFilter<"compta_setup"> | string | null } export type compta_setupOrderByWithRelationInput = { setup_id?: Prisma.SortOrder period_month?: Prisma.SortOrder ppa_id?: Prisma.SortOrder excedent_max?: Prisma.SortOrder month_closed?: Prisma.SortOrderInput | Prisma.SortOrder pay_week_closed?: Prisma.SortOrder attachment_ext?: Prisma.SortOrder netadmin_dispo?: Prisma.SortOrder imap_token?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.compta_setupOrderByRelevanceInput } export type compta_setupWhereUniqueInput = Prisma.AtLeast<{ setup_id?: number AND?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[] OR?: Prisma.compta_setupWhereInput[] NOT?: Prisma.compta_setupWhereInput | Prisma.compta_setupWhereInput[] period_month?: Prisma.IntFilter<"compta_setup"> | number ppa_id?: Prisma.IntFilter<"compta_setup"> | number excedent_max?: Prisma.FloatFilter<"compta_setup"> | number month_closed?: Prisma.BigIntNullableFilter<"compta_setup"> | bigint | number | null pay_week_closed?: Prisma.IntFilter<"compta_setup"> | number attachment_ext?: Prisma.StringFilter<"compta_setup"> | string netadmin_dispo?: Prisma.IntFilter<"compta_setup"> | number imap_token?: Prisma.StringNullableFilter<"compta_setup"> | string | null }, "setup_id"> export type compta_setupOrderByWithAggregationInput = { setup_id?: Prisma.SortOrder period_month?: Prisma.SortOrder ppa_id?: Prisma.SortOrder excedent_max?: Prisma.SortOrder month_closed?: Prisma.SortOrderInput | Prisma.SortOrder pay_week_closed?: Prisma.SortOrder attachment_ext?: Prisma.SortOrder netadmin_dispo?: Prisma.SortOrder imap_token?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.compta_setupCountOrderByAggregateInput _avg?: Prisma.compta_setupAvgOrderByAggregateInput _max?: Prisma.compta_setupMaxOrderByAggregateInput _min?: Prisma.compta_setupMinOrderByAggregateInput _sum?: Prisma.compta_setupSumOrderByAggregateInput } export type compta_setupScalarWhereWithAggregatesInput = { AND?: Prisma.compta_setupScalarWhereWithAggregatesInput | Prisma.compta_setupScalarWhereWithAggregatesInput[] OR?: Prisma.compta_setupScalarWhereWithAggregatesInput[] NOT?: Prisma.compta_setupScalarWhereWithAggregatesInput | Prisma.compta_setupScalarWhereWithAggregatesInput[] setup_id?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number period_month?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number ppa_id?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number excedent_max?: Prisma.FloatWithAggregatesFilter<"compta_setup"> | number month_closed?: Prisma.BigIntNullableWithAggregatesFilter<"compta_setup"> | bigint | number | null pay_week_closed?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number attachment_ext?: Prisma.StringWithAggregatesFilter<"compta_setup"> | string netadmin_dispo?: Prisma.IntWithAggregatesFilter<"compta_setup"> | number imap_token?: Prisma.StringNullableWithAggregatesFilter<"compta_setup"> | string | null } export type compta_setupCreateInput = { setup_id?: number period_month?: number ppa_id?: number excedent_max?: number month_closed?: bigint | number | null pay_week_closed: number attachment_ext: string netadmin_dispo?: number imap_token?: string | null } export type compta_setupUncheckedCreateInput = { setup_id?: number period_month?: number ppa_id?: number excedent_max?: number month_closed?: bigint | number | null pay_week_closed: number attachment_ext: string netadmin_dispo?: number imap_token?: string | null } export type compta_setupUpdateInput = { setup_id?: Prisma.IntFieldUpdateOperationsInput | number period_month?: Prisma.IntFieldUpdateOperationsInput | number ppa_id?: Prisma.IntFieldUpdateOperationsInput | number excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type compta_setupUncheckedUpdateInput = { setup_id?: Prisma.IntFieldUpdateOperationsInput | number period_month?: Prisma.IntFieldUpdateOperationsInput | number ppa_id?: Prisma.IntFieldUpdateOperationsInput | number excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type compta_setupCreateManyInput = { setup_id?: number period_month?: number ppa_id?: number excedent_max?: number month_closed?: bigint | number | null pay_week_closed: number attachment_ext: string netadmin_dispo?: number imap_token?: string | null } export type compta_setupUpdateManyMutationInput = { setup_id?: Prisma.IntFieldUpdateOperationsInput | number period_month?: Prisma.IntFieldUpdateOperationsInput | number ppa_id?: Prisma.IntFieldUpdateOperationsInput | number excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type compta_setupUncheckedUpdateManyInput = { setup_id?: Prisma.IntFieldUpdateOperationsInput | number period_month?: Prisma.IntFieldUpdateOperationsInput | number ppa_id?: Prisma.IntFieldUpdateOperationsInput | number excedent_max?: Prisma.FloatFieldUpdateOperationsInput | number month_closed?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null pay_week_closed?: Prisma.IntFieldUpdateOperationsInput | number attachment_ext?: Prisma.StringFieldUpdateOperationsInput | string netadmin_dispo?: Prisma.IntFieldUpdateOperationsInput | number imap_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type compta_setupOrderByRelevanceInput = { fields: Prisma.compta_setupOrderByRelevanceFieldEnum | Prisma.compta_setupOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type compta_setupCountOrderByAggregateInput = { setup_id?: Prisma.SortOrder period_month?: Prisma.SortOrder ppa_id?: Prisma.SortOrder excedent_max?: Prisma.SortOrder month_closed?: Prisma.SortOrder pay_week_closed?: Prisma.SortOrder attachment_ext?: Prisma.SortOrder netadmin_dispo?: Prisma.SortOrder imap_token?: Prisma.SortOrder } export type compta_setupAvgOrderByAggregateInput = { setup_id?: Prisma.SortOrder period_month?: Prisma.SortOrder ppa_id?: Prisma.SortOrder excedent_max?: Prisma.SortOrder month_closed?: Prisma.SortOrder pay_week_closed?: Prisma.SortOrder netadmin_dispo?: Prisma.SortOrder } export type compta_setupMaxOrderByAggregateInput = { setup_id?: Prisma.SortOrder period_month?: Prisma.SortOrder ppa_id?: Prisma.SortOrder excedent_max?: Prisma.SortOrder month_closed?: Prisma.SortOrder pay_week_closed?: Prisma.SortOrder attachment_ext?: Prisma.SortOrder netadmin_dispo?: Prisma.SortOrder imap_token?: Prisma.SortOrder } export type compta_setupMinOrderByAggregateInput = { setup_id?: Prisma.SortOrder period_month?: Prisma.SortOrder ppa_id?: Prisma.SortOrder excedent_max?: Prisma.SortOrder month_closed?: Prisma.SortOrder pay_week_closed?: Prisma.SortOrder attachment_ext?: Prisma.SortOrder netadmin_dispo?: Prisma.SortOrder imap_token?: Prisma.SortOrder } export type compta_setupSumOrderByAggregateInput = { setup_id?: Prisma.SortOrder period_month?: Prisma.SortOrder ppa_id?: Prisma.SortOrder excedent_max?: Prisma.SortOrder month_closed?: Prisma.SortOrder pay_week_closed?: Prisma.SortOrder netadmin_dispo?: Prisma.SortOrder } export type compta_setupSelect = runtime.Types.Extensions.GetSelect<{ setup_id?: boolean period_month?: boolean ppa_id?: boolean excedent_max?: boolean month_closed?: boolean pay_week_closed?: boolean attachment_ext?: boolean netadmin_dispo?: boolean imap_token?: boolean }, ExtArgs["result"]["compta_setup"]> export type compta_setupSelectScalar = { setup_id?: boolean period_month?: boolean ppa_id?: boolean excedent_max?: boolean month_closed?: boolean pay_week_closed?: boolean attachment_ext?: boolean netadmin_dispo?: boolean imap_token?: boolean } export type compta_setupOmit = runtime.Types.Extensions.GetOmit<"setup_id" | "period_month" | "ppa_id" | "excedent_max" | "month_closed" | "pay_week_closed" | "attachment_ext" | "netadmin_dispo" | "imap_token", ExtArgs["result"]["compta_setup"]> export type $compta_setupPayload = { name: "compta_setup" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ setup_id: number period_month: number ppa_id: number excedent_max: number month_closed: bigint | null pay_week_closed: number attachment_ext: string netadmin_dispo: number imap_token: string | null }, ExtArgs["result"]["compta_setup"]> composites: {} } export type compta_setupGetPayload = runtime.Types.Result.GetResult export type compta_setupCountArgs = Omit & { select?: Compta_setupCountAggregateInputType | true } export interface compta_setupDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['compta_setup'], meta: { name: 'compta_setup' } } /** * Find zero or one Compta_setup that matches the filter. * @param {compta_setupFindUniqueArgs} args - Arguments to find a Compta_setup * @example * // Get one Compta_setup * const compta_setup = await prisma.compta_setup.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Compta_setup that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {compta_setupFindUniqueOrThrowArgs} args - Arguments to find a Compta_setup * @example * // Get one Compta_setup * const compta_setup = await prisma.compta_setup.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Compta_setup 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_setupFindFirstArgs} args - Arguments to find a Compta_setup * @example * // Get one Compta_setup * const compta_setup = await prisma.compta_setup.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Compta_setup 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_setupFindFirstOrThrowArgs} args - Arguments to find a Compta_setup * @example * // Get one Compta_setup * const compta_setup = await prisma.compta_setup.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Compta_setups 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_setupFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Compta_setups * const compta_setups = await prisma.compta_setup.findMany() * * // Get first 10 Compta_setups * const compta_setups = await prisma.compta_setup.findMany({ take: 10 }) * * // Only select the `setup_id` * const compta_setupWithSetup_idOnly = await prisma.compta_setup.findMany({ select: { setup_id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Compta_setup. * @param {compta_setupCreateArgs} args - Arguments to create a Compta_setup. * @example * // Create one Compta_setup * const Compta_setup = await prisma.compta_setup.create({ * data: { * // ... data to create a Compta_setup * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Compta_setups. * @param {compta_setupCreateManyArgs} args - Arguments to create many Compta_setups. * @example * // Create many Compta_setups * const compta_setup = await prisma.compta_setup.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Compta_setup. * @param {compta_setupDeleteArgs} args - Arguments to delete one Compta_setup. * @example * // Delete one Compta_setup * const Compta_setup = await prisma.compta_setup.delete({ * where: { * // ... filter to delete one Compta_setup * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Compta_setup. * @param {compta_setupUpdateArgs} args - Arguments to update one Compta_setup. * @example * // Update one Compta_setup * const compta_setup = await prisma.compta_setup.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Compta_setups. * @param {compta_setupDeleteManyArgs} args - Arguments to filter Compta_setups to delete. * @example * // Delete a few Compta_setups * const { count } = await prisma.compta_setup.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Compta_setups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {compta_setupUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Compta_setups * const compta_setup = await prisma.compta_setup.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Compta_setup. * @param {compta_setupUpsertArgs} args - Arguments to update or create a Compta_setup. * @example * // Update or create a Compta_setup * const compta_setup = await prisma.compta_setup.upsert({ * create: { * // ... data to create a Compta_setup * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Compta_setup we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_setupClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Compta_setups. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {compta_setupCountArgs} args - Arguments to filter Compta_setups to count. * @example * // Count the number of Compta_setups * const count = await prisma.compta_setup.count({ * where: { * // ... the filter for the Compta_setups we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Compta_setup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Compta_setupAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Compta_setup. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {compta_setupGroupByArgs} 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_setupGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: compta_setupGroupByArgs['orderBy'] } : { orderBy?: compta_setupGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetCompta_setupGroupByPayload : Prisma.PrismaPromise /** * Fields of the compta_setup model */ readonly fields: compta_setupFieldRefs; } /** * The delegate class that acts as a "Promise-like" for compta_setup. * 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_setupClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the compta_setup model */ export interface compta_setupFieldRefs { readonly setup_id: Prisma.FieldRef<"compta_setup", 'Int'> readonly period_month: Prisma.FieldRef<"compta_setup", 'Int'> readonly ppa_id: Prisma.FieldRef<"compta_setup", 'Int'> readonly excedent_max: Prisma.FieldRef<"compta_setup", 'Float'> readonly month_closed: Prisma.FieldRef<"compta_setup", 'BigInt'> readonly pay_week_closed: Prisma.FieldRef<"compta_setup", 'Int'> readonly attachment_ext: Prisma.FieldRef<"compta_setup", 'String'> readonly netadmin_dispo: Prisma.FieldRef<"compta_setup", 'Int'> readonly imap_token: Prisma.FieldRef<"compta_setup", 'String'> } // Custom InputTypes /** * compta_setup findUnique */ export type compta_setupFindUniqueArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * Filter, which compta_setup to fetch. */ where: Prisma.compta_setupWhereUniqueInput } /** * compta_setup findUniqueOrThrow */ export type compta_setupFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * Filter, which compta_setup to fetch. */ where: Prisma.compta_setupWhereUniqueInput } /** * compta_setup findFirst */ export type compta_setupFindFirstArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * Filter, which compta_setup to fetch. */ where?: Prisma.compta_setupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of compta_setups to fetch. */ orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for compta_setups. */ cursor?: Prisma.compta_setupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` compta_setups 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_setups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of compta_setups. */ distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[] } /** * compta_setup findFirstOrThrow */ export type compta_setupFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * Filter, which compta_setup to fetch. */ where?: Prisma.compta_setupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of compta_setups to fetch. */ orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for compta_setups. */ cursor?: Prisma.compta_setupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` compta_setups 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_setups. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of compta_setups. */ distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[] } /** * compta_setup findMany */ export type compta_setupFindManyArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * Filter, which compta_setups to fetch. */ where?: Prisma.compta_setupWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of compta_setups to fetch. */ orderBy?: Prisma.compta_setupOrderByWithRelationInput | Prisma.compta_setupOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing compta_setups. */ cursor?: Prisma.compta_setupWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` compta_setups 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_setups. */ skip?: number distinct?: Prisma.Compta_setupScalarFieldEnum | Prisma.Compta_setupScalarFieldEnum[] } /** * compta_setup create */ export type compta_setupCreateArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * The data needed to create a compta_setup. */ data: Prisma.XOR } /** * compta_setup createMany */ export type compta_setupCreateManyArgs = { /** * The data used to create many compta_setups. */ data: Prisma.compta_setupCreateManyInput | Prisma.compta_setupCreateManyInput[] skipDuplicates?: boolean } /** * compta_setup update */ export type compta_setupUpdateArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * The data needed to update a compta_setup. */ data: Prisma.XOR /** * Choose, which compta_setup to update. */ where: Prisma.compta_setupWhereUniqueInput } /** * compta_setup updateMany */ export type compta_setupUpdateManyArgs = { /** * The data used to update compta_setups. */ data: Prisma.XOR /** * Filter which compta_setups to update */ where?: Prisma.compta_setupWhereInput /** * Limit how many compta_setups to update. */ limit?: number } /** * compta_setup upsert */ export type compta_setupUpsertArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * The filter to search for the compta_setup to update in case it exists. */ where: Prisma.compta_setupWhereUniqueInput /** * In case the compta_setup found by the `where` argument doesn't exist, create a new compta_setup with this data. */ create: Prisma.XOR /** * In case the compta_setup was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * compta_setup delete */ export type compta_setupDeleteArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null /** * Filter which compta_setup to delete. */ where: Prisma.compta_setupWhereUniqueInput } /** * compta_setup deleteMany */ export type compta_setupDeleteManyArgs = { /** * Filter which compta_setups to delete */ where?: Prisma.compta_setupWhereInput /** * Limit how many compta_setups to delete. */ limit?: number } /** * compta_setup without action */ export type compta_setupDefaultArgs = { /** * Select specific fields to fetch from the compta_setup */ select?: Prisma.compta_setupSelect | null /** * Omit specific fields from the compta_setup */ omit?: Prisma.compta_setupOmit | null }