import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model returns_orders
 * 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_ordersModel = runtime.Types.Result.DefaultSelection<Prisma.$returns_ordersPayload>;
export type AggregateReturns_orders = {
    _count: Returns_ordersCountAggregateOutputType | null;
    _avg: Returns_ordersAvgAggregateOutputType | null;
    _sum: Returns_ordersSumAggregateOutputType | null;
    _min: Returns_ordersMinAggregateOutputType | null;
    _max: Returns_ordersMaxAggregateOutputType | null;
};
export type Returns_ordersAvgAggregateOutputType = {
    id: number | null;
    returns_id: number | null;
    orders_id: number | null;
};
export type Returns_ordersSumAggregateOutputType = {
    id: number | null;
    returns_id: number | null;
    orders_id: number | null;
};
export type Returns_ordersMinAggregateOutputType = {
    id: number | null;
    returns_id: number | null;
    orders_id: number | null;
};
export type Returns_ordersMaxAggregateOutputType = {
    id: number | null;
    returns_id: number | null;
    orders_id: number | null;
};
export type Returns_ordersCountAggregateOutputType = {
    id: number;
    returns_id: number;
    orders_id: number;
    _all: number;
};
export type Returns_ordersAvgAggregateInputType = {
    id?: true;
    returns_id?: true;
    orders_id?: true;
};
export type Returns_ordersSumAggregateInputType = {
    id?: true;
    returns_id?: true;
    orders_id?: true;
};
export type Returns_ordersMinAggregateInputType = {
    id?: true;
    returns_id?: true;
    orders_id?: true;
};
export type Returns_ordersMaxAggregateInputType = {
    id?: true;
    returns_id?: true;
    orders_id?: true;
};
export type Returns_ordersCountAggregateInputType = {
    id?: true;
    returns_id?: true;
    orders_id?: true;
    _all?: true;
};
export type Returns_ordersAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which returns_orders to aggregate.
     */
    where?: Prisma.returns_ordersWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of returns_orders to fetch.
     */
    orderBy?: Prisma.returns_ordersOrderByWithRelationInput | Prisma.returns_ordersOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.returns_ordersWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` returns_orders 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_orders.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned returns_orders
    **/
    _count?: true | Returns_ordersCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Returns_ordersAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Returns_ordersSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Returns_ordersMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Returns_ordersMaxAggregateInputType;
};
export type GetReturns_ordersAggregateType<T extends Returns_ordersAggregateArgs> = {
    [P in keyof T & keyof AggregateReturns_orders]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateReturns_orders[P]> : Prisma.GetScalarType<T[P], AggregateReturns_orders[P]>;
};
export type returns_ordersGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.returns_ordersWhereInput;
    orderBy?: Prisma.returns_ordersOrderByWithAggregationInput | Prisma.returns_ordersOrderByWithAggregationInput[];
    by: Prisma.Returns_ordersScalarFieldEnum[] | Prisma.Returns_ordersScalarFieldEnum;
    having?: Prisma.returns_ordersScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Returns_ordersCountAggregateInputType | true;
    _avg?: Returns_ordersAvgAggregateInputType;
    _sum?: Returns_ordersSumAggregateInputType;
    _min?: Returns_ordersMinAggregateInputType;
    _max?: Returns_ordersMaxAggregateInputType;
};
export type Returns_ordersGroupByOutputType = {
    id: number;
    returns_id: number | null;
    orders_id: number | null;
    _count: Returns_ordersCountAggregateOutputType | null;
    _avg: Returns_ordersAvgAggregateOutputType | null;
    _sum: Returns_ordersSumAggregateOutputType | null;
    _min: Returns_ordersMinAggregateOutputType | null;
    _max: Returns_ordersMaxAggregateOutputType | null;
};
type GetReturns_ordersGroupByPayload<T extends returns_ordersGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Returns_ordersGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Returns_ordersGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Returns_ordersGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Returns_ordersGroupByOutputType[P]>;
}>>;
export type returns_ordersWhereInput = {
    AND?: Prisma.returns_ordersWhereInput | Prisma.returns_ordersWhereInput[];
    OR?: Prisma.returns_ordersWhereInput[];
    NOT?: Prisma.returns_ordersWhereInput | Prisma.returns_ordersWhereInput[];
    id?: Prisma.IntFilter<"returns_orders"> | number;
    returns_id?: Prisma.IntNullableFilter<"returns_orders"> | number | null;
    orders_id?: Prisma.IntNullableFilter<"returns_orders"> | number | null;
    orders?: Prisma.XOR<Prisma.OrdersNullableScalarRelationFilter, Prisma.ordersWhereInput> | null;
    returns?: Prisma.XOR<Prisma.ReturnsNullableScalarRelationFilter, Prisma.returnsWhereInput> | null;
};
export type returns_ordersOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    orders_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    orders?: Prisma.ordersOrderByWithRelationInput;
    returns?: Prisma.returnsOrderByWithRelationInput;
};
export type returns_ordersWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.returns_ordersWhereInput | Prisma.returns_ordersWhereInput[];
    OR?: Prisma.returns_ordersWhereInput[];
    NOT?: Prisma.returns_ordersWhereInput | Prisma.returns_ordersWhereInput[];
    returns_id?: Prisma.IntNullableFilter<"returns_orders"> | number | null;
    orders_id?: Prisma.IntNullableFilter<"returns_orders"> | number | null;
    orders?: Prisma.XOR<Prisma.OrdersNullableScalarRelationFilter, Prisma.ordersWhereInput> | null;
    returns?: Prisma.XOR<Prisma.ReturnsNullableScalarRelationFilter, Prisma.returnsWhereInput> | null;
}, "id">;
export type returns_ordersOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    orders_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.returns_ordersCountOrderByAggregateInput;
    _avg?: Prisma.returns_ordersAvgOrderByAggregateInput;
    _max?: Prisma.returns_ordersMaxOrderByAggregateInput;
    _min?: Prisma.returns_ordersMinOrderByAggregateInput;
    _sum?: Prisma.returns_ordersSumOrderByAggregateInput;
};
export type returns_ordersScalarWhereWithAggregatesInput = {
    AND?: Prisma.returns_ordersScalarWhereWithAggregatesInput | Prisma.returns_ordersScalarWhereWithAggregatesInput[];
    OR?: Prisma.returns_ordersScalarWhereWithAggregatesInput[];
    NOT?: Prisma.returns_ordersScalarWhereWithAggregatesInput | Prisma.returns_ordersScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"returns_orders"> | number;
    returns_id?: Prisma.IntNullableWithAggregatesFilter<"returns_orders"> | number | null;
    orders_id?: Prisma.IntNullableWithAggregatesFilter<"returns_orders"> | number | null;
};
export type returns_ordersCreateInput = {
    orders?: Prisma.ordersCreateNestedOneWithoutReturns_ordersInput;
    returns?: Prisma.returnsCreateNestedOneWithoutReturns_ordersInput;
};
export type returns_ordersUncheckedCreateInput = {
    id?: number;
    returns_id?: number | null;
    orders_id?: number | null;
};
export type returns_ordersUpdateInput = {
    orders?: Prisma.ordersUpdateOneWithoutReturns_ordersNestedInput;
    returns?: Prisma.returnsUpdateOneWithoutReturns_ordersNestedInput;
};
export type returns_ordersUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    returns_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    orders_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type returns_ordersCreateManyInput = {
    id?: number;
    returns_id?: number | null;
    orders_id?: number | null;
};
export type returns_ordersUpdateManyMutationInput = {};
export type returns_ordersUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    returns_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    orders_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Returns_ordersListRelationFilter = {
    every?: Prisma.returns_ordersWhereInput;
    some?: Prisma.returns_ordersWhereInput;
    none?: Prisma.returns_ordersWhereInput;
};
export type returns_ordersOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type returns_ordersCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    orders_id?: Prisma.SortOrder;
};
export type returns_ordersAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    orders_id?: Prisma.SortOrder;
};
export type returns_ordersMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    orders_id?: Prisma.SortOrder;
};
export type returns_ordersMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    orders_id?: Prisma.SortOrder;
};
export type returns_ordersSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    returns_id?: Prisma.SortOrder;
    orders_id?: Prisma.SortOrder;
};
export type returns_ordersCreateNestedManyWithoutOrdersInput = {
    create?: Prisma.XOR<Prisma.returns_ordersCreateWithoutOrdersInput, Prisma.returns_ordersUncheckedCreateWithoutOrdersInput> | Prisma.returns_ordersCreateWithoutOrdersInput[] | Prisma.returns_ordersUncheckedCreateWithoutOrdersInput[];
    connectOrCreate?: Prisma.returns_ordersCreateOrConnectWithoutOrdersInput | Prisma.returns_ordersCreateOrConnectWithoutOrdersInput[];
    createMany?: Prisma.returns_ordersCreateManyOrdersInputEnvelope;
    connect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
};
export type returns_ordersUncheckedCreateNestedManyWithoutOrdersInput = {
    create?: Prisma.XOR<Prisma.returns_ordersCreateWithoutOrdersInput, Prisma.returns_ordersUncheckedCreateWithoutOrdersInput> | Prisma.returns_ordersCreateWithoutOrdersInput[] | Prisma.returns_ordersUncheckedCreateWithoutOrdersInput[];
    connectOrCreate?: Prisma.returns_ordersCreateOrConnectWithoutOrdersInput | Prisma.returns_ordersCreateOrConnectWithoutOrdersInput[];
    createMany?: Prisma.returns_ordersCreateManyOrdersInputEnvelope;
    connect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
};
export type returns_ordersUpdateManyWithoutOrdersNestedInput = {
    create?: Prisma.XOR<Prisma.returns_ordersCreateWithoutOrdersInput, Prisma.returns_ordersUncheckedCreateWithoutOrdersInput> | Prisma.returns_ordersCreateWithoutOrdersInput[] | Prisma.returns_ordersUncheckedCreateWithoutOrdersInput[];
    connectOrCreate?: Prisma.returns_ordersCreateOrConnectWithoutOrdersInput | Prisma.returns_ordersCreateOrConnectWithoutOrdersInput[];
    upsert?: Prisma.returns_ordersUpsertWithWhereUniqueWithoutOrdersInput | Prisma.returns_ordersUpsertWithWhereUniqueWithoutOrdersInput[];
    createMany?: Prisma.returns_ordersCreateManyOrdersInputEnvelope;
    set?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    disconnect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    delete?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    connect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    update?: Prisma.returns_ordersUpdateWithWhereUniqueWithoutOrdersInput | Prisma.returns_ordersUpdateWithWhereUniqueWithoutOrdersInput[];
    updateMany?: Prisma.returns_ordersUpdateManyWithWhereWithoutOrdersInput | Prisma.returns_ordersUpdateManyWithWhereWithoutOrdersInput[];
    deleteMany?: Prisma.returns_ordersScalarWhereInput | Prisma.returns_ordersScalarWhereInput[];
};
export type returns_ordersUncheckedUpdateManyWithoutOrdersNestedInput = {
    create?: Prisma.XOR<Prisma.returns_ordersCreateWithoutOrdersInput, Prisma.returns_ordersUncheckedCreateWithoutOrdersInput> | Prisma.returns_ordersCreateWithoutOrdersInput[] | Prisma.returns_ordersUncheckedCreateWithoutOrdersInput[];
    connectOrCreate?: Prisma.returns_ordersCreateOrConnectWithoutOrdersInput | Prisma.returns_ordersCreateOrConnectWithoutOrdersInput[];
    upsert?: Prisma.returns_ordersUpsertWithWhereUniqueWithoutOrdersInput | Prisma.returns_ordersUpsertWithWhereUniqueWithoutOrdersInput[];
    createMany?: Prisma.returns_ordersCreateManyOrdersInputEnvelope;
    set?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    disconnect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    delete?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    connect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    update?: Prisma.returns_ordersUpdateWithWhereUniqueWithoutOrdersInput | Prisma.returns_ordersUpdateWithWhereUniqueWithoutOrdersInput[];
    updateMany?: Prisma.returns_ordersUpdateManyWithWhereWithoutOrdersInput | Prisma.returns_ordersUpdateManyWithWhereWithoutOrdersInput[];
    deleteMany?: Prisma.returns_ordersScalarWhereInput | Prisma.returns_ordersScalarWhereInput[];
};
export type returns_ordersCreateNestedManyWithoutReturnsInput = {
    create?: Prisma.XOR<Prisma.returns_ordersCreateWithoutReturnsInput, Prisma.returns_ordersUncheckedCreateWithoutReturnsInput> | Prisma.returns_ordersCreateWithoutReturnsInput[] | Prisma.returns_ordersUncheckedCreateWithoutReturnsInput[];
    connectOrCreate?: Prisma.returns_ordersCreateOrConnectWithoutReturnsInput | Prisma.returns_ordersCreateOrConnectWithoutReturnsInput[];
    createMany?: Prisma.returns_ordersCreateManyReturnsInputEnvelope;
    connect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
};
export type returns_ordersUncheckedCreateNestedManyWithoutReturnsInput = {
    create?: Prisma.XOR<Prisma.returns_ordersCreateWithoutReturnsInput, Prisma.returns_ordersUncheckedCreateWithoutReturnsInput> | Prisma.returns_ordersCreateWithoutReturnsInput[] | Prisma.returns_ordersUncheckedCreateWithoutReturnsInput[];
    connectOrCreate?: Prisma.returns_ordersCreateOrConnectWithoutReturnsInput | Prisma.returns_ordersCreateOrConnectWithoutReturnsInput[];
    createMany?: Prisma.returns_ordersCreateManyReturnsInputEnvelope;
    connect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
};
export type returns_ordersUpdateManyWithoutReturnsNestedInput = {
    create?: Prisma.XOR<Prisma.returns_ordersCreateWithoutReturnsInput, Prisma.returns_ordersUncheckedCreateWithoutReturnsInput> | Prisma.returns_ordersCreateWithoutReturnsInput[] | Prisma.returns_ordersUncheckedCreateWithoutReturnsInput[];
    connectOrCreate?: Prisma.returns_ordersCreateOrConnectWithoutReturnsInput | Prisma.returns_ordersCreateOrConnectWithoutReturnsInput[];
    upsert?: Prisma.returns_ordersUpsertWithWhereUniqueWithoutReturnsInput | Prisma.returns_ordersUpsertWithWhereUniqueWithoutReturnsInput[];
    createMany?: Prisma.returns_ordersCreateManyReturnsInputEnvelope;
    set?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    disconnect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    delete?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    connect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    update?: Prisma.returns_ordersUpdateWithWhereUniqueWithoutReturnsInput | Prisma.returns_ordersUpdateWithWhereUniqueWithoutReturnsInput[];
    updateMany?: Prisma.returns_ordersUpdateManyWithWhereWithoutReturnsInput | Prisma.returns_ordersUpdateManyWithWhereWithoutReturnsInput[];
    deleteMany?: Prisma.returns_ordersScalarWhereInput | Prisma.returns_ordersScalarWhereInput[];
};
export type returns_ordersUncheckedUpdateManyWithoutReturnsNestedInput = {
    create?: Prisma.XOR<Prisma.returns_ordersCreateWithoutReturnsInput, Prisma.returns_ordersUncheckedCreateWithoutReturnsInput> | Prisma.returns_ordersCreateWithoutReturnsInput[] | Prisma.returns_ordersUncheckedCreateWithoutReturnsInput[];
    connectOrCreate?: Prisma.returns_ordersCreateOrConnectWithoutReturnsInput | Prisma.returns_ordersCreateOrConnectWithoutReturnsInput[];
    upsert?: Prisma.returns_ordersUpsertWithWhereUniqueWithoutReturnsInput | Prisma.returns_ordersUpsertWithWhereUniqueWithoutReturnsInput[];
    createMany?: Prisma.returns_ordersCreateManyReturnsInputEnvelope;
    set?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    disconnect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    delete?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    connect?: Prisma.returns_ordersWhereUniqueInput | Prisma.returns_ordersWhereUniqueInput[];
    update?: Prisma.returns_ordersUpdateWithWhereUniqueWithoutReturnsInput | Prisma.returns_ordersUpdateWithWhereUniqueWithoutReturnsInput[];
    updateMany?: Prisma.returns_ordersUpdateManyWithWhereWithoutReturnsInput | Prisma.returns_ordersUpdateManyWithWhereWithoutReturnsInput[];
    deleteMany?: Prisma.returns_ordersScalarWhereInput | Prisma.returns_ordersScalarWhereInput[];
};
export type returns_ordersCreateWithoutOrdersInput = {
    returns?: Prisma.returnsCreateNestedOneWithoutReturns_ordersInput;
};
export type returns_ordersUncheckedCreateWithoutOrdersInput = {
    id?: number;
    returns_id?: number | null;
};
export type returns_ordersCreateOrConnectWithoutOrdersInput = {
    where: Prisma.returns_ordersWhereUniqueInput;
    create: Prisma.XOR<Prisma.returns_ordersCreateWithoutOrdersInput, Prisma.returns_ordersUncheckedCreateWithoutOrdersInput>;
};
export type returns_ordersCreateManyOrdersInputEnvelope = {
    data: Prisma.returns_ordersCreateManyOrdersInput | Prisma.returns_ordersCreateManyOrdersInput[];
    skipDuplicates?: boolean;
};
export type returns_ordersUpsertWithWhereUniqueWithoutOrdersInput = {
    where: Prisma.returns_ordersWhereUniqueInput;
    update: Prisma.XOR<Prisma.returns_ordersUpdateWithoutOrdersInput, Prisma.returns_ordersUncheckedUpdateWithoutOrdersInput>;
    create: Prisma.XOR<Prisma.returns_ordersCreateWithoutOrdersInput, Prisma.returns_ordersUncheckedCreateWithoutOrdersInput>;
};
export type returns_ordersUpdateWithWhereUniqueWithoutOrdersInput = {
    where: Prisma.returns_ordersWhereUniqueInput;
    data: Prisma.XOR<Prisma.returns_ordersUpdateWithoutOrdersInput, Prisma.returns_ordersUncheckedUpdateWithoutOrdersInput>;
};
export type returns_ordersUpdateManyWithWhereWithoutOrdersInput = {
    where: Prisma.returns_ordersScalarWhereInput;
    data: Prisma.XOR<Prisma.returns_ordersUpdateManyMutationInput, Prisma.returns_ordersUncheckedUpdateManyWithoutOrdersInput>;
};
export type returns_ordersScalarWhereInput = {
    AND?: Prisma.returns_ordersScalarWhereInput | Prisma.returns_ordersScalarWhereInput[];
    OR?: Prisma.returns_ordersScalarWhereInput[];
    NOT?: Prisma.returns_ordersScalarWhereInput | Prisma.returns_ordersScalarWhereInput[];
    id?: Prisma.IntFilter<"returns_orders"> | number;
    returns_id?: Prisma.IntNullableFilter<"returns_orders"> | number | null;
    orders_id?: Prisma.IntNullableFilter<"returns_orders"> | number | null;
};
export type returns_ordersCreateWithoutReturnsInput = {
    orders?: Prisma.ordersCreateNestedOneWithoutReturns_ordersInput;
};
export type returns_ordersUncheckedCreateWithoutReturnsInput = {
    id?: number;
    orders_id?: number | null;
};
export type returns_ordersCreateOrConnectWithoutReturnsInput = {
    where: Prisma.returns_ordersWhereUniqueInput;
    create: Prisma.XOR<Prisma.returns_ordersCreateWithoutReturnsInput, Prisma.returns_ordersUncheckedCreateWithoutReturnsInput>;
};
export type returns_ordersCreateManyReturnsInputEnvelope = {
    data: Prisma.returns_ordersCreateManyReturnsInput | Prisma.returns_ordersCreateManyReturnsInput[];
    skipDuplicates?: boolean;
};
export type returns_ordersUpsertWithWhereUniqueWithoutReturnsInput = {
    where: Prisma.returns_ordersWhereUniqueInput;
    update: Prisma.XOR<Prisma.returns_ordersUpdateWithoutReturnsInput, Prisma.returns_ordersUncheckedUpdateWithoutReturnsInput>;
    create: Prisma.XOR<Prisma.returns_ordersCreateWithoutReturnsInput, Prisma.returns_ordersUncheckedCreateWithoutReturnsInput>;
};
export type returns_ordersUpdateWithWhereUniqueWithoutReturnsInput = {
    where: Prisma.returns_ordersWhereUniqueInput;
    data: Prisma.XOR<Prisma.returns_ordersUpdateWithoutReturnsInput, Prisma.returns_ordersUncheckedUpdateWithoutReturnsInput>;
};
export type returns_ordersUpdateManyWithWhereWithoutReturnsInput = {
    where: Prisma.returns_ordersScalarWhereInput;
    data: Prisma.XOR<Prisma.returns_ordersUpdateManyMutationInput, Prisma.returns_ordersUncheckedUpdateManyWithoutReturnsInput>;
};
export type returns_ordersCreateManyOrdersInput = {
    id?: number;
    returns_id?: number | null;
};
export type returns_ordersUpdateWithoutOrdersInput = {
    returns?: Prisma.returnsUpdateOneWithoutReturns_ordersNestedInput;
};
export type returns_ordersUncheckedUpdateWithoutOrdersInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    returns_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type returns_ordersUncheckedUpdateManyWithoutOrdersInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    returns_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type returns_ordersCreateManyReturnsInput = {
    id?: number;
    orders_id?: number | null;
};
export type returns_ordersUpdateWithoutReturnsInput = {
    orders?: Prisma.ordersUpdateOneWithoutReturns_ordersNestedInput;
};
export type returns_ordersUncheckedUpdateWithoutReturnsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    orders_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type returns_ordersUncheckedUpdateManyWithoutReturnsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    orders_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type returns_ordersSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    returns_id?: boolean;
    orders_id?: boolean;
    orders?: boolean | Prisma.returns_orders$ordersArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_orders$returnsArgs<ExtArgs>;
}, ExtArgs["result"]["returns_orders"]>;
export type returns_ordersSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    returns_id?: boolean;
    orders_id?: boolean;
    orders?: boolean | Prisma.returns_orders$ordersArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_orders$returnsArgs<ExtArgs>;
}, ExtArgs["result"]["returns_orders"]>;
export type returns_ordersSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    returns_id?: boolean;
    orders_id?: boolean;
    orders?: boolean | Prisma.returns_orders$ordersArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_orders$returnsArgs<ExtArgs>;
}, ExtArgs["result"]["returns_orders"]>;
export type returns_ordersSelectScalar = {
    id?: boolean;
    returns_id?: boolean;
    orders_id?: boolean;
};
export type returns_ordersOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "returns_id" | "orders_id", ExtArgs["result"]["returns_orders"]>;
export type returns_ordersInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    orders?: boolean | Prisma.returns_orders$ordersArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_orders$returnsArgs<ExtArgs>;
};
export type returns_ordersIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    orders?: boolean | Prisma.returns_orders$ordersArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_orders$returnsArgs<ExtArgs>;
};
export type returns_ordersIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    orders?: boolean | Prisma.returns_orders$ordersArgs<ExtArgs>;
    returns?: boolean | Prisma.returns_orders$returnsArgs<ExtArgs>;
};
export type $returns_ordersPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "returns_orders";
    objects: {
        orders: Prisma.$ordersPayload<ExtArgs> | null;
        returns: Prisma.$returnsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        returns_id: number | null;
        orders_id: number | null;
    }, ExtArgs["result"]["returns_orders"]>;
    composites: {};
};
export type returns_ordersGetPayload<S extends boolean | null | undefined | returns_ordersDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload, S>;
export type returns_ordersCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<returns_ordersFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Returns_ordersCountAggregateInputType | true;
};
export interface returns_ordersDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['returns_orders'];
        meta: {
            name: 'returns_orders';
        };
    };
    /**
     * Find zero or one Returns_orders that matches the filter.
     * @param {returns_ordersFindUniqueArgs} args - Arguments to find a Returns_orders
     * @example
     * // Get one Returns_orders
     * const returns_orders = await prisma.returns_orders.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends returns_ordersFindUniqueArgs>(args: Prisma.SelectSubset<T, returns_ordersFindUniqueArgs<ExtArgs>>): Prisma.Prisma__returns_ordersClient<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Returns_orders that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {returns_ordersFindUniqueOrThrowArgs} args - Arguments to find a Returns_orders
     * @example
     * // Get one Returns_orders
     * const returns_orders = await prisma.returns_orders.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends returns_ordersFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, returns_ordersFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__returns_ordersClient<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Returns_orders 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_ordersFindFirstArgs} args - Arguments to find a Returns_orders
     * @example
     * // Get one Returns_orders
     * const returns_orders = await prisma.returns_orders.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends returns_ordersFindFirstArgs>(args?: Prisma.SelectSubset<T, returns_ordersFindFirstArgs<ExtArgs>>): Prisma.Prisma__returns_ordersClient<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Returns_orders 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_ordersFindFirstOrThrowArgs} args - Arguments to find a Returns_orders
     * @example
     * // Get one Returns_orders
     * const returns_orders = await prisma.returns_orders.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends returns_ordersFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, returns_ordersFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__returns_ordersClient<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Returns_orders 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_ordersFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Returns_orders
     * const returns_orders = await prisma.returns_orders.findMany()
     *
     * // Get first 10 Returns_orders
     * const returns_orders = await prisma.returns_orders.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const returns_ordersWithIdOnly = await prisma.returns_orders.findMany({ select: { id: true } })
     *
     */
    findMany<T extends returns_ordersFindManyArgs>(args?: Prisma.SelectSubset<T, returns_ordersFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Returns_orders.
     * @param {returns_ordersCreateArgs} args - Arguments to create a Returns_orders.
     * @example
     * // Create one Returns_orders
     * const Returns_orders = await prisma.returns_orders.create({
     *   data: {
     *     // ... data to create a Returns_orders
     *   }
     * })
     *
     */
    create<T extends returns_ordersCreateArgs>(args: Prisma.SelectSubset<T, returns_ordersCreateArgs<ExtArgs>>): Prisma.Prisma__returns_ordersClient<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Returns_orders.
     * @param {returns_ordersCreateManyArgs} args - Arguments to create many Returns_orders.
     * @example
     * // Create many Returns_orders
     * const returns_orders = await prisma.returns_orders.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends returns_ordersCreateManyArgs>(args?: Prisma.SelectSubset<T, returns_ordersCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Returns_orders and returns the data saved in the database.
     * @param {returns_ordersCreateManyAndReturnArgs} args - Arguments to create many Returns_orders.
     * @example
     * // Create many Returns_orders
     * const returns_orders = await prisma.returns_orders.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Returns_orders and only return the `id`
     * const returns_ordersWithIdOnly = await prisma.returns_orders.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_ordersCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, returns_ordersCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Returns_orders.
     * @param {returns_ordersDeleteArgs} args - Arguments to delete one Returns_orders.
     * @example
     * // Delete one Returns_orders
     * const Returns_orders = await prisma.returns_orders.delete({
     *   where: {
     *     // ... filter to delete one Returns_orders
     *   }
     * })
     *
     */
    delete<T extends returns_ordersDeleteArgs>(args: Prisma.SelectSubset<T, returns_ordersDeleteArgs<ExtArgs>>): Prisma.Prisma__returns_ordersClient<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Returns_orders.
     * @param {returns_ordersUpdateArgs} args - Arguments to update one Returns_orders.
     * @example
     * // Update one Returns_orders
     * const returns_orders = await prisma.returns_orders.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends returns_ordersUpdateArgs>(args: Prisma.SelectSubset<T, returns_ordersUpdateArgs<ExtArgs>>): Prisma.Prisma__returns_ordersClient<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Returns_orders.
     * @param {returns_ordersDeleteManyArgs} args - Arguments to filter Returns_orders to delete.
     * @example
     * // Delete a few Returns_orders
     * const { count } = await prisma.returns_orders.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends returns_ordersDeleteManyArgs>(args?: Prisma.SelectSubset<T, returns_ordersDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Returns_orders.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {returns_ordersUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Returns_orders
     * const returns_orders = await prisma.returns_orders.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends returns_ordersUpdateManyArgs>(args: Prisma.SelectSubset<T, returns_ordersUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Returns_orders and returns the data updated in the database.
     * @param {returns_ordersUpdateManyAndReturnArgs} args - Arguments to update many Returns_orders.
     * @example
     * // Update many Returns_orders
     * const returns_orders = await prisma.returns_orders.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Returns_orders and only return the `id`
     * const returns_ordersWithIdOnly = await prisma.returns_orders.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_ordersUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, returns_ordersUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Returns_orders.
     * @param {returns_ordersUpsertArgs} args - Arguments to update or create a Returns_orders.
     * @example
     * // Update or create a Returns_orders
     * const returns_orders = await prisma.returns_orders.upsert({
     *   create: {
     *     // ... data to create a Returns_orders
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Returns_orders we want to update
     *   }
     * })
     */
    upsert<T extends returns_ordersUpsertArgs>(args: Prisma.SelectSubset<T, returns_ordersUpsertArgs<ExtArgs>>): Prisma.Prisma__returns_ordersClient<runtime.Types.Result.GetResult<Prisma.$returns_ordersPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Returns_orders.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {returns_ordersCountArgs} args - Arguments to filter Returns_orders to count.
     * @example
     * // Count the number of Returns_orders
     * const count = await prisma.returns_orders.count({
     *   where: {
     *     // ... the filter for the Returns_orders we want to count
     *   }
     * })
    **/
    count<T extends returns_ordersCountArgs>(args?: Prisma.Subset<T, returns_ordersCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Returns_ordersCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Returns_orders.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Returns_ordersAggregateArgs} 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_ordersAggregateArgs>(args: Prisma.Subset<T, Returns_ordersAggregateArgs>): Prisma.PrismaPromise<GetReturns_ordersAggregateType<T>>;
    /**
     * Group by Returns_orders.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {returns_ordersGroupByArgs} 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_ordersGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: returns_ordersGroupByArgs['orderBy'];
    } : {
        orderBy?: returns_ordersGroupByArgs['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_ordersGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetReturns_ordersGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the returns_orders model
     */
    readonly fields: returns_ordersFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for returns_orders.
 * 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_ordersClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    orders<T extends Prisma.returns_orders$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.returns_orders$ordersArgs<ExtArgs>>): Prisma.Prisma__ordersClient<runtime.Types.Result.GetResult<Prisma.$ordersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    returns<T extends Prisma.returns_orders$returnsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.returns_orders$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_orders model
 */
export interface returns_ordersFieldRefs {
    readonly id: Prisma.FieldRef<"returns_orders", 'Int'>;
    readonly returns_id: Prisma.FieldRef<"returns_orders", 'Int'>;
    readonly orders_id: Prisma.FieldRef<"returns_orders", 'Int'>;
}
/**
 * returns_orders findUnique
 */
export type returns_ordersFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * Filter, which returns_orders to fetch.
     */
    where: Prisma.returns_ordersWhereUniqueInput;
};
/**
 * returns_orders findUniqueOrThrow
 */
export type returns_ordersFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * Filter, which returns_orders to fetch.
     */
    where: Prisma.returns_ordersWhereUniqueInput;
};
/**
 * returns_orders findFirst
 */
export type returns_ordersFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * Filter, which returns_orders to fetch.
     */
    where?: Prisma.returns_ordersWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of returns_orders to fetch.
     */
    orderBy?: Prisma.returns_ordersOrderByWithRelationInput | Prisma.returns_ordersOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for returns_orders.
     */
    cursor?: Prisma.returns_ordersWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` returns_orders 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_orders.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of returns_orders.
     */
    distinct?: Prisma.Returns_ordersScalarFieldEnum | Prisma.Returns_ordersScalarFieldEnum[];
};
/**
 * returns_orders findFirstOrThrow
 */
