import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model spaces_files
 * This model contains row level security and requires additional setup for migrations. Visit https://pris.ly/d/row-level-security for more info.
 */
export type spaces_filesModel = runtime.Types.Result.DefaultSelection<Prisma.$spaces_filesPayload>;
export type AggregateSpaces_files = {
    _count: Spaces_filesCountAggregateOutputType | null;
    _avg: Spaces_filesAvgAggregateOutputType | null;
    _sum: Spaces_filesSumAggregateOutputType | null;
    _min: Spaces_filesMinAggregateOutputType | null;
    _max: Spaces_filesMaxAggregateOutputType | null;
};
export type Spaces_filesAvgAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
};
export type Spaces_filesSumAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
};
export type Spaces_filesMinAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    directus_files_id: string | null;
};
export type Spaces_filesMaxAggregateOutputType = {
    id: number | null;
    spaces_id: number | null;
    directus_files_id: string | null;
};
export type Spaces_filesCountAggregateOutputType = {
    id: number;
    spaces_id: number;
    directus_files_id: number;
    _all: number;
};
export type Spaces_filesAvgAggregateInputType = {
    id?: true;
    spaces_id?: true;
};
export type Spaces_filesSumAggregateInputType = {
    id?: true;
    spaces_id?: true;
};
export type Spaces_filesMinAggregateInputType = {
    id?: true;
    spaces_id?: true;
    directus_files_id?: true;
};
export type Spaces_filesMaxAggregateInputType = {
    id?: true;
    spaces_id?: true;
    directus_files_id?: true;
};
export type Spaces_filesCountAggregateInputType = {
    id?: true;
    spaces_id?: true;
    directus_files_id?: true;
    _all?: true;
};
export type Spaces_filesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which spaces_files to aggregate.
     */
    where?: Prisma.spaces_filesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_files to fetch.
     */
    orderBy?: Prisma.spaces_filesOrderByWithRelationInput | Prisma.spaces_filesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.spaces_filesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_files from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` spaces_files.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned spaces_files
    **/
    _count?: true | Spaces_filesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Spaces_filesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Spaces_filesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Spaces_filesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Spaces_filesMaxAggregateInputType;
};
export type GetSpaces_filesAggregateType<T extends Spaces_filesAggregateArgs> = {
    [P in keyof T & keyof AggregateSpaces_files]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSpaces_files[P]> : Prisma.GetScalarType<T[P], AggregateSpaces_files[P]>;
};
export type spaces_filesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.spaces_filesWhereInput;
    orderBy?: Prisma.spaces_filesOrderByWithAggregationInput | Prisma.spaces_filesOrderByWithAggregationInput[];
    by: Prisma.Spaces_filesScalarFieldEnum[] | Prisma.Spaces_filesScalarFieldEnum;
    having?: Prisma.spaces_filesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Spaces_filesCountAggregateInputType | true;
    _avg?: Spaces_filesAvgAggregateInputType;
    _sum?: Spaces_filesSumAggregateInputType;
    _min?: Spaces_filesMinAggregateInputType;
    _max?: Spaces_filesMaxAggregateInputType;
};
export type Spaces_filesGroupByOutputType = {
    id: number;
    spaces_id: number | null;
    directus_files_id: string | null;
    _count: Spaces_filesCountAggregateOutputType | null;
    _avg: Spaces_filesAvgAggregateOutputType | null;
    _sum: Spaces_filesSumAggregateOutputType | null;
    _min: Spaces_filesMinAggregateOutputType | null;
    _max: Spaces_filesMaxAggregateOutputType | null;
};
type GetSpaces_filesGroupByPayload<T extends spaces_filesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Spaces_filesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Spaces_filesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Spaces_filesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Spaces_filesGroupByOutputType[P]>;
}>>;
export type spaces_filesWhereInput = {
    AND?: Prisma.spaces_filesWhereInput | Prisma.spaces_filesWhereInput[];
    OR?: Prisma.spaces_filesWhereInput[];
    NOT?: Prisma.spaces_filesWhereInput | Prisma.spaces_filesWhereInput[];
    id?: Prisma.IntFilter<"spaces_files"> | number;
    spaces_id?: Prisma.IntNullableFilter<"spaces_files"> | number | null;
    directus_files_id?: Prisma.UuidNullableFilter<"spaces_files"> | string | null;
    directus_files?: Prisma.XOR<Prisma.Directus_filesNullableScalarRelationFilter, Prisma.directus_filesWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
};
export type spaces_filesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    directus_files_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    directus_files?: Prisma.directus_filesOrderByWithRelationInput;
    spaces?: Prisma.spacesOrderByWithRelationInput;
};
export type spaces_filesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.spaces_filesWhereInput | Prisma.spaces_filesWhereInput[];
    OR?: Prisma.spaces_filesWhereInput[];
    NOT?: Prisma.spaces_filesWhereInput | Prisma.spaces_filesWhereInput[];
    spaces_id?: Prisma.IntNullableFilter<"spaces_files"> | number | null;
    directus_files_id?: Prisma.UuidNullableFilter<"spaces_files"> | string | null;
    directus_files?: Prisma.XOR<Prisma.Directus_filesNullableScalarRelationFilter, Prisma.directus_filesWhereInput> | null;
    spaces?: Prisma.XOR<Prisma.SpacesNullableScalarRelationFilter, Prisma.spacesWhereInput> | null;
}, "id">;
export type spaces_filesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    directus_files_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.spaces_filesCountOrderByAggregateInput;
    _avg?: Prisma.spaces_filesAvgOrderByAggregateInput;
    _max?: Prisma.spaces_filesMaxOrderByAggregateInput;
    _min?: Prisma.spaces_filesMinOrderByAggregateInput;
    _sum?: Prisma.spaces_filesSumOrderByAggregateInput;
};
export type spaces_filesScalarWhereWithAggregatesInput = {
    AND?: Prisma.spaces_filesScalarWhereWithAggregatesInput | Prisma.spaces_filesScalarWhereWithAggregatesInput[];
    OR?: Prisma.spaces_filesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.spaces_filesScalarWhereWithAggregatesInput | Prisma.spaces_filesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"spaces_files"> | number;
    spaces_id?: Prisma.IntNullableWithAggregatesFilter<"spaces_files"> | number | null;
    directus_files_id?: Prisma.UuidNullableWithAggregatesFilter<"spaces_files"> | string | null;
};
export type spaces_filesCreateInput = {
    directus_files?: Prisma.directus_filesCreateNestedOneWithoutSpaces_filesInput;
    spaces?: Prisma.spacesCreateNestedOneWithoutSpaces_filesInput;
};
export type spaces_filesUncheckedCreateInput = {
    id?: number;
    spaces_id?: number | null;
    directus_files_id?: string | null;
};
export type spaces_filesUpdateInput = {
    directus_files?: Prisma.directus_filesUpdateOneWithoutSpaces_filesNestedInput;
    spaces?: Prisma.spacesUpdateOneWithoutSpaces_filesNestedInput;
};
export type spaces_filesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    directus_files_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type spaces_filesCreateManyInput = {
    id?: number;
    spaces_id?: number | null;
    directus_files_id?: string | null;
};
export type spaces_filesUpdateManyMutationInput = {};
export type spaces_filesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    directus_files_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type Spaces_filesListRelationFilter = {
    every?: Prisma.spaces_filesWhereInput;
    some?: Prisma.spaces_filesWhereInput;
    none?: Prisma.spaces_filesWhereInput;
};
export type spaces_filesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type spaces_filesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    directus_files_id?: Prisma.SortOrder;
};
export type spaces_filesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type spaces_filesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    directus_files_id?: Prisma.SortOrder;
};
export type spaces_filesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
    directus_files_id?: Prisma.SortOrder;
};
export type spaces_filesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    spaces_id?: Prisma.SortOrder;
};
export type spaces_filesCreateNestedManyWithoutDirectus_filesInput = {
    create?: Prisma.XOR<Prisma.spaces_filesCreateWithoutDirectus_filesInput, Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput> | Prisma.spaces_filesCreateWithoutDirectus_filesInput[] | Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput[];
    connectOrCreate?: Prisma.spaces_filesCreateOrConnectWithoutDirectus_filesInput | Prisma.spaces_filesCreateOrConnectWithoutDirectus_filesInput[];
    createMany?: Prisma.spaces_filesCreateManyDirectus_filesInputEnvelope;
    connect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
};
export type spaces_filesUncheckedCreateNestedManyWithoutDirectus_filesInput = {
    create?: Prisma.XOR<Prisma.spaces_filesCreateWithoutDirectus_filesInput, Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput> | Prisma.spaces_filesCreateWithoutDirectus_filesInput[] | Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput[];
    connectOrCreate?: Prisma.spaces_filesCreateOrConnectWithoutDirectus_filesInput | Prisma.spaces_filesCreateOrConnectWithoutDirectus_filesInput[];
    createMany?: Prisma.spaces_filesCreateManyDirectus_filesInputEnvelope;
    connect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
};
export type spaces_filesUpdateManyWithoutDirectus_filesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_filesCreateWithoutDirectus_filesInput, Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput> | Prisma.spaces_filesCreateWithoutDirectus_filesInput[] | Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput[];
    connectOrCreate?: Prisma.spaces_filesCreateOrConnectWithoutDirectus_filesInput | Prisma.spaces_filesCreateOrConnectWithoutDirectus_filesInput[];
    upsert?: Prisma.spaces_filesUpsertWithWhereUniqueWithoutDirectus_filesInput | Prisma.spaces_filesUpsertWithWhereUniqueWithoutDirectus_filesInput[];
    createMany?: Prisma.spaces_filesCreateManyDirectus_filesInputEnvelope;
    set?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    disconnect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    delete?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    connect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    update?: Prisma.spaces_filesUpdateWithWhereUniqueWithoutDirectus_filesInput | Prisma.spaces_filesUpdateWithWhereUniqueWithoutDirectus_filesInput[];
    updateMany?: Prisma.spaces_filesUpdateManyWithWhereWithoutDirectus_filesInput | Prisma.spaces_filesUpdateManyWithWhereWithoutDirectus_filesInput[];
    deleteMany?: Prisma.spaces_filesScalarWhereInput | Prisma.spaces_filesScalarWhereInput[];
};
export type spaces_filesUncheckedUpdateManyWithoutDirectus_filesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_filesCreateWithoutDirectus_filesInput, Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput> | Prisma.spaces_filesCreateWithoutDirectus_filesInput[] | Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput[];
    connectOrCreate?: Prisma.spaces_filesCreateOrConnectWithoutDirectus_filesInput | Prisma.spaces_filesCreateOrConnectWithoutDirectus_filesInput[];
    upsert?: Prisma.spaces_filesUpsertWithWhereUniqueWithoutDirectus_filesInput | Prisma.spaces_filesUpsertWithWhereUniqueWithoutDirectus_filesInput[];
    createMany?: Prisma.spaces_filesCreateManyDirectus_filesInputEnvelope;
    set?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    disconnect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    delete?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    connect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    update?: Prisma.spaces_filesUpdateWithWhereUniqueWithoutDirectus_filesInput | Prisma.spaces_filesUpdateWithWhereUniqueWithoutDirectus_filesInput[];
    updateMany?: Prisma.spaces_filesUpdateManyWithWhereWithoutDirectus_filesInput | Prisma.spaces_filesUpdateManyWithWhereWithoutDirectus_filesInput[];
    deleteMany?: Prisma.spaces_filesScalarWhereInput | Prisma.spaces_filesScalarWhereInput[];
};
export type spaces_filesCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.spaces_filesCreateWithoutSpacesInput, Prisma.spaces_filesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_filesCreateWithoutSpacesInput[] | Prisma.spaces_filesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_filesCreateOrConnectWithoutSpacesInput | Prisma.spaces_filesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.spaces_filesCreateManySpacesInputEnvelope;
    connect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
};
export type spaces_filesUncheckedCreateNestedManyWithoutSpacesInput = {
    create?: Prisma.XOR<Prisma.spaces_filesCreateWithoutSpacesInput, Prisma.spaces_filesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_filesCreateWithoutSpacesInput[] | Prisma.spaces_filesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_filesCreateOrConnectWithoutSpacesInput | Prisma.spaces_filesCreateOrConnectWithoutSpacesInput[];
    createMany?: Prisma.spaces_filesCreateManySpacesInputEnvelope;
    connect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
};
export type spaces_filesUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_filesCreateWithoutSpacesInput, Prisma.spaces_filesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_filesCreateWithoutSpacesInput[] | Prisma.spaces_filesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_filesCreateOrConnectWithoutSpacesInput | Prisma.spaces_filesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.spaces_filesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.spaces_filesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.spaces_filesCreateManySpacesInputEnvelope;
    set?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    disconnect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    delete?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    connect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    update?: Prisma.spaces_filesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.spaces_filesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.spaces_filesUpdateManyWithWhereWithoutSpacesInput | Prisma.spaces_filesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.spaces_filesScalarWhereInput | Prisma.spaces_filesScalarWhereInput[];
};
export type spaces_filesUncheckedUpdateManyWithoutSpacesNestedInput = {
    create?: Prisma.XOR<Prisma.spaces_filesCreateWithoutSpacesInput, Prisma.spaces_filesUncheckedCreateWithoutSpacesInput> | Prisma.spaces_filesCreateWithoutSpacesInput[] | Prisma.spaces_filesUncheckedCreateWithoutSpacesInput[];
    connectOrCreate?: Prisma.spaces_filesCreateOrConnectWithoutSpacesInput | Prisma.spaces_filesCreateOrConnectWithoutSpacesInput[];
    upsert?: Prisma.spaces_filesUpsertWithWhereUniqueWithoutSpacesInput | Prisma.spaces_filesUpsertWithWhereUniqueWithoutSpacesInput[];
    createMany?: Prisma.spaces_filesCreateManySpacesInputEnvelope;
    set?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    disconnect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    delete?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    connect?: Prisma.spaces_filesWhereUniqueInput | Prisma.spaces_filesWhereUniqueInput[];
    update?: Prisma.spaces_filesUpdateWithWhereUniqueWithoutSpacesInput | Prisma.spaces_filesUpdateWithWhereUniqueWithoutSpacesInput[];
    updateMany?: Prisma.spaces_filesUpdateManyWithWhereWithoutSpacesInput | Prisma.spaces_filesUpdateManyWithWhereWithoutSpacesInput[];
    deleteMany?: Prisma.spaces_filesScalarWhereInput | Prisma.spaces_filesScalarWhereInput[];
};
export type spaces_filesCreateWithoutDirectus_filesInput = {
    spaces?: Prisma.spacesCreateNestedOneWithoutSpaces_filesInput;
};
export type spaces_filesUncheckedCreateWithoutDirectus_filesInput = {
    id?: number;
    spaces_id?: number | null;
};
export type spaces_filesCreateOrConnectWithoutDirectus_filesInput = {
    where: Prisma.spaces_filesWhereUniqueInput;
    create: Prisma.XOR<Prisma.spaces_filesCreateWithoutDirectus_filesInput, Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput>;
};
export type spaces_filesCreateManyDirectus_filesInputEnvelope = {
    data: Prisma.spaces_filesCreateManyDirectus_filesInput | Prisma.spaces_filesCreateManyDirectus_filesInput[];
    skipDuplicates?: boolean;
};
export type spaces_filesUpsertWithWhereUniqueWithoutDirectus_filesInput = {
    where: Prisma.spaces_filesWhereUniqueInput;
    update: Prisma.XOR<Prisma.spaces_filesUpdateWithoutDirectus_filesInput, Prisma.spaces_filesUncheckedUpdateWithoutDirectus_filesInput>;
    create: Prisma.XOR<Prisma.spaces_filesCreateWithoutDirectus_filesInput, Prisma.spaces_filesUncheckedCreateWithoutDirectus_filesInput>;
};
export type spaces_filesUpdateWithWhereUniqueWithoutDirectus_filesInput = {
    where: Prisma.spaces_filesWhereUniqueInput;
    data: Prisma.XOR<Prisma.spaces_filesUpdateWithoutDirectus_filesInput, Prisma.spaces_filesUncheckedUpdateWithoutDirectus_filesInput>;
};
export type spaces_filesUpdateManyWithWhereWithoutDirectus_filesInput = {
    where: Prisma.spaces_filesScalarWhereInput;
    data: Prisma.XOR<Prisma.spaces_filesUpdateManyMutationInput, Prisma.spaces_filesUncheckedUpdateManyWithoutDirectus_filesInput>;
};
export type spaces_filesScalarWhereInput = {
    AND?: Prisma.spaces_filesScalarWhereInput | Prisma.spaces_filesScalarWhereInput[];
    OR?: Prisma.spaces_filesScalarWhereInput[];
    NOT?: Prisma.spaces_filesScalarWhereInput | Prisma.spaces_filesScalarWhereInput[];
    id?: Prisma.IntFilter<"spaces_files"> | number;
    spaces_id?: Prisma.IntNullableFilter<"spaces_files"> | number | null;
    directus_files_id?: Prisma.UuidNullableFilter<"spaces_files"> | string | null;
};
export type spaces_filesCreateWithoutSpacesInput = {
    directus_files?: Prisma.directus_filesCreateNestedOneWithoutSpaces_filesInput;
};
export type spaces_filesUncheckedCreateWithoutSpacesInput = {
    id?: number;
    directus_files_id?: string | null;
};
export type spaces_filesCreateOrConnectWithoutSpacesInput = {
    where: Prisma.spaces_filesWhereUniqueInput;
    create: Prisma.XOR<Prisma.spaces_filesCreateWithoutSpacesInput, Prisma.spaces_filesUncheckedCreateWithoutSpacesInput>;
};
export type spaces_filesCreateManySpacesInputEnvelope = {
    data: Prisma.spaces_filesCreateManySpacesInput | Prisma.spaces_filesCreateManySpacesInput[];
    skipDuplicates?: boolean;
};
export type spaces_filesUpsertWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.spaces_filesWhereUniqueInput;
    update: Prisma.XOR<Prisma.spaces_filesUpdateWithoutSpacesInput, Prisma.spaces_filesUncheckedUpdateWithoutSpacesInput>;
    create: Prisma.XOR<Prisma.spaces_filesCreateWithoutSpacesInput, Prisma.spaces_filesUncheckedCreateWithoutSpacesInput>;
};
export type spaces_filesUpdateWithWhereUniqueWithoutSpacesInput = {
    where: Prisma.spaces_filesWhereUniqueInput;
    data: Prisma.XOR<Prisma.spaces_filesUpdateWithoutSpacesInput, Prisma.spaces_filesUncheckedUpdateWithoutSpacesInput>;
};
export type spaces_filesUpdateManyWithWhereWithoutSpacesInput = {
    where: Prisma.spaces_filesScalarWhereInput;
    data: Prisma.XOR<Prisma.spaces_filesUpdateManyMutationInput, Prisma.spaces_filesUncheckedUpdateManyWithoutSpacesInput>;
};
export type spaces_filesCreateManyDirectus_filesInput = {
    id?: number;
    spaces_id?: number | null;
};
export type spaces_filesUpdateWithoutDirectus_filesInput = {
    spaces?: Prisma.spacesUpdateOneWithoutSpaces_filesNestedInput;
};
export type spaces_filesUncheckedUpdateWithoutDirectus_filesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_filesUncheckedUpdateManyWithoutDirectus_filesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    spaces_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type spaces_filesCreateManySpacesInput = {
    id?: number;
    directus_files_id?: string | null;
};
export type spaces_filesUpdateWithoutSpacesInput = {
    directus_files?: Prisma.directus_filesUpdateOneWithoutSpaces_filesNestedInput;
};
export type spaces_filesUncheckedUpdateWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    directus_files_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type spaces_filesUncheckedUpdateManyWithoutSpacesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    directus_files_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type spaces_filesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    directus_files_id?: boolean;
    directus_files?: boolean | Prisma.spaces_files$directus_filesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_files$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_files"]>;
export type spaces_filesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    directus_files_id?: boolean;
    directus_files?: boolean | Prisma.spaces_files$directus_filesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_files$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_files"]>;
export type spaces_filesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    spaces_id?: boolean;
    directus_files_id?: boolean;
    directus_files?: boolean | Prisma.spaces_files$directus_filesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_files$spacesArgs<ExtArgs>;
}, ExtArgs["result"]["spaces_files"]>;
export type spaces_filesSelectScalar = {
    id?: boolean;
    spaces_id?: boolean;
    directus_files_id?: boolean;
};
export type spaces_filesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "spaces_id" | "directus_files_id", ExtArgs["result"]["spaces_files"]>;
export type spaces_filesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_files?: boolean | Prisma.spaces_files$directus_filesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_files$spacesArgs<ExtArgs>;
};
export type spaces_filesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_files?: boolean | Prisma.spaces_files$directus_filesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_files$spacesArgs<ExtArgs>;
};
export type spaces_filesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_files?: boolean | Prisma.spaces_files$directus_filesArgs<ExtArgs>;
    spaces?: boolean | Prisma.spaces_files$spacesArgs<ExtArgs>;
};
export type $spaces_filesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "spaces_files";
    objects: {
        directus_files: Prisma.$directus_filesPayload<ExtArgs> | null;
        spaces: Prisma.$spacesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        spaces_id: number | null;
        directus_files_id: string | null;
    }, ExtArgs["result"]["spaces_files"]>;
    composites: {};
};
export type spaces_filesGetPayload<S extends boolean | null | undefined | spaces_filesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload, S>;
export type spaces_filesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<spaces_filesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Spaces_filesCountAggregateInputType | true;
};
export interface spaces_filesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['spaces_files'];
        meta: {
            name: 'spaces_files';
        };
    };
    /**
     * Find zero or one Spaces_files that matches the filter.
     * @param {spaces_filesFindUniqueArgs} args - Arguments to find a Spaces_files
     * @example
     * // Get one Spaces_files
     * const spaces_files = await prisma.spaces_files.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends spaces_filesFindUniqueArgs>(args: Prisma.SelectSubset<T, spaces_filesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__spaces_filesClient<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Spaces_files that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {spaces_filesFindUniqueOrThrowArgs} args - Arguments to find a Spaces_files
     * @example
     * // Get one Spaces_files
     * const spaces_files = await prisma.spaces_files.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends spaces_filesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, spaces_filesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__spaces_filesClient<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Spaces_files that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_filesFindFirstArgs} args - Arguments to find a Spaces_files
     * @example
     * // Get one Spaces_files
     * const spaces_files = await prisma.spaces_files.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends spaces_filesFindFirstArgs>(args?: Prisma.SelectSubset<T, spaces_filesFindFirstArgs<ExtArgs>>): Prisma.Prisma__spaces_filesClient<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Spaces_files that matches the filter or
     * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_filesFindFirstOrThrowArgs} args - Arguments to find a Spaces_files
     * @example
     * // Get one Spaces_files
     * const spaces_files = await prisma.spaces_files.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends spaces_filesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, spaces_filesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__spaces_filesClient<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Spaces_files that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_filesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Spaces_files
     * const spaces_files = await prisma.spaces_files.findMany()
     *
     * // Get first 10 Spaces_files
     * const spaces_files = await prisma.spaces_files.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const spaces_filesWithIdOnly = await prisma.spaces_files.findMany({ select: { id: true } })
     *
     */
    findMany<T extends spaces_filesFindManyArgs>(args?: Prisma.SelectSubset<T, spaces_filesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Spaces_files.
     * @param {spaces_filesCreateArgs} args - Arguments to create a Spaces_files.
     * @example
     * // Create one Spaces_files
     * const Spaces_files = await prisma.spaces_files.create({
     *   data: {
     *     // ... data to create a Spaces_files
     *   }
     * })
     *
     */
    create<T extends spaces_filesCreateArgs>(args: Prisma.SelectSubset<T, spaces_filesCreateArgs<ExtArgs>>): Prisma.Prisma__spaces_filesClient<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Spaces_files.
     * @param {spaces_filesCreateManyArgs} args - Arguments to create many Spaces_files.
     * @example
     * // Create many Spaces_files
     * const spaces_files = await prisma.spaces_files.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends spaces_filesCreateManyArgs>(args?: Prisma.SelectSubset<T, spaces_filesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Spaces_files and returns the data saved in the database.
     * @param {spaces_filesCreateManyAndReturnArgs} args - Arguments to create many Spaces_files.
     * @example
     * // Create many Spaces_files
     * const spaces_files = await prisma.spaces_files.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Spaces_files and only return the `id`
     * const spaces_filesWithIdOnly = await prisma.spaces_files.createManyAndReturn({
     *   select: { id: true },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    createManyAndReturn<T extends spaces_filesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, spaces_filesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Spaces_files.
     * @param {spaces_filesDeleteArgs} args - Arguments to delete one Spaces_files.
     * @example
     * // Delete one Spaces_files
     * const Spaces_files = await prisma.spaces_files.delete({
     *   where: {
     *     // ... filter to delete one Spaces_files
     *   }
     * })
     *
     */
    delete<T extends spaces_filesDeleteArgs>(args: Prisma.SelectSubset<T, spaces_filesDeleteArgs<ExtArgs>>): Prisma.Prisma__spaces_filesClient<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Spaces_files.
     * @param {spaces_filesUpdateArgs} args - Arguments to update one Spaces_files.
     * @example
     * // Update one Spaces_files
     * const spaces_files = await prisma.spaces_files.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends spaces_filesUpdateArgs>(args: Prisma.SelectSubset<T, spaces_filesUpdateArgs<ExtArgs>>): Prisma.Prisma__spaces_filesClient<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Spaces_files.
     * @param {spaces_filesDeleteManyArgs} args - Arguments to filter Spaces_files to delete.
     * @example
     * // Delete a few Spaces_files
     * const { count } = await prisma.spaces_files.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends spaces_filesDeleteManyArgs>(args?: Prisma.SelectSubset<T, spaces_filesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Spaces_files.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_filesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Spaces_files
     * const spaces_files = await prisma.spaces_files.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends spaces_filesUpdateManyArgs>(args: Prisma.SelectSubset<T, spaces_filesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Spaces_files and returns the data updated in the database.
     * @param {spaces_filesUpdateManyAndReturnArgs} args - Arguments to update many Spaces_files.
     * @example
     * // Update many Spaces_files
     * const spaces_files = await prisma.spaces_files.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Spaces_files and only return the `id`
     * const spaces_filesWithIdOnly = await prisma.spaces_files.updateManyAndReturn({
     *   select: { id: true },
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    updateManyAndReturn<T extends spaces_filesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, spaces_filesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Spaces_files.
     * @param {spaces_filesUpsertArgs} args - Arguments to update or create a Spaces_files.
     * @example
     * // Update or create a Spaces_files
     * const spaces_files = await prisma.spaces_files.upsert({
     *   create: {
     *     // ... data to create a Spaces_files
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Spaces_files we want to update
     *   }
     * })
     */
    upsert<T extends spaces_filesUpsertArgs>(args: Prisma.SelectSubset<T, spaces_filesUpsertArgs<ExtArgs>>): Prisma.Prisma__spaces_filesClient<runtime.Types.Result.GetResult<Prisma.$spaces_filesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Spaces_files.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_filesCountArgs} args - Arguments to filter Spaces_files to count.
     * @example
     * // Count the number of Spaces_files
     * const count = await prisma.spaces_files.count({
     *   where: {
     *     // ... the filter for the Spaces_files we want to count
     *   }
     * })
    **/
    count<T extends spaces_filesCountArgs>(args?: Prisma.Subset<T, spaces_filesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Spaces_filesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Spaces_files.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Spaces_filesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
     * @example
     * // Ordered by age ascending
     * // Where email contains prisma.io
     * // Limited to the 10 users
     * const aggregations = await prisma.user.aggregate({
     *   _avg: {
     *     age: true,
     *   },
     *   where: {
     *     email: {
     *       contains: "prisma.io",
     *     },
     *   },
     *   orderBy: {
     *     age: "asc",
     *   },
     *   take: 10,
     * })
    **/
    aggregate<T extends Spaces_filesAggregateArgs>(args: Prisma.Subset<T, Spaces_filesAggregateArgs>): Prisma.PrismaPromise<GetSpaces_filesAggregateType<T>>;
    /**
     * Group by Spaces_files.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {spaces_filesGroupByArgs} args - Group by arguments.
     * @example
     * // Group by city, order by createdAt, get count
     * const result = await prisma.user.groupBy({
     *   by: ['city', 'createdAt'],
     *   orderBy: {
     *     createdAt: true
     *   },
     *   _count: {
     *     _all: true
     *   },
     * })
     *
    **/
    groupBy<T extends spaces_filesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: spaces_filesGroupByArgs['orderBy'];
    } : {
        orderBy?: spaces_filesGroupByArgs['orderBy'];
    }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
        [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
            Error,
            'Field ',
            P,
            ` in "having" needs to be provided in "by"`
        ];
    }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields]>(args: Prisma.SubsetIntersection<T, spaces_filesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSpaces_filesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the spaces_files model
     */
    readonly fields: spaces_filesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for spaces_files.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__spaces_filesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    directus_files<T extends Prisma.spaces_files$directus_filesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.spaces_files$directus_filesArgs<ExtArgs>>): Prisma.Prisma__directus_filesClient<runtime.Types.Result.GetResult<Prisma.$directus_filesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    spaces<T extends Prisma.spaces_files$spacesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.spaces_files$spacesArgs<ExtArgs>>): Prisma.Prisma__spacesClient<runtime.Types.Result.GetResult<Prisma.$spacesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
}
/**
 * Fields of the spaces_files model
 */
export interface spaces_filesFieldRefs {
    readonly id: Prisma.FieldRef<"spaces_files", 'Int'>;
    readonly spaces_id: Prisma.FieldRef<"spaces_files", 'Int'>;
    readonly directus_files_id: Prisma.FieldRef<"spaces_files", 'String'>;
}
/**
 * spaces_files findUnique
 */
export type spaces_filesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_files to fetch.
     */
    where: Prisma.spaces_filesWhereUniqueInput;
};
/**
 * spaces_files findUniqueOrThrow
 */
export type spaces_filesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_files to fetch.
     */
    where: Prisma.spaces_filesWhereUniqueInput;
};
/**
 * spaces_files findFirst
 */
export type spaces_filesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_files to fetch.
     */
    where?: Prisma.spaces_filesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_files to fetch.
     */
    orderBy?: Prisma.spaces_filesOrderByWithRelationInput | Prisma.spaces_filesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for spaces_files.
     */
    cursor?: Prisma.spaces_filesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_files from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` spaces_files.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of spaces_files.
     */
    distinct?: Prisma.Spaces_filesScalarFieldEnum | Prisma.Spaces_filesScalarFieldEnum[];
};
/**
 * spaces_files findFirstOrThrow
 */
