import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model returns_products
 * 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 returns_productsModel = runtime.Types.Result.DefaultSelection<Prisma.$returns_productsPayload>;
export type AggregateReturns_products = {
    _count: Returns_productsCountAggregateOutputType | null;
    _avg: Returns_productsAvgAggregateOutputType | null;
    _sum: Returns_productsSumAggregateOutputType | null;
    _min: Returns_productsMinAggregateOutputType | null;
    _max: Returns_productsMaxAggregateOutputType | null;
};
export type Returns_productsAvgAggregateOutputType = {
    id: number | null;
    returns_id: number | null;
    products_id: number | null;
};
export type Returns_productsSumAggregateOutputType = {
    id: number | null;
    returns_id: number | null;
    products_id: bigint | null;
};
export type Returns_productsMinAggregateOutputType = {
    id: number | null;
    returns_id: number | null;
    products_id: bigint | null;
};
export type Returns_productsMaxAggregateOutputType = {
    id: number | null;
    returns_id: number | null;
    products_id: bigint | null;
};
export type Returns_productsCountAggregateOutputType = {
    id: number;
    returns_id: number;
    products_id: number;
    _all: number;
};
export type Returns_productsAvgAggregateInputType = {
    id?: true;
    returns_id?: true;
    products_id?: true;
};
export type Returns_productsSumAggregateInputType = {
    id?: true;
    returns_id?: true;
    products_id?: true;
};
export type Returns_productsMinAggregateInputType = {
    id?: true;
    returns_id?: true;
    products_id?: true;
};
export type Returns_productsMaxAggregateInputType = {
    id?: true;
    returns_id?: true;
    products_id?: true;
};
export type Returns_productsCountAggregateInputType = {
    id?: true;
    returns_id?: true;
    products_id?: true;
    _all?: true;
};
export type Returns_productsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which returns_products to aggregate.
     */
    where?: Prisma.returns_productsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of returns_products to fetch.
     */
    orderBy?: Prisma.returns_productsOrderByWithRelationInput | Prisma.returns_productsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.returns_productsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` returns_products 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` returns_products.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned returns_products
    **/
    _count?: true | Returns_productsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Returns_productsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Returns_productsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Returns_productsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Returns_productsMaxAggregateInputType;
};
export type GetReturns_productsAggregateType<T extends Returns_productsAggregateArgs> = {
    [P in keyof T & keyof AggregateReturns_products]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateReturns_products[P]> : Prisma.GetScalarType<T[P], AggregateReturns_products[P]>;
};
export type returns_productsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.returns_productsWhereInput;
    orderBy?: Prisma.returns_productsOrderByWithAggregationInput | Prisma.returns_productsOrderByWithAggregationInput[];
    by: Prisma.Returns_productsScalarFieldEnum[] | Prisma.Returns_productsScalarFieldEnum;
    having?: Prisma.returns_productsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Returns_productsCountAggregateInputType | true;
    _avg?: Returns_productsAvgAggregateInputType;
    _sum?: Returns_productsSumAggregateInputType;
    _min?: Returns_productsMinAggregateInputType;
    _max?: Returns_productsMaxAggregateInputType;
};
export type Returns_productsGroupByOutputType = {
    id: number;
    returns_id: number | null;
    products_id: bigint | null;
    _count: Returns_productsCountAggregateOutputType | null;
    _avg: Returns_productsAvgAggregateOutputType | null;
    _sum: Returns_productsSumAggregateOutputType | null;
    _min: Returns_productsMinAggregateOutputType | null;
    _max: Returns_productsMaxAggregateOutputType | null;
};
type GetReturns_productsGroupByPayload<T extends returns_productsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Returns_productsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Returns_productsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Returns_productsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Returns_productsGroupByOutputType[P]>;
}>>;
export type returns_productsWhereInput = {
    AND?: Prisma.returns_productsWhereInput | Prisma.returns_productsWhereInput[];
    OR?: Prisma.returns_productsWhereInput[];
    NOT?: Prisma.returns_productsWhereInput | Prisma.returns_productsWhereInput[];
    id?: Prisma.IntFilter<"returns_products"> | number;
    returns_id?: Prisma.IntNullableFilter<"returns_products"> | number | null;
    products_id?: Prisma.BigIntNullableFilter<"returns_products"> | bigint | number | null;
    products?: Prisma.XOR<Prisma.ProductsNullableScalarRelationFilter, Prisma.productsWhereInput> | null;
    returns?: Prisma.XOR<Prisma.ReturnsNullableScalarRelationFilter, Prisma.returnsWhereInput> | null;
};
export type returns_productsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    products_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    products?: Prisma.productsOrderByWithRelationInput;
    returns?: Prisma.returnsOrderByWithRelationInput;
};
export type returns_productsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.returns_productsWhereInput | Prisma.returns_productsWhereInput[];
    OR?: Prisma.returns_productsWhereInput[];
    NOT?: Prisma.returns_productsWhereInput | Prisma.returns_productsWhereInput[];
    returns_id?: Prisma.IntNullableFilter<"returns_products"> | number | null;
    products_id?: Prisma.BigIntNullableFilter<"returns_products"> | bigint | number | null;
    products?: Prisma.XOR<Prisma.ProductsNullableScalarRelationFilter, Prisma.productsWhereInput> | null;
    returns?: Prisma.XOR<Prisma.ReturnsNullableScalarRelationFilter, Prisma.returnsWhereInput> | null;
}, "id">;
export type returns_productsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    products_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.returns_productsCountOrderByAggregateInput;
    _avg?: Prisma.returns_productsAvgOrderByAggregateInput;
    _max?: Prisma.returns_productsMaxOrderByAggregateInput;
    _min?: Prisma.returns_productsMinOrderByAggregateInput;
    _sum?: Prisma.returns_productsSumOrderByAggregateInput;
};
export type returns_productsScalarWhereWithAggregatesInput = {
    AND?: Prisma.returns_productsScalarWhereWithAggregatesInput | Prisma.returns_productsScalarWhereWithAggregatesInput[];
    OR?: Prisma.returns_productsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.returns_productsScalarWhereWithAggregatesInput | Prisma.returns_productsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"returns_products"> | number;
    returns_id?: Prisma.IntNullableWithAggregatesFilter<"returns_products"> | number | null;
    products_id?: Prisma.BigIntNullableWithAggregatesFilter<"returns_products"> | bigint | number | null;
};
export type returns_productsCreateInput = {
    products?: Prisma.productsCreateNestedOneWithoutReturns_productsInput;
    returns?: Prisma.returnsCreateNestedOneWithoutReturns_productsInput;
};
export type returns_productsUncheckedCreateInput = {
    id?: number;
    returns_id?: number | null;
    products_id?: bigint | number | null;
};
export type returns_productsUpdateInput = {
    products?: Prisma.productsUpdateOneWithoutReturns_productsNestedInput;
    returns?: Prisma.returnsUpdateOneWithoutReturns_productsNestedInput;
};
export type returns_productsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    returns_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type returns_productsCreateManyInput = {
    id?: number;
    returns_id?: number | null;
    products_id?: bigint | number | null;
};
export type returns_productsUpdateManyMutationInput = {};
export type returns_productsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    returns_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type Returns_productsListRelationFilter = {
    every?: Prisma.returns_productsWhereInput;
    some?: Prisma.returns_productsWhereInput;
    none?: Prisma.returns_productsWhereInput;
};
export type returns_productsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type returns_productsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type returns_productsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type returns_productsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type returns_productsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type returns_productsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type returns_productsCreateNestedManyWithoutProductsInput = {
    create?: Prisma.XOR<Prisma.returns_productsCreateWithoutProductsInput, Prisma.returns_productsUncheckedCreateWithoutProductsInput> | Prisma.returns_productsCreateWithoutProductsInput[] | Prisma.returns_productsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.returns_productsCreateOrConnectWithoutProductsInput | Prisma.returns_productsCreateOrConnectWithoutProductsInput[];
    createMany?: Prisma.returns_productsCreateManyProductsInputEnvelope;
    connect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
};
export type returns_productsUncheckedCreateNestedManyWithoutProductsInput = {
    create?: Prisma.XOR<Prisma.returns_productsCreateWithoutProductsInput, Prisma.returns_productsUncheckedCreateWithoutProductsInput> | Prisma.returns_productsCreateWithoutProductsInput[] | Prisma.returns_productsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.returns_productsCreateOrConnectWithoutProductsInput | Prisma.returns_productsCreateOrConnectWithoutProductsInput[];
    createMany?: Prisma.returns_productsCreateManyProductsInputEnvelope;
    connect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
};
export type returns_productsUpdateManyWithoutProductsNestedInput = {
    create?: Prisma.XOR<Prisma.returns_productsCreateWithoutProductsInput, Prisma.returns_productsUncheckedCreateWithoutProductsInput> | Prisma.returns_productsCreateWithoutProductsInput[] | Prisma.returns_productsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.returns_productsCreateOrConnectWithoutProductsInput | Prisma.returns_productsCreateOrConnectWithoutProductsInput[];
    upsert?: Prisma.returns_productsUpsertWithWhereUniqueWithoutProductsInput | Prisma.returns_productsUpsertWithWhereUniqueWithoutProductsInput[];
    createMany?: Prisma.returns_productsCreateManyProductsInputEnvelope;
    set?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    disconnect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    delete?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    connect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    update?: Prisma.returns_productsUpdateWithWhereUniqueWithoutProductsInput | Prisma.returns_productsUpdateWithWhereUniqueWithoutProductsInput[];
    updateMany?: Prisma.returns_productsUpdateManyWithWhereWithoutProductsInput | Prisma.returns_productsUpdateManyWithWhereWithoutProductsInput[];
    deleteMany?: Prisma.returns_productsScalarWhereInput | Prisma.returns_productsScalarWhereInput[];
};
export type returns_productsUncheckedUpdateManyWithoutProductsNestedInput = {
    create?: Prisma.XOR<Prisma.returns_productsCreateWithoutProductsInput, Prisma.returns_productsUncheckedCreateWithoutProductsInput> | Prisma.returns_productsCreateWithoutProductsInput[] | Prisma.returns_productsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.returns_productsCreateOrConnectWithoutProductsInput | Prisma.returns_productsCreateOrConnectWithoutProductsInput[];
    upsert?: Prisma.returns_productsUpsertWithWhereUniqueWithoutProductsInput | Prisma.returns_productsUpsertWithWhereUniqueWithoutProductsInput[];
    createMany?: Prisma.returns_productsCreateManyProductsInputEnvelope;
    set?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    disconnect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    delete?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    connect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    update?: Prisma.returns_productsUpdateWithWhereUniqueWithoutProductsInput | Prisma.returns_productsUpdateWithWhereUniqueWithoutProductsInput[];
    updateMany?: Prisma.returns_productsUpdateManyWithWhereWithoutProductsInput | Prisma.returns_productsUpdateManyWithWhereWithoutProductsInput[];
    deleteMany?: Prisma.returns_productsScalarWhereInput | Prisma.returns_productsScalarWhereInput[];
};
export type returns_productsCreateNestedManyWithoutReturnsInput = {
    create?: Prisma.XOR<Prisma.returns_productsCreateWithoutReturnsInput, Prisma.returns_productsUncheckedCreateWithoutReturnsInput> | Prisma.returns_productsCreateWithoutReturnsInput[] | Prisma.returns_productsUncheckedCreateWithoutReturnsInput[];
    connectOrCreate?: Prisma.returns_productsCreateOrConnectWithoutReturnsInput | Prisma.returns_productsCreateOrConnectWithoutReturnsInput[];
    createMany?: Prisma.returns_productsCreateManyReturnsInputEnvelope;
    connect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
};
export type returns_productsUncheckedCreateNestedManyWithoutReturnsInput = {
    create?: Prisma.XOR<Prisma.returns_productsCreateWithoutReturnsInput, Prisma.returns_productsUncheckedCreateWithoutReturnsInput> | Prisma.returns_productsCreateWithoutReturnsInput[] | Prisma.returns_productsUncheckedCreateWithoutReturnsInput[];
    connectOrCreate?: Prisma.returns_productsCreateOrConnectWithoutReturnsInput | Prisma.returns_productsCreateOrConnectWithoutReturnsInput[];
    createMany?: Prisma.returns_productsCreateManyReturnsInputEnvelope;
    connect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
};
export type returns_productsUpdateManyWithoutReturnsNestedInput = {
    create?: Prisma.XOR<Prisma.returns_productsCreateWithoutReturnsInput, Prisma.returns_productsUncheckedCreateWithoutReturnsInput> | Prisma.returns_productsCreateWithoutReturnsInput[] | Prisma.returns_productsUncheckedCreateWithoutReturnsInput[];
    connectOrCreate?: Prisma.returns_productsCreateOrConnectWithoutReturnsInput | Prisma.returns_productsCreateOrConnectWithoutReturnsInput[];
    upsert?: Prisma.returns_productsUpsertWithWhereUniqueWithoutReturnsInput | Prisma.returns_productsUpsertWithWhereUniqueWithoutReturnsInput[];
    createMany?: Prisma.returns_productsCreateManyReturnsInputEnvelope;
    set?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    disconnect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    delete?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    connect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    update?: Prisma.returns_productsUpdateWithWhereUniqueWithoutReturnsInput | Prisma.returns_productsUpdateWithWhereUniqueWithoutReturnsInput[];
    updateMany?: Prisma.returns_productsUpdateManyWithWhereWithoutReturnsInput | Prisma.returns_productsUpdateManyWithWhereWithoutReturnsInput[];
    deleteMany?: Prisma.returns_productsScalarWhereInput | Prisma.returns_productsScalarWhereInput[];
};
export type returns_productsUncheckedUpdateManyWithoutReturnsNestedInput = {
    create?: Prisma.XOR<Prisma.returns_productsCreateWithoutReturnsInput, Prisma.returns_productsUncheckedCreateWithoutReturnsInput> | Prisma.returns_productsCreateWithoutReturnsInput[] | Prisma.returns_productsUncheckedCreateWithoutReturnsInput[];
    connectOrCreate?: Prisma.returns_productsCreateOrConnectWithoutReturnsInput | Prisma.returns_productsCreateOrConnectWithoutReturnsInput[];
    upsert?: Prisma.returns_productsUpsertWithWhereUniqueWithoutReturnsInput | Prisma.returns_productsUpsertWithWhereUniqueWithoutReturnsInput[];
    createMany?: Prisma.returns_productsCreateManyReturnsInputEnvelope;
    set?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    disconnect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    delete?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    connect?: Prisma.returns_productsWhereUniqueInput | Prisma.returns_productsWhereUniqueInput[];
    update?: Prisma.returns_productsUpdateWithWhereUniqueWithoutReturnsInput | Prisma.returns_productsUpdateWithWhereUniqueWithoutReturnsInput[];
    updateMany?: Prisma.returns_productsUpdateManyWithWhereWithoutReturnsInput | Prisma.returns_productsUpdateManyWithWhereWithoutReturnsInput[];
    deleteMany?: Prisma.returns_productsScalarWhereInput | Prisma.returns_productsScalarWhereInput[];
};
export type returns_productsCreateWithoutProductsInput = {
    returns?: Prisma.returnsCreateNestedOneWithoutReturns_productsInput;
};
export type returns_productsUncheckedCreateWithoutProductsInput = {
    id?: number;
    returns_id?: number | null;
};
export type returns_productsCreateOrConnectWithoutProductsInput = {
    where: Prisma.returns_productsWhereUniqueInput;
    create: Prisma.XOR<Prisma.returns_productsCreateWithoutProductsInput, Prisma.returns_productsUncheckedCreateWithoutProductsInput>;
};
export type returns_productsCreateManyProductsInputEnvelope = {
    data: Prisma.returns_productsCreateManyProductsInput | Prisma.returns_productsCreateManyProductsInput[];
    skipDuplicates?: boolean;
};
export type returns_productsUpsertWithWhereUniqueWithoutProductsInput = {
    where: Prisma.returns_productsWhereUniqueInput;
    update: Prisma.XOR<Prisma.returns_productsUpdateWithoutProductsInput, Prisma.returns_productsUncheckedUpdateWithoutProductsInput>;
    create: Prisma.XOR<Prisma.returns_productsCreateWithoutProductsInput, Prisma.returns_productsUncheckedCreateWithoutProductsInput>;
};
export type returns_productsUpdateWithWhereUniqueWithoutProductsInput = {
    where: Prisma.returns_productsWhereUniqueInput;
    data: Prisma.XOR<Prisma.returns_productsUpdateWithoutProductsInput, Prisma.returns_productsUncheckedUpdateWithoutProductsInput>;
};
export type returns_productsUpdateManyWithWhereWithoutProductsInput = {
    where: Prisma.returns_productsScalarWhereInput;
    data: Prisma.XOR<Prisma.returns_productsUpdateManyMutationInput, Prisma.returns_productsUncheckedUpdateManyWithoutProductsInput>;
};
export type returns_productsScalarWhereInput = {
    AND?: Prisma.returns_productsScalarWhereInput | Prisma.returns_productsScalarWhereInput[];
    OR?: Prisma.returns_productsScalarWhereInput[];
    NOT?: Prisma.returns_productsScalarWhereInput | Prisma.returns_productsScalarWhereInput[];
    id?: Prisma.IntFilter<"returns_products"> | number;
    returns_id?: Prisma.IntNullableFilter<"returns_products"> | number | null;
    products_id?: Prisma.BigIntNullableFilter<"returns_products"> | bigint | number | null;
};
export type returns_productsCreateWithoutReturnsInput = {
    products?: Prisma.productsCreateNestedOneWithoutReturns_productsInput;
};
export type returns_productsUncheckedCreateWithoutReturnsInput = {
    id?: number;
    products_id?: bigint | number | null;
};
export type returns_productsCreateOrConnectWithoutReturnsInput = {
    where: Prisma.returns_productsWhereUniqueInput;
    create: Prisma.XOR<Prisma.returns_productsCreateWithoutReturnsInput, Prisma.returns_productsUncheckedCreateWithoutReturnsInput>;
};
export type returns_productsCreateManyReturnsInputEnvelope = {
    data: Prisma.returns_productsCreateManyReturnsInput | Prisma.returns_productsCreateManyReturnsInput[];
    skipDuplicates?: boolean;
};
export type returns_productsUpsertWithWhereUniqueWithoutReturnsInput = {
    where: Prisma.returns_productsWhereUniqueInput;
    update: Prisma.XOR<Prisma.returns_productsUpdateWithoutReturnsInput, Prisma.returns_productsUncheckedUpdateWithoutReturnsInput>;
    create: Prisma.XOR<Prisma.returns_productsCreateWithoutReturnsInput, Prisma.returns_productsUncheckedCreateWithoutReturnsInput>;
};
export type returns_productsUpdateWithWhereUniqueWithoutReturnsInput = {
    where: Prisma.returns_productsWhereUniqueInput;
    data: Prisma.XOR<Prisma.returns_productsUpdateWithoutReturnsInput, Prisma.returns_productsUncheckedUpdateWithoutReturnsInput>;
};
export type returns_productsUpdateManyWithWhereWithoutReturnsInput = {
    where: Prisma.returns_productsScalarWhereInput;
    data: Prisma.XOR<Prisma.returns_productsUpdateManyMutationInput, Prisma.returns_productsUncheckedUpdateManyWithoutReturnsInput>;
};
export type returns_productsCreateManyProductsInput = {
    id?: number;
    returns_id?: number | null;
};
export type returns_productsUpdateWithoutProductsInput = {
    returns?: Prisma.returnsUpdateOneWithoutReturns_productsNestedInput;
};
export type returns_productsUncheckedUpdateWithoutProductsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    returns_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type returns_productsUncheckedUpdateManyWithoutProductsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    returns_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type returns_productsCreateManyReturnsInput = {
    id?: number;
    products_id?: bigint | number | null;
};
export type returns_productsUpdateWithoutReturnsInput = {
    products?: Prisma.productsUpdateOneWithoutReturns_productsNestedInput;
};
export type returns_productsUncheckedUpdateWithoutReturnsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type returns_productsUncheckedUpdateManyWithoutReturnsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type returns_productsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    returns_id?: boolean;
    products_id?: boolean;
    products?: boolean | Prisma.returns_products$productsArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_products$returnsArgs<ExtArgs>;
}, ExtArgs["result"]["returns_products"]>;
export type returns_productsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    returns_id?: boolean;
    products_id?: boolean;
    products?: boolean | Prisma.returns_products$productsArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_products$returnsArgs<ExtArgs>;
}, ExtArgs["result"]["returns_products"]>;
export type returns_productsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    returns_id?: boolean;
    products_id?: boolean;
    products?: boolean | Prisma.returns_products$productsArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_products$returnsArgs<ExtArgs>;
}, ExtArgs["result"]["returns_products"]>;
export type returns_productsSelectScalar = {
    id?: boolean;
    returns_id?: boolean;
    products_id?: boolean;
};
export type returns_productsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "returns_id" | "products_id", ExtArgs["result"]["returns_products"]>;
export type returns_productsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    products?: boolean | Prisma.returns_products$productsArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_products$returnsArgs<ExtArgs>;
};
export type returns_productsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    products?: boolean | Prisma.returns_products$productsArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_products$returnsArgs<ExtArgs>;
};
export type returns_productsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    products?: boolean | Prisma.returns_products$productsArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_products$returnsArgs<ExtArgs>;
};
export type $returns_productsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "returns_products";
    objects: {
        products: Prisma.$productsPayload<ExtArgs> | null;
        returns: Prisma.$returnsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        returns_id: number | null;
        products_id: bigint | null;
    }, ExtArgs["result"]["returns_products"]>;
    composites: {};
};
export type returns_productsGetPayload<S extends boolean | null | undefined | returns_productsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$returns_productsPayload, S>;
export type returns_productsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<returns_productsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Returns_productsCountAggregateInputType | true;
};
export interface returns_productsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['returns_products'];
        meta: {
            name: 'returns_products';
        };
    };
    /**
     * Find zero or one Returns_products that matches the filter.
     * @param {returns_productsFindUniqueArgs} args - Arguments to find a Returns_products
     * @example
     * // Get one Returns_products
     * const returns_products = await prisma.returns_products.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends returns_productsFindUniqueArgs>(args: Prisma.SelectSubset<T, returns_productsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__returns_productsClient<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Returns_products that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {returns_productsFindUniqueOrThrowArgs} args - Arguments to find a Returns_products
     * @example
     * // Get one Returns_products
     * const returns_products = await prisma.returns_products.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends returns_productsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, returns_productsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__returns_productsClient<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Returns_products 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 {returns_productsFindFirstArgs} args - Arguments to find a Returns_products
     * @example
     * // Get one Returns_products
     * const returns_products = await prisma.returns_products.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends returns_productsFindFirstArgs>(args?: Prisma.SelectSubset<T, returns_productsFindFirstArgs<ExtArgs>>): Prisma.Prisma__returns_productsClient<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Returns_products 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 {returns_productsFindFirstOrThrowArgs} args - Arguments to find a Returns_products
     * @example
     * // Get one Returns_products
     * const returns_products = await prisma.returns_products.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends returns_productsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, returns_productsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__returns_productsClient<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Returns_products 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 {returns_productsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Returns_products
     * const returns_products = await prisma.returns_products.findMany()
     *
     * // Get first 10 Returns_products
     * const returns_products = await prisma.returns_products.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const returns_productsWithIdOnly = await prisma.returns_products.findMany({ select: { id: true } })
     *
     */
    findMany<T extends returns_productsFindManyArgs>(args?: Prisma.SelectSubset<T, returns_productsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Returns_products.
     * @param {returns_productsCreateArgs} args - Arguments to create a Returns_products.
     * @example
     * // Create one Returns_products
     * const Returns_products = await prisma.returns_products.create({
     *   data: {
     *     // ... data to create a Returns_products
     *   }
     * })
     *
     */
    create<T extends returns_productsCreateArgs>(args: Prisma.SelectSubset<T, returns_productsCreateArgs<ExtArgs>>): Prisma.Prisma__returns_productsClient<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Returns_products.
     * @param {returns_productsCreateManyArgs} args - Arguments to create many Returns_products.
     * @example
     * // Create many Returns_products
     * const returns_products = await prisma.returns_products.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends returns_productsCreateManyArgs>(args?: Prisma.SelectSubset<T, returns_productsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Returns_products and returns the data saved in the database.
     * @param {returns_productsCreateManyAndReturnArgs} args - Arguments to create many Returns_products.
     * @example
     * // Create many Returns_products
     * const returns_products = await prisma.returns_products.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Returns_products and only return the `id`
     * const returns_productsWithIdOnly = await prisma.returns_products.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 returns_productsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, returns_productsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Returns_products.
     * @param {returns_productsDeleteArgs} args - Arguments to delete one Returns_products.
     * @example
     * // Delete one Returns_products
     * const Returns_products = await prisma.returns_products.delete({
     *   where: {
     *     // ... filter to delete one Returns_products
     *   }
     * })
     *
     */
    delete<T extends returns_productsDeleteArgs>(args: Prisma.SelectSubset<T, returns_productsDeleteArgs<ExtArgs>>): Prisma.Prisma__returns_productsClient<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Returns_products.
     * @param {returns_productsUpdateArgs} args - Arguments to update one Returns_products.
     * @example
     * // Update one Returns_products
     * const returns_products = await prisma.returns_products.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends returns_productsUpdateArgs>(args: Prisma.SelectSubset<T, returns_productsUpdateArgs<ExtArgs>>): Prisma.Prisma__returns_productsClient<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Returns_products.
     * @param {returns_productsDeleteManyArgs} args - Arguments to filter Returns_products to delete.
     * @example
     * // Delete a few Returns_products
     * const { count } = await prisma.returns_products.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends returns_productsDeleteManyArgs>(args?: Prisma.SelectSubset<T, returns_productsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Returns_products.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {returns_productsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Returns_products
     * const returns_products = await prisma.returns_products.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends returns_productsUpdateManyArgs>(args: Prisma.SelectSubset<T, returns_productsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Returns_products and returns the data updated in the database.
     * @param {returns_productsUpdateManyAndReturnArgs} args - Arguments to update many Returns_products.
     * @example
     * // Update many Returns_products
     * const returns_products = await prisma.returns_products.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Returns_products and only return the `id`
     * const returns_productsWithIdOnly = await prisma.returns_products.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 returns_productsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, returns_productsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Returns_products.
     * @param {returns_productsUpsertArgs} args - Arguments to update or create a Returns_products.
     * @example
     * // Update or create a Returns_products
     * const returns_products = await prisma.returns_products.upsert({
     *   create: {
     *     // ... data to create a Returns_products
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Returns_products we want to update
     *   }
     * })
     */
    upsert<T extends returns_productsUpsertArgs>(args: Prisma.SelectSubset<T, returns_productsUpsertArgs<ExtArgs>>): Prisma.Prisma__returns_productsClient<runtime.Types.Result.GetResult<Prisma.$returns_productsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Returns_products.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {returns_productsCountArgs} args - Arguments to filter Returns_products to count.
     * @example
     * // Count the number of Returns_products
     * const count = await prisma.returns_products.count({
     *   where: {
     *     // ... the filter for the Returns_products we want to count
     *   }
     * })
    **/
    count<T extends returns_productsCountArgs>(args?: Prisma.Subset<T, returns_productsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Returns_productsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Returns_products.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Returns_productsAggregateArgs} 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 Returns_productsAggregateArgs>(args: Prisma.Subset<T, Returns_productsAggregateArgs>): Prisma.PrismaPromise<GetReturns_productsAggregateType<T>>;
    /**
     * Group by Returns_products.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {returns_productsGroupByArgs} 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 returns_productsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: returns_productsGroupByArgs['orderBy'];
    } : {
        orderBy?: returns_productsGroupByArgs['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, returns_productsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetReturns_productsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the returns_products model
     */
    readonly fields: returns_productsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for returns_products.
 * 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__returns_productsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    products<T extends Prisma.returns_products$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.returns_products$productsArgs<ExtArgs>>): Prisma.Prisma__productsClient<runtime.Types.Result.GetResult<Prisma.$productsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    returns<T extends Prisma.returns_products$returnsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.returns_products$returnsArgs<ExtArgs>>): Prisma.Prisma__returnsClient<runtime.Types.Result.GetResult<Prisma.$returnsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * 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 returns_products model
 */
export interface returns_productsFieldRefs {
    readonly id: Prisma.FieldRef<"returns_products", 'Int'>;
    readonly returns_id: Prisma.FieldRef<"returns_products", 'Int'>;
    readonly products_id: Prisma.FieldRef<"returns_products", 'BigInt'>;
}
/**
 * returns_products findUnique
 */
export type returns_productsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * Filter, which returns_products to fetch.
     */
    where: Prisma.returns_productsWhereUniqueInput;
};
/**
 * returns_products findUniqueOrThrow
 */
export type returns_productsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * Filter, which returns_products to fetch.
     */
    where: Prisma.returns_productsWhereUniqueInput;
};
/**
 * returns_products findFirst
 */
export type returns_productsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * Filter, which returns_products to fetch.
     */
    where?: Prisma.returns_productsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of returns_products to fetch.
     */
    orderBy?: Prisma.returns_productsOrderByWithRelationInput | Prisma.returns_productsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for returns_products.
     */
    cursor?: Prisma.returns_productsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` returns_products 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` returns_products.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of returns_products.
     */
    distinct?: Prisma.Returns_productsScalarFieldEnum | Prisma.Returns_productsScalarFieldEnum[];
};
/**
 * returns_products findFirstOrThrow
 */
