import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model spaces_countries
 * 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_countriesModel = runtime.Types.Result.DefaultSelection<Prisma.$spaces_countriesPayload>;
export type AggregateSpaces_countries = {
    _count: Spaces_countriesCountAggregateOutputType | null;
    _avg: Spaces_countriesAvgAggregateOutputType | null;
    _sum: Spaces_countriesSumAggregateOutputType | null;
    _min: Spaces_countriesMinAggregateOutputType | null;
    _max: Spaces_countriesMaxAggregateOutputType | null;
};
export type Spaces_countriesAvgAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    countries_id: number | null;
};
export type Spaces_countriesSumAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    countries_id: number | null;
};
export type Spaces_countriesMinAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    countries_id: number | null;
};
export type Spaces_countriesMaxAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    countries_id: number | null;
};
export type Spaces_countriesCountAggregateOutputType = {
    id: number;
    spaces_id: number;
    countries_id: number;
    _all: number;
};
export type Spaces_countriesAvgAggregateInputType = {
    id?: true;
    spaces_id?: true;
    countries_id?: true;
};
export type Spaces_countriesSumAggregateInputType = {
    id?: true;
    spaces_id?: true;
    countries_id?: true;
};
export type Spaces_countriesMinAggregateInputType = {
    id?: true;
    spaces_id?: true;
    countries_id?: true;
};
export type Spaces_countriesMaxAggregateInputType = {
    id?: true;
    spaces_id?: true;
    countries_id?: true;
};
export type Spaces_countriesCountAggregateInputType = {
    id?: true;
    spaces_id?: true;
    countries_id?: true;
    _all?: true;
};
export type Spaces_countriesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which spaces_countries to aggregate.
     */
    where?: Prisma.spaces_countriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_countries to fetch.
     */
    orderBy?: Prisma.spaces_countriesOrderByWithRelationInput | Prisma.spaces_countriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.spaces_countriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_countries 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_countries.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned spaces_countries
    **/
    _count?: true | Spaces_countriesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Spaces_countriesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Spaces_countriesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Spaces_countriesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Spaces_countriesMaxAggregateInputType;
};
export type GetSpaces_countriesAggregateType<T extends Spaces_countriesAggregateArgs> = {
    [P in keyof T & keyof AggregateSpaces_countries]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSpaces_countries[P]> : Prisma.GetScalarType<T[P], AggregateSpaces_countries[P]>;
};
export type spaces_countriesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.spaces_countriesWhereInput;
    orderBy?: Prisma.spaces_countriesOrderByWithAggregationInput | Prisma.spaces_countriesOrderByWithAggregationInput[];
    by: Prisma.Spaces_countriesScalarFieldEnum[] | Prisma.Spaces_countriesScalarFieldEnum;
    having?: Prisma.spaces_countriesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Spaces_countriesCountAggregateInputType | true;
    _avg?: Spaces_countriesAvgAggregateInputType;
    _sum?: Spaces_countriesSumAggregateInputType;
    _min?: Spaces_countriesMinAggregateInputType;
    _max?: Spaces_countriesMaxAggregateInputType;
};
export type Spaces_countriesGroupByOutputType = {
    id: number;
    spaces_id: number | null;
    countries_id: number | null;
    _count: Spaces_countriesCountAggregateOutputType | null;
    _avg: Spaces_countriesAvgAggregateOutputType | null;
    _sum: Spaces_countriesSumAggregateOutputType | null;
    _min: Spaces_countriesMinAggregateOutputType | null;
    _max: Spaces_countriesMaxAggregateOutputType | null;
};
type GetSpaces_countriesGroupByPayload<T extends spaces_countriesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Spaces_countriesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Spaces_countriesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Spaces_countriesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Spaces_countriesGroupByOutputType[P]>;
}>>;
export type spaces_countriesWhereInput = {
    AND?: Prisma.spaces_countriesWhereInput | Prisma.spaces_countriesWhereInput[];
    OR?: Prisma.spaces_countriesWhereInput[];
    NOT?: Prisma.spaces_countriesWhereInput | Prisma.spaces_countriesWhereInput[];
    id?: Prisma.IntFilter<"spaces_countries"> | number;
    spaces_id?: Prisma.IntNullableFilter<"spaces_countries"> | number | null;
    countries_id?: Prisma.IntNullableFilter<"spaces_countries"> | number | null;
    countries?: Prisma.XOR<Prisma.CountriesNullableScalarRelationFilter, Prisma.countriesWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
};
export type spaces_countriesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    countries_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    countries?: Prisma.countriesOrderByWithRelationInput;
    spaces?: Prisma.spacesOrderByWithRelationInput;
};
export type spaces_countriesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.spaces_countriesWhereInput | Prisma.spaces_countriesWhereInput[];
    OR?: Prisma.spaces_countriesWhereInput[];
    NOT?: Prisma.spaces_countriesWhereInput | Prisma.spaces_countriesWhereInput[];
    spaces_id?: Prisma.IntNullableFilter<"spaces_countries"> | number | null;
    countries_id?: Prisma.IntNullableFilter<"spaces_countries"> | number | null;
    countries?: Prisma.XOR<Prisma.CountriesNullableScalarRelationFilter, Prisma.countriesWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
}, "id">;
export type spaces_countriesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    countries_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.spaces_countriesCountOrderByAggregateInput;
    _avg?: Prisma.spaces_countriesAvgOrderByAggregateInput;
    _max?: Prisma.spaces_countriesMaxOrderByAggregateInput;
    _min?: Prisma.spaces_countriesMinOrderByAggregateInput;
    _sum?: Prisma.spaces_countriesSumOrderByAggregateInput;
};
export type spaces_countriesScalarWhereWithAggregatesInput = {
    AND?: Prisma.spaces_countriesScalarWhereWithAggregatesInput | Prisma.spaces_countriesScalarWhereWithAggregatesInput[];
    OR?: Prisma.spaces_countriesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.spaces_countriesScalarWhereWithAggregatesInput | Prisma.spaces_countriesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"spaces_countries"> | number;
    spaces_id?: Prisma.IntNullableWithAggregatesFilter<"spaces_countries"> | number | null;
    countries_id?: Prisma.IntNullableWithAggregatesFilter<"spaces_countries"> | number | null;
};
export type spaces_countriesCreateInput = {
    countries?: Prisma.countriesCreateNestedOneWithoutSpaces_countriesInput;
    spaces?: Prisma.spacesCreateNestedOneWithoutSpaces_countriesInput;
};
export type spaces_countriesUncheckedCreateInput = {
    id?: number;
    spaces_id?: number | null;
    countries_id?: number | null;
};
export type spaces_countriesUpdateInput = {
    countries?: Prisma.countriesUpdateOneWithoutSpaces_countriesNestedInput;
    spaces?: Prisma.spacesUpdateOneWithoutSpaces_countriesNestedInput;
};
export type spaces_countriesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    countries_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_countriesCreateManyInput = {
    id?: number;
    spaces_id?: number | null;
    countries_id?: number | null;
};
export type spaces_countriesUpdateManyMutationInput = {};
export type spaces_countriesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    countries_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Spaces_countriesListRelationFilter = {
    every?: Prisma.spaces_countriesWhereInput;
    some?: Prisma.spaces_countriesWhereInput;
    none?: Prisma.spaces_countriesWhereInput;
};
export type spaces_countriesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type spaces_countriesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type spaces_countriesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type spaces_countriesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type spaces_countriesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type spaces_countriesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type spaces_countriesCreateNestedManyWithoutCountriesInput = {
    create?: Prisma.XOR<Prisma.spaces_countriesCreateWithoutCountriesInput, Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput> | Prisma.spaces_countriesCreateWithoutCountriesInput[] | Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput[];
    connectOrCreate?: Prisma.spaces_countriesCreateOrConnectWithoutCountriesInput | Prisma.spaces_countriesCreateOrConnectWithoutCountriesInput[];
    createMany?: Prisma.spaces_countriesCreateManyCountriesInputEnvelope;
    connect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
};
export type spaces_countriesUncheckedCreateNestedManyWithoutCountriesInput = {
    create?: Prisma.XOR<Prisma.spaces_countriesCreateWithoutCountriesInput, Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput> | Prisma.spaces_countriesCreateWithoutCountriesInput[] | Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput[];
    connectOrCreate?: Prisma.spaces_countriesCreateOrConnectWithoutCountriesInput | Prisma.spaces_countriesCreateOrConnectWithoutCountriesInput[];
    createMany?: Prisma.spaces_countriesCreateManyCountriesInputEnvelope;
    connect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
};
export type spaces_countriesUpdateManyWithoutCountriesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_countriesCreateWithoutCountriesInput, Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput> | Prisma.spaces_countriesCreateWithoutCountriesInput[] | Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput[];
    connectOrCreate?: Prisma.spaces_countriesCreateOrConnectWithoutCountriesInput | Prisma.spaces_countriesCreateOrConnectWithoutCountriesInput[];
    upsert?: Prisma.spaces_countriesUpsertWithWhereUniqueWithoutCountriesInput | Prisma.spaces_countriesUpsertWithWhereUniqueWithoutCountriesInput[];
    createMany?: Prisma.spaces_countriesCreateManyCountriesInputEnvelope;
    set?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    disconnect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    delete?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    connect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    update?: Prisma.spaces_countriesUpdateWithWhereUniqueWithoutCountriesInput | Prisma.spaces_countriesUpdateWithWhereUniqueWithoutCountriesInput[];
    updateMany?: Prisma.spaces_countriesUpdateManyWithWhereWithoutCountriesInput | Prisma.spaces_countriesUpdateManyWithWhereWithoutCountriesInput[];
    deleteMany?: Prisma.spaces_countriesScalarWhereInput | Prisma.spaces_countriesScalarWhereInput[];
};
export type spaces_countriesUncheckedUpdateManyWithoutCountriesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_countriesCreateWithoutCountriesInput, Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput> | Prisma.spaces_countriesCreateWithoutCountriesInput[] | Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput[];
    connectOrCreate?: Prisma.spaces_countriesCreateOrConnectWithoutCountriesInput | Prisma.spaces_countriesCreateOrConnectWithoutCountriesInput[];
    upsert?: Prisma.spaces_countriesUpsertWithWhereUniqueWithoutCountriesInput | Prisma.spaces_countriesUpsertWithWhereUniqueWithoutCountriesInput[];
    createMany?: Prisma.spaces_countriesCreateManyCountriesInputEnvelope;
    set?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    disconnect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    delete?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    connect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    update?: Prisma.spaces_countriesUpdateWithWhereUniqueWithoutCountriesInput | Prisma.spaces_countriesUpdateWithWhereUniqueWithoutCountriesInput[];
    updateMany?: Prisma.spaces_countriesUpdateManyWithWhereWithoutCountriesInput | Prisma.spaces_countriesUpdateManyWithWhereWithoutCountriesInput[];
    deleteMany?: Prisma.spaces_countriesScalarWhereInput | Prisma.spaces_countriesScalarWhereInput[];
};
export type spaces_countriesCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.spaces_countriesCreateWithoutSpacesInput, Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_countriesCreateWithoutSpacesInput[] | Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_countriesCreateOrConnectWithoutSpacesInput | Prisma.spaces_countriesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.spaces_countriesCreateManySpacesInputEnvelope;
    connect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
};
export type spaces_countriesUncheckedCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.spaces_countriesCreateWithoutSpacesInput, Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_countriesCreateWithoutSpacesInput[] | Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_countriesCreateOrConnectWithoutSpacesInput | Prisma.spaces_countriesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.spaces_countriesCreateManySpacesInputEnvelope;
    connect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
};
export type spaces_countriesUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_countriesCreateWithoutSpacesInput, Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_countriesCreateWithoutSpacesInput[] | Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_countriesCreateOrConnectWithoutSpacesInput | Prisma.spaces_countriesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.spaces_countriesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.spaces_countriesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.spaces_countriesCreateManySpacesInputEnvelope;
    set?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    disconnect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    delete?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    connect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    update?: Prisma.spaces_countriesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.spaces_countriesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.spaces_countriesUpdateManyWithWhereWithoutSpacesInput | Prisma.spaces_countriesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.spaces_countriesScalarWhereInput | Prisma.spaces_countriesScalarWhereInput[];
};
export type spaces_countriesUncheckedUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_countriesCreateWithoutSpacesInput, Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_countriesCreateWithoutSpacesInput[] | Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_countriesCreateOrConnectWithoutSpacesInput | Prisma.spaces_countriesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.spaces_countriesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.spaces_countriesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.spaces_countriesCreateManySpacesInputEnvelope;
    set?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    disconnect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    delete?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    connect?: Prisma.spaces_countriesWhereUniqueInput | Prisma.spaces_countriesWhereUniqueInput[];
    update?: Prisma.spaces_countriesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.spaces_countriesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.spaces_countriesUpdateManyWithWhereWithoutSpacesInput | Prisma.spaces_countriesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.spaces_countriesScalarWhereInput | Prisma.spaces_countriesScalarWhereInput[];
};
export type spaces_countriesCreateWithoutCountriesInput = {
    spaces?: Prisma.spacesCreateNestedOneWithoutSpaces_countriesInput;
};
export type spaces_countriesUncheckedCreateWithoutCountriesInput = {
    id?: number;
    spaces_id?: number | null;
};
export type spaces_countriesCreateOrConnectWithoutCountriesInput = {
    where: Prisma.spaces_countriesWhereUniqueInput;
    create: Prisma.XOR<Prisma.spaces_countriesCreateWithoutCountriesInput, Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput>;
};
export type spaces_countriesCreateManyCountriesInputEnvelope = {
    data: Prisma.spaces_countriesCreateManyCountriesInput | Prisma.spaces_countriesCreateManyCountriesInput[];
    skipDuplicates?: boolean;
};
export type spaces_countriesUpsertWithWhereUniqueWithoutCountriesInput = {
    where: Prisma.spaces_countriesWhereUniqueInput;
    update: Prisma.XOR<Prisma.spaces_countriesUpdateWithoutCountriesInput, Prisma.spaces_countriesUncheckedUpdateWithoutCountriesInput>;
    create: Prisma.XOR<Prisma.spaces_countriesCreateWithoutCountriesInput, Prisma.spaces_countriesUncheckedCreateWithoutCountriesInput>;
};
export type spaces_countriesUpdateWithWhereUniqueWithoutCountriesInput = {
    where: Prisma.spaces_countriesWhereUniqueInput;
    data: Prisma.XOR<Prisma.spaces_countriesUpdateWithoutCountriesInput, Prisma.spaces_countriesUncheckedUpdateWithoutCountriesInput>;
};
export type spaces_countriesUpdateManyWithWhereWithoutCountriesInput = {
    where: Prisma.spaces_countriesScalarWhereInput;
    data: Prisma.XOR<Prisma.spaces_countriesUpdateManyMutationInput, Prisma.spaces_countriesUncheckedUpdateManyWithoutCountriesInput>;
};
export type spaces_countriesScalarWhereInput = {
    AND?: Prisma.spaces_countriesScalarWhereInput | Prisma.spaces_countriesScalarWhereInput[];
    OR?: Prisma.spaces_countriesScalarWhereInput[];
    NOT?: Prisma.spaces_countriesScalarWhereInput | Prisma.spaces_countriesScalarWhereInput[];
    id?: Prisma.IntFilter<"spaces_countries"> | number;
    spaces_id?: Prisma.IntNullableFilter<"spaces_countries"> | number | null;
    countries_id?: Prisma.IntNullableFilter<"spaces_countries"> | number | null;
};
export type spaces_countriesCreateWithoutSpacesInput = {
    countries?: Prisma.countriesCreateNestedOneWithoutSpaces_countriesInput;
};
export type spaces_countriesUncheckedCreateWithoutSpacesInput = {
    id?: number;
    countries_id?: number | null;
};
export type spaces_countriesCreateOrConnectWithoutSpacesInput = {
    where: Prisma.spaces_countriesWhereUniqueInput;
    create: Prisma.XOR<Prisma.spaces_countriesCreateWithoutSpacesInput, Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput>;
};
export type spaces_countriesCreateManySpacesInputEnvelope = {
    data: Prisma.spaces_countriesCreateManySpacesInput | Prisma.spaces_countriesCreateManySpacesInput[];
    skipDuplicates?: boolean;
};
export type spaces_countriesUpsertWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.spaces_countriesWhereUniqueInput;
    update: Prisma.XOR<Prisma.spaces_countriesUpdateWithoutSpacesInput, Prisma.spaces_countriesUncheckedUpdateWithoutSpacesInput>;
    create: Prisma.XOR<Prisma.spaces_countriesCreateWithoutSpacesInput, Prisma.spaces_countriesUncheckedCreateWithoutSpacesInput>;
};
export type spaces_countriesUpdateWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.spaces_countriesWhereUniqueInput;
    data: Prisma.XOR<Prisma.spaces_countriesUpdateWithoutSpacesInput, Prisma.spaces_countriesUncheckedUpdateWithoutSpacesInput>;
};
export type spaces_countriesUpdateManyWithWhereWithoutSpacesInput = {
    where: Prisma.spaces_countriesScalarWhereInput;
    data: Prisma.XOR<Prisma.spaces_countriesUpdateManyMutationInput, Prisma.spaces_countriesUncheckedUpdateManyWithoutSpacesInput>;
};
export type spaces_countriesCreateManyCountriesInput = {
    id?: number;
    spaces_id?: number | null;
};
export type spaces_countriesUpdateWithoutCountriesInput = {
    spaces?: Prisma.spacesUpdateOneWithoutSpaces_countriesNestedInput;
};
export type spaces_countriesUncheckedUpdateWithoutCountriesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_countriesUncheckedUpdateManyWithoutCountriesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_countriesCreateManySpacesInput = {
    id?: number;
    countries_id?: number | null;
};
export type spaces_countriesUpdateWithoutSpacesInput = {
    countries?: Prisma.countriesUpdateOneWithoutSpaces_countriesNestedInput;
};
export type spaces_countriesUncheckedUpdateWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    countries_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_countriesUncheckedUpdateManyWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    countries_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_countriesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    countries_id?: boolean;
    countries?: boolean | Prisma.spaces_countries$countriesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_countries$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_countries"]>;
