import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model products_spaces
 * 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 products_spacesModel = runtime.Types.Result.DefaultSelection<Prisma.$products_spacesPayload>;
export type AggregateProducts_spaces = {
    _count: Products_spacesCountAggregateOutputType | null;
    _avg: Products_spacesAvgAggregateOutputType | null;
    _sum: Products_spacesSumAggregateOutputType | null;
    _min: Products_spacesMinAggregateOutputType | null;
    _max: Products_spacesMaxAggregateOutputType | null;
};
export type Products_spacesAvgAggregateOutputType = {
    id: number | null;
    products_id: number | null;
    spaces_id: number | null;
};
export type Products_spacesSumAggregateOutputType = {
    id: number | null;
    products_id: bigint | null;
    spaces_id: number | null;
};
export type Products_spacesMinAggregateOutputType = {
    id: number | null;
    products_id: bigint | null;
    spaces_id: number | null;
};
export type Products_spacesMaxAggregateOutputType = {
    id: number | null;
    products_id: bigint | null;
    spaces_id: number | null;
};
export type Products_spacesCountAggregateOutputType = {
    id: number;
    products_id: number;
    spaces_id: number;
    _all: number;
};
export type Products_spacesAvgAggregateInputType = {
    id?: true;
    products_id?: true;
    spaces_id?: true;
};
export type Products_spacesSumAggregateInputType = {
    id?: true;
    products_id?: true;
    spaces_id?: true;
};
export type Products_spacesMinAggregateInputType = {
    id?: true;
    products_id?: true;
    spaces_id?: true;
};
export type Products_spacesMaxAggregateInputType = {
    id?: true;
    products_id?: true;
    spaces_id?: true;
};
export type Products_spacesCountAggregateInputType = {
    id?: true;
    products_id?: true;
    spaces_id?: true;
    _all?: true;
};
export type Products_spacesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which products_spaces to aggregate.
     */
    where?: Prisma.products_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of products_spaces to fetch.
     */
    orderBy?: Prisma.products_spacesOrderByWithRelationInput | Prisma.products_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.products_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` products_spaces 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` products_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned products_spaces
    **/
    _count?: true | Products_spacesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Products_spacesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Products_spacesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Products_spacesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Products_spacesMaxAggregateInputType;
};
export type GetProducts_spacesAggregateType<T extends Products_spacesAggregateArgs> = {
    [P in keyof T & keyof AggregateProducts_spaces]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProducts_spaces[P]> : Prisma.GetScalarType<T[P], AggregateProducts_spaces[P]>;
};
export type products_spacesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.products_spacesWhereInput;
    orderBy?: Prisma.products_spacesOrderByWithAggregationInput | Prisma.products_spacesOrderByWithAggregationInput[];
    by: Prisma.Products_spacesScalarFieldEnum[] | Prisma.Products_spacesScalarFieldEnum;
    having?: Prisma.products_spacesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Products_spacesCountAggregateInputType | true;
    _avg?: Products_spacesAvgAggregateInputType;
    _sum?: Products_spacesSumAggregateInputType;
    _min?: Products_spacesMinAggregateInputType;
    _max?: Products_spacesMaxAggregateInputType;
};
export type Products_spacesGroupByOutputType = {
    id: number;
    products_id: bigint | null;
    spaces_id: number | null;
    _count: Products_spacesCountAggregateOutputType | null;
    _avg: Products_spacesAvgAggregateOutputType | null;
    _sum: Products_spacesSumAggregateOutputType | null;
    _min: Products_spacesMinAggregateOutputType | null;
    _max: Products_spacesMaxAggregateOutputType | null;
};
type GetProducts_spacesGroupByPayload<T extends products_spacesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Products_spacesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Products_spacesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Products_spacesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Products_spacesGroupByOutputType[P]>;
}>>;
export type products_spacesWhereInput = {
    AND?: Prisma.products_spacesWhereInput | Prisma.products_spacesWhereInput[];
    OR?: Prisma.products_spacesWhereInput[];
    NOT?: Prisma.products_spacesWhereInput | Prisma.products_spacesWhereInput[];
    id?: Prisma.IntFilter<"products_spaces"> | number;
    products_id?: Prisma.BigIntNullableFilter<"products_spaces"> | bigint | number | null;
    spaces_id?: Prisma.IntNullableFilter<"products_spaces"> | number | null;
    products?: Prisma.XOR<Prisma.ProductsNullableScalarRelationFilter, Prisma.productsWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
};
export type products_spacesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    products?: Prisma.productsOrderByWithRelationInput;
    spaces?: Prisma.spacesOrderByWithRelationInput;
};
export type products_spacesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.products_spacesWhereInput | Prisma.products_spacesWhereInput[];
    OR?: Prisma.products_spacesWhereInput[];
    NOT?: Prisma.products_spacesWhereInput | Prisma.products_spacesWhereInput[];
    products_id?: Prisma.BigIntNullableFilter<"products_spaces"> | bigint | number | null;
    spaces_id?: Prisma.IntNullableFilter<"products_spaces"> | number | null;
    products?: Prisma.XOR<Prisma.ProductsNullableScalarRelationFilter, Prisma.productsWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
}, "id">;
export type products_spacesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.products_spacesCountOrderByAggregateInput;
    _avg?: Prisma.products_spacesAvgOrderByAggregateInput;
    _max?: Prisma.products_spacesMaxOrderByAggregateInput;
    _min?: Prisma.products_spacesMinOrderByAggregateInput;
    _sum?: Prisma.products_spacesSumOrderByAggregateInput;
};
export type products_spacesScalarWhereWithAggregatesInput = {
    AND?: Prisma.products_spacesScalarWhereWithAggregatesInput | Prisma.products_spacesScalarWhereWithAggregatesInput[];
    OR?: Prisma.products_spacesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.products_spacesScalarWhereWithAggregatesInput | Prisma.products_spacesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"products_spaces"> | number;
    products_id?: Prisma.BigIntNullableWithAggregatesFilter<"products_spaces"> | bigint | number | null;
    spaces_id?: Prisma.IntNullableWithAggregatesFilter<"products_spaces"> | number | null;
};
export type products_spacesCreateInput = {
    products?: Prisma.productsCreateNestedOneWithoutProducts_spacesInput;
    spaces?: Prisma.spacesCreateNestedOneWithoutProducts_spacesInput;
};
export type products_spacesUncheckedCreateInput = {
    id?: number;
    products_id?: bigint | number | null;
    spaces_id?: number | null;
};
export type products_spacesUpdateInput = {
    products?: Prisma.productsUpdateOneWithoutProducts_spacesNestedInput;
    spaces?: Prisma.spacesUpdateOneWithoutProducts_spacesNestedInput;
};
export type products_spacesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type products_spacesCreateManyInput = {
    id?: number;
    products_id?: bigint | number | null;
    spaces_id?: number | null;
};
export type products_spacesUpdateManyMutationInput = {};
export type products_spacesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Products_spacesListRelationFilter = {
    every?: Prisma.products_spacesWhereInput;
    some?: Prisma.products_spacesWhereInput;
    none?: Prisma.products_spacesWhereInput;
};
export type products_spacesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type products_spacesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type products_spacesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type products_spacesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type products_spacesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type products_spacesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type products_spacesCreateNestedManyWithoutProductsInput = {
    create?: Prisma.XOR<Prisma.products_spacesCreateWithoutProductsInput, Prisma.products_spacesUncheckedCreateWithoutProductsInput> | Prisma.products_spacesCreateWithoutProductsInput[] | Prisma.products_spacesUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.products_spacesCreateOrConnectWithoutProductsInput | Prisma.products_spacesCreateOrConnectWithoutProductsInput[];
    createMany?: Prisma.products_spacesCreateManyProductsInputEnvelope;
    connect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
};
export type products_spacesUncheckedCreateNestedManyWithoutProductsInput = {
    create?: Prisma.XOR<Prisma.products_spacesCreateWithoutProductsInput, Prisma.products_spacesUncheckedCreateWithoutProductsInput> | Prisma.products_spacesCreateWithoutProductsInput[] | Prisma.products_spacesUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.products_spacesCreateOrConnectWithoutProductsInput | Prisma.products_spacesCreateOrConnectWithoutProductsInput[];
    createMany?: Prisma.products_spacesCreateManyProductsInputEnvelope;
    connect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
};
export type products_spacesUpdateManyWithoutProductsNestedInput = {
    create?: Prisma.XOR<Prisma.products_spacesCreateWithoutProductsInput, Prisma.products_spacesUncheckedCreateWithoutProductsInput> | Prisma.products_spacesCreateWithoutProductsInput[] | Prisma.products_spacesUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.products_spacesCreateOrConnectWithoutProductsInput | Prisma.products_spacesCreateOrConnectWithoutProductsInput[];
    upsert?: Prisma.products_spacesUpsertWithWhereUniqueWithoutProductsInput | Prisma.products_spacesUpsertWithWhereUniqueWithoutProductsInput[];
    createMany?: Prisma.products_spacesCreateManyProductsInputEnvelope;
    set?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    disconnect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    delete?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    connect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    update?: Prisma.products_spacesUpdateWithWhereUniqueWithoutProductsInput | Prisma.products_spacesUpdateWithWhereUniqueWithoutProductsInput[];
    updateMany?: Prisma.products_spacesUpdateManyWithWhereWithoutProductsInput | Prisma.products_spacesUpdateManyWithWhereWithoutProductsInput[];
    deleteMany?: Prisma.products_spacesScalarWhereInput | Prisma.products_spacesScalarWhereInput[];
};
export type products_spacesUncheckedUpdateManyWithoutProductsNestedInput = {
    create?: Prisma.XOR<Prisma.products_spacesCreateWithoutProductsInput, Prisma.products_spacesUncheckedCreateWithoutProductsInput> | Prisma.products_spacesCreateWithoutProductsInput[] | Prisma.products_spacesUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.products_spacesCreateOrConnectWithoutProductsInput | Prisma.products_spacesCreateOrConnectWithoutProductsInput[];
    upsert?: Prisma.products_spacesUpsertWithWhereUniqueWithoutProductsInput | Prisma.products_spacesUpsertWithWhereUniqueWithoutProductsInput[];
    createMany?: Prisma.products_spacesCreateManyProductsInputEnvelope;
    set?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    disconnect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    delete?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    connect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    update?: Prisma.products_spacesUpdateWithWhereUniqueWithoutProductsInput | Prisma.products_spacesUpdateWithWhereUniqueWithoutProductsInput[];
    updateMany?: Prisma.products_spacesUpdateManyWithWhereWithoutProductsInput | Prisma.products_spacesUpdateManyWithWhereWithoutProductsInput[];
    deleteMany?: Prisma.products_spacesScalarWhereInput | Prisma.products_spacesScalarWhereInput[];
};
export type products_spacesCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.products_spacesCreateWithoutSpacesInput, Prisma.products_spacesUncheckedCreateWithoutSpacesInput> | Prisma.products_spacesCreateWithoutSpacesInput[] | Prisma.products_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.products_spacesCreateOrConnectWithoutSpacesInput | Prisma.products_spacesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.products_spacesCreateManySpacesInputEnvelope;
    connect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
};
export type products_spacesUncheckedCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.products_spacesCreateWithoutSpacesInput, Prisma.products_spacesUncheckedCreateWithoutSpacesInput> | Prisma.products_spacesCreateWithoutSpacesInput[] | Prisma.products_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.products_spacesCreateOrConnectWithoutSpacesInput | Prisma.products_spacesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.products_spacesCreateManySpacesInputEnvelope;
    connect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
};
export type products_spacesUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.products_spacesCreateWithoutSpacesInput, Prisma.products_spacesUncheckedCreateWithoutSpacesInput> | Prisma.products_spacesCreateWithoutSpacesInput[] | Prisma.products_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.products_spacesCreateOrConnectWithoutSpacesInput | Prisma.products_spacesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.products_spacesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.products_spacesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.products_spacesCreateManySpacesInputEnvelope;
    set?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    disconnect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    delete?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    connect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    update?: Prisma.products_spacesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.products_spacesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.products_spacesUpdateManyWithWhereWithoutSpacesInput | Prisma.products_spacesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.products_spacesScalarWhereInput | Prisma.products_spacesScalarWhereInput[];
};
export type products_spacesUncheckedUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.products_spacesCreateWithoutSpacesInput, Prisma.products_spacesUncheckedCreateWithoutSpacesInput> | Prisma.products_spacesCreateWithoutSpacesInput[] | Prisma.products_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.products_spacesCreateOrConnectWithoutSpacesInput | Prisma.products_spacesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.products_spacesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.products_spacesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.products_spacesCreateManySpacesInputEnvelope;
    set?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    disconnect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    delete?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    connect?: Prisma.products_spacesWhereUniqueInput | Prisma.products_spacesWhereUniqueInput[];
    update?: Prisma.products_spacesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.products_spacesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.products_spacesUpdateManyWithWhereWithoutSpacesInput | Prisma.products_spacesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.products_spacesScalarWhereInput | Prisma.products_spacesScalarWhereInput[];
};
export type products_spacesCreateWithoutProductsInput = {
    spaces?: Prisma.spacesCreateNestedOneWithoutProducts_spacesInput;
};
export type products_spacesUncheckedCreateWithoutProductsInput = {
    id?: number;
    spaces_id?: number | null;
};
export type products_spacesCreateOrConnectWithoutProductsInput = {
    where: Prisma.products_spacesWhereUniqueInput;
    create: Prisma.XOR<Prisma.products_spacesCreateWithoutProductsInput, Prisma.products_spacesUncheckedCreateWithoutProductsInput>;
};
export type products_spacesCreateManyProductsInputEnvelope = {
    data: Prisma.products_spacesCreateManyProductsInput | Prisma.products_spacesCreateManyProductsInput[];
    skipDuplicates?: boolean;
};
export type products_spacesUpsertWithWhereUniqueWithoutProductsInput = {
    where: Prisma.products_spacesWhereUniqueInput;
    update: Prisma.XOR<Prisma.products_spacesUpdateWithoutProductsInput, Prisma.products_spacesUncheckedUpdateWithoutProductsInput>;
    create: Prisma.XOR<Prisma.products_spacesCreateWithoutProductsInput, Prisma.products_spacesUncheckedCreateWithoutProductsInput>;
};
export type products_spacesUpdateWithWhereUniqueWithoutProductsInput = {
    where: Prisma.products_spacesWhereUniqueInput;
    data: Prisma.XOR<Prisma.products_spacesUpdateWithoutProductsInput, Prisma.products_spacesUncheckedUpdateWithoutProductsInput>;
};
export type products_spacesUpdateManyWithWhereWithoutProductsInput = {
    where: Prisma.products_spacesScalarWhereInput;
    data: Prisma.XOR<Prisma.products_spacesUpdateManyMutationInput, Prisma.products_spacesUncheckedUpdateManyWithoutProductsInput>;
};
export type products_spacesScalarWhereInput = {
    AND?: Prisma.products_spacesScalarWhereInput | Prisma.products_spacesScalarWhereInput[];
    OR?: Prisma.products_spacesScalarWhereInput[];
    NOT?: Prisma.products_spacesScalarWhereInput | Prisma.products_spacesScalarWhereInput[];
    id?: Prisma.IntFilter<"products_spaces"> | number;
    products_id?: Prisma.BigIntNullableFilter<"products_spaces"> | bigint | number | null;
    spaces_id?: Prisma.IntNullableFilter<"products_spaces"> | number | null;
};
export type products_spacesCreateWithoutSpacesInput = {
    products?: Prisma.productsCreateNestedOneWithoutProducts_spacesInput;
};
export type products_spacesUncheckedCreateWithoutSpacesInput = {
    id?: number;
    products_id?: bigint | number | null;
};
export type products_spacesCreateOrConnectWithoutSpacesInput = {
    where: Prisma.products_spacesWhereUniqueInput;
    create: Prisma.XOR<Prisma.products_spacesCreateWithoutSpacesInput, Prisma.products_spacesUncheckedCreateWithoutSpacesInput>;
};
export type products_spacesCreateManySpacesInputEnvelope = {
    data: Prisma.products_spacesCreateManySpacesInput | Prisma.products_spacesCreateManySpacesInput[];
    skipDuplicates?: boolean;
};
export type products_spacesUpsertWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.products_spacesWhereUniqueInput;
    update: Prisma.XOR<Prisma.products_spacesUpdateWithoutSpacesInput, Prisma.products_spacesUncheckedUpdateWithoutSpacesInput>;
    create: Prisma.XOR<Prisma.products_spacesCreateWithoutSpacesInput, Prisma.products_spacesUncheckedCreateWithoutSpacesInput>;
};
export type products_spacesUpdateWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.products_spacesWhereUniqueInput;
    data: Prisma.XOR<Prisma.products_spacesUpdateWithoutSpacesInput, Prisma.products_spacesUncheckedUpdateWithoutSpacesInput>;
};
export type products_spacesUpdateManyWithWhereWithoutSpacesInput = {
    where: Prisma.products_spacesScalarWhereInput;
    data: Prisma.XOR<Prisma.products_spacesUpdateManyMutationInput, Prisma.products_spacesUncheckedUpdateManyWithoutSpacesInput>;
};
export type products_spacesCreateManyProductsInput = {
    id?: number;
    spaces_id?: number | null;
};
export type products_spacesUpdateWithoutProductsInput = {
    spaces?: Prisma.spacesUpdateOneWithoutProducts_spacesNestedInput;
};
export type products_spacesUncheckedUpdateWithoutProductsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type products_spacesUncheckedUpdateManyWithoutProductsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type products_spacesCreateManySpacesInput = {
    id?: number;
    products_id?: bigint | number | null;
};
export type products_spacesUpdateWithoutSpacesInput = {
    products?: Prisma.productsUpdateOneWithoutProducts_spacesNestedInput;
};
export type products_spacesUncheckedUpdateWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type products_spacesUncheckedUpdateManyWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type products_spacesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    products_id?: boolean;
    spaces_id?: boolean;
    products?: boolean | Prisma.products_spaces$productsArgs<ExtArgs>;
    spaces?: boolean | Prisma.products_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["products_spaces"]>;