export type returns_productsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * Filter, which returns_products to fetch.
     */
    where?: Prisma.returns_productsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of returns_products to fetch.
     */
    orderBy?: Prisma.returns_productsOrderByWithRelationInput | Prisma.returns_productsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for returns_products.
     */
    cursor?: Prisma.returns_productsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` returns_products 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` returns_products.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of returns_products.
     */
    distinct?: Prisma.Returns_productsScalarFieldEnum | Prisma.Returns_productsScalarFieldEnum[];
};
/**
 * returns_products findMany
 */
export type returns_productsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * Filter, which returns_products to fetch.
     */
    where?: Prisma.returns_productsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of returns_products to fetch.
     */
    orderBy?: Prisma.returns_productsOrderByWithRelationInput | Prisma.returns_productsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing returns_products.
     */
    cursor?: Prisma.returns_productsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` returns_products 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` returns_products.
     */
    skip?: number;
    distinct?: Prisma.Returns_productsScalarFieldEnum | Prisma.Returns_productsScalarFieldEnum[];
};
/**
 * returns_products create
 */
export type returns_productsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * The data needed to create a returns_products.
     */
    data?: Prisma.XOR<Prisma.returns_productsCreateInput, Prisma.returns_productsUncheckedCreateInput>;
};
/**
 * returns_products createMany
 */