export type spaces_countriesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    countries_id?: boolean;
    countries?: boolean | Prisma.spaces_countries$countriesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_countries$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_countries"]>;
export type spaces_countriesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    countries_id?: boolean;
    countries?: boolean | Prisma.spaces_countries$countriesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_countries$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_countries"]>;
export type spaces_countriesSelectScalar = {
    id?: boolean;
    spaces_id?: boolean;
    countries_id?: boolean;
};
export type spaces_countriesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "spaces_id" | "countries_id", ExtArgs["result"]["spaces_countries"]>;
export type spaces_countriesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    countries?: boolean | Prisma.spaces_countries$countriesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_countries$spacesArgs<ExtArgs>;
};
export type spaces_countriesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    countries?: boolean | Prisma.spaces_countries$countriesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_countries$spacesArgs<ExtArgs>;
};
export type spaces_countriesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    countries?: boolean | Prisma.spaces_countries$countriesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_countries$spacesArgs<ExtArgs>;
};
export type $spaces_countriesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "spaces_countries";
    objects: {
        countries: Prisma.$countriesPayload<ExtArgs> | null;
        spaces: Prisma.$spacesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        spaces_id: number | null;
        countries_id: number | null;
    }, ExtArgs["result"]["spaces_countries"]>;
    composites: {};
};
export type spaces_countriesGetPayload<S extends boolean | null | undefined | spaces_countriesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload, S>;
export type spaces_countriesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<spaces_countriesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Spaces_countriesCountAggregateInputType | true;
};
export interface spaces_countriesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['spaces_countries'];
        meta: {
            name: 'spaces_countries';
        };
    };
    /**
     * Find zero or one Spaces_countries that matches the filter.
     * @param {spaces_countriesFindUniqueArgs} args - Arguments to find a Spaces_countries
     * @example
     * // Get one Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends spaces_countriesFindUniqueArgs>(args: Prisma.SelectSubset<T, spaces_countriesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__spaces_countriesClient<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Spaces_countries that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {spaces_countriesFindUniqueOrThrowArgs} args - Arguments to find a Spaces_countries
     * @example
     * // Get one Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends spaces_countriesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, spaces_countriesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__spaces_countriesClient<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Spaces_countries 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_countriesFindFirstArgs} args - Arguments to find a Spaces_countries
     * @example
     * // Get one Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends spaces_countriesFindFirstArgs>(args?: Prisma.SelectSubset<T, spaces_countriesFindFirstArgs<ExtArgs>>): Prisma.Prisma__spaces_countriesClient<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Spaces_countries 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_countriesFindFirstOrThrowArgs} args - Arguments to find a Spaces_countries
     * @example
     * // Get one Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends spaces_countriesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, spaces_countriesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__spaces_countriesClient<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Spaces_countries 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_countriesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.findMany()
     *
     * // Get first 10 Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const spaces_countriesWithIdOnly = await prisma.spaces_countries.findMany({ select: { id: true } })
     *
     */
    findMany<T extends spaces_countriesFindManyArgs>(args?: Prisma.SelectSubset<T, spaces_countriesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Spaces_countries.
     * @param {spaces_countriesCreateArgs} args - Arguments to create a Spaces_countries.
     * @example
     * // Create one Spaces_countries
     * const Spaces_countries = await prisma.spaces_countries.create({
     *   data: {
     *     // ... data to create a Spaces_countries
     *   }
     * })
     *
     */
    create<T extends spaces_countriesCreateArgs>(args: Prisma.SelectSubset<T, spaces_countriesCreateArgs<ExtArgs>>): Prisma.Prisma__spaces_countriesClient<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Spaces_countries.
     * @param {spaces_countriesCreateManyArgs} args - Arguments to create many Spaces_countries.
     * @example
     * // Create many Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends spaces_countriesCreateManyArgs>(args?: Prisma.SelectSubset<T, spaces_countriesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Spaces_countries and returns the data saved in the database.
     * @param {spaces_countriesCreateManyAndReturnArgs} args - Arguments to create many Spaces_countries.
     * @example
     * // Create many Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Spaces_countries and only return the `id`
     * const spaces_countriesWithIdOnly = await prisma.spaces_countries.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_countriesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, spaces_countriesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Spaces_countries.
     * @param {spaces_countriesDeleteArgs} args - Arguments to delete one Spaces_countries.
     * @example
     * // Delete one Spaces_countries
     * const Spaces_countries = await prisma.spaces_countries.delete({
     *   where: {
     *     // ... filter to delete one Spaces_countries
     *   }
     * })
     *
     */
    delete<T extends spaces_countriesDeleteArgs>(args: Prisma.SelectSubset<T, spaces_countriesDeleteArgs<ExtArgs>>): Prisma.Prisma__spaces_countriesClient<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Spaces_countries.
     * @param {spaces_countriesUpdateArgs} args - Arguments to update one Spaces_countries.
     * @example
     * // Update one Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends spaces_countriesUpdateArgs>(args: Prisma.SelectSubset<T, spaces_countriesUpdateArgs<ExtArgs>>): Prisma.Prisma__spaces_countriesClient<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Spaces_countries.
     * @param {spaces_countriesDeleteManyArgs} args - Arguments to filter Spaces_countries to delete.
     * @example
     * // Delete a few Spaces_countries
     * const { count } = await prisma.spaces_countries.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends spaces_countriesDeleteManyArgs>(args?: Prisma.SelectSubset<T, spaces_countriesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Spaces_countries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_countriesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends spaces_countriesUpdateManyArgs>(args: Prisma.SelectSubset<T, spaces_countriesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Spaces_countries and returns the data updated in the database.
     * @param {spaces_countriesUpdateManyAndReturnArgs} args - Arguments to update many Spaces_countries.
     * @example
     * // Update many Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Spaces_countries and only return the `id`
     * const spaces_countriesWithIdOnly = await prisma.spaces_countries.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_countriesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, spaces_countriesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Spaces_countries.
     * @param {spaces_countriesUpsertArgs} args - Arguments to update or create a Spaces_countries.
     * @example
     * // Update or create a Spaces_countries
     * const spaces_countries = await prisma.spaces_countries.upsert({
     *   create: {
     *     // ... data to create a Spaces_countries
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Spaces_countries we want to update
     *   }
     * })
     */
    upsert<T extends spaces_countriesUpsertArgs>(args: Prisma.SelectSubset<T, spaces_countriesUpsertArgs<ExtArgs>>): Prisma.Prisma__spaces_countriesClient<runtime.Types.Result.GetResult<Prisma.$spaces_countriesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Spaces_countries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_countriesCountArgs} args - Arguments to filter Spaces_countries to count.
     * @example
     * // Count the number of Spaces_countries
     * const count = await prisma.spaces_countries.count({
     *   where: {
     *     // ... the filter for the Spaces_countries we want to count
     *   }
     * })
    **/
    count<T extends spaces_countriesCountArgs>(args?: Prisma.Subset<T, spaces_countriesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Spaces_countriesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Spaces_countries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Spaces_countriesAggregateArgs} 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_countriesAggregateArgs>(args: Prisma.Subset<T, Spaces_countriesAggregateArgs>): Prisma.PrismaPromise<GetSpaces_countriesAggregateType<T>>;
    /**
     * Group by Spaces_countries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_countriesGroupByArgs} 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_countriesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: spaces_countriesGroupByArgs['orderBy'];
    } : {
        orderBy?: spaces_countriesGroupByArgs['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_countriesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSpaces_countriesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the spaces_countries model
     */
    readonly fields: spaces_countriesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for spaces_countries.
 * 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_countriesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    countries<T extends Prisma.spaces_countries$countriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.spaces_countries$countriesArgs<ExtArgs>>): Prisma.Prisma__countriesClient<runtime.Types.Result.GetResult<Prisma.$countriesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    spaces<T extends Prisma.spaces_countries$spacesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.spaces_countries$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 spaces_countries model
 */
export interface spaces_countriesFieldRefs {
    readonly id: Prisma.FieldRef<"spaces_countries", 'Int'>;
    readonly spaces_id: Prisma.FieldRef<"spaces_countries", 'Int'>;
    readonly countries_id: Prisma.FieldRef<"spaces_countries", 'Int'>;
}
/**
 * spaces_countries findUnique
 */
export type spaces_countriesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_countries to fetch.
     */
    where: Prisma.spaces_countriesWhereUniqueInput;
};
/**
 * spaces_countries findUniqueOrThrow
 */