export type products_spacesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    products_id?: boolean;
    spaces_id?: boolean;
    products?: boolean | Prisma.products_spaces$productsArgs<ExtArgs>;
    spaces?: boolean | Prisma.products_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["products_spaces"]>;
export type products_spacesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    products_id?: boolean;
    spaces_id?: boolean;
    products?: boolean | Prisma.products_spaces$productsArgs<ExtArgs>;
    spaces?: boolean | Prisma.products_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["products_spaces"]>;
export type products_spacesSelectScalar = {
    id?: boolean;
    products_id?: boolean;
    spaces_id?: boolean;
};
export type products_spacesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "products_id" | "spaces_id", ExtArgs["result"]["products_spaces"]>;
export type products_spacesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    products?: boolean | Prisma.products_spaces$productsArgs<ExtArgs>;
    spaces?: boolean | Prisma.products_spaces$spacesArgs<ExtArgs>;
};
export type products_spacesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    products?: boolean | Prisma.products_spaces$productsArgs<ExtArgs>;
    spaces?: boolean | Prisma.products_spaces$spacesArgs<ExtArgs>;
};
export type products_spacesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    products?: boolean | Prisma.products_spaces$productsArgs<ExtArgs>;
    spaces?: boolean | Prisma.products_spaces$spacesArgs<ExtArgs>;
};
export type $products_spacesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "products_spaces";
    objects: {
        products: Prisma.$productsPayload<ExtArgs> | null;
        spaces: Prisma.$spacesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        products_id: bigint | null;
        spaces_id: number | null;
    }, ExtArgs["result"]["products_spaces"]>;
    composites: {};
};
export type products_spacesGetPayload<S extends boolean | null | undefined | products_spacesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$products_spacesPayload, S>;
export type products_spacesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<products_spacesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Products_spacesCountAggregateInputType | true;
};
export interface products_spacesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['products_spaces'];
        meta: {
            name: 'products_spaces';
        };
    };
    /**
     * Find zero or one Products_spaces that matches the filter.
     * @param {products_spacesFindUniqueArgs} args - Arguments to find a Products_spaces
     * @example
     * // Get one Products_spaces
     * const products_spaces = await prisma.products_spaces.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends products_spacesFindUniqueArgs>(args: Prisma.SelectSubset<T, products_spacesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__products_spacesClient<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Products_spaces that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {products_spacesFindUniqueOrThrowArgs} args - Arguments to find a Products_spaces
     * @example
     * // Get one Products_spaces
     * const products_spaces = await prisma.products_spaces.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends products_spacesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, products_spacesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__products_spacesClient<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Products_spaces 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 {products_spacesFindFirstArgs} args - Arguments to find a Products_spaces
     * @example
     * // Get one Products_spaces
     * const products_spaces = await prisma.products_spaces.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends products_spacesFindFirstArgs>(args?: Prisma.SelectSubset<T, products_spacesFindFirstArgs<ExtArgs>>): Prisma.Prisma__products_spacesClient<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Products_spaces 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 {products_spacesFindFirstOrThrowArgs} args - Arguments to find a Products_spaces
     * @example
     * // Get one Products_spaces
     * const products_spaces = await prisma.products_spaces.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends products_spacesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, products_spacesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__products_spacesClient<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Products_spaces 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 {products_spacesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Products_spaces
     * const products_spaces = await prisma.products_spaces.findMany()
     *
     * // Get first 10 Products_spaces
     * const products_spaces = await prisma.products_spaces.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const products_spacesWithIdOnly = await prisma.products_spaces.findMany({ select: { id: true } })
     *
     */
    findMany<T extends products_spacesFindManyArgs>(args?: Prisma.SelectSubset<T, products_spacesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Products_spaces.
     * @param {products_spacesCreateArgs} args - Arguments to create a Products_spaces.
     * @example
     * // Create one Products_spaces
     * const Products_spaces = await prisma.products_spaces.create({
     *   data: {
     *     // ... data to create a Products_spaces
     *   }
     * })
     *
     */
    create<T extends products_spacesCreateArgs>(args: Prisma.SelectSubset<T, products_spacesCreateArgs<ExtArgs>>): Prisma.Prisma__products_spacesClient<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Products_spaces.
     * @param {products_spacesCreateManyArgs} args - Arguments to create many Products_spaces.
     * @example
     * // Create many Products_spaces
     * const products_spaces = await prisma.products_spaces.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends products_spacesCreateManyArgs>(args?: Prisma.SelectSubset<T, products_spacesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Products_spaces and returns the data saved in the database.
     * @param {products_spacesCreateManyAndReturnArgs} args - Arguments to create many Products_spaces.
     * @example
     * // Create many Products_spaces
     * const products_spaces = await prisma.products_spaces.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Products_spaces and only return the `id`
     * const products_spacesWithIdOnly = await prisma.products_spaces.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 products_spacesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, products_spacesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Products_spaces.
     * @param {products_spacesDeleteArgs} args - Arguments to delete one Products_spaces.
     * @example
     * // Delete one Products_spaces
     * const Products_spaces = await prisma.products_spaces.delete({
     *   where: {
     *     // ... filter to delete one Products_spaces
     *   }
     * })
     *
     */
    delete<T extends products_spacesDeleteArgs>(args: Prisma.SelectSubset<T, products_spacesDeleteArgs<ExtArgs>>): Prisma.Prisma__products_spacesClient<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Products_spaces.
     * @param {products_spacesUpdateArgs} args - Arguments to update one Products_spaces.
     * @example
     * // Update one Products_spaces
     * const products_spaces = await prisma.products_spaces.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends products_spacesUpdateArgs>(args: Prisma.SelectSubset<T, products_spacesUpdateArgs<ExtArgs>>): Prisma.Prisma__products_spacesClient<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Products_spaces.
     * @param {products_spacesDeleteManyArgs} args - Arguments to filter Products_spaces to delete.
     * @example
     * // Delete a few Products_spaces
     * const { count } = await prisma.products_spaces.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends products_spacesDeleteManyArgs>(args?: Prisma.SelectSubset<T, products_spacesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Products_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {products_spacesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Products_spaces
     * const products_spaces = await prisma.products_spaces.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends products_spacesUpdateManyArgs>(args: Prisma.SelectSubset<T, products_spacesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Products_spaces and returns the data updated in the database.
     * @param {products_spacesUpdateManyAndReturnArgs} args - Arguments to update many Products_spaces.
     * @example
     * // Update many Products_spaces
     * const products_spaces = await prisma.products_spaces.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Products_spaces and only return the `id`
     * const products_spacesWithIdOnly = await prisma.products_spaces.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 products_spacesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, products_spacesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Products_spaces.
     * @param {products_spacesUpsertArgs} args - Arguments to update or create a Products_spaces.
     * @example
     * // Update or create a Products_spaces
     * const products_spaces = await prisma.products_spaces.upsert({
     *   create: {
     *     // ... data to create a Products_spaces
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Products_spaces we want to update
     *   }
     * })
     */
    upsert<T extends products_spacesUpsertArgs>(args: Prisma.SelectSubset<T, products_spacesUpsertArgs<ExtArgs>>): Prisma.Prisma__products_spacesClient<runtime.Types.Result.GetResult<Prisma.$products_spacesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Products_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {products_spacesCountArgs} args - Arguments to filter Products_spaces to count.
     * @example
     * // Count the number of Products_spaces
     * const count = await prisma.products_spaces.count({
     *   where: {
     *     // ... the filter for the Products_spaces we want to count
     *   }
     * })
    **/
    count<T extends products_spacesCountArgs>(args?: Prisma.Subset<T, products_spacesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Products_spacesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Products_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Products_spacesAggregateArgs} 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 Products_spacesAggregateArgs>(args: Prisma.Subset<T, Products_spacesAggregateArgs>): Prisma.PrismaPromise<GetProducts_spacesAggregateType<T>>;
    /**
     * Group by Products_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {products_spacesGroupByArgs} 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 products_spacesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: products_spacesGroupByArgs['orderBy'];
    } : {
        orderBy?: products_spacesGroupByArgs['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, products_spacesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProducts_spacesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the products_spaces model
     */
    readonly fields: products_spacesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for products_spaces.
 * 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__products_spacesClient<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.products_spaces$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.products_spaces$productsArgs<ExtArgs>>): Prisma.Prisma__productsClient<runtime.Types.Result.GetResult<Prisma.$productsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    spaces<T extends Prisma.products_spaces$spacesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.products_spaces$spacesArgs<ExtArgs>>): Prisma.Prisma__spacesClient<runtime.Types.Result.GetResult<Prisma.$spacesPayload<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 products_spaces model
 */
export interface products_spacesFieldRefs {
    readonly id: Prisma.FieldRef<"products_spaces", 'Int'>;
    readonly products_id: Prisma.FieldRef<"products_spaces", 'BigInt'>;
    readonly spaces_id: Prisma.FieldRef<"products_spaces", 'Int'>;
}
/**
 * products_spaces findUnique
 */
export type products_spacesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which products_spaces to fetch.
     */
    where: Prisma.products_spacesWhereUniqueInput;
};
/**
 * products_spaces findUniqueOrThrow
 */
export type products_spacesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which products_spaces to fetch.
     */
    where: Prisma.products_spacesWhereUniqueInput;
};
/**
 * products_spaces findFirst
 */
export type products_spacesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which products_spaces to fetch.
     */
    where?: Prisma.products_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of products_spaces to fetch.
     */
    orderBy?: Prisma.products_spacesOrderByWithRelationInput | Prisma.products_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for products_spaces.
     */
    cursor?: Prisma.products_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` products_spaces 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` products_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of products_spaces.
     */
    distinct?: Prisma.Products_spacesScalarFieldEnum | Prisma.Products_spacesScalarFieldEnum[];
};
/**
 * products_spaces findFirstOrThrow
 */