export type spaces_filesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_files to fetch.
     */
    where?: Prisma.spaces_filesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_files to fetch.
     */
    orderBy?: Prisma.spaces_filesOrderByWithRelationInput | Prisma.spaces_filesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for spaces_files.
     */
    cursor?: Prisma.spaces_filesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_files from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` spaces_files.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of spaces_files.
     */
    distinct?: Prisma.Spaces_filesScalarFieldEnum | Prisma.Spaces_filesScalarFieldEnum[];
};
/**
 * spaces_files findMany
 */
export type spaces_filesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * Filter, which spaces_files to fetch.
     */
    where?: Prisma.spaces_filesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of spaces_files to fetch.
     */
    orderBy?: Prisma.spaces_filesOrderByWithRelationInput | Prisma.spaces_filesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing spaces_files.
     */
    cursor?: Prisma.spaces_filesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` spaces_files from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` spaces_files.
     */
    skip?: number;
    distinct?: Prisma.Spaces_filesScalarFieldEnum | Prisma.Spaces_filesScalarFieldEnum[];
};
/**
 * spaces_files create
 */
export type spaces_filesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * The data needed to create a spaces_files.
     */
    data?: Prisma.XOR<Prisma.spaces_filesCreateInput, Prisma.spaces_filesUncheckedCreateInput>;
};
/**
 * spaces_files createMany
 */
export type spaces_filesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many spaces_files.
     */
    data: Prisma.spaces_filesCreateManyInput | Prisma.spaces_filesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * spaces_files createManyAndReturn
 */
export type spaces_filesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * The data used to create many spaces_files.
     */
    data: Prisma.spaces_filesCreateManyInput | Prisma.spaces_filesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * spaces_files update
 */
export type spaces_filesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * The data needed to update a spaces_files.
     */
    data: Prisma.XOR<Prisma.spaces_filesUpdateInput, Prisma.spaces_filesUncheckedUpdateInput>;
    /**
     * Choose, which spaces_files to update.
     */
    where: Prisma.spaces_filesWhereUniqueInput;
};
/**
 * spaces_files updateMany
 */
export type spaces_filesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update spaces_files.
     */
    data: Prisma.XOR<Prisma.spaces_filesUpdateManyMutationInput, Prisma.spaces_filesUncheckedUpdateManyInput>;
    /**
     * Filter which spaces_files to update
     */
    where?: Prisma.spaces_filesWhereInput;
    /**
     * Limit how many spaces_files to update.
     */
    limit?: number;
};
/**
 * spaces_files updateManyAndReturn
 */
export type spaces_filesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * The data used to update spaces_files.
     */
    data: Prisma.XOR<Prisma.spaces_filesUpdateManyMutationInput, Prisma.spaces_filesUncheckedUpdateManyInput>;
    /**
     * Filter which spaces_files to update
     */
    where?: Prisma.spaces_filesWhereInput;
    /**
     * Limit how many spaces_files to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * spaces_files upsert
 */
export type spaces_filesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * The filter to search for the spaces_files to update in case it exists.
     */
    where: Prisma.spaces_filesWhereUniqueInput;
    /**
     * In case the spaces_files found by the `where` argument doesn't exist, create a new spaces_files with this data.
     */
    create: Prisma.XOR<Prisma.spaces_filesCreateInput, Prisma.spaces_filesUncheckedCreateInput>;
    /**
     * In case the spaces_files was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.spaces_filesUpdateInput, Prisma.spaces_filesUncheckedUpdateInput>;
};
/**
 * spaces_files delete
 */
export type spaces_filesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
    /**
     * Filter which spaces_files to delete.
     */
    where: Prisma.spaces_filesWhereUniqueInput;
};
/**
 * spaces_files deleteMany
 */
export type spaces_filesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which spaces_files to delete
     */
    where?: Prisma.spaces_filesWhereInput;
    /**
     * Limit how many spaces_files to delete.
     */
    limit?: number;
};
/**
 * spaces_files.directus_files
 */
export type spaces_files$directus_filesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_files
     */
    select?: Prisma.directus_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_files
     */
    omit?: Prisma.directus_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_filesInclude<ExtArgs> | null;
    where?: Prisma.directus_filesWhereInput;
};
/**
 * spaces_files.spaces
 */
export type spaces_files$spacesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces
     */
    select?: Prisma.spacesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces
     */
    omit?: Prisma.spacesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spacesInclude<ExtArgs> | null;
    where?: Prisma.spacesWhereInput;
};
/**
 * spaces_files without action
 */
export type spaces_filesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the spaces_files
     */
    select?: Prisma.spaces_filesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the spaces_files
     */
    omit?: Prisma.spaces_filesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.spaces_filesInclude<ExtArgs> | null;
};
export {};