export type spaces_countriesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_countries to fetch.
     */
    where: Prisma.spaces_countriesWhereUniqueInput;
};
/**
 * spaces_countries findFirst
 */
export type spaces_countriesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_countries to fetch.
     */
    where?: Prisma.spaces_countriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_countries to fetch.
     */
    orderBy?: Prisma.spaces_countriesOrderByWithRelationInput | Prisma.spaces_countriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for spaces_countries.
     */
    cursor?: Prisma.spaces_countriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_countries 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_countries.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of spaces_countries.
     */
    distinct?: Prisma.Spaces_countriesScalarFieldEnum | Prisma.Spaces_countriesScalarFieldEnum[];
};
/**
 * spaces_countries findFirstOrThrow
 */
export type spaces_countriesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_countries to fetch.
     */
    where?: Prisma.spaces_countriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_countries to fetch.
     */
    orderBy?: Prisma.spaces_countriesOrderByWithRelationInput | Prisma.spaces_countriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for spaces_countries.
     */
    cursor?: Prisma.spaces_countriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_countries 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_countries.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of spaces_countries.
     */
    distinct?: Prisma.Spaces_countriesScalarFieldEnum | Prisma.Spaces_countriesScalarFieldEnum[];
};
/**
 * spaces_countries findMany
 */
export type spaces_countriesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_countries to fetch.
     */
    where?: Prisma.spaces_countriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_countries to fetch.
     */
    orderBy?: Prisma.spaces_countriesOrderByWithRelationInput | Prisma.spaces_countriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing spaces_countries.
     */
    cursor?: Prisma.spaces_countriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_countries 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_countries.
     */
    skip?: number;
    distinct?: Prisma.Spaces_countriesScalarFieldEnum | Prisma.Spaces_countriesScalarFieldEnum[];
};
/**
 * spaces_countries create
 */
