import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model departments_collections
 * 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 departments_collectionsModel = runtime.Types.Result.DefaultSelection<Prisma.$departments_collectionsPayload>;
export type AggregateDepartments_collections = {
    _count: Departments_collectionsCountAggregateOutputType | null;
    _avg: Departments_collectionsAvgAggregateOutputType | null;
    _sum: Departments_collectionsSumAggregateOutputType | null;
    _min: Departments_collectionsMinAggregateOutputType | null;
    _max: Departments_collectionsMaxAggregateOutputType | null;
};
export type Departments_collectionsAvgAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    collections_id: number | null;
};
export type Departments_collectionsSumAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    collections_id: bigint | null;
};
export type Departments_collectionsMinAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    collections_id: bigint | null;
};
export type Departments_collectionsMaxAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    collections_id: bigint | null;
};
export type Departments_collectionsCountAggregateOutputType = {
    id: number;
    departments_id: number;
    collections_id: number;
    _all: number;
};
export type Departments_collectionsAvgAggregateInputType = {
    id?: true;
    departments_id?: true;
    collections_id?: true;
};
export type Departments_collectionsSumAggregateInputType = {
    id?: true;
    departments_id?: true;
    collections_id?: true;
};
export type Departments_collectionsMinAggregateInputType = {
    id?: true;
    departments_id?: true;
    collections_id?: true;
};
export type Departments_collectionsMaxAggregateInputType = {
    id?: true;
    departments_id?: true;
    collections_id?: true;
};
export type Departments_collectionsCountAggregateInputType = {
    id?: true;
    departments_id?: true;
    collections_id?: true;
    _all?: true;
};
export type Departments_collectionsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which departments_collections to aggregate.
     */
    where?: Prisma.departments_collectionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_collections to fetch.
     */
    orderBy?: Prisma.departments_collectionsOrderByWithRelationInput | Prisma.departments_collectionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.departments_collectionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_collections 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` departments_collections.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned departments_collections
    **/
    _count?: true | Departments_collectionsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Departments_collectionsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Departments_collectionsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Departments_collectionsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Departments_collectionsMaxAggregateInputType;
};
export type GetDepartments_collectionsAggregateType<T extends Departments_collectionsAggregateArgs> = {
    [P in keyof T & keyof AggregateDepartments_collections]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDepartments_collections[P]> : Prisma.GetScalarType<T[P], AggregateDepartments_collections[P]>;
};
export type departments_collectionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.departments_collectionsWhereInput;
    orderBy?: Prisma.departments_collectionsOrderByWithAggregationInput | Prisma.departments_collectionsOrderByWithAggregationInput[];
    by: Prisma.Departments_collectionsScalarFieldEnum[] | Prisma.Departments_collectionsScalarFieldEnum;
    having?: Prisma.departments_collectionsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Departments_collectionsCountAggregateInputType | true;
    _avg?: Departments_collectionsAvgAggregateInputType;
    _sum?: Departments_collectionsSumAggregateInputType;
    _min?: Departments_collectionsMinAggregateInputType;
    _max?: Departments_collectionsMaxAggregateInputType;
};
export type Departments_collectionsGroupByOutputType = {
    id: number;
    departments_id: number | null;
    collections_id: bigint | null;
    _count: Departments_collectionsCountAggregateOutputType | null;
    _avg: Departments_collectionsAvgAggregateOutputType | null;
    _sum: Departments_collectionsSumAggregateOutputType | null;
    _min: Departments_collectionsMinAggregateOutputType | null;
    _max: Departments_collectionsMaxAggregateOutputType | null;
};
type GetDepartments_collectionsGroupByPayload<T extends departments_collectionsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Departments_collectionsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Departments_collectionsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Departments_collectionsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Departments_collectionsGroupByOutputType[P]>;
}>>;
export type departments_collectionsWhereInput = {
    AND?: Prisma.departments_collectionsWhereInput | Prisma.departments_collectionsWhereInput[];
    OR?: Prisma.departments_collectionsWhereInput[];
    NOT?: Prisma.departments_collectionsWhereInput | Prisma.departments_collectionsWhereInput[];
    id?: Prisma.IntFilter<"departments_collections"> | number;
    departments_id?: Prisma.IntNullableFilter<"departments_collections"> | number | null;
    collections_id?: Prisma.BigIntNullableFilter<"departments_collections"> | bigint | number | null;
    collections?: Prisma.XOR<Prisma.CollectionsNullableScalarRelationFilter, Prisma.collectionsWhereInput> | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
};
export type departments_collectionsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    collections_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    collections?: Prisma.collectionsOrderByWithRelationInput;
    departments?: Prisma.departmentsOrderByWithRelationInput;
};
export type departments_collectionsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.departments_collectionsWhereInput | Prisma.departments_collectionsWhereInput[];
    OR?: Prisma.departments_collectionsWhereInput[];
    NOT?: Prisma.departments_collectionsWhereInput | Prisma.departments_collectionsWhereInput[];
    departments_id?: Prisma.IntNullableFilter<"departments_collections"> | number | null;
    collections_id?: Prisma.BigIntNullableFilter<"departments_collections"> | bigint | number | null;
    collections?: Prisma.XOR<Prisma.CollectionsNullableScalarRelationFilter, Prisma.collectionsWhereInput> | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
}, "id">;
export type departments_collectionsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    collections_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.departments_collectionsCountOrderByAggregateInput;
    _avg?: Prisma.departments_collectionsAvgOrderByAggregateInput;
    _max?: Prisma.departments_collectionsMaxOrderByAggregateInput;
    _min?: Prisma.departments_collectionsMinOrderByAggregateInput;
    _sum?: Prisma.departments_collectionsSumOrderByAggregateInput;
};
export type departments_collectionsScalarWhereWithAggregatesInput = {
    AND?: Prisma.departments_collectionsScalarWhereWithAggregatesInput | Prisma.departments_collectionsScalarWhereWithAggregatesInput[];
    OR?: Prisma.departments_collectionsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.departments_collectionsScalarWhereWithAggregatesInput | Prisma.departments_collectionsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"departments_collections"> | number;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"departments_collections"> | number | null;
    collections_id?: Prisma.BigIntNullableWithAggregatesFilter<"departments_collections"> | bigint | number | null;
};
export type departments_collectionsCreateInput = {
    collections?: Prisma.collectionsCreateNestedOneWithoutDepartments_collectionsInput;
    departments?: Prisma.departmentsCreateNestedOneWithoutDepartments_collectionsInput;
};
export type departments_collectionsUncheckedCreateInput = {
    id?: number;
    departments_id?: number | null;
    collections_id?: bigint | number | null;
};
export type departments_collectionsUpdateInput = {
    collections?: Prisma.collectionsUpdateOneWithoutDepartments_collectionsNestedInput;
    departments?: Prisma.departmentsUpdateOneWithoutDepartments_collectionsNestedInput;
};
export type departments_collectionsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    collections_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type departments_collectionsCreateManyInput = {
    id?: number;
    departments_id?: number | null;
    collections_id?: bigint | number | null;
};
export type departments_collectionsUpdateManyMutationInput = {};
export type departments_collectionsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    collections_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type Departments_collectionsListRelationFilter = {
    every?: Prisma.departments_collectionsWhereInput;
    some?: Prisma.departments_collectionsWhereInput;
    none?: Prisma.departments_collectionsWhereInput;
};
export type departments_collectionsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type departments_collectionsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
};
export type departments_collectionsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
};
export type departments_collectionsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
};
export type departments_collectionsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
};
export type departments_collectionsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    collections_id?: Prisma.SortOrder;
};
export type departments_collectionsCreateNestedManyWithoutCollectionsInput = {
    create?: Prisma.XOR<Prisma.departments_collectionsCreateWithoutCollectionsInput, Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput> | Prisma.departments_collectionsCreateWithoutCollectionsInput[] | Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput[];
    connectOrCreate?: Prisma.departments_collectionsCreateOrConnectWithoutCollectionsInput | Prisma.departments_collectionsCreateOrConnectWithoutCollectionsInput[];
    createMany?: Prisma.departments_collectionsCreateManyCollectionsInputEnvelope;
    connect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
};
export type departments_collectionsUncheckedCreateNestedManyWithoutCollectionsInput = {
    create?: Prisma.XOR<Prisma.departments_collectionsCreateWithoutCollectionsInput, Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput> | Prisma.departments_collectionsCreateWithoutCollectionsInput[] | Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput[];
    connectOrCreate?: Prisma.departments_collectionsCreateOrConnectWithoutCollectionsInput | Prisma.departments_collectionsCreateOrConnectWithoutCollectionsInput[];
    createMany?: Prisma.departments_collectionsCreateManyCollectionsInputEnvelope;
    connect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
};
export type departments_collectionsUpdateManyWithoutCollectionsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_collectionsCreateWithoutCollectionsInput, Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput> | Prisma.departments_collectionsCreateWithoutCollectionsInput[] | Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput[];
    connectOrCreate?: Prisma.departments_collectionsCreateOrConnectWithoutCollectionsInput | Prisma.departments_collectionsCreateOrConnectWithoutCollectionsInput[];
    upsert?: Prisma.departments_collectionsUpsertWithWhereUniqueWithoutCollectionsInput | Prisma.departments_collectionsUpsertWithWhereUniqueWithoutCollectionsInput[];
    createMany?: Prisma.departments_collectionsCreateManyCollectionsInputEnvelope;
    set?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    disconnect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    delete?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    connect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    update?: Prisma.departments_collectionsUpdateWithWhereUniqueWithoutCollectionsInput | Prisma.departments_collectionsUpdateWithWhereUniqueWithoutCollectionsInput[];
    updateMany?: Prisma.departments_collectionsUpdateManyWithWhereWithoutCollectionsInput | Prisma.departments_collectionsUpdateManyWithWhereWithoutCollectionsInput[];
    deleteMany?: Prisma.departments_collectionsScalarWhereInput | Prisma.departments_collectionsScalarWhereInput[];
};
export type departments_collectionsUncheckedUpdateManyWithoutCollectionsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_collectionsCreateWithoutCollectionsInput, Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput> | Prisma.departments_collectionsCreateWithoutCollectionsInput[] | Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput[];
    connectOrCreate?: Prisma.departments_collectionsCreateOrConnectWithoutCollectionsInput | Prisma.departments_collectionsCreateOrConnectWithoutCollectionsInput[];
    upsert?: Prisma.departments_collectionsUpsertWithWhereUniqueWithoutCollectionsInput | Prisma.departments_collectionsUpsertWithWhereUniqueWithoutCollectionsInput[];
    createMany?: Prisma.departments_collectionsCreateManyCollectionsInputEnvelope;
    set?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    disconnect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    delete?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    connect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    update?: Prisma.departments_collectionsUpdateWithWhereUniqueWithoutCollectionsInput | Prisma.departments_collectionsUpdateWithWhereUniqueWithoutCollectionsInput[];
    updateMany?: Prisma.departments_collectionsUpdateManyWithWhereWithoutCollectionsInput | Prisma.departments_collectionsUpdateManyWithWhereWithoutCollectionsInput[];
    deleteMany?: Prisma.departments_collectionsScalarWhereInput | Prisma.departments_collectionsScalarWhereInput[];
};
export type departments_collectionsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.departments_collectionsCreateWithoutDepartmentsInput, Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_collectionsCreateWithoutDepartmentsInput[] | Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_collectionsCreateOrConnectWithoutDepartmentsInput | Prisma.departments_collectionsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.departments_collectionsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
};
export type departments_collectionsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.departments_collectionsCreateWithoutDepartmentsInput, Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_collectionsCreateWithoutDepartmentsInput[] | Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_collectionsCreateOrConnectWithoutDepartmentsInput | Prisma.departments_collectionsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.departments_collectionsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
};
export type departments_collectionsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_collectionsCreateWithoutDepartmentsInput, Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_collectionsCreateWithoutDepartmentsInput[] | Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_collectionsCreateOrConnectWithoutDepartmentsInput | Prisma.departments_collectionsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.departments_collectionsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_collectionsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.departments_collectionsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    disconnect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    delete?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    connect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    update?: Prisma.departments_collectionsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_collectionsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.departments_collectionsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.departments_collectionsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.departments_collectionsScalarWhereInput | Prisma.departments_collectionsScalarWhereInput[];
};
export type departments_collectionsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_collectionsCreateWithoutDepartmentsInput, Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_collectionsCreateWithoutDepartmentsInput[] | Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_collectionsCreateOrConnectWithoutDepartmentsInput | Prisma.departments_collectionsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.departments_collectionsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_collectionsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.departments_collectionsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    disconnect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    delete?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    connect?: Prisma.departments_collectionsWhereUniqueInput | Prisma.departments_collectionsWhereUniqueInput[];
    update?: Prisma.departments_collectionsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_collectionsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.departments_collectionsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.departments_collectionsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.departments_collectionsScalarWhereInput | Prisma.departments_collectionsScalarWhereInput[];
};
export type departments_collectionsCreateWithoutCollectionsInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutDepartments_collectionsInput;
};
export type departments_collectionsUncheckedCreateWithoutCollectionsInput = {
    id?: number;
    departments_id?: number | null;
};
export type departments_collectionsCreateOrConnectWithoutCollectionsInput = {
    where: Prisma.departments_collectionsWhereUniqueInput;
    create: Prisma.XOR<Prisma.departments_collectionsCreateWithoutCollectionsInput, Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput>;
};
export type departments_collectionsCreateManyCollectionsInputEnvelope = {
    data: Prisma.departments_collectionsCreateManyCollectionsInput | Prisma.departments_collectionsCreateManyCollectionsInput[];
    skipDuplicates?: boolean;
};
export type departments_collectionsUpsertWithWhereUniqueWithoutCollectionsInput = {
    where: Prisma.departments_collectionsWhereUniqueInput;
    update: Prisma.XOR<Prisma.departments_collectionsUpdateWithoutCollectionsInput, Prisma.departments_collectionsUncheckedUpdateWithoutCollectionsInput>;
    create: Prisma.XOR<Prisma.departments_collectionsCreateWithoutCollectionsInput, Prisma.departments_collectionsUncheckedCreateWithoutCollectionsInput>;
};
export type departments_collectionsUpdateWithWhereUniqueWithoutCollectionsInput = {
    where: Prisma.departments_collectionsWhereUniqueInput;
    data: Prisma.XOR<Prisma.departments_collectionsUpdateWithoutCollectionsInput, Prisma.departments_collectionsUncheckedUpdateWithoutCollectionsInput>;
};
export type departments_collectionsUpdateManyWithWhereWithoutCollectionsInput = {
    where: Prisma.departments_collectionsScalarWhereInput;
    data: Prisma.XOR<Prisma.departments_collectionsUpdateManyMutationInput, Prisma.departments_collectionsUncheckedUpdateManyWithoutCollectionsInput>;
};
export type departments_collectionsScalarWhereInput = {
    AND?: Prisma.departments_collectionsScalarWhereInput | Prisma.departments_collectionsScalarWhereInput[];
    OR?: Prisma.departments_collectionsScalarWhereInput[];
    NOT?: Prisma.departments_collectionsScalarWhereInput | Prisma.departments_collectionsScalarWhereInput[];
    id?: Prisma.IntFilter<"departments_collections"> | number;
    departments_id?: Prisma.IntNullableFilter<"departments_collections"> | number | null;
    collections_id?: Prisma.BigIntNullableFilter<"departments_collections"> | bigint | number | null;
};
export type departments_collectionsCreateWithoutDepartmentsInput = {
    collections?: Prisma.collectionsCreateNestedOneWithoutDepartments_collectionsInput;
};
export type departments_collectionsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    collections_id?: bigint | number | null;
};
export type departments_collectionsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.departments_collectionsWhereUniqueInput;
    create: Prisma.XOR<Prisma.departments_collectionsCreateWithoutDepartmentsInput, Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput>;
};
export type departments_collectionsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.departments_collectionsCreateManyDepartmentsInput | Prisma.departments_collectionsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type departments_collectionsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.departments_collectionsWhereUniqueInput;
    update: Prisma.XOR<Prisma.departments_collectionsUpdateWithoutDepartmentsInput, Prisma.departments_collectionsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.departments_collectionsCreateWithoutDepartmentsInput, Prisma.departments_collectionsUncheckedCreateWithoutDepartmentsInput>;
};
export type departments_collectionsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.departments_collectionsWhereUniqueInput;
    data: Prisma.XOR<Prisma.departments_collectionsUpdateWithoutDepartmentsInput, Prisma.departments_collectionsUncheckedUpdateWithoutDepartmentsInput>;
};
export type departments_collectionsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.departments_collectionsScalarWhereInput;
    data: Prisma.XOR<Prisma.departments_collectionsUpdateManyMutationInput, Prisma.departments_collectionsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type departments_collectionsCreateManyCollectionsInput = {
    id?: number;
    departments_id?: number | null;
};
export type departments_collectionsUpdateWithoutCollectionsInput = {
    departments?: Prisma.departmentsUpdateOneWithoutDepartments_collectionsNestedInput;
};
export type departments_collectionsUncheckedUpdateWithoutCollectionsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_collectionsUncheckedUpdateManyWithoutCollectionsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_collectionsCreateManyDepartmentsInput = {
    id?: number;
    collections_id?: bigint | number | null;
};
export type departments_collectionsUpdateWithoutDepartmentsInput = {
    collections?: Prisma.collectionsUpdateOneWithoutDepartments_collectionsNestedInput;
};
export type departments_collectionsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collections_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type departments_collectionsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    collections_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type departments_collectionsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    collections_id?: boolean;
    collections?: boolean | Prisma.departments_collections$collectionsArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_collections$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_collections"]>;
export type departments_collectionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    collections_id?: boolean;
    collections?: boolean | Prisma.departments_collections$collectionsArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_collections$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_collections"]>;
export type departments_collectionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    collections_id?: boolean;
    collections?: boolean | Prisma.departments_collections$collectionsArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_collections$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_collections"]>;
export type departments_collectionsSelectScalar = {
    id?: boolean;
    departments_id?: boolean;
    collections_id?: boolean;
};
export type departments_collectionsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "departments_id" | "collections_id", ExtArgs["result"]["departments_collections"]>;
export type departments_collectionsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    collections?: boolean | Prisma.departments_collections$collectionsArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_collections$departmentsArgs<ExtArgs>;
};
export type departments_collectionsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    collections?: boolean | Prisma.departments_collections$collectionsArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_collections$departmentsArgs<ExtArgs>;
};
export type departments_collectionsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    collections?: boolean | Prisma.departments_collections$collectionsArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_collections$departmentsArgs<ExtArgs>;
};
export type $departments_collectionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "departments_collections";
    objects: {
        collections: Prisma.$collectionsPayload<ExtArgs> | null;
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        departments_id: number | null;
        collections_id: bigint | null;
    }, ExtArgs["result"]["departments_collections"]>;
    composites: {};
};
export type departments_collectionsGetPayload<S extends boolean | null | undefined | departments_collectionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload, S>;
export type departments_collectionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<departments_collectionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Departments_collectionsCountAggregateInputType | true;
};
export interface departments_collectionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['departments_collections'];
        meta: {
            name: 'departments_collections';
        };
    };
    /**
     * Find zero or one Departments_collections that matches the filter.
     * @param {departments_collectionsFindUniqueArgs} args - Arguments to find a Departments_collections
     * @example
     * // Get one Departments_collections
     * const departments_collections = await prisma.departments_collections.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends departments_collectionsFindUniqueArgs>(args: Prisma.SelectSubset<T, departments_collectionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__departments_collectionsClient<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Departments_collections that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {departments_collectionsFindUniqueOrThrowArgs} args - Arguments to find a Departments_collections
     * @example
     * // Get one Departments_collections
     * const departments_collections = await prisma.departments_collections.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends departments_collectionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, departments_collectionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__departments_collectionsClient<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Departments_collections 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 {departments_collectionsFindFirstArgs} args - Arguments to find a Departments_collections
     * @example
     * // Get one Departments_collections
     * const departments_collections = await prisma.departments_collections.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends departments_collectionsFindFirstArgs>(args?: Prisma.SelectSubset<T, departments_collectionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__departments_collectionsClient<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Departments_collections 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 {departments_collectionsFindFirstOrThrowArgs} args - Arguments to find a Departments_collections
     * @example
     * // Get one Departments_collections
     * const departments_collections = await prisma.departments_collections.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends departments_collectionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, departments_collectionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__departments_collectionsClient<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Departments_collections 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 {departments_collectionsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Departments_collections
     * const departments_collections = await prisma.departments_collections.findMany()
     *
     * // Get first 10 Departments_collections
     * const departments_collections = await prisma.departments_collections.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const departments_collectionsWithIdOnly = await prisma.departments_collections.findMany({ select: { id: true } })
     *
     */
    findMany<T extends departments_collectionsFindManyArgs>(args?: Prisma.SelectSubset<T, departments_collectionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Departments_collections.
     * @param {departments_collectionsCreateArgs} args - Arguments to create a Departments_collections.
     * @example
     * // Create one Departments_collections
     * const Departments_collections = await prisma.departments_collections.create({
     *   data: {
     *     // ... data to create a Departments_collections
     *   }
     * })
     *
     */
    create<T extends departments_collectionsCreateArgs>(args: Prisma.SelectSubset<T, departments_collectionsCreateArgs<ExtArgs>>): Prisma.Prisma__departments_collectionsClient<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Departments_collections.
     * @param {departments_collectionsCreateManyArgs} args - Arguments to create many Departments_collections.
     * @example
     * // Create many Departments_collections
     * const departments_collections = await prisma.departments_collections.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends departments_collectionsCreateManyArgs>(args?: Prisma.SelectSubset<T, departments_collectionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Departments_collections and returns the data saved in the database.
     * @param {departments_collectionsCreateManyAndReturnArgs} args - Arguments to create many Departments_collections.
     * @example
     * // Create many Departments_collections
     * const departments_collections = await prisma.departments_collections.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Departments_collections and only return the `id`
     * const departments_collectionsWithIdOnly = await prisma.departments_collections.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 departments_collectionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, departments_collectionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Departments_collections.
     * @param {departments_collectionsDeleteArgs} args - Arguments to delete one Departments_collections.
     * @example
     * // Delete one Departments_collections
     * const Departments_collections = await prisma.departments_collections.delete({
     *   where: {
     *     // ... filter to delete one Departments_collections
     *   }
     * })
     *
     */
    delete<T extends departments_collectionsDeleteArgs>(args: Prisma.SelectSubset<T, departments_collectionsDeleteArgs<ExtArgs>>): Prisma.Prisma__departments_collectionsClient<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Departments_collections.
     * @param {departments_collectionsUpdateArgs} args - Arguments to update one Departments_collections.
     * @example
     * // Update one Departments_collections
     * const departments_collections = await prisma.departments_collections.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends departments_collectionsUpdateArgs>(args: Prisma.SelectSubset<T, departments_collectionsUpdateArgs<ExtArgs>>): Prisma.Prisma__departments_collectionsClient<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Departments_collections.
     * @param {departments_collectionsDeleteManyArgs} args - Arguments to filter Departments_collections to delete.
     * @example
     * // Delete a few Departments_collections
     * const { count } = await prisma.departments_collections.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends departments_collectionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, departments_collectionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Departments_collections.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_collectionsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Departments_collections
     * const departments_collections = await prisma.departments_collections.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends departments_collectionsUpdateManyArgs>(args: Prisma.SelectSubset<T, departments_collectionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Departments_collections and returns the data updated in the database.
     * @param {departments_collectionsUpdateManyAndReturnArgs} args - Arguments to update many Departments_collections.
     * @example
     * // Update many Departments_collections
     * const departments_collections = await prisma.departments_collections.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Departments_collections and only return the `id`
     * const departments_collectionsWithIdOnly = await prisma.departments_collections.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 departments_collectionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, departments_collectionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Departments_collections.
     * @param {departments_collectionsUpsertArgs} args - Arguments to update or create a Departments_collections.
     * @example
     * // Update or create a Departments_collections
     * const departments_collections = await prisma.departments_collections.upsert({
     *   create: {
     *     // ... data to create a Departments_collections
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Departments_collections we want to update
     *   }
     * })
     */
    upsert<T extends departments_collectionsUpsertArgs>(args: Prisma.SelectSubset<T, departments_collectionsUpsertArgs<ExtArgs>>): Prisma.Prisma__departments_collectionsClient<runtime.Types.Result.GetResult<Prisma.$departments_collectionsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Departments_collections.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_collectionsCountArgs} args - Arguments to filter Departments_collections to count.
     * @example
     * // Count the number of Departments_collections
     * const count = await prisma.departments_collections.count({
     *   where: {
     *     // ... the filter for the Departments_collections we want to count
     *   }
     * })
    **/
    count<T extends departments_collectionsCountArgs>(args?: Prisma.Subset<T, departments_collectionsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Departments_collectionsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Departments_collections.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Departments_collectionsAggregateArgs} 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 Departments_collectionsAggregateArgs>(args: Prisma.Subset<T, Departments_collectionsAggregateArgs>): Prisma.PrismaPromise<GetDepartments_collectionsAggregateType<T>>;
    /**
     * Group by Departments_collections.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_collectionsGroupByArgs} 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 departments_collectionsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: departments_collectionsGroupByArgs['orderBy'];
    } : {
        orderBy?: departments_collectionsGroupByArgs['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, departments_collectionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDepartments_collectionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the departments_collections model
     */
    readonly fields: departments_collectionsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for departments_collections.
 * 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__departments_collectionsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    collections<T extends Prisma.departments_collections$collectionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.departments_collections$collectionsArgs<ExtArgs>>): Prisma.Prisma__collectionsClient<runtime.Types.Result.GetResult<Prisma.$collectionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    departments<T extends Prisma.departments_collections$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.departments_collections$departmentsArgs<ExtArgs>>): Prisma.Prisma__departmentsClient<runtime.Types.Result.GetResult<Prisma.$departmentsPayload<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 departments_collections model
 */
export interface departments_collectionsFieldRefs {
    readonly id: Prisma.FieldRef<"departments_collections", 'Int'>;
    readonly departments_id: Prisma.FieldRef<"departments_collections", 'Int'>;
    readonly collections_id: Prisma.FieldRef<"departments_collections", 'BigInt'>;
}
/**
 * departments_collections findUnique
 */
export type departments_collectionsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_collections to fetch.
     */
    where: Prisma.departments_collectionsWhereUniqueInput;
};
/**
 * departments_collections findUniqueOrThrow
 */
export type departments_collectionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_collections to fetch.
     */
    where: Prisma.departments_collectionsWhereUniqueInput;
};
/**
 * departments_collections findFirst
 */
export type departments_collectionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_collections to fetch.
     */
    where?: Prisma.departments_collectionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_collections to fetch.
     */
    orderBy?: Prisma.departments_collectionsOrderByWithRelationInput | Prisma.departments_collectionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for departments_collections.
     */
    cursor?: Prisma.departments_collectionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_collections 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` departments_collections.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of departments_collections.
     */
    distinct?: Prisma.Departments_collectionsScalarFieldEnum | Prisma.Departments_collectionsScalarFieldEnum[];
};
/**
 * departments_collections findFirstOrThrow
 */
