import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model polls_spaces
 * This model contains row level security and requires additional setup for migrations. Visit https://pris.ly/d/row-level-security for more info.
 */
export type polls_spacesModel = runtime.Types.Result.DefaultSelection<Prisma.$polls_spacesPayload>;
export type AggregatePolls_spaces = {
    _count: Polls_spacesCountAggregateOutputType | null;
    _avg: Polls_spacesAvgAggregateOutputType | null;
    _sum: Polls_spacesSumAggregateOutputType | null;
    _min: Polls_spacesMinAggregateOutputType | null;
    _max: Polls_spacesMaxAggregateOutputType | null;
};
export type Polls_spacesAvgAggregateOutputType = {
    id: number | null;
    polls_id: number | null;
    spaces_id: number | null;
};
export type Polls_spacesSumAggregateOutputType = {
    id: number | null;
    polls_id: number | null;
    spaces_id: number | null;
};
export type Polls_spacesMinAggregateOutputType = {
    id: number | null;
    polls_id: number | null;
    spaces_id: number | null;
};
export type Polls_spacesMaxAggregateOutputType = {
    id: number | null;
    polls_id: number | null;
    spaces_id: number | null;
};
export type Polls_spacesCountAggregateOutputType = {
    id: number;
    polls_id: number;
    spaces_id: number;
    _all: number;
};
export type Polls_spacesAvgAggregateInputType = {
    id?: true;
    polls_id?: true;
    spaces_id?: true;
};
export type Polls_spacesSumAggregateInputType = {
    id?: true;
    polls_id?: true;
    spaces_id?: true;
};
export type Polls_spacesMinAggregateInputType = {
    id?: true;
    polls_id?: true;
    spaces_id?: true;
};
export type Polls_spacesMaxAggregateInputType = {
    id?: true;
    polls_id?: true;
    spaces_id?: true;
};
export type Polls_spacesCountAggregateInputType = {
    id?: true;
    polls_id?: true;
    spaces_id?: true;
    _all?: true;
};
export type Polls_spacesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which polls_spaces to aggregate.
     */
    where?: Prisma.polls_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of polls_spaces to fetch.
     */
    orderBy?: Prisma.polls_spacesOrderByWithRelationInput | Prisma.polls_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.polls_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` polls_spaces from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` polls_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned polls_spaces
    **/
    _count?: true | Polls_spacesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Polls_spacesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Polls_spacesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Polls_spacesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Polls_spacesMaxAggregateInputType;
};
export type GetPolls_spacesAggregateType<T extends Polls_spacesAggregateArgs> = {
    [P in keyof T & keyof AggregatePolls_spaces]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePolls_spaces[P]> : Prisma.GetScalarType<T[P], AggregatePolls_spaces[P]>;
};
export type polls_spacesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.polls_spacesWhereInput;
    orderBy?: Prisma.polls_spacesOrderByWithAggregationInput | Prisma.polls_spacesOrderByWithAggregationInput[];
    by: Prisma.Polls_spacesScalarFieldEnum[] | Prisma.Polls_spacesScalarFieldEnum;
    having?: Prisma.polls_spacesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Polls_spacesCountAggregateInputType | true;
    _avg?: Polls_spacesAvgAggregateInputType;
    _sum?: Polls_spacesSumAggregateInputType;
    _min?: Polls_spacesMinAggregateInputType;
    _max?: Polls_spacesMaxAggregateInputType;
};
export type Polls_spacesGroupByOutputType = {
    id: number;
    polls_id: number | null;
    spaces_id: number | null;
    _count: Polls_spacesCountAggregateOutputType | null;
    _avg: Polls_spacesAvgAggregateOutputType | null;
    _sum: Polls_spacesSumAggregateOutputType | null;
    _min: Polls_spacesMinAggregateOutputType | null;
    _max: Polls_spacesMaxAggregateOutputType | null;
};
type GetPolls_spacesGroupByPayload<T extends polls_spacesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Polls_spacesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Polls_spacesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Polls_spacesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Polls_spacesGroupByOutputType[P]>;
}>>;
export type polls_spacesWhereInput = {
    AND?: Prisma.polls_spacesWhereInput | Prisma.polls_spacesWhereInput[];
    OR?: Prisma.polls_spacesWhereInput[];
    NOT?: Prisma.polls_spacesWhereInput | Prisma.polls_spacesWhereInput[];
    id?: Prisma.IntFilter<"polls_spaces"> | number;
    polls_id?: Prisma.IntNullableFilter<"polls_spaces"> | number | null;
    spaces_id?: Prisma.IntNullableFilter<"polls_spaces"> | number | null;
    polls?: Prisma.XOR<Prisma.PollsNullableScalarRelationFilter, Prisma.pollsWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
};
export type polls_spacesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    polls_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    polls?: Prisma.pollsOrderByWithRelationInput;
    spaces?: Prisma.spacesOrderByWithRelationInput;
};
export type polls_spacesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.polls_spacesWhereInput | Prisma.polls_spacesWhereInput[];
    OR?: Prisma.polls_spacesWhereInput[];
    NOT?: Prisma.polls_spacesWhereInput | Prisma.polls_spacesWhereInput[];
    polls_id?: Prisma.IntNullableFilter<"polls_spaces"> | number | null;
    spaces_id?: Prisma.IntNullableFilter<"polls_spaces"> | number | null;
    polls?: Prisma.XOR<Prisma.PollsNullableScalarRelationFilter, Prisma.pollsWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
}, "id">;
export type polls_spacesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    polls_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.polls_spacesCountOrderByAggregateInput;
    _avg?: Prisma.polls_spacesAvgOrderByAggregateInput;
    _max?: Prisma.polls_spacesMaxOrderByAggregateInput;
    _min?: Prisma.polls_spacesMinOrderByAggregateInput;
    _sum?: Prisma.polls_spacesSumOrderByAggregateInput;
};
export type polls_spacesScalarWhereWithAggregatesInput = {
    AND?: Prisma.polls_spacesScalarWhereWithAggregatesInput | Prisma.polls_spacesScalarWhereWithAggregatesInput[];
    OR?: Prisma.polls_spacesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.polls_spacesScalarWhereWithAggregatesInput | Prisma.polls_spacesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"polls_spaces"> | number;
    polls_id?: Prisma.IntNullableWithAggregatesFilter<"polls_spaces"> | number | null;
    spaces_id?: Prisma.IntNullableWithAggregatesFilter<"polls_spaces"> | number | null;
};
export type polls_spacesCreateInput = {
    polls?: Prisma.pollsCreateNestedOneWithoutPolls_spacesInput;
    spaces?: Prisma.spacesCreateNestedOneWithoutPolls_spacesInput;
};
export type polls_spacesUncheckedCreateInput = {
    id?: number;
    polls_id?: number | null;
    spaces_id?: number | null;
};
export type polls_spacesUpdateInput = {
    polls?: Prisma.pollsUpdateOneWithoutPolls_spacesNestedInput;
    spaces?: Prisma.spacesUpdateOneWithoutPolls_spacesNestedInput;
};
export type polls_spacesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    polls_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type polls_spacesCreateManyInput = {
    id?: number;
    polls_id?: number | null;
    spaces_id?: number | null;
};
export type polls_spacesUpdateManyMutationInput = {};
export type polls_spacesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    polls_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Polls_spacesListRelationFilter = {
    every?: Prisma.polls_spacesWhereInput;
    some?: Prisma.polls_spacesWhereInput;
    none?: Prisma.polls_spacesWhereInput;
};
export type polls_spacesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type polls_spacesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    polls_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type polls_spacesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    polls_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type polls_spacesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    polls_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type polls_spacesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    polls_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type polls_spacesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    polls_id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type polls_spacesCreateNestedManyWithoutPollsInput = {
    create?: Prisma.XOR<Prisma.polls_spacesCreateWithoutPollsInput, Prisma.polls_spacesUncheckedCreateWithoutPollsInput> | Prisma.polls_spacesCreateWithoutPollsInput[] | Prisma.polls_spacesUncheckedCreateWithoutPollsInput[];
    connectOrCreate?: Prisma.polls_spacesCreateOrConnectWithoutPollsInput | Prisma.polls_spacesCreateOrConnectWithoutPollsInput[];
    createMany?: Prisma.polls_spacesCreateManyPollsInputEnvelope;
    connect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
};
export type polls_spacesUncheckedCreateNestedManyWithoutPollsInput = {
    create?: Prisma.XOR<Prisma.polls_spacesCreateWithoutPollsInput, Prisma.polls_spacesUncheckedCreateWithoutPollsInput> | Prisma.polls_spacesCreateWithoutPollsInput[] | Prisma.polls_spacesUncheckedCreateWithoutPollsInput[];
    connectOrCreate?: Prisma.polls_spacesCreateOrConnectWithoutPollsInput | Prisma.polls_spacesCreateOrConnectWithoutPollsInput[];
    createMany?: Prisma.polls_spacesCreateManyPollsInputEnvelope;
    connect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
};
export type polls_spacesUpdateManyWithoutPollsNestedInput = {
    create?: Prisma.XOR<Prisma.polls_spacesCreateWithoutPollsInput, Prisma.polls_spacesUncheckedCreateWithoutPollsInput> | Prisma.polls_spacesCreateWithoutPollsInput[] | Prisma.polls_spacesUncheckedCreateWithoutPollsInput[];
    connectOrCreate?: Prisma.polls_spacesCreateOrConnectWithoutPollsInput | Prisma.polls_spacesCreateOrConnectWithoutPollsInput[];
    upsert?: Prisma.polls_spacesUpsertWithWhereUniqueWithoutPollsInput | Prisma.polls_spacesUpsertWithWhereUniqueWithoutPollsInput[];
    createMany?: Prisma.polls_spacesCreateManyPollsInputEnvelope;
    set?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    disconnect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    delete?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    connect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    update?: Prisma.polls_spacesUpdateWithWhereUniqueWithoutPollsInput | Prisma.polls_spacesUpdateWithWhereUniqueWithoutPollsInput[];
    updateMany?: Prisma.polls_spacesUpdateManyWithWhereWithoutPollsInput | Prisma.polls_spacesUpdateManyWithWhereWithoutPollsInput[];
    deleteMany?: Prisma.polls_spacesScalarWhereInput | Prisma.polls_spacesScalarWhereInput[];
};
export type polls_spacesUncheckedUpdateManyWithoutPollsNestedInput = {
    create?: Prisma.XOR<Prisma.polls_spacesCreateWithoutPollsInput, Prisma.polls_spacesUncheckedCreateWithoutPollsInput> | Prisma.polls_spacesCreateWithoutPollsInput[] | Prisma.polls_spacesUncheckedCreateWithoutPollsInput[];
    connectOrCreate?: Prisma.polls_spacesCreateOrConnectWithoutPollsInput | Prisma.polls_spacesCreateOrConnectWithoutPollsInput[];
    upsert?: Prisma.polls_spacesUpsertWithWhereUniqueWithoutPollsInput | Prisma.polls_spacesUpsertWithWhereUniqueWithoutPollsInput[];
    createMany?: Prisma.polls_spacesCreateManyPollsInputEnvelope;
    set?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    disconnect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    delete?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    connect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    update?: Prisma.polls_spacesUpdateWithWhereUniqueWithoutPollsInput | Prisma.polls_spacesUpdateWithWhereUniqueWithoutPollsInput[];
    updateMany?: Prisma.polls_spacesUpdateManyWithWhereWithoutPollsInput | Prisma.polls_spacesUpdateManyWithWhereWithoutPollsInput[];
    deleteMany?: Prisma.polls_spacesScalarWhereInput | Prisma.polls_spacesScalarWhereInput[];
};
export type polls_spacesCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.polls_spacesCreateWithoutSpacesInput, Prisma.polls_spacesUncheckedCreateWithoutSpacesInput> | Prisma.polls_spacesCreateWithoutSpacesInput[] | Prisma.polls_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.polls_spacesCreateOrConnectWithoutSpacesInput | Prisma.polls_spacesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.polls_spacesCreateManySpacesInputEnvelope;
    connect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
};
export type polls_spacesUncheckedCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.polls_spacesCreateWithoutSpacesInput, Prisma.polls_spacesUncheckedCreateWithoutSpacesInput> | Prisma.polls_spacesCreateWithoutSpacesInput[] | Prisma.polls_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.polls_spacesCreateOrConnectWithoutSpacesInput | Prisma.polls_spacesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.polls_spacesCreateManySpacesInputEnvelope;
    connect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
};
export type polls_spacesUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.polls_spacesCreateWithoutSpacesInput, Prisma.polls_spacesUncheckedCreateWithoutSpacesInput> | Prisma.polls_spacesCreateWithoutSpacesInput[] | Prisma.polls_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.polls_spacesCreateOrConnectWithoutSpacesInput | Prisma.polls_spacesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.polls_spacesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.polls_spacesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.polls_spacesCreateManySpacesInputEnvelope;
    set?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    disconnect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    delete?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    connect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    update?: Prisma.polls_spacesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.polls_spacesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.polls_spacesUpdateManyWithWhereWithoutSpacesInput | Prisma.polls_spacesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.polls_spacesScalarWhereInput | Prisma.polls_spacesScalarWhereInput[];
};
export type polls_spacesUncheckedUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.polls_spacesCreateWithoutSpacesInput, Prisma.polls_spacesUncheckedCreateWithoutSpacesInput> | Prisma.polls_spacesCreateWithoutSpacesInput[] | Prisma.polls_spacesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.polls_spacesCreateOrConnectWithoutSpacesInput | Prisma.polls_spacesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.polls_spacesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.polls_spacesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.polls_spacesCreateManySpacesInputEnvelope;
    set?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    disconnect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    delete?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    connect?: Prisma.polls_spacesWhereUniqueInput | Prisma.polls_spacesWhereUniqueInput[];
    update?: Prisma.polls_spacesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.polls_spacesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.polls_spacesUpdateManyWithWhereWithoutSpacesInput | Prisma.polls_spacesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.polls_spacesScalarWhereInput | Prisma.polls_spacesScalarWhereInput[];
};
export type polls_spacesCreateWithoutPollsInput = {
    spaces?: Prisma.spacesCreateNestedOneWithoutPolls_spacesInput;
};
export type polls_spacesUncheckedCreateWithoutPollsInput = {
    id?: number;
    spaces_id?: number | null;
};
export type polls_spacesCreateOrConnectWithoutPollsInput = {
    where: Prisma.polls_spacesWhereUniqueInput;
    create: Prisma.XOR<Prisma.polls_spacesCreateWithoutPollsInput, Prisma.polls_spacesUncheckedCreateWithoutPollsInput>;
};
export type polls_spacesCreateManyPollsInputEnvelope = {
    data: Prisma.polls_spacesCreateManyPollsInput | Prisma.polls_spacesCreateManyPollsInput[];
    skipDuplicates?: boolean;
};
export type polls_spacesUpsertWithWhereUniqueWithoutPollsInput = {
    where: Prisma.polls_spacesWhereUniqueInput;
    update: Prisma.XOR<Prisma.polls_spacesUpdateWithoutPollsInput, Prisma.polls_spacesUncheckedUpdateWithoutPollsInput>;
    create: Prisma.XOR<Prisma.polls_spacesCreateWithoutPollsInput, Prisma.polls_spacesUncheckedCreateWithoutPollsInput>;
};
export type polls_spacesUpdateWithWhereUniqueWithoutPollsInput = {
    where: Prisma.polls_spacesWhereUniqueInput;
    data: Prisma.XOR<Prisma.polls_spacesUpdateWithoutPollsInput, Prisma.polls_spacesUncheckedUpdateWithoutPollsInput>;
};
export type polls_spacesUpdateManyWithWhereWithoutPollsInput = {
    where: Prisma.polls_spacesScalarWhereInput;
    data: Prisma.XOR<Prisma.polls_spacesUpdateManyMutationInput, Prisma.polls_spacesUncheckedUpdateManyWithoutPollsInput>;
};
export type polls_spacesScalarWhereInput = {
    AND?: Prisma.polls_spacesScalarWhereInput | Prisma.polls_spacesScalarWhereInput[];
    OR?: Prisma.polls_spacesScalarWhereInput[];
    NOT?: Prisma.polls_spacesScalarWhereInput | Prisma.polls_spacesScalarWhereInput[];
    id?: Prisma.IntFilter<"polls_spaces"> | number;
    polls_id?: Prisma.IntNullableFilter<"polls_spaces"> | number | null;
    spaces_id?: Prisma.IntNullableFilter<"polls_spaces"> | number | null;
};
export type polls_spacesCreateWithoutSpacesInput = {
    polls?: Prisma.pollsCreateNestedOneWithoutPolls_spacesInput;
};
export type polls_spacesUncheckedCreateWithoutSpacesInput = {
    id?: number;
    polls_id?: number | null;
};
export type polls_spacesCreateOrConnectWithoutSpacesInput = {
    where: Prisma.polls_spacesWhereUniqueInput;
    create: Prisma.XOR<Prisma.polls_spacesCreateWithoutSpacesInput, Prisma.polls_spacesUncheckedCreateWithoutSpacesInput>;
};
export type polls_spacesCreateManySpacesInputEnvelope = {
    data: Prisma.polls_spacesCreateManySpacesInput | Prisma.polls_spacesCreateManySpacesInput[];
    skipDuplicates?: boolean;
};
export type polls_spacesUpsertWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.polls_spacesWhereUniqueInput;
    update: Prisma.XOR<Prisma.polls_spacesUpdateWithoutSpacesInput, Prisma.polls_spacesUncheckedUpdateWithoutSpacesInput>;
    create: Prisma.XOR<Prisma.polls_spacesCreateWithoutSpacesInput, Prisma.polls_spacesUncheckedCreateWithoutSpacesInput>;
};
export type polls_spacesUpdateWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.polls_spacesWhereUniqueInput;
    data: Prisma.XOR<Prisma.polls_spacesUpdateWithoutSpacesInput, Prisma.polls_spacesUncheckedUpdateWithoutSpacesInput>;
};
export type polls_spacesUpdateManyWithWhereWithoutSpacesInput = {
    where: Prisma.polls_spacesScalarWhereInput;
    data: Prisma.XOR<Prisma.polls_spacesUpdateManyMutationInput, Prisma.polls_spacesUncheckedUpdateManyWithoutSpacesInput>;
};
export type polls_spacesCreateManyPollsInput = {
    id?: number;
    spaces_id?: number | null;
};
export type polls_spacesUpdateWithoutPollsInput = {
    spaces?: Prisma.spacesUpdateOneWithoutPolls_spacesNestedInput;
};
export type polls_spacesUncheckedUpdateWithoutPollsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type polls_spacesUncheckedUpdateManyWithoutPollsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type polls_spacesCreateManySpacesInput = {
    id?: number;
    polls_id?: number | null;
};
export type polls_spacesUpdateWithoutSpacesInput = {
    polls?: Prisma.pollsUpdateOneWithoutPolls_spacesNestedInput;
};
export type polls_spacesUncheckedUpdateWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    polls_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type polls_spacesUncheckedUpdateManyWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    polls_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type polls_spacesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    polls_id?: boolean;
    spaces_id?: boolean;
    polls?: boolean | Prisma.polls_spaces$pollsArgs<ExtArgs>;
    spaces?: boolean | Prisma.polls_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["polls_spaces"]>;
