/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `invoice_item_bk` 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 invoice_item_bk * */ export type invoice_item_bkModel = runtime.Types.Result.DefaultSelection export type AggregateInvoice_item_bk = { _count: Invoice_item_bkCountAggregateOutputType | null _avg: Invoice_item_bkAvgAggregateOutputType | null _sum: Invoice_item_bkSumAggregateOutputType | null _min: Invoice_item_bkMinAggregateOutputType | null _max: Invoice_item_bkMaxAggregateOutputType | null } export type Invoice_item_bkAvgAggregateOutputType = { id: number | null service_id: number | null invoice_id: number | null quantity: number | null unitary_price: number | null } export type Invoice_item_bkSumAggregateOutputType = { id: bigint | null service_id: bigint | null invoice_id: bigint | null quantity: number | null unitary_price: number | null } export type Invoice_item_bkMinAggregateOutputType = { id: bigint | null service_id: bigint | null invoice_id: bigint | null sku: string | null quantity: number | null product_name: string | null unitary_price: number | null nosub: boolean | null delivery_name: string | null } export type Invoice_item_bkMaxAggregateOutputType = { id: bigint | null service_id: bigint | null invoice_id: bigint | null sku: string | null quantity: number | null product_name: string | null unitary_price: number | null nosub: boolean | null delivery_name: string | null } export type Invoice_item_bkCountAggregateOutputType = { id: number service_id: number invoice_id: number sku: number quantity: number product_name: number unitary_price: number nosub: number delivery_name: number _all: number } export type Invoice_item_bkAvgAggregateInputType = { id?: true service_id?: true invoice_id?: true quantity?: true unitary_price?: true } export type Invoice_item_bkSumAggregateInputType = { id?: true service_id?: true invoice_id?: true quantity?: true unitary_price?: true } export type Invoice_item_bkMinAggregateInputType = { id?: true service_id?: true invoice_id?: true sku?: true quantity?: true product_name?: true unitary_price?: true nosub?: true delivery_name?: true } export type Invoice_item_bkMaxAggregateInputType = { id?: true service_id?: true invoice_id?: true sku?: true quantity?: true product_name?: true unitary_price?: true nosub?: true delivery_name?: true } export type Invoice_item_bkCountAggregateInputType = { id?: true service_id?: true invoice_id?: true sku?: true quantity?: true product_name?: true unitary_price?: true nosub?: true delivery_name?: true _all?: true } export type Invoice_item_bkAggregateArgs = { /** * Filter which invoice_item_bk to aggregate. */ where?: Prisma.invoice_item_bkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_item_bks to fetch. */ orderBy?: Prisma.invoice_item_bkOrderByWithRelationInput | Prisma.invoice_item_bkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.invoice_item_bkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_item_bks 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` invoice_item_bks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned invoice_item_bks **/ _count?: true | Invoice_item_bkCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Invoice_item_bkAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Invoice_item_bkSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Invoice_item_bkMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Invoice_item_bkMaxAggregateInputType } export type GetInvoice_item_bkAggregateType = { [P in keyof T & keyof AggregateInvoice_item_bk]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type invoice_item_bkGroupByArgs = { where?: Prisma.invoice_item_bkWhereInput orderBy?: Prisma.invoice_item_bkOrderByWithAggregationInput | Prisma.invoice_item_bkOrderByWithAggregationInput[] by: Prisma.Invoice_item_bkScalarFieldEnum[] | Prisma.Invoice_item_bkScalarFieldEnum having?: Prisma.invoice_item_bkScalarWhereWithAggregatesInput take?: number skip?: number _count?: Invoice_item_bkCountAggregateInputType | true _avg?: Invoice_item_bkAvgAggregateInputType _sum?: Invoice_item_bkSumAggregateInputType _min?: Invoice_item_bkMinAggregateInputType _max?: Invoice_item_bkMaxAggregateInputType } export type Invoice_item_bkGroupByOutputType = { id: bigint service_id: bigint | null invoice_id: bigint | null sku: string | null quantity: number product_name: string | null unitary_price: number | null nosub: boolean delivery_name: string | null _count: Invoice_item_bkCountAggregateOutputType | null _avg: Invoice_item_bkAvgAggregateOutputType | null _sum: Invoice_item_bkSumAggregateOutputType | null _min: Invoice_item_bkMinAggregateOutputType | null _max: Invoice_item_bkMaxAggregateOutputType | null } type GetInvoice_item_bkGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Invoice_item_bkGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type invoice_item_bkWhereInput = { AND?: Prisma.invoice_item_bkWhereInput | Prisma.invoice_item_bkWhereInput[] OR?: Prisma.invoice_item_bkWhereInput[] NOT?: Prisma.invoice_item_bkWhereInput | Prisma.invoice_item_bkWhereInput[] id?: Prisma.BigIntFilter<"invoice_item_bk"> | bigint | number service_id?: Prisma.BigIntNullableFilter<"invoice_item_bk"> | bigint | number | null invoice_id?: Prisma.BigIntNullableFilter<"invoice_item_bk"> | bigint | number | null sku?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null quantity?: Prisma.FloatFilter<"invoice_item_bk"> | number product_name?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null unitary_price?: Prisma.FloatNullableFilter<"invoice_item_bk"> | number | null nosub?: Prisma.BoolFilter<"invoice_item_bk"> | boolean delivery_name?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null } export type invoice_item_bkOrderByWithRelationInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrderInput | Prisma.SortOrder invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder sku?: Prisma.SortOrderInput | Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrderInput | Prisma.SortOrder unitary_price?: Prisma.SortOrderInput | Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.invoice_item_bkOrderByRelevanceInput } export type invoice_item_bkWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: Prisma.invoice_item_bkWhereInput | Prisma.invoice_item_bkWhereInput[] OR?: Prisma.invoice_item_bkWhereInput[] NOT?: Prisma.invoice_item_bkWhereInput | Prisma.invoice_item_bkWhereInput[] service_id?: Prisma.BigIntNullableFilter<"invoice_item_bk"> | bigint | number | null invoice_id?: Prisma.BigIntNullableFilter<"invoice_item_bk"> | bigint | number | null sku?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null quantity?: Prisma.FloatFilter<"invoice_item_bk"> | number product_name?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null unitary_price?: Prisma.FloatNullableFilter<"invoice_item_bk"> | number | null nosub?: Prisma.BoolFilter<"invoice_item_bk"> | boolean delivery_name?: Prisma.StringNullableFilter<"invoice_item_bk"> | string | null }, "id"> export type invoice_item_bkOrderByWithAggregationInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrderInput | Prisma.SortOrder invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder sku?: Prisma.SortOrderInput | Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrderInput | Prisma.SortOrder unitary_price?: Prisma.SortOrderInput | Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.invoice_item_bkCountOrderByAggregateInput _avg?: Prisma.invoice_item_bkAvgOrderByAggregateInput _max?: Prisma.invoice_item_bkMaxOrderByAggregateInput _min?: Prisma.invoice_item_bkMinOrderByAggregateInput _sum?: Prisma.invoice_item_bkSumOrderByAggregateInput } export type invoice_item_bkScalarWhereWithAggregatesInput = { AND?: Prisma.invoice_item_bkScalarWhereWithAggregatesInput | Prisma.invoice_item_bkScalarWhereWithAggregatesInput[] OR?: Prisma.invoice_item_bkScalarWhereWithAggregatesInput[] NOT?: Prisma.invoice_item_bkScalarWhereWithAggregatesInput | Prisma.invoice_item_bkScalarWhereWithAggregatesInput[] id?: Prisma.BigIntWithAggregatesFilter<"invoice_item_bk"> | bigint | number service_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_item_bk"> | bigint | number | null invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_item_bk"> | bigint | number | null sku?: Prisma.StringNullableWithAggregatesFilter<"invoice_item_bk"> | string | null quantity?: Prisma.FloatWithAggregatesFilter<"invoice_item_bk"> | number product_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_item_bk"> | string | null unitary_price?: Prisma.FloatNullableWithAggregatesFilter<"invoice_item_bk"> | number | null nosub?: Prisma.BoolWithAggregatesFilter<"invoice_item_bk"> | boolean delivery_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_item_bk"> | string | null } export type invoice_item_bkCreateInput = { id?: bigint | number service_id?: bigint | number | null invoice_id?: bigint | number | null sku?: string | null quantity?: number product_name?: string | null unitary_price?: number | null nosub?: boolean delivery_name?: string | null } export type invoice_item_bkUncheckedCreateInput = { id?: bigint | number service_id?: bigint | number | null invoice_id?: bigint | number | null sku?: string | null quantity?: number product_name?: string | null unitary_price?: number | null nosub?: boolean delivery_name?: string | null } export type invoice_item_bkUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quantity?: Prisma.FloatFieldUpdateOperationsInput | number product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type invoice_item_bkUncheckedUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quantity?: Prisma.FloatFieldUpdateOperationsInput | number product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type invoice_item_bkCreateManyInput = { id?: bigint | number service_id?: bigint | number | null invoice_id?: bigint | number | null sku?: string | null quantity?: number product_name?: string | null unitary_price?: number | null nosub?: boolean delivery_name?: string | null } export type invoice_item_bkUpdateManyMutationInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quantity?: Prisma.FloatFieldUpdateOperationsInput | number product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type invoice_item_bkUncheckedUpdateManyInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number service_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null quantity?: Prisma.FloatFieldUpdateOperationsInput | number product_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null unitary_price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null nosub?: Prisma.BoolFieldUpdateOperationsInput | boolean delivery_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type invoice_item_bkOrderByRelevanceInput = { fields: Prisma.invoice_item_bkOrderByRelevanceFieldEnum | Prisma.invoice_item_bkOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type invoice_item_bkCountOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder sku?: Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrder unitary_price?: Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrder } export type invoice_item_bkAvgOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder quantity?: Prisma.SortOrder unitary_price?: Prisma.SortOrder } export type invoice_item_bkMaxOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder sku?: Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrder unitary_price?: Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrder } export type invoice_item_bkMinOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder sku?: Prisma.SortOrder quantity?: Prisma.SortOrder product_name?: Prisma.SortOrder unitary_price?: Prisma.SortOrder nosub?: Prisma.SortOrder delivery_name?: Prisma.SortOrder } export type invoice_item_bkSumOrderByAggregateInput = { id?: Prisma.SortOrder service_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder quantity?: Prisma.SortOrder unitary_price?: Prisma.SortOrder } export type invoice_item_bkSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean service_id?: boolean invoice_id?: boolean sku?: boolean quantity?: boolean product_name?: boolean unitary_price?: boolean nosub?: boolean delivery_name?: boolean }, ExtArgs["result"]["invoice_item_bk"]> export type invoice_item_bkSelectScalar = { id?: boolean service_id?: boolean invoice_id?: boolean sku?: boolean quantity?: boolean product_name?: boolean unitary_price?: boolean nosub?: boolean delivery_name?: boolean } export type invoice_item_bkOmit = runtime.Types.Extensions.GetOmit<"id" | "service_id" | "invoice_id" | "sku" | "quantity" | "product_name" | "unitary_price" | "nosub" | "delivery_name", ExtArgs["result"]["invoice_item_bk"]> export type $invoice_item_bkPayload = { name: "invoice_item_bk" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: bigint service_id: bigint | null invoice_id: bigint | null sku: string | null quantity: number product_name: string | null unitary_price: number | null nosub: boolean delivery_name: string | null }, ExtArgs["result"]["invoice_item_bk"]> composites: {} } export type invoice_item_bkGetPayload = runtime.Types.Result.GetResult export type invoice_item_bkCountArgs = Omit & { select?: Invoice_item_bkCountAggregateInputType | true } export interface invoice_item_bkDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['invoice_item_bk'], meta: { name: 'invoice_item_bk' } } /** * Find zero or one Invoice_item_bk that matches the filter. * @param {invoice_item_bkFindUniqueArgs} args - Arguments to find a Invoice_item_bk * @example * // Get one Invoice_item_bk * const invoice_item_bk = await prisma.invoice_item_bk.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Invoice_item_bk that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {invoice_item_bkFindUniqueOrThrowArgs} args - Arguments to find a Invoice_item_bk * @example * // Get one Invoice_item_bk * const invoice_item_bk = await prisma.invoice_item_bk.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Invoice_item_bk 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 {invoice_item_bkFindFirstArgs} args - Arguments to find a Invoice_item_bk * @example * // Get one Invoice_item_bk * const invoice_item_bk = await prisma.invoice_item_bk.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Invoice_item_bk 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 {invoice_item_bkFindFirstOrThrowArgs} args - Arguments to find a Invoice_item_bk * @example * // Get one Invoice_item_bk * const invoice_item_bk = await prisma.invoice_item_bk.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Invoice_item_bks 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 {invoice_item_bkFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Invoice_item_bks * const invoice_item_bks = await prisma.invoice_item_bk.findMany() * * // Get first 10 Invoice_item_bks * const invoice_item_bks = await prisma.invoice_item_bk.findMany({ take: 10 }) * * // Only select the `id` * const invoice_item_bkWithIdOnly = await prisma.invoice_item_bk.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Invoice_item_bk. * @param {invoice_item_bkCreateArgs} args - Arguments to create a Invoice_item_bk. * @example * // Create one Invoice_item_bk * const Invoice_item_bk = await prisma.invoice_item_bk.create({ * data: { * // ... data to create a Invoice_item_bk * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Invoice_item_bks. * @param {invoice_item_bkCreateManyArgs} args - Arguments to create many Invoice_item_bks. * @example * // Create many Invoice_item_bks * const invoice_item_bk = await prisma.invoice_item_bk.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Invoice_item_bk. * @param {invoice_item_bkDeleteArgs} args - Arguments to delete one Invoice_item_bk. * @example * // Delete one Invoice_item_bk * const Invoice_item_bk = await prisma.invoice_item_bk.delete({ * where: { * // ... filter to delete one Invoice_item_bk * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Invoice_item_bk. * @param {invoice_item_bkUpdateArgs} args - Arguments to update one Invoice_item_bk. * @example * // Update one Invoice_item_bk * const invoice_item_bk = await prisma.invoice_item_bk.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Invoice_item_bks. * @param {invoice_item_bkDeleteManyArgs} args - Arguments to filter Invoice_item_bks to delete. * @example * // Delete a few Invoice_item_bks * const { count } = await prisma.invoice_item_bk.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Invoice_item_bks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_item_bkUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Invoice_item_bks * const invoice_item_bk = await prisma.invoice_item_bk.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Invoice_item_bk. * @param {invoice_item_bkUpsertArgs} args - Arguments to update or create a Invoice_item_bk. * @example * // Update or create a Invoice_item_bk * const invoice_item_bk = await prisma.invoice_item_bk.upsert({ * create: { * // ... data to create a Invoice_item_bk * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Invoice_item_bk we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__invoice_item_bkClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Invoice_item_bks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_item_bkCountArgs} args - Arguments to filter Invoice_item_bks to count. * @example * // Count the number of Invoice_item_bks * const count = await prisma.invoice_item_bk.count({ * where: { * // ... the filter for the Invoice_item_bks 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 Invoice_item_bk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Invoice_item_bkAggregateArgs} 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 Invoice_item_bk. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {invoice_item_bkGroupByArgs} 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 invoice_item_bkGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: invoice_item_bkGroupByArgs['orderBy'] } : { orderBy?: invoice_item_bkGroupByArgs['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 ? GetInvoice_item_bkGroupByPayload : Prisma.PrismaPromise /** * Fields of the invoice_item_bk model */ readonly fields: invoice_item_bkFieldRefs; } /** * The delegate class that acts as a "Promise-like" for invoice_item_bk. * 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__invoice_item_bkClient 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 invoice_item_bk model */ export interface invoice_item_bkFieldRefs { readonly id: Prisma.FieldRef<"invoice_item_bk", 'BigInt'> readonly service_id: Prisma.FieldRef<"invoice_item_bk", 'BigInt'> readonly invoice_id: Prisma.FieldRef<"invoice_item_bk", 'BigInt'> readonly sku: Prisma.FieldRef<"invoice_item_bk", 'String'> readonly quantity: Prisma.FieldRef<"invoice_item_bk", 'Float'> readonly product_name: Prisma.FieldRef<"invoice_item_bk", 'String'> readonly unitary_price: Prisma.FieldRef<"invoice_item_bk", 'Float'> readonly nosub: Prisma.FieldRef<"invoice_item_bk", 'Boolean'> readonly delivery_name: Prisma.FieldRef<"invoice_item_bk", 'String'> } // Custom InputTypes /** * invoice_item_bk findUnique */ export type invoice_item_bkFindUniqueArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * Filter, which invoice_item_bk to fetch. */ where: Prisma.invoice_item_bkWhereUniqueInput } /** * invoice_item_bk findUniqueOrThrow */ export type invoice_item_bkFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * Filter, which invoice_item_bk to fetch. */ where: Prisma.invoice_item_bkWhereUniqueInput } /** * invoice_item_bk findFirst */ export type invoice_item_bkFindFirstArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * Filter, which invoice_item_bk to fetch. */ where?: Prisma.invoice_item_bkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_item_bks to fetch. */ orderBy?: Prisma.invoice_item_bkOrderByWithRelationInput | Prisma.invoice_item_bkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for invoice_item_bks. */ cursor?: Prisma.invoice_item_bkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_item_bks 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` invoice_item_bks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of invoice_item_bks. */ distinct?: Prisma.Invoice_item_bkScalarFieldEnum | Prisma.Invoice_item_bkScalarFieldEnum[] } /** * invoice_item_bk findFirstOrThrow */ export type invoice_item_bkFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * Filter, which invoice_item_bk to fetch. */ where?: Prisma.invoice_item_bkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_item_bks to fetch. */ orderBy?: Prisma.invoice_item_bkOrderByWithRelationInput | Prisma.invoice_item_bkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for invoice_item_bks. */ cursor?: Prisma.invoice_item_bkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_item_bks 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` invoice_item_bks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of invoice_item_bks. */ distinct?: Prisma.Invoice_item_bkScalarFieldEnum | Prisma.Invoice_item_bkScalarFieldEnum[] } /** * invoice_item_bk findMany */ export type invoice_item_bkFindManyArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * Filter, which invoice_item_bks to fetch. */ where?: Prisma.invoice_item_bkWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of invoice_item_bks to fetch. */ orderBy?: Prisma.invoice_item_bkOrderByWithRelationInput | Prisma.invoice_item_bkOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing invoice_item_bks. */ cursor?: Prisma.invoice_item_bkWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` invoice_item_bks 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` invoice_item_bks. */ skip?: number distinct?: Prisma.Invoice_item_bkScalarFieldEnum | Prisma.Invoice_item_bkScalarFieldEnum[] } /** * invoice_item_bk create */ export type invoice_item_bkCreateArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * The data needed to create a invoice_item_bk. */ data?: Prisma.XOR } /** * invoice_item_bk createMany */ export type invoice_item_bkCreateManyArgs = { /** * The data used to create many invoice_item_bks. */ data: Prisma.invoice_item_bkCreateManyInput | Prisma.invoice_item_bkCreateManyInput[] skipDuplicates?: boolean } /** * invoice_item_bk update */ export type invoice_item_bkUpdateArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * The data needed to update a invoice_item_bk. */ data: Prisma.XOR /** * Choose, which invoice_item_bk to update. */ where: Prisma.invoice_item_bkWhereUniqueInput } /** * invoice_item_bk updateMany */ export type invoice_item_bkUpdateManyArgs = { /** * The data used to update invoice_item_bks. */ data: Prisma.XOR /** * Filter which invoice_item_bks to update */ where?: Prisma.invoice_item_bkWhereInput /** * Limit how many invoice_item_bks to update. */ limit?: number } /** * invoice_item_bk upsert */ export type invoice_item_bkUpsertArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * The filter to search for the invoice_item_bk to update in case it exists. */ where: Prisma.invoice_item_bkWhereUniqueInput /** * In case the invoice_item_bk found by the `where` argument doesn't exist, create a new invoice_item_bk with this data. */ create: Prisma.XOR /** * In case the invoice_item_bk was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * invoice_item_bk delete */ export type invoice_item_bkDeleteArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null /** * Filter which invoice_item_bk to delete. */ where: Prisma.invoice_item_bkWhereUniqueInput } /** * invoice_item_bk deleteMany */ export type invoice_item_bkDeleteManyArgs = { /** * Filter which invoice_item_bks to delete */ where?: Prisma.invoice_item_bkWhereInput /** * Limit how many invoice_item_bks to delete. */ limit?: number } /** * invoice_item_bk without action */ export type invoice_item_bkDefaultArgs = { /** * Select specific fields to fetch from the invoice_item_bk */ select?: Prisma.invoice_item_bkSelect | null /** * Omit specific fields from the invoice_item_bk */ omit?: Prisma.invoice_item_bkOmit | null }