import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model invoices_transactions
 * This model contains row level security and requires additional setup for migrations. Visit https://pris.ly/d/row-level-security for more info.
 */
export type invoices_transactionsModel = runtime.Types.Result.DefaultSelection<Prisma.$invoices_transactionsPayload>;
export type AggregateInvoices_transactions = {
    _count: Invoices_transactionsCountAggregateOutputType | null;
    _avg: Invoices_transactionsAvgAggregateOutputType | null;
    _sum: Invoices_transactionsSumAggregateOutputType | null;
    _min: Invoices_transactionsMinAggregateOutputType | null;
    _max: Invoices_transactionsMaxAggregateOutputType | null;
};
export type Invoices_transactionsAvgAggregateOutputType = {
    id: number | null;
    invoice_id: number | null;
    transaction_id: number | null;
};
export type Invoices_transactionsSumAggregateOutputType = {
    id: number | null;
    invoice_id: bigint | null;
    transaction_id: bigint | null;
};
export type Invoices_transactionsMinAggregateOutputType = {
    id: number | null;
    invoice_id: bigint | null;
    transaction_id: bigint | null;
};
export type Invoices_transactionsMaxAggregateOutputType = {
    id: number | null;
    invoice_id: bigint | null;
    transaction_id: bigint | null;
};
export type Invoices_transactionsCountAggregateOutputType = {
    id: number;
    invoice_id: number;
    transaction_id: number;
    _all: number;
};
export type Invoices_transactionsAvgAggregateInputType = {
    id?: true;
    invoice_id?: true;
    transaction_id?: true;
};
export type Invoices_transactionsSumAggregateInputType = {
    id?: true;
    invoice_id?: true;
    transaction_id?: true;
};
export type Invoices_transactionsMinAggregateInputType = {
    id?: true;
    invoice_id?: true;
    transaction_id?: true;
};
export type Invoices_transactionsMaxAggregateInputType = {
    id?: true;
    invoice_id?: true;
    transaction_id?: true;
};
export type Invoices_transactionsCountAggregateInputType = {
    id?: true;
    invoice_id?: true;
    transaction_id?: true;
    _all?: true;
};
export type Invoices_transactionsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which invoices_transactions to aggregate.
     */
    where?: Prisma.invoices_transactionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of invoices_transactions to fetch.
     */
    orderBy?: Prisma.invoices_transactionsOrderByWithRelationInput | Prisma.invoices_transactionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.invoices_transactionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` invoices_transactions 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` invoices_transactions.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned invoices_transactions
    **/
    _count?: true | Invoices_transactionsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Invoices_transactionsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Invoices_transactionsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Invoices_transactionsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Invoices_transactionsMaxAggregateInputType;
};
export type GetInvoices_transactionsAggregateType<T extends Invoices_transactionsAggregateArgs> = {
    [P in keyof T & keyof AggregateInvoices_transactions]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateInvoices_transactions[P]> : Prisma.GetScalarType<T[P], AggregateInvoices_transactions[P]>;
};
export type invoices_transactionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.invoices_transactionsWhereInput;
    orderBy?: Prisma.invoices_transactionsOrderByWithAggregationInput | Prisma.invoices_transactionsOrderByWithAggregationInput[];
    by: Prisma.Invoices_transactionsScalarFieldEnum[] | Prisma.Invoices_transactionsScalarFieldEnum;
    having?: Prisma.invoices_transactionsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Invoices_transactionsCountAggregateInputType | true;
    _avg?: Invoices_transactionsAvgAggregateInputType;
    _sum?: Invoices_transactionsSumAggregateInputType;
    _min?: Invoices_transactionsMinAggregateInputType;
    _max?: Invoices_transactionsMaxAggregateInputType;
};
export type Invoices_transactionsGroupByOutputType = {
    id: number;
    invoice_id: bigint | null;
    transaction_id: bigint | null;
    _count: Invoices_transactionsCountAggregateOutputType | null;
    _avg: Invoices_transactionsAvgAggregateOutputType | null;
    _sum: Invoices_transactionsSumAggregateOutputType | null;
    _min: Invoices_transactionsMinAggregateOutputType | null;
    _max: Invoices_transactionsMaxAggregateOutputType | null;
};
type GetInvoices_transactionsGroupByPayload<T extends invoices_transactionsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Invoices_transactionsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Invoices_transactionsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Invoices_transactionsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Invoices_transactionsGroupByOutputType[P]>;
}>>;
export type invoices_transactionsWhereInput = {
    AND?: Prisma.invoices_transactionsWhereInput | Prisma.invoices_transactionsWhereInput[];
    OR?: Prisma.invoices_transactionsWhereInput[];
    NOT?: Prisma.invoices_transactionsWhereInput | Prisma.invoices_transactionsWhereInput[];
    id?: Prisma.IntFilter<"invoices_transactions"> | number;
    invoice_id?: Prisma.BigIntNullableFilter<"invoices_transactions"> | bigint | number | null;
    transaction_id?: Prisma.BigIntNullableFilter<"invoices_transactions"> | bigint | number | null;
};
export type invoices_transactionsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    transaction_id?: Prisma.SortOrderInput | Prisma.SortOrder;
};
export type invoices_transactionsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.invoices_transactionsWhereInput | Prisma.invoices_transactionsWhereInput[];
    OR?: Prisma.invoices_transactionsWhereInput[];
    NOT?: Prisma.invoices_transactionsWhereInput | Prisma.invoices_transactionsWhereInput[];
    invoice_id?: Prisma.BigIntNullableFilter<"invoices_transactions"> | bigint | number | null;
    transaction_id?: Prisma.BigIntNullableFilter<"invoices_transactions"> | bigint | number | null;
}, "id">;
export type invoices_transactionsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    transaction_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.invoices_transactionsCountOrderByAggregateInput;
    _avg?: Prisma.invoices_transactionsAvgOrderByAggregateInput;
    _max?: Prisma.invoices_transactionsMaxOrderByAggregateInput;
    _min?: Prisma.invoices_transactionsMinOrderByAggregateInput;
    _sum?: Prisma.invoices_transactionsSumOrderByAggregateInput;
};
export type invoices_transactionsScalarWhereWithAggregatesInput = {
    AND?: Prisma.invoices_transactionsScalarWhereWithAggregatesInput | Prisma.invoices_transactionsScalarWhereWithAggregatesInput[];
    OR?: Prisma.invoices_transactionsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.invoices_transactionsScalarWhereWithAggregatesInput | Prisma.invoices_transactionsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"invoices_transactions"> | number;
    invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoices_transactions"> | bigint | number | null;
    transaction_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoices_transactions"> | bigint | number | null;
};
export type invoices_transactionsCreateInput = {
    invoice_id?: bigint | number | null;
    transaction_id?: bigint | number | null;
};
export type invoices_transactionsUncheckedCreateInput = {
    id?: number;
    invoice_id?: bigint | number | null;
    transaction_id?: bigint | number | null;
};
export type invoices_transactionsUpdateInput = {
    invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    transaction_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type invoices_transactionsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    transaction_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type invoices_transactionsCreateManyInput = {
    id?: number;
    invoice_id?: bigint | number | null;
    transaction_id?: bigint | number | null;
};
export type invoices_transactionsUpdateManyMutationInput = {
    invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    transaction_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type invoices_transactionsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    transaction_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type invoices_transactionsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    invoice_id?: Prisma.SortOrder;
    transaction_id?: Prisma.SortOrder;
};
export type invoices_transactionsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    invoice_id?: Prisma.SortOrder;
    transaction_id?: Prisma.SortOrder;
};
export type invoices_transactionsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    invoice_id?: Prisma.SortOrder;
    transaction_id?: Prisma.SortOrder;
};
export type invoices_transactionsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    invoice_id?: Prisma.SortOrder;
    transaction_id?: Prisma.SortOrder;
};
export type invoices_transactionsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    invoice_id?: Prisma.SortOrder;
    transaction_id?: Prisma.SortOrder;
};
export type invoices_transactionsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    invoice_id?: boolean;
    transaction_id?: boolean;
}, ExtArgs["result"]["invoices_transactions"]>;
export type invoices_transactionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    invoice_id?: boolean;
    transaction_id?: boolean;
}, ExtArgs["result"]["invoices_transactions"]>;
export type invoices_transactionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    invoice_id?: boolean;
    transaction_id?: boolean;
}, ExtArgs["result"]["invoices_transactions"]>;
export type invoices_transactionsSelectScalar = {
    id?: boolean;
    invoice_id?: boolean;
    transaction_id?: boolean;
};
export type invoices_transactionsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "invoice_id" | "transaction_id", ExtArgs["result"]["invoices_transactions"]>;
export type $invoices_transactionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "invoices_transactions";
    objects: {};
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        invoice_id: bigint | null;
        transaction_id: bigint | null;
    }, ExtArgs["result"]["invoices_transactions"]>;
    composites: {};
};
export type invoices_transactionsGetPayload<S extends boolean | null | undefined | invoices_transactionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload, S>;
export type invoices_transactionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<invoices_transactionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Invoices_transactionsCountAggregateInputType | true;
};
export interface invoices_transactionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['invoices_transactions'];
        meta: {
            name: 'invoices_transactions';
        };
    };
    /**
     * Find zero or one Invoices_transactions that matches the filter.
     * @param {invoices_transactionsFindUniqueArgs} args - Arguments to find a Invoices_transactions
     * @example
     * // Get one Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends invoices_transactionsFindUniqueArgs>(args: Prisma.SelectSubset<T, invoices_transactionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__invoices_transactionsClient<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Invoices_transactions that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {invoices_transactionsFindUniqueOrThrowArgs} args - Arguments to find a Invoices_transactions
     * @example
     * // Get one Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends invoices_transactionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, invoices_transactionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__invoices_transactionsClient<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Invoices_transactions 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 {invoices_transactionsFindFirstArgs} args - Arguments to find a Invoices_transactions
     * @example
     * // Get one Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends invoices_transactionsFindFirstArgs>(args?: Prisma.SelectSubset<T, invoices_transactionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__invoices_transactionsClient<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Invoices_transactions 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 {invoices_transactionsFindFirstOrThrowArgs} args - Arguments to find a Invoices_transactions
     * @example
     * // Get one Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends invoices_transactionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, invoices_transactionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__invoices_transactionsClient<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Invoices_transactions 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 {invoices_transactionsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.findMany()
     *
     * // Get first 10 Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const invoices_transactionsWithIdOnly = await prisma.invoices_transactions.findMany({ select: { id: true } })
     *
     */
    findMany<T extends invoices_transactionsFindManyArgs>(args?: Prisma.SelectSubset<T, invoices_transactionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Invoices_transactions.
     * @param {invoices_transactionsCreateArgs} args - Arguments to create a Invoices_transactions.
     * @example
     * // Create one Invoices_transactions
     * const Invoices_transactions = await prisma.invoices_transactions.create({
     *   data: {
     *     // ... data to create a Invoices_transactions
     *   }
     * })
     *
     */
    create<T extends invoices_transactionsCreateArgs>(args: Prisma.SelectSubset<T, invoices_transactionsCreateArgs<ExtArgs>>): Prisma.Prisma__invoices_transactionsClient<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Invoices_transactions.
     * @param {invoices_transactionsCreateManyArgs} args - Arguments to create many Invoices_transactions.
     * @example
     * // Create many Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends invoices_transactionsCreateManyArgs>(args?: Prisma.SelectSubset<T, invoices_transactionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Invoices_transactions and returns the data saved in the database.
     * @param {invoices_transactionsCreateManyAndReturnArgs} args - Arguments to create many Invoices_transactions.
     * @example
     * // Create many Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Invoices_transactions and only return the `id`
     * const invoices_transactionsWithIdOnly = await prisma.invoices_transactions.createManyAndReturn({
     *   select: { id: true },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    createManyAndReturn<T extends invoices_transactionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, invoices_transactionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Invoices_transactions.
     * @param {invoices_transactionsDeleteArgs} args - Arguments to delete one Invoices_transactions.
     * @example
     * // Delete one Invoices_transactions
     * const Invoices_transactions = await prisma.invoices_transactions.delete({
     *   where: {
     *     // ... filter to delete one Invoices_transactions
     *   }
     * })
     *
     */
    delete<T extends invoices_transactionsDeleteArgs>(args: Prisma.SelectSubset<T, invoices_transactionsDeleteArgs<ExtArgs>>): Prisma.Prisma__invoices_transactionsClient<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Invoices_transactions.
     * @param {invoices_transactionsUpdateArgs} args - Arguments to update one Invoices_transactions.
     * @example
     * // Update one Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends invoices_transactionsUpdateArgs>(args: Prisma.SelectSubset<T, invoices_transactionsUpdateArgs<ExtArgs>>): Prisma.Prisma__invoices_transactionsClient<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Invoices_transactions.
     * @param {invoices_transactionsDeleteManyArgs} args - Arguments to filter Invoices_transactions to delete.
     * @example
     * // Delete a few Invoices_transactions
     * const { count } = await prisma.invoices_transactions.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends invoices_transactionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, invoices_transactionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Invoices_transactions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {invoices_transactionsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends invoices_transactionsUpdateManyArgs>(args: Prisma.SelectSubset<T, invoices_transactionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Invoices_transactions and returns the data updated in the database.
     * @param {invoices_transactionsUpdateManyAndReturnArgs} args - Arguments to update many Invoices_transactions.
     * @example
     * // Update many Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Invoices_transactions and only return the `id`
     * const invoices_transactionsWithIdOnly = await prisma.invoices_transactions.updateManyAndReturn({
     *   select: { id: true },
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    updateManyAndReturn<T extends invoices_transactionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, invoices_transactionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Invoices_transactions.
     * @param {invoices_transactionsUpsertArgs} args - Arguments to update or create a Invoices_transactions.
     * @example
     * // Update or create a Invoices_transactions
     * const invoices_transactions = await prisma.invoices_transactions.upsert({
     *   create: {
     *     // ... data to create a Invoices_transactions
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Invoices_transactions we want to update
     *   }
     * })
     */
    upsert<T extends invoices_transactionsUpsertArgs>(args: Prisma.SelectSubset<T, invoices_transactionsUpsertArgs<ExtArgs>>): Prisma.Prisma__invoices_transactionsClient<runtime.Types.Result.GetResult<Prisma.$invoices_transactionsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Invoices_transactions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {invoices_transactionsCountArgs} args - Arguments to filter Invoices_transactions to count.
     * @example
     * // Count the number of Invoices_transactions
     * const count = await prisma.invoices_transactions.count({
     *   where: {
     *     // ... the filter for the Invoices_transactions we want to count
     *   }
     * })
    **/
    count<T extends invoices_transactionsCountArgs>(args?: Prisma.Subset<T, invoices_transactionsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Invoices_transactionsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Invoices_transactions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Invoices_transactionsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
     * @example
     * // Ordered by age ascending
     * // Where email contains prisma.io
     * // Limited to the 10 users
     * const aggregations = await prisma.user.aggregate({
     *   _avg: {
     *     age: true,
     *   },
     *   where: {
     *     email: {
     *       contains: "prisma.io",
     *     },
     *   },
     *   orderBy: {
     *     age: "asc",
     *   },
     *   take: 10,
     * })
    **/
    aggregate<T extends Invoices_transactionsAggregateArgs>(args: Prisma.Subset<T, Invoices_transactionsAggregateArgs>): Prisma.PrismaPromise<GetInvoices_transactionsAggregateType<T>>;
    /**
     * Group by Invoices_transactions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {invoices_transactionsGroupByArgs} 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 invoices_transactionsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: invoices_transactionsGroupByArgs['orderBy'];
    } : {
        orderBy?: invoices_transactionsGroupByArgs['orderBy'];
    }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
        [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
            Error,
            'Field ',
            P,
            ` in "having" needs to be provided in "by"`
        ];
    }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields]>(args: Prisma.SubsetIntersection<T, invoices_transactionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoices_transactionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the invoices_transactions model
     */
    readonly fields: invoices_transactionsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for invoices_transactions.
 * 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__invoices_transactionsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
}
/**
 * Fields of the invoices_transactions model
 */
export interface invoices_transactionsFieldRefs {
    readonly id: Prisma.FieldRef<"invoices_transactions", 'Int'>;
    readonly invoice_id: Prisma.FieldRef<"invoices_transactions", 'BigInt'>;
    readonly transaction_id: Prisma.FieldRef<"invoices_transactions", 'BigInt'>;
}
/**
 * invoices_transactions findUnique
 */
export type invoices_transactionsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * Filter, which invoices_transactions to fetch.
     */
    where: Prisma.invoices_transactionsWhereUniqueInput;
};
/**
 * invoices_transactions findUniqueOrThrow
 */
export type invoices_transactionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * Filter, which invoices_transactions to fetch.
     */
    where: Prisma.invoices_transactionsWhereUniqueInput;
};
/**
 * invoices_transactions findFirst
 */
export type invoices_transactionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * Filter, which invoices_transactions to fetch.
     */
    where?: Prisma.invoices_transactionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of invoices_transactions to fetch.
     */
    orderBy?: Prisma.invoices_transactionsOrderByWithRelationInput | Prisma.invoices_transactionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for invoices_transactions.
     */
    cursor?: Prisma.invoices_transactionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` invoices_transactions 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` invoices_transactions.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of invoices_transactions.
     */
    distinct?: Prisma.Invoices_transactionsScalarFieldEnum | Prisma.Invoices_transactionsScalarFieldEnum[];
};
/**
 * invoices_transactions findFirstOrThrow
 */
export type invoices_transactionsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * Filter, which invoices_transactions to fetch.
     */
    where?: Prisma.invoices_transactionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of invoices_transactions to fetch.
     */
    orderBy?: Prisma.invoices_transactionsOrderByWithRelationInput | Prisma.invoices_transactionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for invoices_transactions.
     */
    cursor?: Prisma.invoices_transactionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` invoices_transactions 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` invoices_transactions.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of invoices_transactions.
     */
    distinct?: Prisma.Invoices_transactionsScalarFieldEnum | Prisma.Invoices_transactionsScalarFieldEnum[];
};
/**
 * invoices_transactions findMany
 */
export type invoices_transactionsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * Filter, which invoices_transactions to fetch.
     */
    where?: Prisma.invoices_transactionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of invoices_transactions to fetch.
     */
    orderBy?: Prisma.invoices_transactionsOrderByWithRelationInput | Prisma.invoices_transactionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing invoices_transactions.
     */
    cursor?: Prisma.invoices_transactionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` invoices_transactions 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` invoices_transactions.
     */
    skip?: number;
    distinct?: Prisma.Invoices_transactionsScalarFieldEnum | Prisma.Invoices_transactionsScalarFieldEnum[];
};
/**
 * invoices_transactions create
 */
export type invoices_transactionsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * The data needed to create a invoices_transactions.
     */
    data?: Prisma.XOR<Prisma.invoices_transactionsCreateInput, Prisma.invoices_transactionsUncheckedCreateInput>;
};
/**
 * invoices_transactions createMany
 */
export type invoices_transactionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many invoices_transactions.
     */
    data: Prisma.invoices_transactionsCreateManyInput | Prisma.invoices_transactionsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * invoices_transactions createManyAndReturn
 */
export type invoices_transactionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * The data used to create many invoices_transactions.
     */
    data: Prisma.invoices_transactionsCreateManyInput | Prisma.invoices_transactionsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * invoices_transactions update
 */
export type invoices_transactionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * The data needed to update a invoices_transactions.
     */
    data: Prisma.XOR<Prisma.invoices_transactionsUpdateInput, Prisma.invoices_transactionsUncheckedUpdateInput>;
    /**
     * Choose, which invoices_transactions to update.
     */
    where: Prisma.invoices_transactionsWhereUniqueInput;
};
/**
 * invoices_transactions updateMany
 */
