import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model templates_space_types
 * 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 templates_space_typesModel = runtime.Types.Result.DefaultSelection<Prisma.$templates_space_typesPayload>;
export type AggregateTemplates_space_types = {
    _count: Templates_space_typesCountAggregateOutputType | null;
    _avg: Templates_space_typesAvgAggregateOutputType | null;
    _sum: Templates_space_typesSumAggregateOutputType | null;
    _min: Templates_space_typesMinAggregateOutputType | null;
    _max: Templates_space_typesMaxAggregateOutputType | null;
};
export type Templates_space_typesAvgAggregateOutputType = {
    id: number | null;
    templates_id: number | null;
    space_types_id: number | null;
};
export type Templates_space_typesSumAggregateOutputType = {
    id: number | null;
    templates_id: number | null;
    space_types_id: number | null;
};
export type Templates_space_typesMinAggregateOutputType = {
    id: number | null;
    templates_id: number | null;
    space_types_id: number | null;
};
export type Templates_space_typesMaxAggregateOutputType = {
    id: number | null;
    templates_id: number | null;
    space_types_id: number | null;
};
export type Templates_space_typesCountAggregateOutputType = {
    id: number;
    templates_id: number;
    space_types_id: number;
    _all: number;
};
export type Templates_space_typesAvgAggregateInputType = {
    id?: true;
    templates_id?: true;
    space_types_id?: true;
};
export type Templates_space_typesSumAggregateInputType = {
    id?: true;
    templates_id?: true;
    space_types_id?: true;
};
export type Templates_space_typesMinAggregateInputType = {
    id?: true;
    templates_id?: true;
    space_types_id?: true;
};
export type Templates_space_typesMaxAggregateInputType = {
    id?: true;
    templates_id?: true;
    space_types_id?: true;
};
export type Templates_space_typesCountAggregateInputType = {
    id?: true;
    templates_id?: true;
    space_types_id?: true;
    _all?: true;
};
export type Templates_space_typesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which templates_space_types to aggregate.
     */
    where?: Prisma.templates_space_typesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of templates_space_types to fetch.
     */
    orderBy?: Prisma.templates_space_typesOrderByWithRelationInput | Prisma.templates_space_typesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.templates_space_typesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` templates_space_types 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` templates_space_types.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned templates_space_types
    **/
    _count?: true | Templates_space_typesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Templates_space_typesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Templates_space_typesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Templates_space_typesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Templates_space_typesMaxAggregateInputType;
};
export type GetTemplates_space_typesAggregateType<T extends Templates_space_typesAggregateArgs> = {
    [P in keyof T & keyof AggregateTemplates_space_types]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateTemplates_space_types[P]> : Prisma.GetScalarType<T[P], AggregateTemplates_space_types[P]>;
};
export type templates_space_typesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.templates_space_typesWhereInput;
    orderBy?: Prisma.templates_space_typesOrderByWithAggregationInput | Prisma.templates_space_typesOrderByWithAggregationInput[];
    by: Prisma.Templates_space_typesScalarFieldEnum[] | Prisma.Templates_space_typesScalarFieldEnum;
    having?: Prisma.templates_space_typesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Templates_space_typesCountAggregateInputType | true;
    _avg?: Templates_space_typesAvgAggregateInputType;
    _sum?: Templates_space_typesSumAggregateInputType;
    _min?: Templates_space_typesMinAggregateInputType;
    _max?: Templates_space_typesMaxAggregateInputType;
};
export type Templates_space_typesGroupByOutputType = {
    id: number;
    templates_id: number | null;
    space_types_id: number | null;
    _count: Templates_space_typesCountAggregateOutputType | null;
    _avg: Templates_space_typesAvgAggregateOutputType | null;
    _sum: Templates_space_typesSumAggregateOutputType | null;
    _min: Templates_space_typesMinAggregateOutputType | null;
    _max: Templates_space_typesMaxAggregateOutputType | null;
};
type GetTemplates_space_typesGroupByPayload<T extends templates_space_typesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Templates_space_typesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Templates_space_typesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Templates_space_typesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Templates_space_typesGroupByOutputType[P]>;
}>>;
export type templates_space_typesWhereInput = {
    AND?: Prisma.templates_space_typesWhereInput | Prisma.templates_space_typesWhereInput[];
    OR?: Prisma.templates_space_typesWhereInput[];
    NOT?: Prisma.templates_space_typesWhereInput | Prisma.templates_space_typesWhereInput[];
    id?: Prisma.IntFilter<"templates_space_types"> | number;
    templates_id?: Prisma.IntNullableFilter<"templates_space_types"> | number | null;
    space_types_id?: Prisma.IntNullableFilter<"templates_space_types"> | number | null;
    space_types?: Prisma.XOR<Prisma.Space_typesNullableScalarRelationFilter, Prisma.space_typesWhereInput> | null;
    templates?: Prisma.XOR<Prisma.TemplatesNullableScalarRelationFilter, Prisma.templatesWhereInput> | null;
};
export type templates_space_typesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    templates_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    space_types_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    space_types?: Prisma.space_typesOrderByWithRelationInput;
    templates?: Prisma.templatesOrderByWithRelationInput;
};
export type templates_space_typesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.templates_space_typesWhereInput | Prisma.templates_space_typesWhereInput[];
    OR?: Prisma.templates_space_typesWhereInput[];
    NOT?: Prisma.templates_space_typesWhereInput | Prisma.templates_space_typesWhereInput[];
    templates_id?: Prisma.IntNullableFilter<"templates_space_types"> | number | null;
    space_types_id?: Prisma.IntNullableFilter<"templates_space_types"> | number | null;
    space_types?: Prisma.XOR<Prisma.Space_typesNullableScalarRelationFilter, Prisma.space_typesWhereInput> | null;
    templates?: Prisma.XOR<Prisma.TemplatesNullableScalarRelationFilter, Prisma.templatesWhereInput> | null;
}, "id">;
export type templates_space_typesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    templates_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    space_types_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.templates_space_typesCountOrderByAggregateInput;
    _avg?: Prisma.templates_space_typesAvgOrderByAggregateInput;
    _max?: Prisma.templates_space_typesMaxOrderByAggregateInput;
    _min?: Prisma.templates_space_typesMinOrderByAggregateInput;
    _sum?: Prisma.templates_space_typesSumOrderByAggregateInput;
};
export type templates_space_typesScalarWhereWithAggregatesInput = {
    AND?: Prisma.templates_space_typesScalarWhereWithAggregatesInput | Prisma.templates_space_typesScalarWhereWithAggregatesInput[];
    OR?: Prisma.templates_space_typesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.templates_space_typesScalarWhereWithAggregatesInput | Prisma.templates_space_typesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"templates_space_types"> | number;
    templates_id?: Prisma.IntNullableWithAggregatesFilter<"templates_space_types"> | number | null;
    space_types_id?: Prisma.IntNullableWithAggregatesFilter<"templates_space_types"> | number | null;
};
export type templates_space_typesCreateInput = {
    space_types?: Prisma.space_typesCreateNestedOneWithoutTemplates_space_typesInput;
    templates?: Prisma.templatesCreateNestedOneWithoutTemplates_space_typesInput;
};
export type templates_space_typesUncheckedCreateInput = {
    id?: number;
    templates_id?: number | null;
    space_types_id?: number | null;
};
export type templates_space_typesUpdateInput = {
    space_types?: Prisma.space_typesUpdateOneWithoutTemplates_space_typesNestedInput;
    templates?: Prisma.templatesUpdateOneWithoutTemplates_space_typesNestedInput;
};
export type templates_space_typesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    templates_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    space_types_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type templates_space_typesCreateManyInput = {
    id?: number;
    templates_id?: number | null;
    space_types_id?: number | null;
};
export type templates_space_typesUpdateManyMutationInput = {};
export type templates_space_typesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    templates_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    space_types_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Templates_space_typesListRelationFilter = {
    every?: Prisma.templates_space_typesWhereInput;
    some?: Prisma.templates_space_typesWhereInput;
    none?: Prisma.templates_space_typesWhereInput;
};
export type templates_space_typesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type templates_space_typesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    templates_id?: Prisma.SortOrder;
    space_types_id?: Prisma.SortOrder;
};
export type templates_space_typesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    templates_id?: Prisma.SortOrder;
    space_types_id?: Prisma.SortOrder;
};
export type templates_space_typesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    templates_id?: Prisma.SortOrder;
    space_types_id?: Prisma.SortOrder;
};
export type templates_space_typesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    templates_id?: Prisma.SortOrder;
    space_types_id?: Prisma.SortOrder;
};
export type templates_space_typesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    templates_id?: Prisma.SortOrder;
    space_types_id?: Prisma.SortOrder;
};
export type templates_space_typesCreateNestedManyWithoutSpace_typesInput = {
    create?: Prisma.XOR<Prisma.templates_space_typesCreateWithoutSpace_typesInput, Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput> | Prisma.templates_space_typesCreateWithoutSpace_typesInput[] | Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput[];
    connectOrCreate?: Prisma.templates_space_typesCreateOrConnectWithoutSpace_typesInput | Prisma.templates_space_typesCreateOrConnectWithoutSpace_typesInput[];
    createMany?: Prisma.templates_space_typesCreateManySpace_typesInputEnvelope;
    connect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
};
export type templates_space_typesUncheckedCreateNestedManyWithoutSpace_typesInput = {
    create?: Prisma.XOR<Prisma.templates_space_typesCreateWithoutSpace_typesInput, Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput> | Prisma.templates_space_typesCreateWithoutSpace_typesInput[] | Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput[];
    connectOrCreate?: Prisma.templates_space_typesCreateOrConnectWithoutSpace_typesInput | Prisma.templates_space_typesCreateOrConnectWithoutSpace_typesInput[];
    createMany?: Prisma.templates_space_typesCreateManySpace_typesInputEnvelope;
    connect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
};
export type templates_space_typesUpdateManyWithoutSpace_typesNestedInput = {
    create?: Prisma.XOR<Prisma.templates_space_typesCreateWithoutSpace_typesInput, Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput> | Prisma.templates_space_typesCreateWithoutSpace_typesInput[] | Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput[];
    connectOrCreate?: Prisma.templates_space_typesCreateOrConnectWithoutSpace_typesInput | Prisma.templates_space_typesCreateOrConnectWithoutSpace_typesInput[];
    upsert?: Prisma.templates_space_typesUpsertWithWhereUniqueWithoutSpace_typesInput | Prisma.templates_space_typesUpsertWithWhereUniqueWithoutSpace_typesInput[];
    createMany?: Prisma.templates_space_typesCreateManySpace_typesInputEnvelope;
    set?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    disconnect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    delete?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    connect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    update?: Prisma.templates_space_typesUpdateWithWhereUniqueWithoutSpace_typesInput | Prisma.templates_space_typesUpdateWithWhereUniqueWithoutSpace_typesInput[];
    updateMany?: Prisma.templates_space_typesUpdateManyWithWhereWithoutSpace_typesInput | Prisma.templates_space_typesUpdateManyWithWhereWithoutSpace_typesInput[];
    deleteMany?: Prisma.templates_space_typesScalarWhereInput | Prisma.templates_space_typesScalarWhereInput[];
};
export type templates_space_typesUncheckedUpdateManyWithoutSpace_typesNestedInput = {
    create?: Prisma.XOR<Prisma.templates_space_typesCreateWithoutSpace_typesInput, Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput> | Prisma.templates_space_typesCreateWithoutSpace_typesInput[] | Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput[];
    connectOrCreate?: Prisma.templates_space_typesCreateOrConnectWithoutSpace_typesInput | Prisma.templates_space_typesCreateOrConnectWithoutSpace_typesInput[];
    upsert?: Prisma.templates_space_typesUpsertWithWhereUniqueWithoutSpace_typesInput | Prisma.templates_space_typesUpsertWithWhereUniqueWithoutSpace_typesInput[];
    createMany?: Prisma.templates_space_typesCreateManySpace_typesInputEnvelope;
    set?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    disconnect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    delete?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    connect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    update?: Prisma.templates_space_typesUpdateWithWhereUniqueWithoutSpace_typesInput | Prisma.templates_space_typesUpdateWithWhereUniqueWithoutSpace_typesInput[];
    updateMany?: Prisma.templates_space_typesUpdateManyWithWhereWithoutSpace_typesInput | Prisma.templates_space_typesUpdateManyWithWhereWithoutSpace_typesInput[];
    deleteMany?: Prisma.templates_space_typesScalarWhereInput | Prisma.templates_space_typesScalarWhereInput[];
};
export type templates_space_typesCreateNestedManyWithoutTemplatesInput = {
    create?: Prisma.XOR<Prisma.templates_space_typesCreateWithoutTemplatesInput, Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput> | Prisma.templates_space_typesCreateWithoutTemplatesInput[] | Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput[];
    connectOrCreate?: Prisma.templates_space_typesCreateOrConnectWithoutTemplatesInput | Prisma.templates_space_typesCreateOrConnectWithoutTemplatesInput[];
    createMany?: Prisma.templates_space_typesCreateManyTemplatesInputEnvelope;
    connect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
};
export type templates_space_typesUncheckedCreateNestedManyWithoutTemplatesInput = {
    create?: Prisma.XOR<Prisma.templates_space_typesCreateWithoutTemplatesInput, Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput> | Prisma.templates_space_typesCreateWithoutTemplatesInput[] | Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput[];
    connectOrCreate?: Prisma.templates_space_typesCreateOrConnectWithoutTemplatesInput | Prisma.templates_space_typesCreateOrConnectWithoutTemplatesInput[];
    createMany?: Prisma.templates_space_typesCreateManyTemplatesInputEnvelope;
    connect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
};
export type templates_space_typesUpdateManyWithoutTemplatesNestedInput = {
    create?: Prisma.XOR<Prisma.templates_space_typesCreateWithoutTemplatesInput, Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput> | Prisma.templates_space_typesCreateWithoutTemplatesInput[] | Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput[];
    connectOrCreate?: Prisma.templates_space_typesCreateOrConnectWithoutTemplatesInput | Prisma.templates_space_typesCreateOrConnectWithoutTemplatesInput[];
    upsert?: Prisma.templates_space_typesUpsertWithWhereUniqueWithoutTemplatesInput | Prisma.templates_space_typesUpsertWithWhereUniqueWithoutTemplatesInput[];
    createMany?: Prisma.templates_space_typesCreateManyTemplatesInputEnvelope;
    set?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    disconnect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    delete?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    connect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    update?: Prisma.templates_space_typesUpdateWithWhereUniqueWithoutTemplatesInput | Prisma.templates_space_typesUpdateWithWhereUniqueWithoutTemplatesInput[];
    updateMany?: Prisma.templates_space_typesUpdateManyWithWhereWithoutTemplatesInput | Prisma.templates_space_typesUpdateManyWithWhereWithoutTemplatesInput[];
    deleteMany?: Prisma.templates_space_typesScalarWhereInput | Prisma.templates_space_typesScalarWhereInput[];
};
export type templates_space_typesUncheckedUpdateManyWithoutTemplatesNestedInput = {
    create?: Prisma.XOR<Prisma.templates_space_typesCreateWithoutTemplatesInput, Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput> | Prisma.templates_space_typesCreateWithoutTemplatesInput[] | Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput[];
    connectOrCreate?: Prisma.templates_space_typesCreateOrConnectWithoutTemplatesInput | Prisma.templates_space_typesCreateOrConnectWithoutTemplatesInput[];
    upsert?: Prisma.templates_space_typesUpsertWithWhereUniqueWithoutTemplatesInput | Prisma.templates_space_typesUpsertWithWhereUniqueWithoutTemplatesInput[];
    createMany?: Prisma.templates_space_typesCreateManyTemplatesInputEnvelope;
    set?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    disconnect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    delete?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    connect?: Prisma.templates_space_typesWhereUniqueInput | Prisma.templates_space_typesWhereUniqueInput[];
    update?: Prisma.templates_space_typesUpdateWithWhereUniqueWithoutTemplatesInput | Prisma.templates_space_typesUpdateWithWhereUniqueWithoutTemplatesInput[];
    updateMany?: Prisma.templates_space_typesUpdateManyWithWhereWithoutTemplatesInput | Prisma.templates_space_typesUpdateManyWithWhereWithoutTemplatesInput[];
    deleteMany?: Prisma.templates_space_typesScalarWhereInput | Prisma.templates_space_typesScalarWhereInput[];
};
export type templates_space_typesCreateWithoutSpace_typesInput = {
    templates?: Prisma.templatesCreateNestedOneWithoutTemplates_space_typesInput;
};
export type templates_space_typesUncheckedCreateWithoutSpace_typesInput = {
    id?: number;
    templates_id?: number | null;
};
export type templates_space_typesCreateOrConnectWithoutSpace_typesInput = {
    where: Prisma.templates_space_typesWhereUniqueInput;
    create: Prisma.XOR<Prisma.templates_space_typesCreateWithoutSpace_typesInput, Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput>;
};
export type templates_space_typesCreateManySpace_typesInputEnvelope = {
    data: Prisma.templates_space_typesCreateManySpace_typesInput | Prisma.templates_space_typesCreateManySpace_typesInput[];
    skipDuplicates?: boolean;
};
export type templates_space_typesUpsertWithWhereUniqueWithoutSpace_typesInput = {
    where: Prisma.templates_space_typesWhereUniqueInput;
    update: Prisma.XOR<Prisma.templates_space_typesUpdateWithoutSpace_typesInput, Prisma.templates_space_typesUncheckedUpdateWithoutSpace_typesInput>;
    create: Prisma.XOR<Prisma.templates_space_typesCreateWithoutSpace_typesInput, Prisma.templates_space_typesUncheckedCreateWithoutSpace_typesInput>;
};
export type templates_space_typesUpdateWithWhereUniqueWithoutSpace_typesInput = {
    where: Prisma.templates_space_typesWhereUniqueInput;
    data: Prisma.XOR<Prisma.templates_space_typesUpdateWithoutSpace_typesInput, Prisma.templates_space_typesUncheckedUpdateWithoutSpace_typesInput>;
};
export type templates_space_typesUpdateManyWithWhereWithoutSpace_typesInput = {
    where: Prisma.templates_space_typesScalarWhereInput;
    data: Prisma.XOR<Prisma.templates_space_typesUpdateManyMutationInput, Prisma.templates_space_typesUncheckedUpdateManyWithoutSpace_typesInput>;
};
export type templates_space_typesScalarWhereInput = {
    AND?: Prisma.templates_space_typesScalarWhereInput | Prisma.templates_space_typesScalarWhereInput[];
    OR?: Prisma.templates_space_typesScalarWhereInput[];
    NOT?: Prisma.templates_space_typesScalarWhereInput | Prisma.templates_space_typesScalarWhereInput[];
    id?: Prisma.IntFilter<"templates_space_types"> | number;
    templates_id?: Prisma.IntNullableFilter<"templates_space_types"> | number | null;
    space_types_id?: Prisma.IntNullableFilter<"templates_space_types"> | number | null;
};
export type templates_space_typesCreateWithoutTemplatesInput = {
    space_types?: Prisma.space_typesCreateNestedOneWithoutTemplates_space_typesInput;
};
export type templates_space_typesUncheckedCreateWithoutTemplatesInput = {
    id?: number;
    space_types_id?: number | null;
};
export type templates_space_typesCreateOrConnectWithoutTemplatesInput = {
    where: Prisma.templates_space_typesWhereUniqueInput;
    create: Prisma.XOR<Prisma.templates_space_typesCreateWithoutTemplatesInput, Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput>;
};
export type templates_space_typesCreateManyTemplatesInputEnvelope = {
    data: Prisma.templates_space_typesCreateManyTemplatesInput | Prisma.templates_space_typesCreateManyTemplatesInput[];
    skipDuplicates?: boolean;
};
export type templates_space_typesUpsertWithWhereUniqueWithoutTemplatesInput = {
    where: Prisma.templates_space_typesWhereUniqueInput;
    update: Prisma.XOR<Prisma.templates_space_typesUpdateWithoutTemplatesInput, Prisma.templates_space_typesUncheckedUpdateWithoutTemplatesInput>;
    create: Prisma.XOR<Prisma.templates_space_typesCreateWithoutTemplatesInput, Prisma.templates_space_typesUncheckedCreateWithoutTemplatesInput>;
};
export type templates_space_typesUpdateWithWhereUniqueWithoutTemplatesInput = {
    where: Prisma.templates_space_typesWhereUniqueInput;
    data: Prisma.XOR<Prisma.templates_space_typesUpdateWithoutTemplatesInput, Prisma.templates_space_typesUncheckedUpdateWithoutTemplatesInput>;
};
export type templates_space_typesUpdateManyWithWhereWithoutTemplatesInput = {
    where: Prisma.templates_space_typesScalarWhereInput;
    data: Prisma.XOR<Prisma.templates_space_typesUpdateManyMutationInput, Prisma.templates_space_typesUncheckedUpdateManyWithoutTemplatesInput>;
};
export type templates_space_typesCreateManySpace_typesInput = {
    id?: number;
    templates_id?: number | null;
};
export type templates_space_typesUpdateWithoutSpace_typesInput = {
    templates?: Prisma.templatesUpdateOneWithoutTemplates_space_typesNestedInput;
};
export type templates_space_typesUncheckedUpdateWithoutSpace_typesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    templates_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type templates_space_typesUncheckedUpdateManyWithoutSpace_typesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    templates_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type templates_space_typesCreateManyTemplatesInput = {
    id?: number;
    space_types_id?: number | null;
};
export type templates_space_typesUpdateWithoutTemplatesInput = {
    space_types?: Prisma.space_typesUpdateOneWithoutTemplates_space_typesNestedInput;
};
export type templates_space_typesUncheckedUpdateWithoutTemplatesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    space_types_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type templates_space_typesUncheckedUpdateManyWithoutTemplatesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    space_types_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type templates_space_typesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    templates_id?: boolean;
    space_types_id?: boolean;
    space_types?: boolean | Prisma.templates_space_types$space_typesArgs<ExtArgs>;
    templates?: boolean | Prisma.templates_space_types$templatesArgs<ExtArgs>;
}, ExtArgs["result"]["templates_space_types"]>;
export type templates_space_typesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    templates_id?: boolean;
    space_types_id?: boolean;
    space_types?: boolean | Prisma.templates_space_types$space_typesArgs<ExtArgs>;
    templates?: boolean | Prisma.templates_space_types$templatesArgs<ExtArgs>;
}, ExtArgs["result"]["templates_space_types"]>;
export type templates_space_typesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    templates_id?: boolean;
    space_types_id?: boolean;
    space_types?: boolean | Prisma.templates_space_types$space_typesArgs<ExtArgs>;
    templates?: boolean | Prisma.templates_space_types$templatesArgs<ExtArgs>;
}, ExtArgs["result"]["templates_space_types"]>;
export type templates_space_typesSelectScalar = {
    id?: boolean;
    templates_id?: boolean;
    space_types_id?: boolean;
};
export type templates_space_typesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "templates_id" | "space_types_id", ExtArgs["result"]["templates_space_types"]>;
export type templates_space_typesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    space_types?: boolean | Prisma.templates_space_types$space_typesArgs<ExtArgs>;
    templates?: boolean | Prisma.templates_space_types$templatesArgs<ExtArgs>;
};
export type templates_space_typesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    space_types?: boolean | Prisma.templates_space_types$space_typesArgs<ExtArgs>;
    templates?: boolean | Prisma.templates_space_types$templatesArgs<ExtArgs>;
};
export type templates_space_typesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    space_types?: boolean | Prisma.templates_space_types$space_typesArgs<ExtArgs>;
    templates?: boolean | Prisma.templates_space_types$templatesArgs<ExtArgs>;
};
export type $templates_space_typesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "templates_space_types";
    objects: {
        space_types: Prisma.$space_typesPayload<ExtArgs> | null;
        templates: Prisma.$templatesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        templates_id: number | null;
        space_types_id: number | null;
    }, ExtArgs["result"]["templates_space_types"]>;
    composites: {};
};
export type templates_space_typesGetPayload<S extends boolean | null | undefined | templates_space_typesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload, S>;
export type templates_space_typesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<templates_space_typesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Templates_space_typesCountAggregateInputType | true;
};
export interface templates_space_typesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['templates_space_types'];
        meta: {
            name: 'templates_space_types';
        };
    };
    /**
     * Find zero or one Templates_space_types that matches the filter.
     * @param {templates_space_typesFindUniqueArgs} args - Arguments to find a Templates_space_types
     * @example
     * // Get one Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends templates_space_typesFindUniqueArgs>(args: Prisma.SelectSubset<T, templates_space_typesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__templates_space_typesClient<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Templates_space_types that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {templates_space_typesFindUniqueOrThrowArgs} args - Arguments to find a Templates_space_types
     * @example
     * // Get one Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends templates_space_typesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, templates_space_typesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__templates_space_typesClient<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Templates_space_types 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 {templates_space_typesFindFirstArgs} args - Arguments to find a Templates_space_types
     * @example
     * // Get one Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends templates_space_typesFindFirstArgs>(args?: Prisma.SelectSubset<T, templates_space_typesFindFirstArgs<ExtArgs>>): Prisma.Prisma__templates_space_typesClient<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Templates_space_types 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 {templates_space_typesFindFirstOrThrowArgs} args - Arguments to find a Templates_space_types
     * @example
     * // Get one Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends templates_space_typesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, templates_space_typesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__templates_space_typesClient<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Templates_space_types 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 {templates_space_typesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.findMany()
     *
     * // Get first 10 Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const templates_space_typesWithIdOnly = await prisma.templates_space_types.findMany({ select: { id: true } })
     *
     */
    findMany<T extends templates_space_typesFindManyArgs>(args?: Prisma.SelectSubset<T, templates_space_typesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Templates_space_types.
     * @param {templates_space_typesCreateArgs} args - Arguments to create a Templates_space_types.
     * @example
     * // Create one Templates_space_types
     * const Templates_space_types = await prisma.templates_space_types.create({
     *   data: {
     *     // ... data to create a Templates_space_types
     *   }
     * })
     *
     */
    create<T extends templates_space_typesCreateArgs>(args: Prisma.SelectSubset<T, templates_space_typesCreateArgs<ExtArgs>>): Prisma.Prisma__templates_space_typesClient<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Templates_space_types.
     * @param {templates_space_typesCreateManyArgs} args - Arguments to create many Templates_space_types.
     * @example
     * // Create many Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends templates_space_typesCreateManyArgs>(args?: Prisma.SelectSubset<T, templates_space_typesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Templates_space_types and returns the data saved in the database.
     * @param {templates_space_typesCreateManyAndReturnArgs} args - Arguments to create many Templates_space_types.
     * @example
     * // Create many Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Templates_space_types and only return the `id`
     * const templates_space_typesWithIdOnly = await prisma.templates_space_types.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 templates_space_typesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, templates_space_typesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Templates_space_types.
     * @param {templates_space_typesDeleteArgs} args - Arguments to delete one Templates_space_types.
     * @example
     * // Delete one Templates_space_types
     * const Templates_space_types = await prisma.templates_space_types.delete({
     *   where: {
     *     // ... filter to delete one Templates_space_types
     *   }
     * })
     *
     */
    delete<T extends templates_space_typesDeleteArgs>(args: Prisma.SelectSubset<T, templates_space_typesDeleteArgs<ExtArgs>>): Prisma.Prisma__templates_space_typesClient<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Templates_space_types.
     * @param {templates_space_typesUpdateArgs} args - Arguments to update one Templates_space_types.
     * @example
     * // Update one Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends templates_space_typesUpdateArgs>(args: Prisma.SelectSubset<T, templates_space_typesUpdateArgs<ExtArgs>>): Prisma.Prisma__templates_space_typesClient<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Templates_space_types.
     * @param {templates_space_typesDeleteManyArgs} args - Arguments to filter Templates_space_types to delete.
     * @example
     * // Delete a few Templates_space_types
     * const { count } = await prisma.templates_space_types.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends templates_space_typesDeleteManyArgs>(args?: Prisma.SelectSubset<T, templates_space_typesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Templates_space_types.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {templates_space_typesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends templates_space_typesUpdateManyArgs>(args: Prisma.SelectSubset<T, templates_space_typesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Templates_space_types and returns the data updated in the database.
     * @param {templates_space_typesUpdateManyAndReturnArgs} args - Arguments to update many Templates_space_types.
     * @example
     * // Update many Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Templates_space_types and only return the `id`
     * const templates_space_typesWithIdOnly = await prisma.templates_space_types.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 templates_space_typesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, templates_space_typesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Templates_space_types.
     * @param {templates_space_typesUpsertArgs} args - Arguments to update or create a Templates_space_types.
     * @example
     * // Update or create a Templates_space_types
     * const templates_space_types = await prisma.templates_space_types.upsert({
     *   create: {
     *     // ... data to create a Templates_space_types
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Templates_space_types we want to update
     *   }
     * })
     */
    upsert<T extends templates_space_typesUpsertArgs>(args: Prisma.SelectSubset<T, templates_space_typesUpsertArgs<ExtArgs>>): Prisma.Prisma__templates_space_typesClient<runtime.Types.Result.GetResult<Prisma.$templates_space_typesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Templates_space_types.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {templates_space_typesCountArgs} args - Arguments to filter Templates_space_types to count.
     * @example
     * // Count the number of Templates_space_types
     * const count = await prisma.templates_space_types.count({
     *   where: {
     *     // ... the filter for the Templates_space_types we want to count
     *   }
     * })
    **/
    count<T extends templates_space_typesCountArgs>(args?: Prisma.Subset<T, templates_space_typesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Templates_space_typesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Templates_space_types.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Templates_space_typesAggregateArgs} 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 Templates_space_typesAggregateArgs>(args: Prisma.Subset<T, Templates_space_typesAggregateArgs>): Prisma.PrismaPromise<GetTemplates_space_typesAggregateType<T>>;
    /**
     * Group by Templates_space_types.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {templates_space_typesGroupByArgs} 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 templates_space_typesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: templates_space_typesGroupByArgs['orderBy'];
    } : {
        orderBy?: templates_space_typesGroupByArgs['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, templates_space_typesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTemplates_space_typesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the templates_space_types model
     */
    readonly fields: templates_space_typesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for templates_space_types.
 * 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__templates_space_typesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    space_types<T extends Prisma.templates_space_types$space_typesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.templates_space_types$space_typesArgs<ExtArgs>>): Prisma.Prisma__space_typesClient<runtime.Types.Result.GetResult<Prisma.$space_typesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    templates<T extends Prisma.templates_space_types$templatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.templates_space_types$templatesArgs<ExtArgs>>): Prisma.Prisma__templatesClient<runtime.Types.Result.GetResult<Prisma.$templatesPayload<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 templates_space_types model
 */
export interface templates_space_typesFieldRefs {
    readonly id: Prisma.FieldRef<"templates_space_types", 'Int'>;
    readonly templates_id: Prisma.FieldRef<"templates_space_types", 'Int'>;
    readonly space_types_id: Prisma.FieldRef<"templates_space_types", 'Int'>;
}
/**
 * templates_space_types findUnique
 */
export type templates_space_typesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * Filter, which templates_space_types to fetch.
     */
    where: Prisma.templates_space_typesWhereUniqueInput;
};
/**
 * templates_space_types findUniqueOrThrow
 */
export type templates_space_typesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * Filter, which templates_space_types to fetch.
     */
    where: Prisma.templates_space_typesWhereUniqueInput;
};
/**
 * templates_space_types findFirst
 */