export type departments_collectionsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_collections to fetch.
     */
    where?: Prisma.departments_collectionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_collections to fetch.
     */
    orderBy?: Prisma.departments_collectionsOrderByWithRelationInput | Prisma.departments_collectionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for departments_collections.
     */
    cursor?: Prisma.departments_collectionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_collections 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` departments_collections.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of departments_collections.
     */
    distinct?: Prisma.Departments_collectionsScalarFieldEnum | Prisma.Departments_collectionsScalarFieldEnum[];
};
/**
 * departments_collections findMany
 */
export type departments_collectionsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_collections to fetch.
     */
    where?: Prisma.departments_collectionsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_collections to fetch.
     */
    orderBy?: Prisma.departments_collectionsOrderByWithRelationInput | Prisma.departments_collectionsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing departments_collections.
     */
    cursor?: Prisma.departments_collectionsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_collections 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` departments_collections.
     */
    skip?: number;
    distinct?: Prisma.Departments_collectionsScalarFieldEnum | Prisma.Departments_collectionsScalarFieldEnum[];
};
/**
 * departments_collections create
 */
export type departments_collectionsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * The data needed to create a departments_collections.
     */
    data?: Prisma.XOR<Prisma.departments_collectionsCreateInput, Prisma.departments_collectionsUncheckedCreateInput>;
};
/**
 * departments_collections createMany
 */
