import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model collections_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 collections_spacesModel = runtime.Types.Result.DefaultSelection<Prisma.$collections_spacesPayload>;
export type AggregateCollections_spaces = {
    _count: Collections_spacesCountAggregateOutputType | null;
    _avg: Collections_spacesAvgAggregateOutputType | null;
    _sum: Collections_spacesSumAggregateOutputType | null;
    _min: Collections_spacesMinAggregateOutputType | null;
    _max: Collections_spacesMaxAggregateOutputType | null;
};
export type Collections_spacesAvgAggregateOutputType = {
    id: number | null;
    collections_id: number | null;
    spaces_id: number | null;
};
export type Collections_spacesSumAggregateOutputType = {
    id: number | null;
    collections_id: bigint | null;
    spaces_id: number | null;
};
export type Collections_spacesMinAggregateOutputType = {
    id: number | null;
    collections_id: bigint | null;
    spaces_id: number | null;
};
export type Collections_spacesMaxAggregateOutputType = {
    id: number | null;
    collections_id: bigint | null;
    spaces_id: number | null;
};
export type Collections_spacesCountAggregateOutputType = {
    id: number;
    collections_id: number;
    spaces_id: number;
    _all: number;
};
export type Collections_spacesAvgAggregateInputType = {
    id?: true;
    collections_id?: true;
    spaces_id?: true;
};
export type Collections_spacesSumAggregateInputType = {
    id?: true;
    collections_id?: true;
    spaces_id?: true;
};
export type Collections_spacesMinAggregateInputType = {
    id?: true;
    collections_id?: true;
    spaces_id?: true;
};
export type Collections_spacesMaxAggregateInputType = {
    id?: true;
    collections_id?: true;
    spaces_id?: true;
};
export type Collections_spacesCountAggregateInputType = {
    id?: true;
    collections_id?: true;
    spaces_id?: true;
    _all?: true;
};
export type Collections_spacesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which collections_spaces to aggregate.
     */
    where?: Prisma.collections_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of collections_spaces to fetch.
     */
    orderBy?: Prisma.collections_spacesOrderByWithRelationInput | Prisma.collections_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.collections_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` collections_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` collections_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned collections_spaces
    **/
    _count?: true | Collections_spacesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Collections_spacesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Collections_spacesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Collections_spacesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Collections_spacesMaxAggregateInputType;
};
export type GetCollections_spacesAggregateType<T extends Collections_spacesAggregateArgs> = {
    [P in keyof T & keyof AggregateCollections_spaces]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCollections_spaces[P]> : Prisma.GetScalarType<T[P], AggregateCollections_spaces[P]>;
};
export type collections_spacesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.collections_spacesWhereInput;
    orderBy?: Prisma.collections_spacesOrderByWithAggregationInput | Prisma.collections_spacesOrderByWithAggregationInput[];
    by: Prisma.Collections_spacesScalarFieldEnum[] | Prisma.Collections_spacesScalarFieldEnum;
    having?: Prisma.collections_spacesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Collections_spacesCountAggregateInputType | true;
    _avg?: Collections_spacesAvgAggregateInputType;
    _sum?: Collections_spacesSumAggregateInputType;
    _min?: Collections_spacesMinAggregateInputType;
    _max?: Collections_spacesMaxAggregateInputType;
};
export type Collections_spacesGroupByOutputType = {
    id: number;
    collections_id: bigint | null;
    spaces_id: number | null;
    _count: Collections_spacesCountAggregateOutputType | null;
    _avg: Collections_spacesAvgAggregateOutputType | null;
    _sum: Collections_spacesSumAggregateOutputType | null;
    _min: Collections_spacesMinAggregateOutputType | null;
    _max: Collections_spacesMaxAggregateOutputType | null;
};
type GetCollections_spacesGroupByPayload<T extends collections_spacesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Collections_spacesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Collections_spacesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Collections_spacesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Collections_spacesGroupByOutputType[P]>;
}>>;
export type collections_spacesWhereInput = {
    AND?: Prisma.collections_spacesWhereInput | Prisma.collections_spacesWhereInput[];
    OR?: Prisma.collections_spacesWhereInput[];
    NOT?: Prisma.collections_spacesWhereInput | Prisma.collections_spacesWhereInput[];
    id?: Prisma.IntFilter<"collections_spaces"> | number;
    collections_id?: Prisma.BigIntNullableFilter<"collections_spaces"> | bigint | number | null;
    spaces_id?: Prisma.IntNullableFilter<"collections_spaces"> | number | null;
    collections?: Prisma.XOR<Prisma.CollectionsNullableScalarRelationFilter, Prisma.collectionsWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
};
export type collections_spacesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    collections?: Prisma.collectionsOrderByWithRelationInput;
    spaces?: Prisma.spacesOrderByWithRelationInput;
};
export type collections_spacesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.collections_spacesWhereInput | Prisma.collections_spacesWhereInput[];
    OR?: Prisma.collections_spacesWhereInput[];
    NOT?: Prisma.collections_spacesWhereInput | Prisma.collections_spacesWhereInput[];
    collections_id?: Prisma.BigIntNullableFilter<"collections_spaces"> | bigint | number | null;
    spaces_id?: Prisma.IntNullableFilter<"collections_spaces"> | number | null;
    collections?: Prisma.XOR<Prisma.CollectionsNullableScalarRelationFilter, Prisma.collectionsWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
}, "id">;
export type collections_spacesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.collections_spacesCountOrderByAggregateInput;
    _avg?: Prisma.collections_spacesAvgOrderByAggregateInput;
    _max?: Prisma.collections_spacesMaxOrderByAggregateInput;
    _min?: Prisma.collections_spacesMinOrderByAggregateInput;
    _sum?: Prisma.collections_spacesSumOrderByAggregateInput;
};
export type collections_spacesScalarWhereWithAggregatesInput = {
    AND?: Prisma.collections_spacesScalarWhereWithAggregatesInput | Prisma.collections_spacesScalarWhereWithAggregatesInput[];
    OR?: Prisma.collections_spacesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.collections_spacesScalarWhereWithAggregatesInput | Prisma.collections_spacesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"collections_spaces"> | number;
    collections_id?: Prisma.BigIntNullableWithAggregatesFilter<"collections_spaces"> | bigint | number | null;
    spaces_id?: Prisma.IntNullableWithAggregatesFilter<"collections_spaces"> | number | null;
};
export type collections_spacesCreateInput = {
    collections?: Prisma.collectionsCreateNestedOneWithoutCollections_spacesInput;
    spaces?: Prisma.spacesCreateNestedOneWithoutCollections_spacesInput;
};
export type collections_spacesUncheckedCreateInput = {
    id?: number;
    collections_id?: bigint | number | null;
    spaces_id?: number | null;
};
export type collections_spacesUpdateInput = {
    collections?: Prisma.collectionsUpdateOneWithoutCollections_spacesNestedInput;
    spaces?: Prisma.spacesUpdateOneWithoutCollections_spacesNestedInput;
};
export type collections_spacesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collections_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type collections_spacesCreateManyInput = {
    id?: number;
    collections_id?: bigint | number | null;
    spaces_id?: number | null;
};
export type collections_spacesUpdateManyMutationInput = {};
export type collections_spacesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collections_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Collections_spacesListRelationFilter = {
    every?: Prisma.collections_spacesWhereInput;
    some?: Prisma.collections_spacesWhereInput;
    none?: Prisma.collections_spacesWhereInput;
};
export type collections_spacesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type collections_spacesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type collections_spacesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type collections_spacesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type collections_spacesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type collections_spacesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type collections_spacesCreateNestedManyWithoutCollectionsInput = {
    create?: Prisma.XOR<Prisma.collections_spacesCreateWithoutCollectionsInput, Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput> | Prisma.collections_spacesCreateWithoutCollectionsInput[] | Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput[];
    connectOrCreate?: Prisma.collections_spacesCreateOrConnectWithoutCollectionsInput | Prisma.collections_spacesCreateOrConnectWithoutCollectionsInput[];
    createMany?: Prisma.collections_spacesCreateManyCollectionsInputEnvelope;
    connect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
};
export type collections_spacesUncheckedCreateNestedManyWithoutCollectionsInput = {
    create?: Prisma.XOR<Prisma.collections_spacesCreateWithoutCollectionsInput, Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput> | Prisma.collections_spacesCreateWithoutCollectionsInput[] | Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput[];
    connectOrCreate?: Prisma.collections_spacesCreateOrConnectWithoutCollectionsInput | Prisma.collections_spacesCreateOrConnectWithoutCollectionsInput[];
    createMany?: Prisma.collections_spacesCreateManyCollectionsInputEnvelope;
    connect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
};
export type collections_spacesUpdateManyWithoutCollectionsNestedInput = {
    create?: Prisma.XOR<Prisma.collections_spacesCreateWithoutCollectionsInput, Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput> | Prisma.collections_spacesCreateWithoutCollectionsInput[] | Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput[];
    connectOrCreate?: Prisma.collections_spacesCreateOrConnectWithoutCollectionsInput | Prisma.collections_spacesCreateOrConnectWithoutCollectionsInput[];
    upsert?: Prisma.collections_spacesUpsertWithWhereUniqueWithoutCollectionsInput | Prisma.collections_spacesUpsertWithWhereUniqueWithoutCollectionsInput[];
    createMany?: Prisma.collections_spacesCreateManyCollectionsInputEnvelope;
    set?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    disconnect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    delete?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    connect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    update?: Prisma.collections_spacesUpdateWithWhereUniqueWithoutCollectionsInput | Prisma.collections_spacesUpdateWithWhereUniqueWithoutCollectionsInput[];
    updateMany?: Prisma.collections_spacesUpdateManyWithWhereWithoutCollectionsInput | Prisma.collections_spacesUpdateManyWithWhereWithoutCollectionsInput[];
    deleteMany?: Prisma.collections_spacesScalarWhereInput | Prisma.collections_spacesScalarWhereInput[];
};
export type collections_spacesUncheckedUpdateManyWithoutCollectionsNestedInput = {
    create?: Prisma.XOR<Prisma.collections_spacesCreateWithoutCollectionsInput, Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput> | Prisma.collections_spacesCreateWithoutCollectionsInput[] | Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput[];
    connectOrCreate?: Prisma.collections_spacesCreateOrConnectWithoutCollectionsInput | Prisma.collections_spacesCreateOrConnectWithoutCollectionsInput[];
    upsert?: Prisma.collections_spacesUpsertWithWhereUniqueWithoutCollectionsInput | Prisma.collections_spacesUpsertWithWhereUniqueWithoutCollectionsInput[];
    createMany?: Prisma.collections_spacesCreateManyCollectionsInputEnvelope;
    set?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    disconnect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    delete?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    connect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    update?: Prisma.collections_spacesUpdateWithWhereUniqueWithoutCollectionsInput | Prisma.collections_spacesUpdateWithWhereUniqueWithoutCollectionsInput[];
    updateMany?: Prisma.collections_spacesUpdateManyWithWhereWithoutCollectionsInput | Prisma.collections_spacesUpdateManyWithWhereWithoutCollectionsInput[];
    deleteMany?: Prisma.collections_spacesScalarWhereInput | Prisma.collections_spacesScalarWhereInput[];
};
export type collections_spacesCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.collections_spacesCreateWithoutSpacesInput, Prisma.collections_spacesUncheckedCreateWithoutSpacesInput> | Prisma.collections_spacesCreateWithoutSpacesInput[] | Prisma.collections_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.collections_spacesCreateOrConnectWithoutSpacesInput | Prisma.collections_spacesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.collections_spacesCreateManySpacesInputEnvelope;
    connect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
};
export type collections_spacesUncheckedCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.collections_spacesCreateWithoutSpacesInput, Prisma.collections_spacesUncheckedCreateWithoutSpacesInput> | Prisma.collections_spacesCreateWithoutSpacesInput[] | Prisma.collections_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.collections_spacesCreateOrConnectWithoutSpacesInput | Prisma.collections_spacesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.collections_spacesCreateManySpacesInputEnvelope;
    connect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
};
export type collections_spacesUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.collections_spacesCreateWithoutSpacesInput, Prisma.collections_spacesUncheckedCreateWithoutSpacesInput> | Prisma.collections_spacesCreateWithoutSpacesInput[] | Prisma.collections_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.collections_spacesCreateOrConnectWithoutSpacesInput | Prisma.collections_spacesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.collections_spacesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.collections_spacesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.collections_spacesCreateManySpacesInputEnvelope;
    set?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    disconnect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    delete?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    connect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    update?: Prisma.collections_spacesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.collections_spacesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.collections_spacesUpdateManyWithWhereWithoutSpacesInput | Prisma.collections_spacesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.collections_spacesScalarWhereInput | Prisma.collections_spacesScalarWhereInput[];
};
export type collections_spacesUncheckedUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.collections_spacesCreateWithoutSpacesInput, Prisma.collections_spacesUncheckedCreateWithoutSpacesInput> | Prisma.collections_spacesCreateWithoutSpacesInput[] | Prisma.collections_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.collections_spacesCreateOrConnectWithoutSpacesInput | Prisma.collections_spacesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.collections_spacesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.collections_spacesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.collections_spacesCreateManySpacesInputEnvelope;
    set?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    disconnect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    delete?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    connect?: Prisma.collections_spacesWhereUniqueInput | Prisma.collections_spacesWhereUniqueInput[];
    update?: Prisma.collections_spacesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.collections_spacesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.collections_spacesUpdateManyWithWhereWithoutSpacesInput | Prisma.collections_spacesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.collections_spacesScalarWhereInput | Prisma.collections_spacesScalarWhereInput[];
};
export type collections_spacesCreateWithoutCollectionsInput = {
    spaces?: Prisma.spacesCreateNestedOneWithoutCollections_spacesInput;
};
export type collections_spacesUncheckedCreateWithoutCollectionsInput = {
    id?: number;
    spaces_id?: number | null;
};
export type collections_spacesCreateOrConnectWithoutCollectionsInput = {
    where: Prisma.collections_spacesWhereUniqueInput;
    create: Prisma.XOR<Prisma.collections_spacesCreateWithoutCollectionsInput, Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput>;
};
export type collections_spacesCreateManyCollectionsInputEnvelope = {
    data: Prisma.collections_spacesCreateManyCollectionsInput | Prisma.collections_spacesCreateManyCollectionsInput[];
    skipDuplicates?: boolean;
};
export type collections_spacesUpsertWithWhereUniqueWithoutCollectionsInput = {
    where: Prisma.collections_spacesWhereUniqueInput;
    update: Prisma.XOR<Prisma.collections_spacesUpdateWithoutCollectionsInput, Prisma.collections_spacesUncheckedUpdateWithoutCollectionsInput>;
    create: Prisma.XOR<Prisma.collections_spacesCreateWithoutCollectionsInput, Prisma.collections_spacesUncheckedCreateWithoutCollectionsInput>;
};
export type collections_spacesUpdateWithWhereUniqueWithoutCollectionsInput = {
    where: Prisma.collections_spacesWhereUniqueInput;
    data: Prisma.XOR<Prisma.collections_spacesUpdateWithoutCollectionsInput, Prisma.collections_spacesUncheckedUpdateWithoutCollectionsInput>;
};
export type collections_spacesUpdateManyWithWhereWithoutCollectionsInput = {
    where: Prisma.collections_spacesScalarWhereInput;
    data: Prisma.XOR<Prisma.collections_spacesUpdateManyMutationInput, Prisma.collections_spacesUncheckedUpdateManyWithoutCollectionsInput>;
};
export type collections_spacesScalarWhereInput = {
    AND?: Prisma.collections_spacesScalarWhereInput | Prisma.collections_spacesScalarWhereInput[];
    OR?: Prisma.collections_spacesScalarWhereInput[];
    NOT?: Prisma.collections_spacesScalarWhereInput | Prisma.collections_spacesScalarWhereInput[];
    id?: Prisma.IntFilter<"collections_spaces"> | number;
    collections_id?: Prisma.BigIntNullableFilter<"collections_spaces"> | bigint | number | null;
    spaces_id?: Prisma.IntNullableFilter<"collections_spaces"> | number | null;
};
export type collections_spacesCreateWithoutSpacesInput = {
    collections?: Prisma.collectionsCreateNestedOneWithoutCollections_spacesInput;
};
export type collections_spacesUncheckedCreateWithoutSpacesInput = {
    id?: number;
    collections_id?: bigint | number | null;
};
export type collections_spacesCreateOrConnectWithoutSpacesInput = {
    where: Prisma.collections_spacesWhereUniqueInput;
    create: Prisma.XOR<Prisma.collections_spacesCreateWithoutSpacesInput, Prisma.collections_spacesUncheckedCreateWithoutSpacesInput>;
};
export type collections_spacesCreateManySpacesInputEnvelope = {
    data: Prisma.collections_spacesCreateManySpacesInput | Prisma.collections_spacesCreateManySpacesInput[];
    skipDuplicates?: boolean;
};
export type collections_spacesUpsertWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.collections_spacesWhereUniqueInput;
    update: Prisma.XOR<Prisma.collections_spacesUpdateWithoutSpacesInput, Prisma.collections_spacesUncheckedUpdateWithoutSpacesInput>;
    create: Prisma.XOR<Prisma.collections_spacesCreateWithoutSpacesInput, Prisma.collections_spacesUncheckedCreateWithoutSpacesInput>;
};
export type collections_spacesUpdateWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.collections_spacesWhereUniqueInput;
    data: Prisma.XOR<Prisma.collections_spacesUpdateWithoutSpacesInput, Prisma.collections_spacesUncheckedUpdateWithoutSpacesInput>;
};
export type collections_spacesUpdateManyWithWhereWithoutSpacesInput = {
    where: Prisma.collections_spacesScalarWhereInput;
    data: Prisma.XOR<Prisma.collections_spacesUpdateManyMutationInput, Prisma.collections_spacesUncheckedUpdateManyWithoutSpacesInput>;
};
export type collections_spacesCreateManyCollectionsInput = {
    id?: number;
    spaces_id?: number | null;
};
export type collections_spacesUpdateWithoutCollectionsInput = {
    spaces?: Prisma.spacesUpdateOneWithoutCollections_spacesNestedInput;
};
export type collections_spacesUncheckedUpdateWithoutCollectionsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type collections_spacesUncheckedUpdateManyWithoutCollectionsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type collections_spacesCreateManySpacesInput = {
    id?: number;
    collections_id?: bigint | number | null;
};
export type collections_spacesUpdateWithoutSpacesInput = {
    collections?: Prisma.collectionsUpdateOneWithoutCollections_spacesNestedInput;
};
export type collections_spacesUncheckedUpdateWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collections_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type collections_spacesUncheckedUpdateManyWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collections_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type collections_spacesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    collections_id?: boolean;
    spaces_id?: boolean;
    collections?: boolean | Prisma.collections_spaces$collectionsArgs<ExtArgs>;
    spaces?: boolean | Prisma.collections_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["collections_spaces"]>;