export type spaces_countriesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * The data needed to create a spaces_countries.
     */
    data?: Prisma.XOR<Prisma.spaces_countriesCreateInput, Prisma.spaces_countriesUncheckedCreateInput>;
};
/**
 * spaces_countries createMany
 */
export type spaces_countriesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many spaces_countries.
     */
    data: Prisma.spaces_countriesCreateManyInput | Prisma.spaces_countriesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * spaces_countries createManyAndReturn
 */
export type spaces_countriesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * The data used to create many spaces_countries.
     */
    data: Prisma.spaces_countriesCreateManyInput | Prisma.spaces_countriesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * spaces_countries update
 */
export type spaces_countriesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * The data needed to update a spaces_countries.
     */
    data: Prisma.XOR<Prisma.spaces_countriesUpdateInput, Prisma.spaces_countriesUncheckedUpdateInput>;
    /**
     * Choose, which spaces_countries to update.
     */
    where: Prisma.spaces_countriesWhereUniqueInput;
};
/**
 * spaces_countries updateMany
 */
export type spaces_countriesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update spaces_countries.
     */
    data: Prisma.XOR<Prisma.spaces_countriesUpdateManyMutationInput, Prisma.spaces_countriesUncheckedUpdateManyInput>;
    /**
     * Filter which spaces_countries to update
     */
    where?: Prisma.spaces_countriesWhereInput;
    /**
     * Limit how many spaces_countries to update.
     */
    limit?: number;
};
/**
 * spaces_countries updateManyAndReturn
 */