export type returns_ordersFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * Filter, which returns_orders to fetch.
     */
    where?: Prisma.returns_ordersWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of returns_orders to fetch.
     */
    orderBy?: Prisma.returns_ordersOrderByWithRelationInput | Prisma.returns_ordersOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for returns_orders.
     */
    cursor?: Prisma.returns_ordersWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` returns_orders 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_orders.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of returns_orders.
     */
    distinct?: Prisma.Returns_ordersScalarFieldEnum | Prisma.Returns_ordersScalarFieldEnum[];
};
/**
 * returns_orders findMany
 */
export type returns_ordersFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * Filter, which returns_orders to fetch.
     */
    where?: Prisma.returns_ordersWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of returns_orders to fetch.
     */
    orderBy?: Prisma.returns_ordersOrderByWithRelationInput | Prisma.returns_ordersOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing returns_orders.
     */
    cursor?: Prisma.returns_ordersWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` returns_orders 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_orders.
     */
    skip?: number;
    distinct?: Prisma.Returns_ordersScalarFieldEnum | Prisma.Returns_ordersScalarFieldEnum[];
};
/**
 * returns_orders create
 */
export type returns_ordersCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * The data needed to create a returns_orders.
     */
    data?: Prisma.XOR<Prisma.returns_ordersCreateInput, Prisma.returns_ordersUncheckedCreateInput>;
};
/**
 * returns_orders createMany
 */