export type collections_spacesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    collections_id?: boolean;
    spaces_id?: boolean;
    collections?: boolean | Prisma.collections_spaces$collectionsArgs<ExtArgs>;
    spaces?: boolean | Prisma.collections_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["collections_spaces"]>;
export type collections_spacesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    collections_id?: boolean;
    spaces_id?: boolean;
    collections?: boolean | Prisma.collections_spaces$collectionsArgs<ExtArgs>;
    spaces?: boolean | Prisma.collections_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["collections_spaces"]>;
export type collections_spacesSelectScalar = {
    id?: boolean;
    collections_id?: boolean;
    spaces_id?: boolean;
};
export type collections_spacesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "collections_id" | "spaces_id", ExtArgs["result"]["collections_spaces"]>;
export type collections_spacesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    collections?: boolean | Prisma.collections_spaces$collectionsArgs<ExtArgs>;
    spaces?: boolean | Prisma.collections_spaces$spacesArgs<ExtArgs>;
};
export type collections_spacesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    collections?: boolean | Prisma.collections_spaces$collectionsArgs<ExtArgs>;
    spaces?: boolean | Prisma.collections_spaces$spacesArgs<ExtArgs>;
};
export type collections_spacesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    collections?: boolean | Prisma.collections_spaces$collectionsArgs<ExtArgs>;
    spaces?: boolean | Prisma.collections_spaces$spacesArgs<ExtArgs>;
};
export type $collections_spacesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "collections_spaces";
    objects: {
        collections: Prisma.$collectionsPayload<ExtArgs> | null;
        spaces: Prisma.$spacesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        collections_id: bigint | null;
        spaces_id: number | null;
    }, ExtArgs["result"]["collections_spaces"]>;
    composites: {};
};
export type collections_spacesGetPayload<S extends boolean | null | undefined | collections_spacesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload, S>;
export type collections_spacesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<collections_spacesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Collections_spacesCountAggregateInputType | true;
};
export interface collections_spacesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['collections_spaces'];
        meta: {
            name: 'collections_spaces';
        };
    };
    /**
     * Find zero or one Collections_spaces that matches the filter.
     * @param {collections_spacesFindUniqueArgs} args - Arguments to find a Collections_spaces
     * @example
     * // Get one Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends collections_spacesFindUniqueArgs>(args: Prisma.SelectSubset<T, collections_spacesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__collections_spacesClient<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Collections_spaces that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {collections_spacesFindUniqueOrThrowArgs} args - Arguments to find a Collections_spaces
     * @example
     * // Get one Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends collections_spacesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, collections_spacesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__collections_spacesClient<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Collections_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 {collections_spacesFindFirstArgs} args - Arguments to find a Collections_spaces
     * @example
     * // Get one Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends collections_spacesFindFirstArgs>(args?: Prisma.SelectSubset<T, collections_spacesFindFirstArgs<ExtArgs>>): Prisma.Prisma__collections_spacesClient<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Collections_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 {collections_spacesFindFirstOrThrowArgs} args - Arguments to find a Collections_spaces
     * @example
     * // Get one Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends collections_spacesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, collections_spacesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__collections_spacesClient<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Collections_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 {collections_spacesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.findMany()
     *
     * // Get first 10 Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const collections_spacesWithIdOnly = await prisma.collections_spaces.findMany({ select: { id: true } })
     *
     */
    findMany<T extends collections_spacesFindManyArgs>(args?: Prisma.SelectSubset<T, collections_spacesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Collections_spaces.
     * @param {collections_spacesCreateArgs} args - Arguments to create a Collections_spaces.
     * @example
     * // Create one Collections_spaces
     * const Collections_spaces = await prisma.collections_spaces.create({
     *   data: {
     *     // ... data to create a Collections_spaces
     *   }
     * })
     *
     */
    create<T extends collections_spacesCreateArgs>(args: Prisma.SelectSubset<T, collections_spacesCreateArgs<ExtArgs>>): Prisma.Prisma__collections_spacesClient<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Collections_spaces.
     * @param {collections_spacesCreateManyArgs} args - Arguments to create many Collections_spaces.
     * @example
     * // Create many Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends collections_spacesCreateManyArgs>(args?: Prisma.SelectSubset<T, collections_spacesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Collections_spaces and returns the data saved in the database.
     * @param {collections_spacesCreateManyAndReturnArgs} args - Arguments to create many Collections_spaces.
     * @example
     * // Create many Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Collections_spaces and only return the `id`
     * const collections_spacesWithIdOnly = await prisma.collections_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 collections_spacesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, collections_spacesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Collections_spaces.
     * @param {collections_spacesDeleteArgs} args - Arguments to delete one Collections_spaces.
     * @example
     * // Delete one Collections_spaces
     * const Collections_spaces = await prisma.collections_spaces.delete({
     *   where: {
     *     // ... filter to delete one Collections_spaces
     *   }
     * })
     *
     */
    delete<T extends collections_spacesDeleteArgs>(args: Prisma.SelectSubset<T, collections_spacesDeleteArgs<ExtArgs>>): Prisma.Prisma__collections_spacesClient<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Collections_spaces.
     * @param {collections_spacesUpdateArgs} args - Arguments to update one Collections_spaces.
     * @example
     * // Update one Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends collections_spacesUpdateArgs>(args: Prisma.SelectSubset<T, collections_spacesUpdateArgs<ExtArgs>>): Prisma.Prisma__collections_spacesClient<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Collections_spaces.
     * @param {collections_spacesDeleteManyArgs} args - Arguments to filter Collections_spaces to delete.
     * @example
     * // Delete a few Collections_spaces
     * const { count } = await prisma.collections_spaces.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends collections_spacesDeleteManyArgs>(args?: Prisma.SelectSubset<T, collections_spacesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Collections_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {collections_spacesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends collections_spacesUpdateManyArgs>(args: Prisma.SelectSubset<T, collections_spacesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Collections_spaces and returns the data updated in the database.
     * @param {collections_spacesUpdateManyAndReturnArgs} args - Arguments to update many Collections_spaces.
     * @example
     * // Update many Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Collections_spaces and only return the `id`
     * const collections_spacesWithIdOnly = await prisma.collections_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 collections_spacesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, collections_spacesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Collections_spaces.
     * @param {collections_spacesUpsertArgs} args - Arguments to update or create a Collections_spaces.
     * @example
     * // Update or create a Collections_spaces
     * const collections_spaces = await prisma.collections_spaces.upsert({
     *   create: {
     *     // ... data to create a Collections_spaces
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Collections_spaces we want to update
     *   }
     * })
     */
    upsert<T extends collections_spacesUpsertArgs>(args: Prisma.SelectSubset<T, collections_spacesUpsertArgs<ExtArgs>>): Prisma.Prisma__collections_spacesClient<runtime.Types.Result.GetResult<Prisma.$collections_spacesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Collections_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {collections_spacesCountArgs} args - Arguments to filter Collections_spaces to count.
     * @example
     * // Count the number of Collections_spaces
     * const count = await prisma.collections_spaces.count({
     *   where: {
     *     // ... the filter for the Collections_spaces we want to count
     *   }
     * })
    **/
    count<T extends collections_spacesCountArgs>(args?: Prisma.Subset<T, collections_spacesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Collections_spacesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Collections_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Collections_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 Collections_spacesAggregateArgs>(args: Prisma.Subset<T, Collections_spacesAggregateArgs>): Prisma.PrismaPromise<GetCollections_spacesAggregateType<T>>;
    /**
     * Group by Collections_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {collections_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 collections_spacesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: collections_spacesGroupByArgs['orderBy'];
    } : {
        orderBy?: collections_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, collections_spacesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCollections_spacesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the collections_spaces model
     */
    readonly fields: collections_spacesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for collections_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__collections_spacesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    collections<T extends Prisma.collections_spaces$collectionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.collections_spaces$collectionsArgs<ExtArgs>>): Prisma.Prisma__collectionsClient<runtime.Types.Result.GetResult<Prisma.$collectionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    spaces<T extends Prisma.collections_spaces$spacesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.collections_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 collections_spaces model
 */
export interface collections_spacesFieldRefs {
    readonly id: Prisma.FieldRef<"collections_spaces", 'Int'>;
    readonly collections_id: Prisma.FieldRef<"collections_spaces", 'BigInt'>;
    readonly spaces_id: Prisma.FieldRef<"collections_spaces", 'Int'>;
}
/**
 * collections_spaces findUnique
 */
export type collections_spacesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which collections_spaces to fetch.
     */
    where: Prisma.collections_spacesWhereUniqueInput;
};
/**
 * collections_spaces findUniqueOrThrow
 */
export type collections_spacesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which collections_spaces to fetch.
     */
    where: Prisma.collections_spacesWhereUniqueInput;
};
/**
 * collections_spaces findFirst
 */
export type collections_spacesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which collections_spaces to fetch.
     */
    where?: Prisma.collections_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of collections_spaces to fetch.
     */
    orderBy?: Prisma.collections_spacesOrderByWithRelationInput | Prisma.collections_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for collections_spaces.
     */
    cursor?: Prisma.collections_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` collections_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` collections_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of collections_spaces.
     */
    distinct?: Prisma.Collections_spacesScalarFieldEnum | Prisma.Collections_spacesScalarFieldEnum[];
};
/**
 * collections_spaces findFirstOrThrow
 */
export type collections_spacesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which collections_spaces to fetch.
     */
    where?: Prisma.collections_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of collections_spaces to fetch.
     */
    orderBy?: Prisma.collections_spacesOrderByWithRelationInput | Prisma.collections_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for collections_spaces.
     */
    cursor?: Prisma.collections_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` collections_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` collections_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of collections_spaces.
     */
    distinct?: Prisma.Collections_spacesScalarFieldEnum | Prisma.Collections_spacesScalarFieldEnum[];
};
/**
 * collections_spaces findMany
 */
