import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model spaces_states
 * 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 spaces_statesModel = runtime.Types.Result.DefaultSelection<Prisma.$spaces_statesPayload>;
export type AggregateSpaces_states = {
    _count: Spaces_statesCountAggregateOutputType | null;
    _avg: Spaces_statesAvgAggregateOutputType | null;
    _sum: Spaces_statesSumAggregateOutputType | null;
    _min: Spaces_statesMinAggregateOutputType | null;
    _max: Spaces_statesMaxAggregateOutputType | null;
};
export type Spaces_statesAvgAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    states_id: number | null;
};
export type Spaces_statesSumAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    states_id: number | null;
};
export type Spaces_statesMinAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    states_id: number | null;
};
export type Spaces_statesMaxAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    states_id: number | null;
};
export type Spaces_statesCountAggregateOutputType = {
    id: number;
    spaces_id: number;
    states_id: number;
    _all: number;
};
export type Spaces_statesAvgAggregateInputType = {
    id?: true;
    spaces_id?: true;
    states_id?: true;
};
export type Spaces_statesSumAggregateInputType = {
    id?: true;
    spaces_id?: true;
    states_id?: true;
};
export type Spaces_statesMinAggregateInputType = {
    id?: true;
    spaces_id?: true;
    states_id?: true;
};
export type Spaces_statesMaxAggregateInputType = {
    id?: true;
    spaces_id?: true;
    states_id?: true;
};
export type Spaces_statesCountAggregateInputType = {
    id?: true;
    spaces_id?: true;
    states_id?: true;
    _all?: true;
};
export type Spaces_statesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which spaces_states to aggregate.
     */
    where?: Prisma.spaces_statesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_states to fetch.
     */
    orderBy?: Prisma.spaces_statesOrderByWithRelationInput | Prisma.spaces_statesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.spaces_statesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_states 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` spaces_states.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned spaces_states
    **/
    _count?: true | Spaces_statesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Spaces_statesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Spaces_statesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Spaces_statesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Spaces_statesMaxAggregateInputType;
};
export type GetSpaces_statesAggregateType<T extends Spaces_statesAggregateArgs> = {
    [P in keyof T & keyof AggregateSpaces_states]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSpaces_states[P]> : Prisma.GetScalarType<T[P], AggregateSpaces_states[P]>;
};
export type spaces_statesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.spaces_statesWhereInput;
    orderBy?: Prisma.spaces_statesOrderByWithAggregationInput | Prisma.spaces_statesOrderByWithAggregationInput[];
    by: Prisma.Spaces_statesScalarFieldEnum[] | Prisma.Spaces_statesScalarFieldEnum;
    having?: Prisma.spaces_statesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Spaces_statesCountAggregateInputType | true;
    _avg?: Spaces_statesAvgAggregateInputType;
    _sum?: Spaces_statesSumAggregateInputType;
    _min?: Spaces_statesMinAggregateInputType;
    _max?: Spaces_statesMaxAggregateInputType;
};
export type Spaces_statesGroupByOutputType = {
    id: number;
    spaces_id: number | null;
    states_id: number | null;
    _count: Spaces_statesCountAggregateOutputType | null;
    _avg: Spaces_statesAvgAggregateOutputType | null;
    _sum: Spaces_statesSumAggregateOutputType | null;
    _min: Spaces_statesMinAggregateOutputType | null;
    _max: Spaces_statesMaxAggregateOutputType | null;
};
type GetSpaces_statesGroupByPayload<T extends spaces_statesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Spaces_statesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Spaces_statesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Spaces_statesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Spaces_statesGroupByOutputType[P]>;
}>>;
export type spaces_statesWhereInput = {
    AND?: Prisma.spaces_statesWhereInput | Prisma.spaces_statesWhereInput[];
    OR?: Prisma.spaces_statesWhereInput[];
    NOT?: Prisma.spaces_statesWhereInput | Prisma.spaces_statesWhereInput[];
    id?: Prisma.IntFilter<"spaces_states"> | number;
    spaces_id?: Prisma.IntNullableFilter<"spaces_states"> | number | null;
    states_id?: Prisma.IntNullableFilter<"spaces_states"> | number | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
    states?: Prisma.XOR<Prisma.StatesNullableScalarRelationFilter, Prisma.statesWhereInput> | null;
};
export type spaces_statesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    states_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces?: Prisma.spacesOrderByWithRelationInput;
    states?: Prisma.statesOrderByWithRelationInput;
};
export type spaces_statesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.spaces_statesWhereInput | Prisma.spaces_statesWhereInput[];
    OR?: Prisma.spaces_statesWhereInput[];
    NOT?: Prisma.spaces_statesWhereInput | Prisma.spaces_statesWhereInput[];
    spaces_id?: Prisma.IntNullableFilter<"spaces_states"> | number | null;
    states_id?: Prisma.IntNullableFilter<"spaces_states"> | number | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
    states?: Prisma.XOR<Prisma.StatesNullableScalarRelationFilter, Prisma.statesWhereInput> | null;
}, "id">;
export type spaces_statesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    states_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.spaces_statesCountOrderByAggregateInput;
    _avg?: Prisma.spaces_statesAvgOrderByAggregateInput;
    _max?: Prisma.spaces_statesMaxOrderByAggregateInput;
    _min?: Prisma.spaces_statesMinOrderByAggregateInput;
    _sum?: Prisma.spaces_statesSumOrderByAggregateInput;
};
export type spaces_statesScalarWhereWithAggregatesInput = {
    AND?: Prisma.spaces_statesScalarWhereWithAggregatesInput | Prisma.spaces_statesScalarWhereWithAggregatesInput[];
    OR?: Prisma.spaces_statesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.spaces_statesScalarWhereWithAggregatesInput | Prisma.spaces_statesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"spaces_states"> | number;
    spaces_id?: Prisma.IntNullableWithAggregatesFilter<"spaces_states"> | number | null;
    states_id?: Prisma.IntNullableWithAggregatesFilter<"spaces_states"> | number | null;
};
export type spaces_statesCreateInput = {
    spaces?: Prisma.spacesCreateNestedOneWithoutSpaces_statesInput;
    states?: Prisma.statesCreateNestedOneWithoutSpaces_statesInput;
};
export type spaces_statesUncheckedCreateInput = {
    id?: number;
    spaces_id?: number | null;
    states_id?: number | null;
};
export type spaces_statesUpdateInput = {
    spaces?: Prisma.spacesUpdateOneWithoutSpaces_statesNestedInput;
    states?: Prisma.statesUpdateOneWithoutSpaces_statesNestedInput;
};
export type spaces_statesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    states_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_statesCreateManyInput = {
    id?: number;
    spaces_id?: number | null;
    states_id?: number | null;
};
export type spaces_statesUpdateManyMutationInput = {};
export type spaces_statesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    states_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Spaces_statesListRelationFilter = {
    every?: Prisma.spaces_statesWhereInput;
    some?: Prisma.spaces_statesWhereInput;
    none?: Prisma.spaces_statesWhereInput;
};
export type spaces_statesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type spaces_statesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    states_id?: Prisma.SortOrder;
};
export type spaces_statesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    states_id?: Prisma.SortOrder;
};
export type spaces_statesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    states_id?: Prisma.SortOrder;
};
export type spaces_statesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    states_id?: Prisma.SortOrder;
};
export type spaces_statesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    states_id?: Prisma.SortOrder;
};
export type spaces_statesCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.spaces_statesCreateWithoutSpacesInput, Prisma.spaces_statesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_statesCreateWithoutSpacesInput[] | Prisma.spaces_statesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_statesCreateOrConnectWithoutSpacesInput | Prisma.spaces_statesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.spaces_statesCreateManySpacesInputEnvelope;
    connect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
};
export type spaces_statesUncheckedCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.spaces_statesCreateWithoutSpacesInput, Prisma.spaces_statesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_statesCreateWithoutSpacesInput[] | Prisma.spaces_statesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_statesCreateOrConnectWithoutSpacesInput | Prisma.spaces_statesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.spaces_statesCreateManySpacesInputEnvelope;
    connect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
};
export type spaces_statesUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_statesCreateWithoutSpacesInput, Prisma.spaces_statesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_statesCreateWithoutSpacesInput[] | Prisma.spaces_statesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_statesCreateOrConnectWithoutSpacesInput | Prisma.spaces_statesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.spaces_statesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.spaces_statesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.spaces_statesCreateManySpacesInputEnvelope;
    set?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    disconnect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    delete?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    connect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    update?: Prisma.spaces_statesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.spaces_statesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.spaces_statesUpdateManyWithWhereWithoutSpacesInput | Prisma.spaces_statesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.spaces_statesScalarWhereInput | Prisma.spaces_statesScalarWhereInput[];
};
export type spaces_statesUncheckedUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_statesCreateWithoutSpacesInput, Prisma.spaces_statesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_statesCreateWithoutSpacesInput[] | Prisma.spaces_statesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_statesCreateOrConnectWithoutSpacesInput | Prisma.spaces_statesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.spaces_statesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.spaces_statesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.spaces_statesCreateManySpacesInputEnvelope;
    set?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    disconnect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    delete?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    connect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    update?: Prisma.spaces_statesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.spaces_statesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.spaces_statesUpdateManyWithWhereWithoutSpacesInput | Prisma.spaces_statesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.spaces_statesScalarWhereInput | Prisma.spaces_statesScalarWhereInput[];
};
export type spaces_statesCreateNestedManyWithoutStatesInput = {
    create?: Prisma.XOR<Prisma.spaces_statesCreateWithoutStatesInput, Prisma.spaces_statesUncheckedCreateWithoutStatesInput> | Prisma.spaces_statesCreateWithoutStatesInput[] | Prisma.spaces_statesUncheckedCreateWithoutStatesInput[];
    connectOrCreate?: Prisma.spaces_statesCreateOrConnectWithoutStatesInput | Prisma.spaces_statesCreateOrConnectWithoutStatesInput[];
    createMany?: Prisma.spaces_statesCreateManyStatesInputEnvelope;
    connect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
};
export type spaces_statesUncheckedCreateNestedManyWithoutStatesInput = {
    create?: Prisma.XOR<Prisma.spaces_statesCreateWithoutStatesInput, Prisma.spaces_statesUncheckedCreateWithoutStatesInput> | Prisma.spaces_statesCreateWithoutStatesInput[] | Prisma.spaces_statesUncheckedCreateWithoutStatesInput[];
    connectOrCreate?: Prisma.spaces_statesCreateOrConnectWithoutStatesInput | Prisma.spaces_statesCreateOrConnectWithoutStatesInput[];
    createMany?: Prisma.spaces_statesCreateManyStatesInputEnvelope;
    connect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
};
export type spaces_statesUpdateManyWithoutStatesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_statesCreateWithoutStatesInput, Prisma.spaces_statesUncheckedCreateWithoutStatesInput> | Prisma.spaces_statesCreateWithoutStatesInput[] | Prisma.spaces_statesUncheckedCreateWithoutStatesInput[];
    connectOrCreate?: Prisma.spaces_statesCreateOrConnectWithoutStatesInput | Prisma.spaces_statesCreateOrConnectWithoutStatesInput[];
    upsert?: Prisma.spaces_statesUpsertWithWhereUniqueWithoutStatesInput | Prisma.spaces_statesUpsertWithWhereUniqueWithoutStatesInput[];
    createMany?: Prisma.spaces_statesCreateManyStatesInputEnvelope;
    set?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    disconnect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    delete?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    connect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    update?: Prisma.spaces_statesUpdateWithWhereUniqueWithoutStatesInput | Prisma.spaces_statesUpdateWithWhereUniqueWithoutStatesInput[];
    updateMany?: Prisma.spaces_statesUpdateManyWithWhereWithoutStatesInput | Prisma.spaces_statesUpdateManyWithWhereWithoutStatesInput[];
    deleteMany?: Prisma.spaces_statesScalarWhereInput | Prisma.spaces_statesScalarWhereInput[];
};
export type spaces_statesUncheckedUpdateManyWithoutStatesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_statesCreateWithoutStatesInput, Prisma.spaces_statesUncheckedCreateWithoutStatesInput> | Prisma.spaces_statesCreateWithoutStatesInput[] | Prisma.spaces_statesUncheckedCreateWithoutStatesInput[];
    connectOrCreate?: Prisma.spaces_statesCreateOrConnectWithoutStatesInput | Prisma.spaces_statesCreateOrConnectWithoutStatesInput[];
    upsert?: Prisma.spaces_statesUpsertWithWhereUniqueWithoutStatesInput | Prisma.spaces_statesUpsertWithWhereUniqueWithoutStatesInput[];
    createMany?: Prisma.spaces_statesCreateManyStatesInputEnvelope;
    set?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    disconnect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    delete?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    connect?: Prisma.spaces_statesWhereUniqueInput | Prisma.spaces_statesWhereUniqueInput[];
    update?: Prisma.spaces_statesUpdateWithWhereUniqueWithoutStatesInput | Prisma.spaces_statesUpdateWithWhereUniqueWithoutStatesInput[];
    updateMany?: Prisma.spaces_statesUpdateManyWithWhereWithoutStatesInput | Prisma.spaces_statesUpdateManyWithWhereWithoutStatesInput[];
    deleteMany?: Prisma.spaces_statesScalarWhereInput | Prisma.spaces_statesScalarWhereInput[];
};
export type spaces_statesCreateWithoutSpacesInput = {
    states?: Prisma.statesCreateNestedOneWithoutSpaces_statesInput;
};
export type spaces_statesUncheckedCreateWithoutSpacesInput = {
    id?: number;
    states_id?: number | null;
};
export type spaces_statesCreateOrConnectWithoutSpacesInput = {
    where: Prisma.spaces_statesWhereUniqueInput;
    create: Prisma.XOR<Prisma.spaces_statesCreateWithoutSpacesInput, Prisma.spaces_statesUncheckedCreateWithoutSpacesInput>;
};
export type spaces_statesCreateManySpacesInputEnvelope = {
    data: Prisma.spaces_statesCreateManySpacesInput | Prisma.spaces_statesCreateManySpacesInput[];
    skipDuplicates?: boolean;
};
export type spaces_statesUpsertWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.spaces_statesWhereUniqueInput;
    update: Prisma.XOR<Prisma.spaces_statesUpdateWithoutSpacesInput, Prisma.spaces_statesUncheckedUpdateWithoutSpacesInput>;
    create: Prisma.XOR<Prisma.spaces_statesCreateWithoutSpacesInput, Prisma.spaces_statesUncheckedCreateWithoutSpacesInput>;
};
export type spaces_statesUpdateWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.spaces_statesWhereUniqueInput;
    data: Prisma.XOR<Prisma.spaces_statesUpdateWithoutSpacesInput, Prisma.spaces_statesUncheckedUpdateWithoutSpacesInput>;
};
export type spaces_statesUpdateManyWithWhereWithoutSpacesInput = {
    where: Prisma.spaces_statesScalarWhereInput;
    data: Prisma.XOR<Prisma.spaces_statesUpdateManyMutationInput, Prisma.spaces_statesUncheckedUpdateManyWithoutSpacesInput>;
};
export type spaces_statesScalarWhereInput = {
    AND?: Prisma.spaces_statesScalarWhereInput | Prisma.spaces_statesScalarWhereInput[];
    OR?: Prisma.spaces_statesScalarWhereInput[];
    NOT?: Prisma.spaces_statesScalarWhereInput | Prisma.spaces_statesScalarWhereInput[];
    id?: Prisma.IntFilter<"spaces_states"> | number;
    spaces_id?: Prisma.IntNullableFilter<"spaces_states"> | number | null;
    states_id?: Prisma.IntNullableFilter<"spaces_states"> | number | null;
};
export type spaces_statesCreateWithoutStatesInput = {
    spaces?: Prisma.spacesCreateNestedOneWithoutSpaces_statesInput;
};
export type spaces_statesUncheckedCreateWithoutStatesInput = {
    id?: number;
    spaces_id?: number | null;
};
export type spaces_statesCreateOrConnectWithoutStatesInput = {
    where: Prisma.spaces_statesWhereUniqueInput;
    create: Prisma.XOR<Prisma.spaces_statesCreateWithoutStatesInput, Prisma.spaces_statesUncheckedCreateWithoutStatesInput>;
};
export type spaces_statesCreateManyStatesInputEnvelope = {
    data: Prisma.spaces_statesCreateManyStatesInput | Prisma.spaces_statesCreateManyStatesInput[];
    skipDuplicates?: boolean;
};
export type spaces_statesUpsertWithWhereUniqueWithoutStatesInput = {
    where: Prisma.spaces_statesWhereUniqueInput;
    update: Prisma.XOR<Prisma.spaces_statesUpdateWithoutStatesInput, Prisma.spaces_statesUncheckedUpdateWithoutStatesInput>;
    create: Prisma.XOR<Prisma.spaces_statesCreateWithoutStatesInput, Prisma.spaces_statesUncheckedCreateWithoutStatesInput>;
};
export type spaces_statesUpdateWithWhereUniqueWithoutStatesInput = {
    where: Prisma.spaces_statesWhereUniqueInput;
    data: Prisma.XOR<Prisma.spaces_statesUpdateWithoutStatesInput, Prisma.spaces_statesUncheckedUpdateWithoutStatesInput>;
};
export type spaces_statesUpdateManyWithWhereWithoutStatesInput = {
    where: Prisma.spaces_statesScalarWhereInput;
    data: Prisma.XOR<Prisma.spaces_statesUpdateManyMutationInput, Prisma.spaces_statesUncheckedUpdateManyWithoutStatesInput>;
};
export type spaces_statesCreateManySpacesInput = {
    id?: number;
    states_id?: number | null;
};
export type spaces_statesUpdateWithoutSpacesInput = {
    states?: Prisma.statesUpdateOneWithoutSpaces_statesNestedInput;
};
export type spaces_statesUncheckedUpdateWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    states_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_statesUncheckedUpdateManyWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    states_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_statesCreateManyStatesInput = {
    id?: number;
    spaces_id?: number | null;
};
export type spaces_statesUpdateWithoutStatesInput = {
    spaces?: Prisma.spacesUpdateOneWithoutSpaces_statesNestedInput;
};
export type spaces_statesUncheckedUpdateWithoutStatesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_statesUncheckedUpdateManyWithoutStatesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_statesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    states_id?: boolean;
    spaces?: boolean | Prisma.spaces_states$spacesArgs<ExtArgs>;
    states?: boolean | Prisma.spaces_states$statesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_states"]>;
export type spaces_statesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    states_id?: boolean;
    spaces?: boolean | Prisma.spaces_states$spacesArgs<ExtArgs>;
    states?: boolean | Prisma.spaces_states$statesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_states"]>;
export type spaces_statesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    states_id?: boolean;
    spaces?: boolean | Prisma.spaces_states$spacesArgs<ExtArgs>;
    states?: boolean | Prisma.spaces_states$statesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_states"]>;
export type spaces_statesSelectScalar = {
    id?: boolean;
    spaces_id?: boolean;
    states_id?: boolean;
};
export type spaces_statesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "spaces_id" | "states_id", ExtArgs["result"]["spaces_states"]>;
export type spaces_statesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    spaces?: boolean | Prisma.spaces_states$spacesArgs<ExtArgs>;
    states?: boolean | Prisma.spaces_states$statesArgs<ExtArgs>;
};
export type spaces_statesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    spaces?: boolean | Prisma.spaces_states$spacesArgs<ExtArgs>;
    states?: boolean | Prisma.spaces_states$statesArgs<ExtArgs>;
};
export type spaces_statesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    spaces?: boolean | Prisma.spaces_states$spacesArgs<ExtArgs>;
    states?: boolean | Prisma.spaces_states$statesArgs<ExtArgs>;
};
export type $spaces_statesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "spaces_states";
    objects: {
        spaces: Prisma.$spacesPayload<ExtArgs> | null;
        states: Prisma.$statesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        spaces_id: number | null;
        states_id: number | null;
    }, ExtArgs["result"]["spaces_states"]>;
    composites: {};
};
export type spaces_statesGetPayload<S extends boolean | null | undefined | spaces_statesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload, S>;
export type spaces_statesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<spaces_statesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Spaces_statesCountAggregateInputType | true;
};
export interface spaces_statesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['spaces_states'];
        meta: {
            name: 'spaces_states';
        };
    };
    /**
     * Find zero or one Spaces_states that matches the filter.
     * @param {spaces_statesFindUniqueArgs} args - Arguments to find a Spaces_states
     * @example
     * // Get one Spaces_states
     * const spaces_states = await prisma.spaces_states.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends spaces_statesFindUniqueArgs>(args: Prisma.SelectSubset<T, spaces_statesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__spaces_statesClient<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Spaces_states that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {spaces_statesFindUniqueOrThrowArgs} args - Arguments to find a Spaces_states
     * @example
     * // Get one Spaces_states
     * const spaces_states = await prisma.spaces_states.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends spaces_statesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, spaces_statesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__spaces_statesClient<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Spaces_states 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 {spaces_statesFindFirstArgs} args - Arguments to find a Spaces_states
     * @example
     * // Get one Spaces_states
     * const spaces_states = await prisma.spaces_states.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends spaces_statesFindFirstArgs>(args?: Prisma.SelectSubset<T, spaces_statesFindFirstArgs<ExtArgs>>): Prisma.Prisma__spaces_statesClient<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Spaces_states 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 {spaces_statesFindFirstOrThrowArgs} args - Arguments to find a Spaces_states
     * @example
     * // Get one Spaces_states
     * const spaces_states = await prisma.spaces_states.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends spaces_statesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, spaces_statesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__spaces_statesClient<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Spaces_states 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 {spaces_statesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Spaces_states
     * const spaces_states = await prisma.spaces_states.findMany()
     *
     * // Get first 10 Spaces_states
     * const spaces_states = await prisma.spaces_states.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const spaces_statesWithIdOnly = await prisma.spaces_states.findMany({ select: { id: true } })
     *
     */
    findMany<T extends spaces_statesFindManyArgs>(args?: Prisma.SelectSubset<T, spaces_statesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Spaces_states.
     * @param {spaces_statesCreateArgs} args - Arguments to create a Spaces_states.
     * @example
     * // Create one Spaces_states
     * const Spaces_states = await prisma.spaces_states.create({
     *   data: {
     *     // ... data to create a Spaces_states
     *   }
     * })
     *
     */
    create<T extends spaces_statesCreateArgs>(args: Prisma.SelectSubset<T, spaces_statesCreateArgs<ExtArgs>>): Prisma.Prisma__spaces_statesClient<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Spaces_states.
     * @param {spaces_statesCreateManyArgs} args - Arguments to create many Spaces_states.
     * @example
     * // Create many Spaces_states
     * const spaces_states = await prisma.spaces_states.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends spaces_statesCreateManyArgs>(args?: Prisma.SelectSubset<T, spaces_statesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Spaces_states and returns the data saved in the database.
     * @param {spaces_statesCreateManyAndReturnArgs} args - Arguments to create many Spaces_states.
     * @example
     * // Create many Spaces_states
     * const spaces_states = await prisma.spaces_states.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Spaces_states and only return the `id`
     * const spaces_statesWithIdOnly = await prisma.spaces_states.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 spaces_statesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, spaces_statesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Spaces_states.
     * @param {spaces_statesDeleteArgs} args - Arguments to delete one Spaces_states.
     * @example
     * // Delete one Spaces_states
     * const Spaces_states = await prisma.spaces_states.delete({
     *   where: {
     *     // ... filter to delete one Spaces_states
     *   }
     * })
     *
     */
    delete<T extends spaces_statesDeleteArgs>(args: Prisma.SelectSubset<T, spaces_statesDeleteArgs<ExtArgs>>): Prisma.Prisma__spaces_statesClient<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Spaces_states.
     * @param {spaces_statesUpdateArgs} args - Arguments to update one Spaces_states.
     * @example
     * // Update one Spaces_states
     * const spaces_states = await prisma.spaces_states.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends spaces_statesUpdateArgs>(args: Prisma.SelectSubset<T, spaces_statesUpdateArgs<ExtArgs>>): Prisma.Prisma__spaces_statesClient<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Spaces_states.
     * @param {spaces_statesDeleteManyArgs} args - Arguments to filter Spaces_states to delete.
     * @example
     * // Delete a few Spaces_states
     * const { count } = await prisma.spaces_states.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends spaces_statesDeleteManyArgs>(args?: Prisma.SelectSubset<T, spaces_statesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Spaces_states.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_statesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Spaces_states
     * const spaces_states = await prisma.spaces_states.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends spaces_statesUpdateManyArgs>(args: Prisma.SelectSubset<T, spaces_statesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Spaces_states and returns the data updated in the database.
     * @param {spaces_statesUpdateManyAndReturnArgs} args - Arguments to update many Spaces_states.
     * @example
     * // Update many Spaces_states
     * const spaces_states = await prisma.spaces_states.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Spaces_states and only return the `id`
     * const spaces_statesWithIdOnly = await prisma.spaces_states.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 spaces_statesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, spaces_statesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Spaces_states.
     * @param {spaces_statesUpsertArgs} args - Arguments to update or create a Spaces_states.
     * @example
     * // Update or create a Spaces_states
     * const spaces_states = await prisma.spaces_states.upsert({
     *   create: {
     *     // ... data to create a Spaces_states
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Spaces_states we want to update
     *   }
     * })
     */
    upsert<T extends spaces_statesUpsertArgs>(args: Prisma.SelectSubset<T, spaces_statesUpsertArgs<ExtArgs>>): Prisma.Prisma__spaces_statesClient<runtime.Types.Result.GetResult<Prisma.$spaces_statesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Spaces_states.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_statesCountArgs} args - Arguments to filter Spaces_states to count.
     * @example
     * // Count the number of Spaces_states
     * const count = await prisma.spaces_states.count({
     *   where: {
     *     // ... the filter for the Spaces_states we want to count
     *   }
     * })
    **/
    count<T extends spaces_statesCountArgs>(args?: Prisma.Subset<T, spaces_statesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Spaces_statesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Spaces_states.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Spaces_statesAggregateArgs} 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 Spaces_statesAggregateArgs>(args: Prisma.Subset<T, Spaces_statesAggregateArgs>): Prisma.PrismaPromise<GetSpaces_statesAggregateType<T>>;
    /**
     * Group by Spaces_states.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_statesGroupByArgs} 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 spaces_statesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: spaces_statesGroupByArgs['orderBy'];
    } : {
        orderBy?: spaces_statesGroupByArgs['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, spaces_statesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSpaces_statesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the spaces_states model
     */
    readonly fields: spaces_statesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for spaces_states.
 * 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__spaces_statesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    spaces<T extends Prisma.spaces_states$spacesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.spaces_states$spacesArgs<ExtArgs>>): Prisma.Prisma__spacesClient<runtime.Types.Result.GetResult<Prisma.$spacesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    states<T extends Prisma.spaces_states$statesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.spaces_states$statesArgs<ExtArgs>>): Prisma.Prisma__statesClient<runtime.Types.Result.GetResult<Prisma.$statesPayload<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 spaces_states model
 */
export interface spaces_statesFieldRefs {
    readonly id: Prisma.FieldRef<"spaces_states", 'Int'>;
    readonly spaces_id: Prisma.FieldRef<"spaces_states", 'Int'>;
    readonly states_id: Prisma.FieldRef<"spaces_states", 'Int'>;
}
/**
 * spaces_states findUnique
 */
export type spaces_statesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_states to fetch.
     */
    where: Prisma.spaces_statesWhereUniqueInput;
};
/**
 * spaces_states findUniqueOrThrow
 */
export type spaces_statesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_states to fetch.
     */
    where: Prisma.spaces_statesWhereUniqueInput;
};
/**
 * spaces_states findFirst
 */
export type spaces_statesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_states to fetch.
     */
    where?: Prisma.spaces_statesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_states to fetch.
     */
    orderBy?: Prisma.spaces_statesOrderByWithRelationInput | Prisma.spaces_statesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for spaces_states.
     */
    cursor?: Prisma.spaces_statesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_states 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` spaces_states.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of spaces_states.
     */
    distinct?: Prisma.Spaces_statesScalarFieldEnum | Prisma.Spaces_statesScalarFieldEnum[];
};
/**
 * spaces_states findFirstOrThrow
 */