export type departments_collectionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many departments_collections.
     */
    data: Prisma.departments_collectionsCreateManyInput | Prisma.departments_collectionsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * departments_collections createManyAndReturn
 */
export type departments_collectionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * The data used to create many departments_collections.
     */
    data: Prisma.departments_collectionsCreateManyInput | Prisma.departments_collectionsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * departments_collections update
 */
export type departments_collectionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * The data needed to update a departments_collections.
     */
    data: Prisma.XOR<Prisma.departments_collectionsUpdateInput, Prisma.departments_collectionsUncheckedUpdateInput>;
    /**
     * Choose, which departments_collections to update.
     */
    where: Prisma.departments_collectionsWhereUniqueInput;
};
/**
 * departments_collections updateMany
 */
export type departments_collectionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update departments_collections.
     */
    data: Prisma.XOR<Prisma.departments_collectionsUpdateManyMutationInput, Prisma.departments_collectionsUncheckedUpdateManyInput>;
    /**
     * Filter which departments_collections to update
     */
    where?: Prisma.departments_collectionsWhereInput;
    /**
     * Limit how many departments_collections to update.
     */
    limit?: number;
};
/**
 * departments_collections updateManyAndReturn
 */
export type departments_collectionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * The data used to update departments_collections.
     */
    data: Prisma.XOR<Prisma.departments_collectionsUpdateManyMutationInput, Prisma.departments_collectionsUncheckedUpdateManyInput>;
    /**
     * Filter which departments_collections to update
     */
    where?: Prisma.departments_collectionsWhereInput;
    /**
     * Limit how many departments_collections to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * departments_collections upsert
 */