export type returns_ordersCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many returns_orders.
     */
    data: Prisma.returns_ordersCreateManyInput | Prisma.returns_ordersCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * returns_orders createManyAndReturn
 */
export type returns_ordersCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * The data used to create many returns_orders.
     */
    data: Prisma.returns_ordersCreateManyInput | Prisma.returns_ordersCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * returns_orders update
 */
export type returns_ordersUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * The data needed to update a returns_orders.
     */
    data: Prisma.XOR<Prisma.returns_ordersUpdateInput, Prisma.returns_ordersUncheckedUpdateInput>;
    /**
     * Choose, which returns_orders to update.
     */
    where: Prisma.returns_ordersWhereUniqueInput;
};
/**
 * returns_orders updateMany
 */
export type returns_ordersUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update returns_orders.
     */
    data: Prisma.XOR<Prisma.returns_ordersUpdateManyMutationInput, Prisma.returns_ordersUncheckedUpdateManyInput>;
    /**
     * Filter which returns_orders to update
     */
    where?: Prisma.returns_ordersWhereInput;
    /**
     * Limit how many returns_orders to update.
     */
    limit?: number;
};
/**
 * returns_orders updateManyAndReturn
 */
export type returns_ordersUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * The data used to update returns_orders.
     */
    data: Prisma.XOR<Prisma.returns_ordersUpdateManyMutationInput, Prisma.returns_ordersUncheckedUpdateManyInput>;
    /**
     * Filter which returns_orders to update
     */
    where?: Prisma.returns_ordersWhereInput;
    /**
     * Limit how many returns_orders to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * returns_orders upsert
 */