export type products_spacesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which products_spaces to fetch.
     */
    where?: Prisma.products_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of products_spaces to fetch.
     */
    orderBy?: Prisma.products_spacesOrderByWithRelationInput | Prisma.products_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for products_spaces.
     */
    cursor?: Prisma.products_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` products_spaces 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` products_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of products_spaces.
     */
    distinct?: Prisma.Products_spacesScalarFieldEnum | Prisma.Products_spacesScalarFieldEnum[];
};
/**
 * products_spaces findMany
 */
export type products_spacesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which products_spaces to fetch.
     */
    where?: Prisma.products_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of products_spaces to fetch.
     */
    orderBy?: Prisma.products_spacesOrderByWithRelationInput | Prisma.products_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing products_spaces.
     */
    cursor?: Prisma.products_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` products_spaces 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` products_spaces.
     */
    skip?: number;
    distinct?: Prisma.Products_spacesScalarFieldEnum | Prisma.Products_spacesScalarFieldEnum[];
};
/**
 * products_spaces create
 */
export type products_spacesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * The data needed to create a products_spaces.
     */
    data?: Prisma.XOR<Prisma.products_spacesCreateInput, Prisma.products_spacesUncheckedCreateInput>;
};
/**
 * products_spaces createMany
 */
export type products_spacesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many products_spaces.
     */
    data: Prisma.products_spacesCreateManyInput | Prisma.products_spacesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * products_spaces createManyAndReturn
 */