export type polls_spacesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    polls_id?: boolean;
    spaces_id?: boolean;
    polls?: boolean | Prisma.polls_spaces$pollsArgs<ExtArgs>;
    spaces?: boolean | Prisma.polls_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["polls_spaces"]>;
export type polls_spacesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    polls_id?: boolean;
    spaces_id?: boolean;
    polls?: boolean | Prisma.polls_spaces$pollsArgs<ExtArgs>;
    spaces?: boolean | Prisma.polls_spaces$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["polls_spaces"]>;
export type polls_spacesSelectScalar = {
    id?: boolean;
    polls_id?: boolean;
    spaces_id?: boolean;
};
export type polls_spacesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "polls_id" | "spaces_id", ExtArgs["result"]["polls_spaces"]>;
export type polls_spacesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    polls?: boolean | Prisma.polls_spaces$pollsArgs<ExtArgs>;
    spaces?: boolean | Prisma.polls_spaces$spacesArgs<ExtArgs>;
};
export type polls_spacesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    polls?: boolean | Prisma.polls_spaces$pollsArgs<ExtArgs>;
    spaces?: boolean | Prisma.polls_spaces$spacesArgs<ExtArgs>;
};
export type polls_spacesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    polls?: boolean | Prisma.polls_spaces$pollsArgs<ExtArgs>;
    spaces?: boolean | Prisma.polls_spaces$spacesArgs<ExtArgs>;
};
export type $polls_spacesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "polls_spaces";
    objects: {
        polls: Prisma.$pollsPayload<ExtArgs> | null;
        spaces: Prisma.$spacesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        polls_id: number | null;
        spaces_id: number | null;
    }, ExtArgs["result"]["polls_spaces"]>;
    composites: {};
};
export type polls_spacesGetPayload<S extends boolean | null | undefined | polls_spacesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload, S>;
export type polls_spacesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<polls_spacesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Polls_spacesCountAggregateInputType | true;
};
export interface polls_spacesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['polls_spaces'];
        meta: {
            name: 'polls_spaces';
        };
    };
    /**
     * Find zero or one Polls_spaces that matches the filter.
     * @param {polls_spacesFindUniqueArgs} args - Arguments to find a Polls_spaces
     * @example
     * // Get one Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends polls_spacesFindUniqueArgs>(args: Prisma.SelectSubset<T, polls_spacesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__polls_spacesClient<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Polls_spaces that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {polls_spacesFindUniqueOrThrowArgs} args - Arguments to find a Polls_spaces
     * @example
     * // Get one Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends polls_spacesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, polls_spacesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__polls_spacesClient<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Polls_spaces that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {polls_spacesFindFirstArgs} args - Arguments to find a Polls_spaces
     * @example
     * // Get one Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends polls_spacesFindFirstArgs>(args?: Prisma.SelectSubset<T, polls_spacesFindFirstArgs<ExtArgs>>): Prisma.Prisma__polls_spacesClient<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Polls_spaces that matches the filter or
     * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {polls_spacesFindFirstOrThrowArgs} args - Arguments to find a Polls_spaces
     * @example
     * // Get one Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends polls_spacesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, polls_spacesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__polls_spacesClient<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Polls_spaces that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {polls_spacesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.findMany()
     *
     * // Get first 10 Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const polls_spacesWithIdOnly = await prisma.polls_spaces.findMany({ select: { id: true } })
     *
     */
    findMany<T extends polls_spacesFindManyArgs>(args?: Prisma.SelectSubset<T, polls_spacesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Polls_spaces.
     * @param {polls_spacesCreateArgs} args - Arguments to create a Polls_spaces.
     * @example
     * // Create one Polls_spaces
     * const Polls_spaces = await prisma.polls_spaces.create({
     *   data: {
     *     // ... data to create a Polls_spaces
     *   }
     * })
     *
     */
    create<T extends polls_spacesCreateArgs>(args: Prisma.SelectSubset<T, polls_spacesCreateArgs<ExtArgs>>): Prisma.Prisma__polls_spacesClient<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Polls_spaces.
     * @param {polls_spacesCreateManyArgs} args - Arguments to create many Polls_spaces.
     * @example
     * // Create many Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends polls_spacesCreateManyArgs>(args?: Prisma.SelectSubset<T, polls_spacesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Polls_spaces and returns the data saved in the database.
     * @param {polls_spacesCreateManyAndReturnArgs} args - Arguments to create many Polls_spaces.
     * @example
     * // Create many Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Polls_spaces and only return the `id`
     * const polls_spacesWithIdOnly = await prisma.polls_spaces.createManyAndReturn({
     *   select: { id: true },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    createManyAndReturn<T extends polls_spacesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, polls_spacesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Polls_spaces.
     * @param {polls_spacesDeleteArgs} args - Arguments to delete one Polls_spaces.
     * @example
     * // Delete one Polls_spaces
     * const Polls_spaces = await prisma.polls_spaces.delete({
     *   where: {
     *     // ... filter to delete one Polls_spaces
     *   }
     * })
     *
     */
    delete<T extends polls_spacesDeleteArgs>(args: Prisma.SelectSubset<T, polls_spacesDeleteArgs<ExtArgs>>): Prisma.Prisma__polls_spacesClient<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Polls_spaces.
     * @param {polls_spacesUpdateArgs} args - Arguments to update one Polls_spaces.
     * @example
     * // Update one Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends polls_spacesUpdateArgs>(args: Prisma.SelectSubset<T, polls_spacesUpdateArgs<ExtArgs>>): Prisma.Prisma__polls_spacesClient<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Polls_spaces.
     * @param {polls_spacesDeleteManyArgs} args - Arguments to filter Polls_spaces to delete.
     * @example
     * // Delete a few Polls_spaces
     * const { count } = await prisma.polls_spaces.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends polls_spacesDeleteManyArgs>(args?: Prisma.SelectSubset<T, polls_spacesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Polls_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {polls_spacesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends polls_spacesUpdateManyArgs>(args: Prisma.SelectSubset<T, polls_spacesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Polls_spaces and returns the data updated in the database.
     * @param {polls_spacesUpdateManyAndReturnArgs} args - Arguments to update many Polls_spaces.
     * @example
     * // Update many Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Polls_spaces and only return the `id`
     * const polls_spacesWithIdOnly = await prisma.polls_spaces.updateManyAndReturn({
     *   select: { id: true },
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    updateManyAndReturn<T extends polls_spacesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, polls_spacesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Polls_spaces.
     * @param {polls_spacesUpsertArgs} args - Arguments to update or create a Polls_spaces.
     * @example
     * // Update or create a Polls_spaces
     * const polls_spaces = await prisma.polls_spaces.upsert({
     *   create: {
     *     // ... data to create a Polls_spaces
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Polls_spaces we want to update
     *   }
     * })
     */
    upsert<T extends polls_spacesUpsertArgs>(args: Prisma.SelectSubset<T, polls_spacesUpsertArgs<ExtArgs>>): Prisma.Prisma__polls_spacesClient<runtime.Types.Result.GetResult<Prisma.$polls_spacesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Polls_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {polls_spacesCountArgs} args - Arguments to filter Polls_spaces to count.
     * @example
     * // Count the number of Polls_spaces
     * const count = await prisma.polls_spaces.count({
     *   where: {
     *     // ... the filter for the Polls_spaces we want to count
     *   }
     * })
    **/
    count<T extends polls_spacesCountArgs>(args?: Prisma.Subset<T, polls_spacesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Polls_spacesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Polls_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Polls_spacesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
     * @example
     * // Ordered by age ascending
     * // Where email contains prisma.io
     * // Limited to the 10 users
     * const aggregations = await prisma.user.aggregate({
     *   _avg: {
     *     age: true,
     *   },
     *   where: {
     *     email: {
     *       contains: "prisma.io",
     *     },
     *   },
     *   orderBy: {
     *     age: "asc",
     *   },
     *   take: 10,
     * })
    **/
    aggregate<T extends Polls_spacesAggregateArgs>(args: Prisma.Subset<T, Polls_spacesAggregateArgs>): Prisma.PrismaPromise<GetPolls_spacesAggregateType<T>>;
    /**
     * Group by Polls_spaces.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {polls_spacesGroupByArgs} args - Group by arguments.
     * @example
     * // Group by city, order by createdAt, get count
     * const result = await prisma.user.groupBy({
     *   by: ['city', 'createdAt'],
     *   orderBy: {
     *     createdAt: true
     *   },
     *   _count: {
     *     _all: true
     *   },
     * })
     *
    **/
    groupBy<T extends polls_spacesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: polls_spacesGroupByArgs['orderBy'];
    } : {
        orderBy?: polls_spacesGroupByArgs['orderBy'];
    }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
        [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
            Error,
            'Field ',
            P,
            ` in "having" needs to be provided in "by"`
        ];
    }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields]>(args: Prisma.SubsetIntersection<T, polls_spacesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPolls_spacesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the polls_spaces model
     */
    readonly fields: polls_spacesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for polls_spaces.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__polls_spacesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    polls<T extends Prisma.polls_spaces$pollsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.polls_spaces$pollsArgs<ExtArgs>>): Prisma.Prisma__pollsClient<runtime.Types.Result.GetResult<Prisma.$pollsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    spaces<T extends Prisma.polls_spaces$spacesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.polls_spaces$spacesArgs<ExtArgs>>): Prisma.Prisma__spacesClient<runtime.Types.Result.GetResult<Prisma.$spacesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
}
/**
 * Fields of the polls_spaces model
 */
export interface polls_spacesFieldRefs {
    readonly id: Prisma.FieldRef<"polls_spaces", 'Int'>;
    readonly polls_id: Prisma.FieldRef<"polls_spaces", 'Int'>;
    readonly spaces_id: Prisma.FieldRef<"polls_spaces", 'Int'>;
}
/**
 * polls_spaces findUnique
 */
export type polls_spacesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which polls_spaces to fetch.
     */
    where: Prisma.polls_spacesWhereUniqueInput;
};
/**
 * polls_spaces findUniqueOrThrow
 */
export type polls_spacesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which polls_spaces to fetch.
     */
    where: Prisma.polls_spacesWhereUniqueInput;
};
/**
 * polls_spaces findFirst
 */
export type polls_spacesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which polls_spaces to fetch.
     */
    where?: Prisma.polls_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of polls_spaces to fetch.
     */
    orderBy?: Prisma.polls_spacesOrderByWithRelationInput | Prisma.polls_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for polls_spaces.
     */
    cursor?: Prisma.polls_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` polls_spaces from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` polls_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of polls_spaces.
     */
    distinct?: Prisma.Polls_spacesScalarFieldEnum | Prisma.Polls_spacesScalarFieldEnum[];
};
/**
 * polls_spaces findFirstOrThrow
 */
export type polls_spacesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which polls_spaces to fetch.
     */
    where?: Prisma.polls_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of polls_spaces to fetch.
     */
    orderBy?: Prisma.polls_spacesOrderByWithRelationInput | Prisma.polls_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for polls_spaces.
     */
    cursor?: Prisma.polls_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` polls_spaces from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` polls_spaces.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of polls_spaces.
     */
    distinct?: Prisma.Polls_spacesScalarFieldEnum | Prisma.Polls_spacesScalarFieldEnum[];
};
/**
 * polls_spaces findMany
 */