export type templates_space_typesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * Filter, which templates_space_types to fetch.
     */
    where?: Prisma.templates_space_typesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of templates_space_types to fetch.
     */
    orderBy?: Prisma.templates_space_typesOrderByWithRelationInput | Prisma.templates_space_typesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for templates_space_types.
     */
    cursor?: Prisma.templates_space_typesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` templates_space_types 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` templates_space_types.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of templates_space_types.
     */
    distinct?: Prisma.Templates_space_typesScalarFieldEnum | Prisma.Templates_space_typesScalarFieldEnum[];
};
/**
 * templates_space_types findFirstOrThrow
 */
export type templates_space_typesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * Filter, which templates_space_types to fetch.
     */
    where?: Prisma.templates_space_typesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of templates_space_types to fetch.
     */
    orderBy?: Prisma.templates_space_typesOrderByWithRelationInput | Prisma.templates_space_typesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for templates_space_types.
     */
    cursor?: Prisma.templates_space_typesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` templates_space_types 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` templates_space_types.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of templates_space_types.
     */
    distinct?: Prisma.Templates_space_typesScalarFieldEnum | Prisma.Templates_space_typesScalarFieldEnum[];
};
/**
 * templates_space_types findMany
 */
export type templates_space_typesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * Filter, which templates_space_types to fetch.
     */
    where?: Prisma.templates_space_typesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of templates_space_types to fetch.
     */
    orderBy?: Prisma.templates_space_typesOrderByWithRelationInput | Prisma.templates_space_typesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing templates_space_types.
     */
    cursor?: Prisma.templates_space_typesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` templates_space_types 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` templates_space_types.
     */
    skip?: number;
    distinct?: Prisma.Templates_space_typesScalarFieldEnum | Prisma.Templates_space_typesScalarFieldEnum[];
};
/**
 * templates_space_types create
 */