export type collections_spacesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which collections_spaces to fetch.
     */
    where?: Prisma.collections_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of collections_spaces to fetch.
     */
    orderBy?: Prisma.collections_spacesOrderByWithRelationInput | Prisma.collections_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing collections_spaces.
     */
    cursor?: Prisma.collections_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` collections_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` collections_spaces.
     */
    skip?: number;
    distinct?: Prisma.Collections_spacesScalarFieldEnum | Prisma.Collections_spacesScalarFieldEnum[];
};
/**
 * collections_spaces create
 */
export type collections_spacesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * The data needed to create a collections_spaces.
     */
    data?: Prisma.XOR<Prisma.collections_spacesCreateInput, Prisma.collections_spacesUncheckedCreateInput>;
};
/**
 * collections_spaces createMany
 */
export type collections_spacesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many collections_spaces.
     */
    data: Prisma.collections_spacesCreateManyInput | Prisma.collections_spacesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * collections_spaces createManyAndReturn
 */
export type collections_spacesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * The data used to create many collections_spaces.
     */
    data: Prisma.collections_spacesCreateManyInput | Prisma.collections_spacesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * collections_spaces update
 */
export type collections_spacesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * The data needed to update a collections_spaces.
     */
    data: Prisma.XOR<Prisma.collections_spacesUpdateInput, Prisma.collections_spacesUncheckedUpdateInput>;
    /**
     * Choose, which collections_spaces to update.
     */
    where: Prisma.collections_spacesWhereUniqueInput;
};
/**
 * collections_spaces updateMany
 */