export type returns_productsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many returns_products.
     */
    data: Prisma.returns_productsCreateManyInput | Prisma.returns_productsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * returns_products createManyAndReturn
 */
export type returns_productsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * The data used to create many returns_products.
     */
    data: Prisma.returns_productsCreateManyInput | Prisma.returns_productsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * returns_products update
 */
export type returns_productsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * The data needed to update a returns_products.
     */
    data: Prisma.XOR<Prisma.returns_productsUpdateInput, Prisma.returns_productsUncheckedUpdateInput>;
    /**
     * Choose, which returns_products to update.
     */
    where: Prisma.returns_productsWhereUniqueInput;
};
/**
 * returns_products updateMany
 */
export type returns_productsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update returns_products.
     */
    data: Prisma.XOR<Prisma.returns_productsUpdateManyMutationInput, Prisma.returns_productsUncheckedUpdateManyInput>;
    /**
     * Filter which returns_products to update
     */
    where?: Prisma.returns_productsWhereInput;
    /**
     * Limit how many returns_products to update.
     */
    limit?: number;
};
/**
 * returns_products updateManyAndReturn
 */
export type returns_productsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * The data used to update returns_products.
     */
    data: Prisma.XOR<Prisma.returns_productsUpdateManyMutationInput, Prisma.returns_productsUncheckedUpdateManyInput>;
    /**
     * Filter which returns_products to update
     */
    where?: Prisma.returns_productsWhereInput;
    /**
     * Limit how many returns_products to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * returns_products upsert
 */