export type invoices_transactionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update invoices_transactions.
     */
    data: Prisma.XOR<Prisma.invoices_transactionsUpdateManyMutationInput, Prisma.invoices_transactionsUncheckedUpdateManyInput>;
    /**
     * Filter which invoices_transactions to update
     */
    where?: Prisma.invoices_transactionsWhereInput;
    /**
     * Limit how many invoices_transactions to update.
     */
    limit?: number;
};
/**
 * invoices_transactions updateManyAndReturn
 */
export type invoices_transactionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * The data used to update invoices_transactions.
     */
    data: Prisma.XOR<Prisma.invoices_transactionsUpdateManyMutationInput, Prisma.invoices_transactionsUncheckedUpdateManyInput>;
    /**
     * Filter which invoices_transactions to update
     */
    where?: Prisma.invoices_transactionsWhereInput;
    /**
     * Limit how many invoices_transactions to update.
     */
    limit?: number;
};
/**
 * invoices_transactions upsert
 */
export type invoices_transactionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * The filter to search for the invoices_transactions to update in case it exists.
     */
    where: Prisma.invoices_transactionsWhereUniqueInput;
    /**
     * In case the invoices_transactions found by the `where` argument doesn't exist, create a new invoices_transactions with this data.
     */
    create: Prisma.XOR<Prisma.invoices_transactionsCreateInput, Prisma.invoices_transactionsUncheckedCreateInput>;
    /**
     * In case the invoices_transactions was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.invoices_transactionsUpdateInput, Prisma.invoices_transactionsUncheckedUpdateInput>;
};
/**
 * invoices_transactions delete
 */
export type invoices_transactionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
    /**
     * Filter which invoices_transactions to delete.
     */
    where: Prisma.invoices_transactionsWhereUniqueInput;
};
/**
 * invoices_transactions deleteMany
 */
export type invoices_transactionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which invoices_transactions to delete
     */
    where?: Prisma.invoices_transactionsWhereInput;
    /**
     * Limit how many invoices_transactions to delete.
     */
    limit?: number;
};
/**
 * invoices_transactions without action
 */
export type invoices_transactionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the invoices_transactions
     */
    select?: Prisma.invoices_transactionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the invoices_transactions
     */
    omit?: Prisma.invoices_transactionsOmit<ExtArgs> | null;
};
export {};