export type spaces_countriesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * The data used to update spaces_countries.
     */
    data: Prisma.XOR<Prisma.spaces_countriesUpdateManyMutationInput, Prisma.spaces_countriesUncheckedUpdateManyInput>;
    /**
     * Filter which spaces_countries to update
     */
    where?: Prisma.spaces_countriesWhereInput;
    /**
     * Limit how many spaces_countries to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * spaces_countries upsert
 */
export type spaces_countriesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * The filter to search for the spaces_countries to update in case it exists.
     */
    where: Prisma.spaces_countriesWhereUniqueInput;
    /**
     * In case the spaces_countries found by the `where` argument doesn't exist, create a new spaces_countries with this data.
     */
    create: Prisma.XOR<Prisma.spaces_countriesCreateInput, Prisma.spaces_countriesUncheckedCreateInput>;
    /**
     * In case the spaces_countries was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.spaces_countriesUpdateInput, Prisma.spaces_countriesUncheckedUpdateInput>;
};
/**
 * spaces_countries delete
 */
export type spaces_countriesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
    /**
     * Filter which spaces_countries to delete.
     */
    where: Prisma.spaces_countriesWhereUniqueInput;
};
/**
 * spaces_countries deleteMany
 */
export type spaces_countriesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which spaces_countries to delete
     */
    where?: Prisma.spaces_countriesWhereInput;
    /**
     * Limit how many spaces_countries to delete.
     */
    limit?: number;
};
/**
 * spaces_countries.countries
 */
export type spaces_countries$countriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the countries
     */
    select?: Prisma.countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the countries
     */
    omit?: Prisma.countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.countriesInclude<ExtArgs> | null;
    where?: Prisma.countriesWhereInput;
};
/**
 * spaces_countries.spaces
 */
export type spaces_countries$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_countries without action
 */
export type spaces_countriesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_countries
     */
    select?: Prisma.spaces_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_countries
     */
    omit?: Prisma.spaces_countriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_countriesInclude<ExtArgs> | null;
};
export {};