export type spaces_statesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_states to fetch.
     */
    where?: Prisma.spaces_statesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_states to fetch.
     */
    orderBy?: Prisma.spaces_statesOrderByWithRelationInput | Prisma.spaces_statesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for spaces_states.
     */
    cursor?: Prisma.spaces_statesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_states 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` spaces_states.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of spaces_states.
     */
    distinct?: Prisma.Spaces_statesScalarFieldEnum | Prisma.Spaces_statesScalarFieldEnum[];
};
/**
 * spaces_states findMany
 */
export type spaces_statesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_states to fetch.
     */
    where?: Prisma.spaces_statesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_states to fetch.
     */
    orderBy?: Prisma.spaces_statesOrderByWithRelationInput | Prisma.spaces_statesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing spaces_states.
     */
    cursor?: Prisma.spaces_statesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_states 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` spaces_states.
     */
    skip?: number;
    distinct?: Prisma.Spaces_statesScalarFieldEnum | Prisma.Spaces_statesScalarFieldEnum[];
};
/**
 * spaces_states create
 */
export type spaces_statesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * The data needed to create a spaces_states.
     */
    data?: Prisma.XOR<Prisma.spaces_statesCreateInput, Prisma.spaces_statesUncheckedCreateInput>;
};
/**
 * spaces_states createMany
 */