export type polls_spacesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * Filter, which polls_spaces to fetch.
     */
    where?: Prisma.polls_spacesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of polls_spaces to fetch.
     */
    orderBy?: Prisma.polls_spacesOrderByWithRelationInput | Prisma.polls_spacesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing polls_spaces.
     */
    cursor?: Prisma.polls_spacesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` polls_spaces from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` polls_spaces.
     */
    skip?: number;
    distinct?: Prisma.Polls_spacesScalarFieldEnum | Prisma.Polls_spacesScalarFieldEnum[];
};
/**
 * polls_spaces create
 */
export type polls_spacesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * The data needed to create a polls_spaces.
     */
    data?: Prisma.XOR<Prisma.polls_spacesCreateInput, Prisma.polls_spacesUncheckedCreateInput>;
};
/**
 * polls_spaces createMany
 */
export type polls_spacesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many polls_spaces.
     */
    data: Prisma.polls_spacesCreateManyInput | Prisma.polls_spacesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * polls_spaces createManyAndReturn
 */
export type polls_spacesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * The data used to create many polls_spaces.
     */
    data: Prisma.polls_spacesCreateManyInput | Prisma.polls_spacesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * polls_spaces update
 */
export type polls_spacesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * The data needed to update a polls_spaces.
     */
    data: Prisma.XOR<Prisma.polls_spacesUpdateInput, Prisma.polls_spacesUncheckedUpdateInput>;
    /**
     * Choose, which polls_spaces to update.
     */
    where: Prisma.polls_spacesWhereUniqueInput;
};
/**
 * polls_spaces updateMany
 */
