/* !!! 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_journal_ecriture` 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_journal_ecriture * */ export type compta_journal_ecritureModel = runtime.Types.Result.DefaultSelection export type AggregateCompta_journal_ecriture = { _count: Compta_journal_ecritureCountAggregateOutputType | null _avg: Compta_journal_ecritureAvgAggregateOutputType | null _sum: Compta_journal_ecritureSumAggregateOutputType | null _min: Compta_journal_ecritureMinAggregateOutputType | null _max: Compta_journal_ecritureMaxAggregateOutputType | null } export type Compta_journal_ecritureAvgAggregateOutputType = { id: number | null date_orig: number | null num: number | null em: number | null } export type Compta_journal_ecritureSumAggregateOutputType = { id: bigint | null date_orig: bigint | null num: bigint | null em: number | null } export type Compta_journal_ecritureMinAggregateOutputType = { id: bigint | null date_orig: bigint | null type: string | null num: bigint | null customer_id: string | null full_name: string | null desc: string | null mo: string | null em: number | null } export type Compta_journal_ecritureMaxAggregateOutputType = { id: bigint | null date_orig: bigint | null type: string | null num: bigint | null customer_id: string | null full_name: string | null desc: string | null mo: string | null em: number | null } export type Compta_journal_ecritureCountAggregateOutputType = { id: number date_orig: number type: number num: number customer_id: number full_name: number desc: number mo: number em: number _all: number } export type Compta_journal_ecritureAvgAggregateInputType = { id?: true date_orig?: true num?: true em?: true } export type Compta_journal_ecritureSumAggregateInputType = { id?: true date_orig?: true num?: true em?: true } export type Compta_journal_ecritureMinAggregateInputType = { id?: true date_orig?: true type?: true num?: true customer_id?: true full_name?: true desc?: true mo?: true em?: true } export type Compta_journal_ecritureMaxAggregateInputType = { id?: true date_orig?: true type?: true num?: true customer_id?: true full_name?: true desc?: true mo?: true em?: true } export type Compta_journal_ecritureCountAggregateInputType = { id?: true date_orig?: true type?: true num?: true customer_id?: true full_name?: true desc?: true mo?: true em?: true _all?: true } export type Compta_journal_ecritureAggregateArgs = { /** * Filter which compta_journal_ecriture to aggregate. */ where?: Prisma.compta_journal_ecritureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of compta_journal_ecritures to fetch. */ orderBy?: Prisma.compta_journal_ecritureOrderByWithRelationInput | Prisma.compta_journal_ecritureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.compta_journal_ecritureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` compta_journal_ecritures 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_journal_ecritures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned compta_journal_ecritures **/ _count?: true | Compta_journal_ecritureCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Compta_journal_ecritureAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Compta_journal_ecritureSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Compta_journal_ecritureMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Compta_journal_ecritureMaxAggregateInputType } export type GetCompta_journal_ecritureAggregateType = { [P in keyof T & keyof AggregateCompta_journal_ecriture]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type compta_journal_ecritureGroupByArgs = { where?: Prisma.compta_journal_ecritureWhereInput orderBy?: Prisma.compta_journal_ecritureOrderByWithAggregationInput | Prisma.compta_journal_ecritureOrderByWithAggregationInput[] by: Prisma.Compta_journal_ecritureScalarFieldEnum[] | Prisma.Compta_journal_ecritureScalarFieldEnum having?: Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput take?: number skip?: number _count?: Compta_journal_ecritureCountAggregateInputType | true _avg?: Compta_journal_ecritureAvgAggregateInputType _sum?: Compta_journal_ecritureSumAggregateInputType _min?: Compta_journal_ecritureMinAggregateInputType _max?: Compta_journal_ecritureMaxAggregateInputType } export type Compta_journal_ecritureGroupByOutputType = { id: bigint date_orig: bigint | null type: string | null num: bigint | null customer_id: string | null full_name: string | null desc: string | null mo: string | null em: number _count: Compta_journal_ecritureCountAggregateOutputType | null _avg: Compta_journal_ecritureAvgAggregateOutputType | null _sum: Compta_journal_ecritureSumAggregateOutputType | null _min: Compta_journal_ecritureMinAggregateOutputType | null _max: Compta_journal_ecritureMaxAggregateOutputType | null } type GetCompta_journal_ecritureGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Compta_journal_ecritureGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type compta_journal_ecritureWhereInput = { AND?: Prisma.compta_journal_ecritureWhereInput | Prisma.compta_journal_ecritureWhereInput[] OR?: Prisma.compta_journal_ecritureWhereInput[] NOT?: Prisma.compta_journal_ecritureWhereInput | Prisma.compta_journal_ecritureWhereInput[] id?: Prisma.BigIntFilter<"compta_journal_ecriture"> | bigint | number date_orig?: Prisma.BigIntNullableFilter<"compta_journal_ecriture"> | bigint | number | null type?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null num?: Prisma.BigIntNullableFilter<"compta_journal_ecriture"> | bigint | number | null customer_id?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null full_name?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null desc?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null mo?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null em?: Prisma.IntFilter<"compta_journal_ecriture"> | number } export type compta_journal_ecritureOrderByWithRelationInput = { id?: Prisma.SortOrder date_orig?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrderInput | Prisma.SortOrder num?: Prisma.SortOrderInput | Prisma.SortOrder customer_id?: Prisma.SortOrderInput | Prisma.SortOrder full_name?: Prisma.SortOrderInput | Prisma.SortOrder desc?: Prisma.SortOrderInput | Prisma.SortOrder mo?: Prisma.SortOrderInput | Prisma.SortOrder em?: Prisma.SortOrder _relevance?: Prisma.compta_journal_ecritureOrderByRelevanceInput } export type compta_journal_ecritureWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: Prisma.compta_journal_ecritureWhereInput | Prisma.compta_journal_ecritureWhereInput[] OR?: Prisma.compta_journal_ecritureWhereInput[] NOT?: Prisma.compta_journal_ecritureWhereInput | Prisma.compta_journal_ecritureWhereInput[] date_orig?: Prisma.BigIntNullableFilter<"compta_journal_ecriture"> | bigint | number | null type?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null num?: Prisma.BigIntNullableFilter<"compta_journal_ecriture"> | bigint | number | null customer_id?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null full_name?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null desc?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null mo?: Prisma.StringNullableFilter<"compta_journal_ecriture"> | string | null em?: Prisma.IntFilter<"compta_journal_ecriture"> | number }, "id"> export type compta_journal_ecritureOrderByWithAggregationInput = { id?: Prisma.SortOrder date_orig?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrderInput | Prisma.SortOrder num?: Prisma.SortOrderInput | Prisma.SortOrder customer_id?: Prisma.SortOrderInput | Prisma.SortOrder full_name?: Prisma.SortOrderInput | Prisma.SortOrder desc?: Prisma.SortOrderInput | Prisma.SortOrder mo?: Prisma.SortOrderInput | Prisma.SortOrder em?: Prisma.SortOrder _count?: Prisma.compta_journal_ecritureCountOrderByAggregateInput _avg?: Prisma.compta_journal_ecritureAvgOrderByAggregateInput _max?: Prisma.compta_journal_ecritureMaxOrderByAggregateInput _min?: Prisma.compta_journal_ecritureMinOrderByAggregateInput _sum?: Prisma.compta_journal_ecritureSumOrderByAggregateInput } export type compta_journal_ecritureScalarWhereWithAggregatesInput = { AND?: Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput | Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput[] OR?: Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput[] NOT?: Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput | Prisma.compta_journal_ecritureScalarWhereWithAggregatesInput[] id?: Prisma.BigIntWithAggregatesFilter<"compta_journal_ecriture"> | bigint | number date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture"> | bigint | number | null type?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null num?: Prisma.BigIntNullableWithAggregatesFilter<"compta_journal_ecriture"> | bigint | number | null customer_id?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null full_name?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null desc?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null mo?: Prisma.StringNullableWithAggregatesFilter<"compta_journal_ecriture"> | string | null em?: Prisma.IntWithAggregatesFilter<"compta_journal_ecriture"> | number } export type compta_journal_ecritureCreateInput = { id?: bigint | number date_orig?: bigint | number | null type?: string | null num?: bigint | number | null customer_id?: string | null full_name?: string | null desc?: string | null mo?: string | null em?: number } export type compta_journal_ecritureUncheckedCreateInput = { id?: bigint | number date_orig?: bigint | number | null type?: string | null num?: bigint | number | null customer_id?: string | null full_name?: string | null desc?: string | null mo?: string | null em?: number } export type compta_journal_ecritureUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null em?: Prisma.IntFieldUpdateOperationsInput | number } export type compta_journal_ecritureUncheckedUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null em?: Prisma.IntFieldUpdateOperationsInput | number } export type compta_journal_ecritureCreateManyInput = { id?: bigint | number date_orig?: bigint | number | null type?: string | null num?: bigint | number | null customer_id?: string | null full_name?: string | null desc?: string | null mo?: string | null em?: number } export type compta_journal_ecritureUpdateManyMutationInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null em?: Prisma.IntFieldUpdateOperationsInput | number } export type compta_journal_ecritureUncheckedUpdateManyInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null num?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null full_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null mo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null em?: Prisma.IntFieldUpdateOperationsInput | number } export type compta_journal_ecritureOrderByRelevanceInput = { fields: Prisma.compta_journal_ecritureOrderByRelevanceFieldEnum | Prisma.compta_journal_ecritureOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type compta_journal_ecritureCountOrderByAggregateInput = { id?: Prisma.SortOrder date_orig?: Prisma.SortOrder type?: Prisma.SortOrder num?: Prisma.SortOrder customer_id?: Prisma.SortOrder full_name?: Prisma.SortOrder desc?: Prisma.SortOrder mo?: Prisma.SortOrder em?: Prisma.SortOrder } export type compta_journal_ecritureAvgOrderByAggregateInput = { id?: Prisma.SortOrder date_orig?: Prisma.SortOrder num?: Prisma.SortOrder em?: Prisma.SortOrder } export type compta_journal_ecritureMaxOrderByAggregateInput = { id?: Prisma.SortOrder date_orig?: Prisma.SortOrder type?: Prisma.SortOrder num?: Prisma.SortOrder customer_id?: Prisma.SortOrder full_name?: Prisma.SortOrder desc?: Prisma.SortOrder mo?: Prisma.SortOrder em?: Prisma.SortOrder } export type compta_journal_ecritureMinOrderByAggregateInput = { id?: Prisma.SortOrder date_orig?: Prisma.SortOrder type?: Prisma.SortOrder num?: Prisma.SortOrder customer_id?: Prisma.SortOrder full_name?: Prisma.SortOrder desc?: Prisma.SortOrder mo?: Prisma.SortOrder em?: Prisma.SortOrder } export type compta_journal_ecritureSumOrderByAggregateInput = { id?: Prisma.SortOrder date_orig?: Prisma.SortOrder num?: Prisma.SortOrder em?: Prisma.SortOrder } export type compta_journal_ecritureSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean date_orig?: boolean type?: boolean num?: boolean customer_id?: boolean full_name?: boolean desc?: boolean mo?: boolean em?: boolean }, ExtArgs["result"]["compta_journal_ecriture"]> export type compta_journal_ecritureSelectScalar = { id?: boolean date_orig?: boolean type?: boolean num?: boolean customer_id?: boolean full_name?: boolean desc?: boolean mo?: boolean em?: boolean } export type compta_journal_ecritureOmit = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "type" | "num" | "customer_id" | "full_name" | "desc" | "mo" | "em", ExtArgs["result"]["compta_journal_ecriture"]> export type $compta_journal_ecriturePayload = { name: "compta_journal_ecriture" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: bigint date_orig: bigint | null type: string | null num: bigint | null customer_id: string | null full_name: string | null desc: string | null mo: string | null em: number }, ExtArgs["result"]["compta_journal_ecriture"]> composites: {} } export type compta_journal_ecritureGetPayload = runtime.Types.Result.GetResult export type compta_journal_ecritureCountArgs = Omit & { select?: Compta_journal_ecritureCountAggregateInputType | true } export interface compta_journal_ecritureDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['compta_journal_ecriture'], meta: { name: 'compta_journal_ecriture' } } /** * Find zero or one Compta_journal_ecriture that matches the filter. * @param {compta_journal_ecritureFindUniqueArgs} args - Arguments to find a Compta_journal_ecriture * @example * // Get one Compta_journal_ecriture * const compta_journal_ecriture = await prisma.compta_journal_ecriture.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Compta_journal_ecriture that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {compta_journal_ecritureFindUniqueOrThrowArgs} args - Arguments to find a Compta_journal_ecriture * @example * // Get one Compta_journal_ecriture * const compta_journal_ecriture = await prisma.compta_journal_ecriture.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Compta_journal_ecriture 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_journal_ecritureFindFirstArgs} args - Arguments to find a Compta_journal_ecriture * @example * // Get one Compta_journal_ecriture * const compta_journal_ecriture = await prisma.compta_journal_ecriture.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Compta_journal_ecriture 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_journal_ecritureFindFirstOrThrowArgs} args - Arguments to find a Compta_journal_ecriture * @example * // Get one Compta_journal_ecriture * const compta_journal_ecriture = await prisma.compta_journal_ecriture.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Compta_journal_ecritures 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_journal_ecritureFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Compta_journal_ecritures * const compta_journal_ecritures = await prisma.compta_journal_ecriture.findMany() * * // Get first 10 Compta_journal_ecritures * const compta_journal_ecritures = await prisma.compta_journal_ecriture.findMany({ take: 10 }) * * // Only select the `id` * const compta_journal_ecritureWithIdOnly = await prisma.compta_journal_ecriture.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Compta_journal_ecriture. * @param {compta_journal_ecritureCreateArgs} args - Arguments to create a Compta_journal_ecriture. * @example * // Create one Compta_journal_ecriture * const Compta_journal_ecriture = await prisma.compta_journal_ecriture.create({ * data: { * // ... data to create a Compta_journal_ecriture * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Compta_journal_ecritures. * @param {compta_journal_ecritureCreateManyArgs} args - Arguments to create many Compta_journal_ecritures. * @example * // Create many Compta_journal_ecritures * const compta_journal_ecriture = await prisma.compta_journal_ecriture.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Compta_journal_ecriture. * @param {compta_journal_ecritureDeleteArgs} args - Arguments to delete one Compta_journal_ecriture. * @example * // Delete one Compta_journal_ecriture * const Compta_journal_ecriture = await prisma.compta_journal_ecriture.delete({ * where: { * // ... filter to delete one Compta_journal_ecriture * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Compta_journal_ecriture. * @param {compta_journal_ecritureUpdateArgs} args - Arguments to update one Compta_journal_ecriture. * @example * // Update one Compta_journal_ecriture * const compta_journal_ecriture = await prisma.compta_journal_ecriture.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Compta_journal_ecritures. * @param {compta_journal_ecritureDeleteManyArgs} args - Arguments to filter Compta_journal_ecritures to delete. * @example * // Delete a few Compta_journal_ecritures * const { count } = await prisma.compta_journal_ecriture.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Compta_journal_ecritures. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {compta_journal_ecritureUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Compta_journal_ecritures * const compta_journal_ecriture = await prisma.compta_journal_ecriture.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Compta_journal_ecriture. * @param {compta_journal_ecritureUpsertArgs} args - Arguments to update or create a Compta_journal_ecriture. * @example * // Update or create a Compta_journal_ecriture * const compta_journal_ecriture = await prisma.compta_journal_ecriture.upsert({ * create: { * // ... data to create a Compta_journal_ecriture * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Compta_journal_ecriture we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__compta_journal_ecritureClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Compta_journal_ecritures. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {compta_journal_ecritureCountArgs} args - Arguments to filter Compta_journal_ecritures to count. * @example * // Count the number of Compta_journal_ecritures * const count = await prisma.compta_journal_ecriture.count({ * where: { * // ... the filter for the Compta_journal_ecritures 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_journal_ecriture. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Compta_journal_ecritureAggregateArgs} 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_journal_ecriture. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {compta_journal_ecritureGroupByArgs} 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_journal_ecritureGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: compta_journal_ecritureGroupByArgs['orderBy'] } : { orderBy?: compta_journal_ecritureGroupByArgs['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_journal_ecritureGroupByPayload : Prisma.PrismaPromise /** * Fields of the compta_journal_ecriture model */ readonly fields: compta_journal_ecritureFieldRefs; } /** * The delegate class that acts as a "Promise-like" for compta_journal_ecriture. * 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_journal_ecritureClient 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_journal_ecriture model */ export interface compta_journal_ecritureFieldRefs { readonly id: Prisma.FieldRef<"compta_journal_ecriture", 'BigInt'> readonly date_orig: Prisma.FieldRef<"compta_journal_ecriture", 'BigInt'> readonly type: Prisma.FieldRef<"compta_journal_ecriture", 'String'> readonly num: Prisma.FieldRef<"compta_journal_ecriture", 'BigInt'> readonly customer_id: Prisma.FieldRef<"compta_journal_ecriture", 'String'> readonly full_name: Prisma.FieldRef<"compta_journal_ecriture", 'String'> readonly desc: Prisma.FieldRef<"compta_journal_ecriture", 'String'> readonly mo: Prisma.FieldRef<"compta_journal_ecriture", 'String'> readonly em: Prisma.FieldRef<"compta_journal_ecriture", 'Int'> } // Custom InputTypes /** * compta_journal_ecriture findUnique */ export type compta_journal_ecritureFindUniqueArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * Filter, which compta_journal_ecriture to fetch. */ where: Prisma.compta_journal_ecritureWhereUniqueInput } /** * compta_journal_ecriture findUniqueOrThrow */ export type compta_journal_ecritureFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * Filter, which compta_journal_ecriture to fetch. */ where: Prisma.compta_journal_ecritureWhereUniqueInput } /** * compta_journal_ecriture findFirst */ export type compta_journal_ecritureFindFirstArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * Filter, which compta_journal_ecriture to fetch. */ where?: Prisma.compta_journal_ecritureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of compta_journal_ecritures to fetch. */ orderBy?: Prisma.compta_journal_ecritureOrderByWithRelationInput | Prisma.compta_journal_ecritureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for compta_journal_ecritures. */ cursor?: Prisma.compta_journal_ecritureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` compta_journal_ecritures 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_journal_ecritures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of compta_journal_ecritures. */ distinct?: Prisma.Compta_journal_ecritureScalarFieldEnum | Prisma.Compta_journal_ecritureScalarFieldEnum[] } /** * compta_journal_ecriture findFirstOrThrow */ export type compta_journal_ecritureFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * Filter, which compta_journal_ecriture to fetch. */ where?: Prisma.compta_journal_ecritureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of compta_journal_ecritures to fetch. */ orderBy?: Prisma.compta_journal_ecritureOrderByWithRelationInput | Prisma.compta_journal_ecritureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for compta_journal_ecritures. */ cursor?: Prisma.compta_journal_ecritureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` compta_journal_ecritures 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_journal_ecritures. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of compta_journal_ecritures. */ distinct?: Prisma.Compta_journal_ecritureScalarFieldEnum | Prisma.Compta_journal_ecritureScalarFieldEnum[] } /** * compta_journal_ecriture findMany */ export type compta_journal_ecritureFindManyArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * Filter, which compta_journal_ecritures to fetch. */ where?: Prisma.compta_journal_ecritureWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of compta_journal_ecritures to fetch. */ orderBy?: Prisma.compta_journal_ecritureOrderByWithRelationInput | Prisma.compta_journal_ecritureOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing compta_journal_ecritures. */ cursor?: Prisma.compta_journal_ecritureWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` compta_journal_ecritures 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_journal_ecritures. */ skip?: number distinct?: Prisma.Compta_journal_ecritureScalarFieldEnum | Prisma.Compta_journal_ecritureScalarFieldEnum[] } /** * compta_journal_ecriture create */ export type compta_journal_ecritureCreateArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * The data needed to create a compta_journal_ecriture. */ data?: Prisma.XOR } /** * compta_journal_ecriture createMany */ export type compta_journal_ecritureCreateManyArgs = { /** * The data used to create many compta_journal_ecritures. */ data: Prisma.compta_journal_ecritureCreateManyInput | Prisma.compta_journal_ecritureCreateManyInput[] skipDuplicates?: boolean } /** * compta_journal_ecriture update */ export type compta_journal_ecritureUpdateArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * The data needed to update a compta_journal_ecriture. */ data: Prisma.XOR /** * Choose, which compta_journal_ecriture to update. */ where: Prisma.compta_journal_ecritureWhereUniqueInput } /** * compta_journal_ecriture updateMany */ export type compta_journal_ecritureUpdateManyArgs = { /** * The data used to update compta_journal_ecritures. */ data: Prisma.XOR /** * Filter which compta_journal_ecritures to update */ where?: Prisma.compta_journal_ecritureWhereInput /** * Limit how many compta_journal_ecritures to update. */ limit?: number } /** * compta_journal_ecriture upsert */ export type compta_journal_ecritureUpsertArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * The filter to search for the compta_journal_ecriture to update in case it exists. */ where: Prisma.compta_journal_ecritureWhereUniqueInput /** * In case the compta_journal_ecriture found by the `where` argument doesn't exist, create a new compta_journal_ecriture with this data. */ create: Prisma.XOR /** * In case the compta_journal_ecriture was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * compta_journal_ecriture delete */ export type compta_journal_ecritureDeleteArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null /** * Filter which compta_journal_ecriture to delete. */ where: Prisma.compta_journal_ecritureWhereUniqueInput } /** * compta_journal_ecriture deleteMany */ export type compta_journal_ecritureDeleteManyArgs = { /** * Filter which compta_journal_ecritures to delete */ where?: Prisma.compta_journal_ecritureWhereInput /** * Limit how many compta_journal_ecritures to delete. */ limit?: number } /** * compta_journal_ecriture without action */ export type compta_journal_ecritureDefaultArgs = { /** * Select specific fields to fetch from the compta_journal_ecriture */ select?: Prisma.compta_journal_ecritureSelect | null /** * Omit specific fields from the compta_journal_ecriture */ omit?: Prisma.compta_journal_ecritureOmit | null }