export type returns_productsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * The filter to search for the returns_products to update in case it exists.
     */
    where: Prisma.returns_productsWhereUniqueInput;
    /**
     * In case the returns_products found by the `where` argument doesn't exist, create a new returns_products with this data.
     */
    create: Prisma.XOR<Prisma.returns_productsCreateInput, Prisma.returns_productsUncheckedCreateInput>;
    /**
     * In case the returns_products was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.returns_productsUpdateInput, Prisma.returns_productsUncheckedUpdateInput>;
};
/**
 * returns_products delete
 */
export type returns_productsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
    /**
     * Filter which returns_products to delete.
     */
    where: Prisma.returns_productsWhereUniqueInput;
};
/**
 * returns_products deleteMany
 */
export type returns_productsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which returns_products to delete
     */
    where?: Prisma.returns_productsWhereInput;
    /**
     * Limit how many returns_products to delete.
     */
    limit?: number;
};
/**
 * returns_products.products
 */
export type returns_products$productsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products
     */
    select?: Prisma.productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products
     */
    omit?: Prisma.productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.productsInclude<ExtArgs> | null;
    where?: Prisma.productsWhereInput;
};
/**
 * returns_products.returns
 */
export type returns_products$returnsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns
     */
    select?: Prisma.returnsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns
     */
    omit?: Prisma.returnsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returnsInclude<ExtArgs> | null;
    where?: Prisma.returnsWhereInput;
};
/**
 * returns_products without action
 */
export type returns_productsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_products
     */
    select?: Prisma.returns_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_products
     */
    omit?: Prisma.returns_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_productsInclude<ExtArgs> | null;
};
export {};