export type returns_ordersUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * The filter to search for the returns_orders to update in case it exists.
     */
    where: Prisma.returns_ordersWhereUniqueInput;
    /**
     * In case the returns_orders found by the `where` argument doesn't exist, create a new returns_orders with this data.
     */
    create: Prisma.XOR<Prisma.returns_ordersCreateInput, Prisma.returns_ordersUncheckedCreateInput>;
    /**
     * In case the returns_orders was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.returns_ordersUpdateInput, Prisma.returns_ordersUncheckedUpdateInput>;
};
/**
 * returns_orders delete
 */
export type returns_ordersDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
    /**
     * Filter which returns_orders to delete.
     */
    where: Prisma.returns_ordersWhereUniqueInput;
};
/**
 * returns_orders deleteMany
 */
export type returns_ordersDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which returns_orders to delete
     */
    where?: Prisma.returns_ordersWhereInput;
    /**
     * Limit how many returns_orders to delete.
     */
    limit?: number;
};
/**
 * returns_orders.orders
 */
export type returns_orders$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the orders
     */
    select?: Prisma.ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the orders
     */
    omit?: Prisma.ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ordersInclude<ExtArgs> | null;
    where?: Prisma.ordersWhereInput;
};
/**
 * returns_orders.returns
 */
export type returns_orders$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_orders without action
 */
export type returns_ordersDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the returns_orders
     */
    select?: Prisma.returns_ordersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the returns_orders
     */
    omit?: Prisma.returns_ordersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.returns_ordersInclude<ExtArgs> | null;
};
export {};