export type collections_spacesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update collections_spaces.
     */
    data: Prisma.XOR<Prisma.collections_spacesUpdateManyMutationInput, Prisma.collections_spacesUncheckedUpdateManyInput>;
    /**
     * Filter which collections_spaces to update
     */
    where?: Prisma.collections_spacesWhereInput;
    /**
     * Limit how many collections_spaces to update.
     */
    limit?: number;
};
/**
 * collections_spaces updateManyAndReturn
 */
export type collections_spacesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * The data used to update collections_spaces.
     */
    data: Prisma.XOR<Prisma.collections_spacesUpdateManyMutationInput, Prisma.collections_spacesUncheckedUpdateManyInput>;
    /**
     * Filter which collections_spaces to update
     */
    where?: Prisma.collections_spacesWhereInput;
    /**
     * Limit how many collections_spaces to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * collections_spaces upsert
 */
export type collections_spacesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * The filter to search for the collections_spaces to update in case it exists.
     */
    where: Prisma.collections_spacesWhereUniqueInput;
    /**
     * In case the collections_spaces found by the `where` argument doesn't exist, create a new collections_spaces with this data.
     */
    create: Prisma.XOR<Prisma.collections_spacesCreateInput, Prisma.collections_spacesUncheckedCreateInput>;
    /**
     * In case the collections_spaces was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.collections_spacesUpdateInput, Prisma.collections_spacesUncheckedUpdateInput>;
};
/**
 * collections_spaces delete
 */
export type collections_spacesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
    /**
     * Filter which collections_spaces to delete.
     */
    where: Prisma.collections_spacesWhereUniqueInput;
};
/**
 * collections_spaces deleteMany
 */
export type collections_spacesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which collections_spaces to delete
     */
    where?: Prisma.collections_spacesWhereInput;
    /**
     * Limit how many collections_spaces to delete.
     */
    limit?: number;
};
/**
 * collections_spaces.collections
 */
export type collections_spaces$collectionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections
     */
    select?: Prisma.collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections
     */
    omit?: Prisma.collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collectionsInclude<ExtArgs> | null;
    where?: Prisma.collectionsWhereInput;
};
/**
 * collections_spaces.spaces
 */
export type collections_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;
};
/**
 * collections_spaces without action
 */
export type collections_spacesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections_spaces
     */
    select?: Prisma.collections_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections_spaces
     */
    omit?: Prisma.collections_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collections_spacesInclude<ExtArgs> | null;
};
export {};