export type spaces_statesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many spaces_states.
     */
    data: Prisma.spaces_statesCreateManyInput | Prisma.spaces_statesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * spaces_states createManyAndReturn
 */
export type spaces_statesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * The data used to create many spaces_states.
     */
    data: Prisma.spaces_statesCreateManyInput | Prisma.spaces_statesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * spaces_states update
 */
export type spaces_statesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * The data needed to update a spaces_states.
     */
    data: Prisma.XOR<Prisma.spaces_statesUpdateInput, Prisma.spaces_statesUncheckedUpdateInput>;
    /**
     * Choose, which spaces_states to update.
     */
    where: Prisma.spaces_statesWhereUniqueInput;
};
/**
 * spaces_states updateMany
 */
export type spaces_statesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update spaces_states.
     */
    data: Prisma.XOR<Prisma.spaces_statesUpdateManyMutationInput, Prisma.spaces_statesUncheckedUpdateManyInput>;
    /**
     * Filter which spaces_states to update
     */
    where?: Prisma.spaces_statesWhereInput;
    /**
     * Limit how many spaces_states to update.
     */
    limit?: number;
};
/**
 * spaces_states updateManyAndReturn
 */
export type spaces_statesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * The data used to update spaces_states.
     */
    data: Prisma.XOR<Prisma.spaces_statesUpdateManyMutationInput, Prisma.spaces_statesUncheckedUpdateManyInput>;
    /**
     * Filter which spaces_states to update
     */
    where?: Prisma.spaces_statesWhereInput;
    /**
     * Limit how many spaces_states to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * spaces_states upsert
 */