export type products_spacesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * The data used to create many products_spaces.
     */
    data: Prisma.products_spacesCreateManyInput | Prisma.products_spacesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * products_spaces update
 */
export type products_spacesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * The data needed to update a products_spaces.
     */
    data: Prisma.XOR<Prisma.products_spacesUpdateInput, Prisma.products_spacesUncheckedUpdateInput>;
    /**
     * Choose, which products_spaces to update.
     */
    where: Prisma.products_spacesWhereUniqueInput;
};
/**
 * products_spaces updateMany
 */
export type products_spacesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update products_spaces.
     */
    data: Prisma.XOR<Prisma.products_spacesUpdateManyMutationInput, Prisma.products_spacesUncheckedUpdateManyInput>;
    /**
     * Filter which products_spaces to update
     */
    where?: Prisma.products_spacesWhereInput;
    /**
     * Limit how many products_spaces to update.
     */
    limit?: number;
};
/**
 * products_spaces updateManyAndReturn
 */
export type products_spacesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * The data used to update products_spaces.
     */
    data: Prisma.XOR<Prisma.products_spacesUpdateManyMutationInput, Prisma.products_spacesUncheckedUpdateManyInput>;
    /**
     * Filter which products_spaces to update
     */
    where?: Prisma.products_spacesWhereInput;
    /**
     * Limit how many products_spaces to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * products_spaces upsert
 */