export type templates_space_typesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * The data needed to create a templates_space_types.
     */
    data?: Prisma.XOR<Prisma.templates_space_typesCreateInput, Prisma.templates_space_typesUncheckedCreateInput>;
};
/**
 * templates_space_types createMany
 */
export type templates_space_typesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many templates_space_types.
     */
    data: Prisma.templates_space_typesCreateManyInput | Prisma.templates_space_typesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * templates_space_types createManyAndReturn
 */
export type templates_space_typesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * The data used to create many templates_space_types.
     */
    data: Prisma.templates_space_typesCreateManyInput | Prisma.templates_space_typesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * templates_space_types update
 */
export type templates_space_typesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * The data needed to update a templates_space_types.
     */
    data: Prisma.XOR<Prisma.templates_space_typesUpdateInput, Prisma.templates_space_typesUncheckedUpdateInput>;
    /**
     * Choose, which templates_space_types to update.
     */
    where: Prisma.templates_space_typesWhereUniqueInput;
};
/**
 * templates_space_types updateMany
 */
export type templates_space_typesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update templates_space_types.
     */
    data: Prisma.XOR<Prisma.templates_space_typesUpdateManyMutationInput, Prisma.templates_space_typesUncheckedUpdateManyInput>;
    /**
     * Filter which templates_space_types to update
     */
    where?: Prisma.templates_space_typesWhereInput;
    /**
     * Limit how many templates_space_types to update.
     */
    limit?: number;
};
/**
 * templates_space_types updateManyAndReturn
 */