export type spaces_statesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * The filter to search for the spaces_states to update in case it exists.
     */
    where: Prisma.spaces_statesWhereUniqueInput;
    /**
     * In case the spaces_states found by the `where` argument doesn't exist, create a new spaces_states with this data.
     */
    create: Prisma.XOR<Prisma.spaces_statesCreateInput, Prisma.spaces_statesUncheckedCreateInput>;
    /**
     * In case the spaces_states was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.spaces_statesUpdateInput, Prisma.spaces_statesUncheckedUpdateInput>;
};
/**
 * spaces_states delete
 */
export type spaces_statesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
    /**
     * Filter which spaces_states to delete.
     */
    where: Prisma.spaces_statesWhereUniqueInput;
};
/**
 * spaces_states deleteMany
 */
export type spaces_statesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which spaces_states to delete
     */
    where?: Prisma.spaces_statesWhereInput;
    /**
     * Limit how many spaces_states to delete.
     */
    limit?: number;
};
/**
 * spaces_states.spaces
 */
export type spaces_states$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;
};
/**
 * spaces_states.states
 */
export type spaces_states$statesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states
     */
    select?: Prisma.statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states
     */
    omit?: Prisma.statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.statesInclude<ExtArgs> | null;
    where?: Prisma.statesWhereInput;
};
/**
 * spaces_states without action
 */
export type spaces_statesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_states
     */
    select?: Prisma.spaces_statesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_states
     */
    omit?: Prisma.spaces_statesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_statesInclude<ExtArgs> | null;
};
export {};