export type polls_spacesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update polls_spaces.
     */
    data: Prisma.XOR<Prisma.polls_spacesUpdateManyMutationInput, Prisma.polls_spacesUncheckedUpdateManyInput>;
    /**
     * Filter which polls_spaces to update
     */
    where?: Prisma.polls_spacesWhereInput;
    /**
     * Limit how many polls_spaces to update.
     */
    limit?: number;
};
/**
 * polls_spaces updateManyAndReturn
 */
export type polls_spacesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * The data used to update polls_spaces.
     */
    data: Prisma.XOR<Prisma.polls_spacesUpdateManyMutationInput, Prisma.polls_spacesUncheckedUpdateManyInput>;
    /**
     * Filter which polls_spaces to update
     */
    where?: Prisma.polls_spacesWhereInput;
    /**
     * Limit how many polls_spaces to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * polls_spaces upsert
 */
export type polls_spacesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * The filter to search for the polls_spaces to update in case it exists.
     */
    where: Prisma.polls_spacesWhereUniqueInput;
    /**
     * In case the polls_spaces found by the `where` argument doesn't exist, create a new polls_spaces with this data.
     */
    create: Prisma.XOR<Prisma.polls_spacesCreateInput, Prisma.polls_spacesUncheckedCreateInput>;
    /**
     * In case the polls_spaces was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.polls_spacesUpdateInput, Prisma.polls_spacesUncheckedUpdateInput>;
};
/**
 * polls_spaces delete
 */
export type polls_spacesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
    /**
     * Filter which polls_spaces to delete.
     */
    where: Prisma.polls_spacesWhereUniqueInput;
};
/**
 * polls_spaces deleteMany
 */
export type polls_spacesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which polls_spaces to delete
     */
    where?: Prisma.polls_spacesWhereInput;
    /**
     * Limit how many polls_spaces to delete.
     */
    limit?: number;
};
/**
 * polls_spaces.polls
 */
export type polls_spaces$pollsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls
     */
    select?: Prisma.pollsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls
     */
    omit?: Prisma.pollsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.pollsInclude<ExtArgs> | null;
    where?: Prisma.pollsWhereInput;
};
/**
 * polls_spaces.spaces
 */
export type polls_spaces$spacesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces
     */
    select?: Prisma.spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces
     */
    omit?: Prisma.spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spacesInclude<ExtArgs> | null;
    where?: Prisma.spacesWhereInput;
};
/**
 * polls_spaces without action
 */
export type polls_spacesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the polls_spaces
     */
    select?: Prisma.polls_spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the polls_spaces
     */
    omit?: Prisma.polls_spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.polls_spacesInclude<ExtArgs> | null;
};
export {};