export type templates_space_typesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * The data used to update templates_space_types.
     */
    data: Prisma.XOR<Prisma.templates_space_typesUpdateManyMutationInput, Prisma.templates_space_typesUncheckedUpdateManyInput>;
    /**
     * Filter which templates_space_types to update
     */
    where?: Prisma.templates_space_typesWhereInput;
    /**
     * Limit how many templates_space_types to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * templates_space_types upsert
 */
export type templates_space_typesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * The filter to search for the templates_space_types to update in case it exists.
     */
    where: Prisma.templates_space_typesWhereUniqueInput;
    /**
     * In case the templates_space_types found by the `where` argument doesn't exist, create a new templates_space_types with this data.
     */
    create: Prisma.XOR<Prisma.templates_space_typesCreateInput, Prisma.templates_space_typesUncheckedCreateInput>;
    /**
     * In case the templates_space_types was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.templates_space_typesUpdateInput, Prisma.templates_space_typesUncheckedUpdateInput>;
};
/**
 * templates_space_types delete
 */
export type templates_space_typesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
    /**
     * Filter which templates_space_types to delete.
     */
    where: Prisma.templates_space_typesWhereUniqueInput;
};
/**
 * templates_space_types deleteMany
 */
export type templates_space_typesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which templates_space_types to delete
     */
    where?: Prisma.templates_space_typesWhereInput;
    /**
     * Limit how many templates_space_types to delete.
     */
    limit?: number;
};
/**
 * templates_space_types.space_types
 */
export type templates_space_types$space_typesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the space_types
     */
    select?: Prisma.space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the space_types
     */
    omit?: Prisma.space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.space_typesInclude<ExtArgs> | null;
    where?: Prisma.space_typesWhereInput;
};
/**
 * templates_space_types.templates
 */
export type templates_space_types$templatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates
     */
    select?: Prisma.templatesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates
     */
    omit?: Prisma.templatesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templatesInclude<ExtArgs> | null;
    where?: Prisma.templatesWhereInput;
};
/**
 * templates_space_types without action
 */
export type templates_space_typesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the templates_space_types
     */
    select?: Prisma.templates_space_typesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the templates_space_types
     */
    omit?: Prisma.templates_space_typesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.templates_space_typesInclude<ExtArgs> | null;
};
export {};