export type departments_collectionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * The filter to search for the departments_collections to update in case it exists.
     */
    where: Prisma.departments_collectionsWhereUniqueInput;
    /**
     * In case the departments_collections found by the `where` argument doesn't exist, create a new departments_collections with this data.
     */
    create: Prisma.XOR<Prisma.departments_collectionsCreateInput, Prisma.departments_collectionsUncheckedCreateInput>;
    /**
     * In case the departments_collections was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.departments_collectionsUpdateInput, Prisma.departments_collectionsUncheckedUpdateInput>;
};
/**
 * departments_collections delete
 */
export type departments_collectionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
    /**
     * Filter which departments_collections to delete.
     */
    where: Prisma.departments_collectionsWhereUniqueInput;
};
/**
 * departments_collections deleteMany
 */
export type departments_collectionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which departments_collections to delete
     */
    where?: Prisma.departments_collectionsWhereInput;
    /**
     * Limit how many departments_collections to delete.
     */
    limit?: number;
};
/**
 * departments_collections.collections
 */
export type departments_collections$collectionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the collections
     */
    select?: Prisma.collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the collections
     */
    omit?: Prisma.collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.collectionsInclude<ExtArgs> | null;
    where?: Prisma.collectionsWhereInput;
};
/**
 * departments_collections.departments
 */
export type departments_collections$departmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments
     */
    select?: Prisma.departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments
     */
    omit?: Prisma.departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departmentsInclude<ExtArgs> | null;
    where?: Prisma.departmentsWhereInput;
};
/**
 * departments_collections without action
 */
export type departments_collectionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_collections
     */
    select?: Prisma.departments_collectionsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_collections
     */
    omit?: Prisma.departments_collectionsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_collectionsInclude<ExtArgs> | null;
};
export {};
