/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `td_payable` 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 td_payable * */ export type td_payableModel = runtime.Types.Result.DefaultSelection export type AggregateTd_payable = { _count: Td_payableCountAggregateOutputType | null _avg: Td_payableAvgAggregateOutputType | null _sum: Td_payableSumAggregateOutputType | null _min: Td_payableMinAggregateOutputType | null _max: Td_payableMaxAggregateOutputType | null } export type Td_payableAvgAggregateOutputType = { id: number | null ticket_id: number | null montant: runtime.Decimal | null } export type Td_payableSumAggregateOutputType = { id: number | null ticket_id: number | null montant: runtime.Decimal | null } export type Td_payableMinAggregateOutputType = { id: number | null ticket_id: number | null invoice: string | null date_invoice: string | null fournisseur: string | null montant: runtime.Decimal | null devise: string | null methode: string | null reference: string | null date_paiement: string | null releve: string | null } export type Td_payableMaxAggregateOutputType = { id: number | null ticket_id: number | null invoice: string | null date_invoice: string | null fournisseur: string | null montant: runtime.Decimal | null devise: string | null methode: string | null reference: string | null date_paiement: string | null releve: string | null } export type Td_payableCountAggregateOutputType = { id: number ticket_id: number invoice: number date_invoice: number fournisseur: number montant: number devise: number methode: number reference: number date_paiement: number releve: number _all: number } export type Td_payableAvgAggregateInputType = { id?: true ticket_id?: true montant?: true } export type Td_payableSumAggregateInputType = { id?: true ticket_id?: true montant?: true } export type Td_payableMinAggregateInputType = { id?: true ticket_id?: true invoice?: true date_invoice?: true fournisseur?: true montant?: true devise?: true methode?: true reference?: true date_paiement?: true releve?: true } export type Td_payableMaxAggregateInputType = { id?: true ticket_id?: true invoice?: true date_invoice?: true fournisseur?: true montant?: true devise?: true methode?: true reference?: true date_paiement?: true releve?: true } export type Td_payableCountAggregateInputType = { id?: true ticket_id?: true invoice?: true date_invoice?: true fournisseur?: true montant?: true devise?: true methode?: true reference?: true date_paiement?: true releve?: true _all?: true } export type Td_payableAggregateArgs = { /** * Filter which td_payable to aggregate. */ where?: Prisma.td_payableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of td_payables to fetch. */ orderBy?: Prisma.td_payableOrderByWithRelationInput | Prisma.td_payableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.td_payableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` td_payables 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` td_payables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned td_payables **/ _count?: true | Td_payableCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Td_payableAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Td_payableSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Td_payableMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Td_payableMaxAggregateInputType } export type GetTd_payableAggregateType = { [P in keyof T & keyof AggregateTd_payable]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type td_payableGroupByArgs = { where?: Prisma.td_payableWhereInput orderBy?: Prisma.td_payableOrderByWithAggregationInput | Prisma.td_payableOrderByWithAggregationInput[] by: Prisma.Td_payableScalarFieldEnum[] | Prisma.Td_payableScalarFieldEnum having?: Prisma.td_payableScalarWhereWithAggregatesInput take?: number skip?: number _count?: Td_payableCountAggregateInputType | true _avg?: Td_payableAvgAggregateInputType _sum?: Td_payableSumAggregateInputType _min?: Td_payableMinAggregateInputType _max?: Td_payableMaxAggregateInputType } export type Td_payableGroupByOutputType = { id: number ticket_id: number invoice: string date_invoice: string fournisseur: string | null montant: runtime.Decimal devise: string methode: string | null reference: string | null date_paiement: string | null releve: string | null _count: Td_payableCountAggregateOutputType | null _avg: Td_payableAvgAggregateOutputType | null _sum: Td_payableSumAggregateOutputType | null _min: Td_payableMinAggregateOutputType | null _max: Td_payableMaxAggregateOutputType | null } type GetTd_payableGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Td_payableGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type td_payableWhereInput = { AND?: Prisma.td_payableWhereInput | Prisma.td_payableWhereInput[] OR?: Prisma.td_payableWhereInput[] NOT?: Prisma.td_payableWhereInput | Prisma.td_payableWhereInput[] id?: Prisma.IntFilter<"td_payable"> | number ticket_id?: Prisma.IntFilter<"td_payable"> | number invoice?: Prisma.StringFilter<"td_payable"> | string date_invoice?: Prisma.StringFilter<"td_payable"> | string fournisseur?: Prisma.StringNullableFilter<"td_payable"> | string | null montant?: Prisma.DecimalFilter<"td_payable"> | runtime.Decimal | runtime.DecimalJsLike | number | string devise?: Prisma.StringFilter<"td_payable"> | string methode?: Prisma.StringNullableFilter<"td_payable"> | string | null reference?: Prisma.StringNullableFilter<"td_payable"> | string | null date_paiement?: Prisma.StringNullableFilter<"td_payable"> | string | null releve?: Prisma.StringNullableFilter<"td_payable"> | string | null } export type td_payableOrderByWithRelationInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder invoice?: Prisma.SortOrder date_invoice?: Prisma.SortOrder fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder montant?: Prisma.SortOrder devise?: Prisma.SortOrder methode?: Prisma.SortOrderInput | Prisma.SortOrder reference?: Prisma.SortOrderInput | Prisma.SortOrder date_paiement?: Prisma.SortOrderInput | Prisma.SortOrder releve?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.td_payableOrderByRelevanceInput } export type td_payableWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.td_payableWhereInput | Prisma.td_payableWhereInput[] OR?: Prisma.td_payableWhereInput[] NOT?: Prisma.td_payableWhereInput | Prisma.td_payableWhereInput[] ticket_id?: Prisma.IntFilter<"td_payable"> | number invoice?: Prisma.StringFilter<"td_payable"> | string date_invoice?: Prisma.StringFilter<"td_payable"> | string fournisseur?: Prisma.StringNullableFilter<"td_payable"> | string | null montant?: Prisma.DecimalFilter<"td_payable"> | runtime.Decimal | runtime.DecimalJsLike | number | string devise?: Prisma.StringFilter<"td_payable"> | string methode?: Prisma.StringNullableFilter<"td_payable"> | string | null reference?: Prisma.StringNullableFilter<"td_payable"> | string | null date_paiement?: Prisma.StringNullableFilter<"td_payable"> | string | null releve?: Prisma.StringNullableFilter<"td_payable"> | string | null }, "id"> export type td_payableOrderByWithAggregationInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder invoice?: Prisma.SortOrder date_invoice?: Prisma.SortOrder fournisseur?: Prisma.SortOrderInput | Prisma.SortOrder montant?: Prisma.SortOrder devise?: Prisma.SortOrder methode?: Prisma.SortOrderInput | Prisma.SortOrder reference?: Prisma.SortOrderInput | Prisma.SortOrder date_paiement?: Prisma.SortOrderInput | Prisma.SortOrder releve?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.td_payableCountOrderByAggregateInput _avg?: Prisma.td_payableAvgOrderByAggregateInput _max?: Prisma.td_payableMaxOrderByAggregateInput _min?: Prisma.td_payableMinOrderByAggregateInput _sum?: Prisma.td_payableSumOrderByAggregateInput } export type td_payableScalarWhereWithAggregatesInput = { AND?: Prisma.td_payableScalarWhereWithAggregatesInput | Prisma.td_payableScalarWhereWithAggregatesInput[] OR?: Prisma.td_payableScalarWhereWithAggregatesInput[] NOT?: Prisma.td_payableScalarWhereWithAggregatesInput | Prisma.td_payableScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"td_payable"> | number ticket_id?: Prisma.IntWithAggregatesFilter<"td_payable"> | number invoice?: Prisma.StringWithAggregatesFilter<"td_payable"> | string date_invoice?: Prisma.StringWithAggregatesFilter<"td_payable"> | string fournisseur?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null montant?: Prisma.DecimalWithAggregatesFilter<"td_payable"> | runtime.Decimal | runtime.DecimalJsLike | number | string devise?: Prisma.StringWithAggregatesFilter<"td_payable"> | string methode?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null reference?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null date_paiement?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null releve?: Prisma.StringNullableWithAggregatesFilter<"td_payable"> | string | null } export type td_payableCreateInput = { ticket_id?: number invoice?: string date_invoice: string fournisseur?: string | null montant?: runtime.Decimal | runtime.DecimalJsLike | number | string devise?: string methode?: string | null reference?: string | null date_paiement?: string | null releve?: string | null } export type td_payableUncheckedCreateInput = { id?: number ticket_id?: number invoice?: string date_invoice: string fournisseur?: string | null montant?: runtime.Decimal | runtime.DecimalJsLike | number | string devise?: string methode?: string | null reference?: string | null date_paiement?: string | null releve?: string | null } export type td_payableUpdateInput = { ticket_id?: Prisma.IntFieldUpdateOperationsInput | number invoice?: Prisma.StringFieldUpdateOperationsInput | string date_invoice?: Prisma.StringFieldUpdateOperationsInput | string fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string devise?: Prisma.StringFieldUpdateOperationsInput | string methode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_paiement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null releve?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type td_payableUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number ticket_id?: Prisma.IntFieldUpdateOperationsInput | number invoice?: Prisma.StringFieldUpdateOperationsInput | string date_invoice?: Prisma.StringFieldUpdateOperationsInput | string fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string devise?: Prisma.StringFieldUpdateOperationsInput | string methode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_paiement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null releve?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type td_payableCreateManyInput = { id?: number ticket_id?: number invoice?: string date_invoice: string fournisseur?: string | null montant?: runtime.Decimal | runtime.DecimalJsLike | number | string devise?: string methode?: string | null reference?: string | null date_paiement?: string | null releve?: string | null } export type td_payableUpdateManyMutationInput = { ticket_id?: Prisma.IntFieldUpdateOperationsInput | number invoice?: Prisma.StringFieldUpdateOperationsInput | string date_invoice?: Prisma.StringFieldUpdateOperationsInput | string fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string devise?: Prisma.StringFieldUpdateOperationsInput | string methode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_paiement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null releve?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type td_payableUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number ticket_id?: Prisma.IntFieldUpdateOperationsInput | number invoice?: Prisma.StringFieldUpdateOperationsInput | string date_invoice?: Prisma.StringFieldUpdateOperationsInput | string fournisseur?: Prisma.NullableStringFieldUpdateOperationsInput | string | null montant?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string devise?: Prisma.StringFieldUpdateOperationsInput | string methode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_paiement?: Prisma.NullableStringFieldUpdateOperationsInput | string | null releve?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type td_payableOrderByRelevanceInput = { fields: Prisma.td_payableOrderByRelevanceFieldEnum | Prisma.td_payableOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type td_payableCountOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder invoice?: Prisma.SortOrder date_invoice?: Prisma.SortOrder fournisseur?: Prisma.SortOrder montant?: Prisma.SortOrder devise?: Prisma.SortOrder methode?: Prisma.SortOrder reference?: Prisma.SortOrder date_paiement?: Prisma.SortOrder releve?: Prisma.SortOrder } export type td_payableAvgOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder montant?: Prisma.SortOrder } export type td_payableMaxOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder invoice?: Prisma.SortOrder date_invoice?: Prisma.SortOrder fournisseur?: Prisma.SortOrder montant?: Prisma.SortOrder devise?: Prisma.SortOrder methode?: Prisma.SortOrder reference?: Prisma.SortOrder date_paiement?: Prisma.SortOrder releve?: Prisma.SortOrder } export type td_payableMinOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder invoice?: Prisma.SortOrder date_invoice?: Prisma.SortOrder fournisseur?: Prisma.SortOrder montant?: Prisma.SortOrder devise?: Prisma.SortOrder methode?: Prisma.SortOrder reference?: Prisma.SortOrder date_paiement?: Prisma.SortOrder releve?: Prisma.SortOrder } export type td_payableSumOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder montant?: Prisma.SortOrder } export type td_payableSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean ticket_id?: boolean invoice?: boolean date_invoice?: boolean fournisseur?: boolean montant?: boolean devise?: boolean methode?: boolean reference?: boolean date_paiement?: boolean releve?: boolean }, ExtArgs["result"]["td_payable"]> export type td_payableSelectScalar = { id?: boolean ticket_id?: boolean invoice?: boolean date_invoice?: boolean fournisseur?: boolean montant?: boolean devise?: boolean methode?: boolean reference?: boolean date_paiement?: boolean releve?: boolean } export type td_payableOmit = runtime.Types.Extensions.GetOmit<"id" | "ticket_id" | "invoice" | "date_invoice" | "fournisseur" | "montant" | "devise" | "methode" | "reference" | "date_paiement" | "releve", ExtArgs["result"]["td_payable"]> export type $td_payablePayload = { name: "td_payable" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number ticket_id: number invoice: string date_invoice: string fournisseur: string | null montant: runtime.Decimal devise: string methode: string | null reference: string | null date_paiement: string | null releve: string | null }, ExtArgs["result"]["td_payable"]> composites: {} } export type td_payableGetPayload = runtime.Types.Result.GetResult export type td_payableCountArgs = Omit & { select?: Td_payableCountAggregateInputType | true } export interface td_payableDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['td_payable'], meta: { name: 'td_payable' } } /** * Find zero or one Td_payable that matches the filter. * @param {td_payableFindUniqueArgs} args - Arguments to find a Td_payable * @example * // Get one Td_payable * const td_payable = await prisma.td_payable.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Td_payable that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {td_payableFindUniqueOrThrowArgs} args - Arguments to find a Td_payable * @example * // Get one Td_payable * const td_payable = await prisma.td_payable.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Td_payable 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 {td_payableFindFirstArgs} args - Arguments to find a Td_payable * @example * // Get one Td_payable * const td_payable = await prisma.td_payable.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Td_payable 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 {td_payableFindFirstOrThrowArgs} args - Arguments to find a Td_payable * @example * // Get one Td_payable * const td_payable = await prisma.td_payable.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Td_payables 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 {td_payableFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Td_payables * const td_payables = await prisma.td_payable.findMany() * * // Get first 10 Td_payables * const td_payables = await prisma.td_payable.findMany({ take: 10 }) * * // Only select the `id` * const td_payableWithIdOnly = await prisma.td_payable.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Td_payable. * @param {td_payableCreateArgs} args - Arguments to create a Td_payable. * @example * // Create one Td_payable * const Td_payable = await prisma.td_payable.create({ * data: { * // ... data to create a Td_payable * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Td_payables. * @param {td_payableCreateManyArgs} args - Arguments to create many Td_payables. * @example * // Create many Td_payables * const td_payable = await prisma.td_payable.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Td_payable. * @param {td_payableDeleteArgs} args - Arguments to delete one Td_payable. * @example * // Delete one Td_payable * const Td_payable = await prisma.td_payable.delete({ * where: { * // ... filter to delete one Td_payable * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Td_payable. * @param {td_payableUpdateArgs} args - Arguments to update one Td_payable. * @example * // Update one Td_payable * const td_payable = await prisma.td_payable.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Td_payables. * @param {td_payableDeleteManyArgs} args - Arguments to filter Td_payables to delete. * @example * // Delete a few Td_payables * const { count } = await prisma.td_payable.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Td_payables. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {td_payableUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Td_payables * const td_payable = await prisma.td_payable.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Td_payable. * @param {td_payableUpsertArgs} args - Arguments to update or create a Td_payable. * @example * // Update or create a Td_payable * const td_payable = await prisma.td_payable.upsert({ * create: { * // ... data to create a Td_payable * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Td_payable we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__td_payableClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Td_payables. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {td_payableCountArgs} args - Arguments to filter Td_payables to count. * @example * // Count the number of Td_payables * const count = await prisma.td_payable.count({ * where: { * // ... the filter for the Td_payables 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 Td_payable. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Td_payableAggregateArgs} 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 Td_payable. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {td_payableGroupByArgs} 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 td_payableGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: td_payableGroupByArgs['orderBy'] } : { orderBy?: td_payableGroupByArgs['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 ? GetTd_payableGroupByPayload : Prisma.PrismaPromise /** * Fields of the td_payable model */ readonly fields: td_payableFieldRefs; } /** * The delegate class that acts as a "Promise-like" for td_payable. * 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__td_payableClient 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 td_payable model */ export interface td_payableFieldRefs { readonly id: Prisma.FieldRef<"td_payable", 'Int'> readonly ticket_id: Prisma.FieldRef<"td_payable", 'Int'> readonly invoice: Prisma.FieldRef<"td_payable", 'String'> readonly date_invoice: Prisma.FieldRef<"td_payable", 'String'> readonly fournisseur: Prisma.FieldRef<"td_payable", 'String'> readonly montant: Prisma.FieldRef<"td_payable", 'Decimal'> readonly devise: Prisma.FieldRef<"td_payable", 'String'> readonly methode: Prisma.FieldRef<"td_payable", 'String'> readonly reference: Prisma.FieldRef<"td_payable", 'String'> readonly date_paiement: Prisma.FieldRef<"td_payable", 'String'> readonly releve: Prisma.FieldRef<"td_payable", 'String'> } // Custom InputTypes /** * td_payable findUnique */ export type td_payableFindUniqueArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * Filter, which td_payable to fetch. */ where: Prisma.td_payableWhereUniqueInput } /** * td_payable findUniqueOrThrow */ export type td_payableFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * Filter, which td_payable to fetch. */ where: Prisma.td_payableWhereUniqueInput } /** * td_payable findFirst */ export type td_payableFindFirstArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * Filter, which td_payable to fetch. */ where?: Prisma.td_payableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of td_payables to fetch. */ orderBy?: Prisma.td_payableOrderByWithRelationInput | Prisma.td_payableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for td_payables. */ cursor?: Prisma.td_payableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` td_payables 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` td_payables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of td_payables. */ distinct?: Prisma.Td_payableScalarFieldEnum | Prisma.Td_payableScalarFieldEnum[] } /** * td_payable findFirstOrThrow */ export type td_payableFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * Filter, which td_payable to fetch. */ where?: Prisma.td_payableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of td_payables to fetch. */ orderBy?: Prisma.td_payableOrderByWithRelationInput | Prisma.td_payableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for td_payables. */ cursor?: Prisma.td_payableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` td_payables 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` td_payables. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of td_payables. */ distinct?: Prisma.Td_payableScalarFieldEnum | Prisma.Td_payableScalarFieldEnum[] } /** * td_payable findMany */ export type td_payableFindManyArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * Filter, which td_payables to fetch. */ where?: Prisma.td_payableWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of td_payables to fetch. */ orderBy?: Prisma.td_payableOrderByWithRelationInput | Prisma.td_payableOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing td_payables. */ cursor?: Prisma.td_payableWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` td_payables 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` td_payables. */ skip?: number distinct?: Prisma.Td_payableScalarFieldEnum | Prisma.Td_payableScalarFieldEnum[] } /** * td_payable create */ export type td_payableCreateArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * The data needed to create a td_payable. */ data: Prisma.XOR } /** * td_payable createMany */ export type td_payableCreateManyArgs = { /** * The data used to create many td_payables. */ data: Prisma.td_payableCreateManyInput | Prisma.td_payableCreateManyInput[] skipDuplicates?: boolean } /** * td_payable update */ export type td_payableUpdateArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * The data needed to update a td_payable. */ data: Prisma.XOR /** * Choose, which td_payable to update. */ where: Prisma.td_payableWhereUniqueInput } /** * td_payable updateMany */ export type td_payableUpdateManyArgs = { /** * The data used to update td_payables. */ data: Prisma.XOR /** * Filter which td_payables to update */ where?: Prisma.td_payableWhereInput /** * Limit how many td_payables to update. */ limit?: number } /** * td_payable upsert */ export type td_payableUpsertArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * The filter to search for the td_payable to update in case it exists. */ where: Prisma.td_payableWhereUniqueInput /** * In case the td_payable found by the `where` argument doesn't exist, create a new td_payable with this data. */ create: Prisma.XOR /** * In case the td_payable was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * td_payable delete */ export type td_payableDeleteArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null /** * Filter which td_payable to delete. */ where: Prisma.td_payableWhereUniqueInput } /** * td_payable deleteMany */ export type td_payableDeleteManyArgs = { /** * Filter which td_payables to delete */ where?: Prisma.td_payableWhereInput /** * Limit how many td_payables to delete. */ limit?: number } /** * td_payable without action */ export type td_payableDefaultArgs = { /** * Select specific fields to fetch from the td_payable */ select?: Prisma.td_payableSelect | null /** * Omit specific fields from the td_payable */ omit?: Prisma.td_payableOmit | null }