export type products_spacesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * The filter to search for the products_spaces to update in case it exists.
     */
    where: Prisma.products_spacesWhereUniqueInput;
    /**
     * In case the products_spaces found by the `where` argument doesn't exist, create a new products_spaces with this data.
     */
    create: Prisma.XOR<Prisma.products_spacesCreateInput, Prisma.products_spacesUncheckedCreateInput>;
    /**
     * In case the products_spaces was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.products_spacesUpdateInput, Prisma.products_spacesUncheckedUpdateInput>;
};
/**
 * products_spaces delete
 */
export type products_spacesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
    /**
     * Filter which products_spaces to delete.
     */
    where: Prisma.products_spacesWhereUniqueInput;
};
/**
 * products_spaces deleteMany
 */
export type products_spacesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which products_spaces to delete
     */
    where?: Prisma.products_spacesWhereInput;
    /**
     * Limit how many products_spaces to delete.
     */
    limit?: number;
};
/**
 * products_spaces.products
 */
export type products_spaces$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;
};
/**
 * products_spaces.spaces
 */
export type products_spaces$spacesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces
     */
    select?: Prisma.spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces
     */
    omit?: Prisma.spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spacesInclude<ExtArgs> | null;
    where?: Prisma.spacesWhereInput;
};
/**
 * products_spaces without action
 */
export type products_spacesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_spaces
     */
    select?: Prisma.products_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_spaces
     */
    omit?: Prisma.products_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_spacesInclude<ExtArgs> | null;
};
export {};
