import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model articles_departments
 * 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 articles_departmentsModel = runtime.Types.Result.DefaultSelection<Prisma.$articles_departmentsPayload>;
export type AggregateArticles_departments = {
    _count: Articles_departmentsCountAggregateOutputType | null;
    _avg: Articles_departmentsAvgAggregateOutputType | null;
    _sum: Articles_departmentsSumAggregateOutputType | null;
    _min: Articles_departmentsMinAggregateOutputType | null;
    _max: Articles_departmentsMaxAggregateOutputType | null;
};
export type Articles_departmentsAvgAggregateOutputType = {
    id: number | null;
    articles_id: number | null;
    departments_id: number | null;
};
export type Articles_departmentsSumAggregateOutputType = {
    id: number | null;
    articles_id: number | null;
    departments_id: number | null;
};
export type Articles_departmentsMinAggregateOutputType = {
    id: number | null;
    articles_id: number | null;
    departments_id: number | null;
};
export type Articles_departmentsMaxAggregateOutputType = {
    id: number | null;
    articles_id: number | null;
    departments_id: number | null;
};
export type Articles_departmentsCountAggregateOutputType = {
    id: number;
    articles_id: number;
    departments_id: number;
    _all: number;
};
export type Articles_departmentsAvgAggregateInputType = {
    id?: true;
    articles_id?: true;
    departments_id?: true;
};
export type Articles_departmentsSumAggregateInputType = {
    id?: true;
    articles_id?: true;
    departments_id?: true;
};
export type Articles_departmentsMinAggregateInputType = {
    id?: true;
    articles_id?: true;
    departments_id?: true;
};
export type Articles_departmentsMaxAggregateInputType = {
    id?: true;
    articles_id?: true;
    departments_id?: true;
};
export type Articles_departmentsCountAggregateInputType = {
    id?: true;
    articles_id?: true;
    departments_id?: true;
    _all?: true;
};
export type Articles_departmentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which articles_departments to aggregate.
     */
    where?: Prisma.articles_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of articles_departments to fetch.
     */
    orderBy?: Prisma.articles_departmentsOrderByWithRelationInput | Prisma.articles_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.articles_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` articles_departments 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` articles_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned articles_departments
    **/
    _count?: true | Articles_departmentsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Articles_departmentsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Articles_departmentsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Articles_departmentsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Articles_departmentsMaxAggregateInputType;
};
export type GetArticles_departmentsAggregateType<T extends Articles_departmentsAggregateArgs> = {
    [P in keyof T & keyof AggregateArticles_departments]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateArticles_departments[P]> : Prisma.GetScalarType<T[P], AggregateArticles_departments[P]>;
};
export type articles_departmentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.articles_departmentsWhereInput;
    orderBy?: Prisma.articles_departmentsOrderByWithAggregationInput | Prisma.articles_departmentsOrderByWithAggregationInput[];
    by: Prisma.Articles_departmentsScalarFieldEnum[] | Prisma.Articles_departmentsScalarFieldEnum;
    having?: Prisma.articles_departmentsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Articles_departmentsCountAggregateInputType | true;
    _avg?: Articles_departmentsAvgAggregateInputType;
    _sum?: Articles_departmentsSumAggregateInputType;
    _min?: Articles_departmentsMinAggregateInputType;
    _max?: Articles_departmentsMaxAggregateInputType;
};
export type Articles_departmentsGroupByOutputType = {
    id: number;
    articles_id: number | null;
    departments_id: number | null;
    _count: Articles_departmentsCountAggregateOutputType | null;
    _avg: Articles_departmentsAvgAggregateOutputType | null;
    _sum: Articles_departmentsSumAggregateOutputType | null;
    _min: Articles_departmentsMinAggregateOutputType | null;
    _max: Articles_departmentsMaxAggregateOutputType | null;
};
type GetArticles_departmentsGroupByPayload<T extends articles_departmentsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Articles_departmentsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Articles_departmentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Articles_departmentsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Articles_departmentsGroupByOutputType[P]>;
}>>;
export type articles_departmentsWhereInput = {
    AND?: Prisma.articles_departmentsWhereInput | Prisma.articles_departmentsWhereInput[];
    OR?: Prisma.articles_departmentsWhereInput[];
    NOT?: Prisma.articles_departmentsWhereInput | Prisma.articles_departmentsWhereInput[];
    id?: Prisma.IntFilter<"articles_departments"> | number;
    articles_id?: Prisma.IntNullableFilter<"articles_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"articles_departments"> | number | null;
    articles?: Prisma.XOR<Prisma.ArticlesNullableScalarRelationFilter, Prisma.articlesWhereInput> | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
};
export type articles_departmentsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    articles_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    articles?: Prisma.articlesOrderByWithRelationInput;
    departments?: Prisma.departmentsOrderByWithRelationInput;
};
export type articles_departmentsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.articles_departmentsWhereInput | Prisma.articles_departmentsWhereInput[];
    OR?: Prisma.articles_departmentsWhereInput[];
    NOT?: Prisma.articles_departmentsWhereInput | Prisma.articles_departmentsWhereInput[];
    articles_id?: Prisma.IntNullableFilter<"articles_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"articles_departments"> | number | null;
    articles?: Prisma.XOR<Prisma.ArticlesNullableScalarRelationFilter, Prisma.articlesWhereInput> | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
}, "id">;
export type articles_departmentsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    articles_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.articles_departmentsCountOrderByAggregateInput;
    _avg?: Prisma.articles_departmentsAvgOrderByAggregateInput;
    _max?: Prisma.articles_departmentsMaxOrderByAggregateInput;
    _min?: Prisma.articles_departmentsMinOrderByAggregateInput;
    _sum?: Prisma.articles_departmentsSumOrderByAggregateInput;
};
export type articles_departmentsScalarWhereWithAggregatesInput = {
    AND?: Prisma.articles_departmentsScalarWhereWithAggregatesInput | Prisma.articles_departmentsScalarWhereWithAggregatesInput[];
    OR?: Prisma.articles_departmentsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.articles_departmentsScalarWhereWithAggregatesInput | Prisma.articles_departmentsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"articles_departments"> | number;
    articles_id?: Prisma.IntNullableWithAggregatesFilter<"articles_departments"> | number | null;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"articles_departments"> | number | null;
};
export type articles_departmentsCreateInput = {
    articles?: Prisma.articlesCreateNestedOneWithoutArticles_departmentsInput;
    departments?: Prisma.departmentsCreateNestedOneWithoutArticles_departmentsInput;
};
export type articles_departmentsUncheckedCreateInput = {
    id?: number;
    articles_id?: number | null;
    departments_id?: number | null;
};
export type articles_departmentsUpdateInput = {
    articles?: Prisma.articlesUpdateOneWithoutArticles_departmentsNestedInput;
    departments?: Prisma.departmentsUpdateOneWithoutArticles_departmentsNestedInput;
};
export type articles_departmentsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    articles_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type articles_departmentsCreateManyInput = {
    id?: number;
    articles_id?: number | null;
    departments_id?: number | null;
};
export type articles_departmentsUpdateManyMutationInput = {};
export type articles_departmentsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    articles_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Articles_departmentsListRelationFilter = {
    every?: Prisma.articles_departmentsWhereInput;
    some?: Prisma.articles_departmentsWhereInput;
    none?: Prisma.articles_departmentsWhereInput;
};
export type articles_departmentsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type articles_departmentsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    articles_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type articles_departmentsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    articles_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type articles_departmentsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    articles_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type articles_departmentsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    articles_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type articles_departmentsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    articles_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type articles_departmentsCreateNestedManyWithoutArticlesInput = {
    create?: Prisma.XOR<Prisma.articles_departmentsCreateWithoutArticlesInput, Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput> | Prisma.articles_departmentsCreateWithoutArticlesInput[] | Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput[];
    connectOrCreate?: Prisma.articles_departmentsCreateOrConnectWithoutArticlesInput | Prisma.articles_departmentsCreateOrConnectWithoutArticlesInput[];
    createMany?: Prisma.articles_departmentsCreateManyArticlesInputEnvelope;
    connect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
};
export type articles_departmentsUncheckedCreateNestedManyWithoutArticlesInput = {
    create?: Prisma.XOR<Prisma.articles_departmentsCreateWithoutArticlesInput, Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput> | Prisma.articles_departmentsCreateWithoutArticlesInput[] | Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput[];
    connectOrCreate?: Prisma.articles_departmentsCreateOrConnectWithoutArticlesInput | Prisma.articles_departmentsCreateOrConnectWithoutArticlesInput[];
    createMany?: Prisma.articles_departmentsCreateManyArticlesInputEnvelope;
    connect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
};
export type articles_departmentsUpdateManyWithoutArticlesNestedInput = {
    create?: Prisma.XOR<Prisma.articles_departmentsCreateWithoutArticlesInput, Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput> | Prisma.articles_departmentsCreateWithoutArticlesInput[] | Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput[];
    connectOrCreate?: Prisma.articles_departmentsCreateOrConnectWithoutArticlesInput | Prisma.articles_departmentsCreateOrConnectWithoutArticlesInput[];
    upsert?: Prisma.articles_departmentsUpsertWithWhereUniqueWithoutArticlesInput | Prisma.articles_departmentsUpsertWithWhereUniqueWithoutArticlesInput[];
    createMany?: Prisma.articles_departmentsCreateManyArticlesInputEnvelope;
    set?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    disconnect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    delete?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    connect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    update?: Prisma.articles_departmentsUpdateWithWhereUniqueWithoutArticlesInput | Prisma.articles_departmentsUpdateWithWhereUniqueWithoutArticlesInput[];
    updateMany?: Prisma.articles_departmentsUpdateManyWithWhereWithoutArticlesInput | Prisma.articles_departmentsUpdateManyWithWhereWithoutArticlesInput[];
    deleteMany?: Prisma.articles_departmentsScalarWhereInput | Prisma.articles_departmentsScalarWhereInput[];
};
export type articles_departmentsUncheckedUpdateManyWithoutArticlesNestedInput = {
    create?: Prisma.XOR<Prisma.articles_departmentsCreateWithoutArticlesInput, Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput> | Prisma.articles_departmentsCreateWithoutArticlesInput[] | Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput[];
    connectOrCreate?: Prisma.articles_departmentsCreateOrConnectWithoutArticlesInput | Prisma.articles_departmentsCreateOrConnectWithoutArticlesInput[];
    upsert?: Prisma.articles_departmentsUpsertWithWhereUniqueWithoutArticlesInput | Prisma.articles_departmentsUpsertWithWhereUniqueWithoutArticlesInput[];
    createMany?: Prisma.articles_departmentsCreateManyArticlesInputEnvelope;
    set?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    disconnect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    delete?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    connect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    update?: Prisma.articles_departmentsUpdateWithWhereUniqueWithoutArticlesInput | Prisma.articles_departmentsUpdateWithWhereUniqueWithoutArticlesInput[];
    updateMany?: Prisma.articles_departmentsUpdateManyWithWhereWithoutArticlesInput | Prisma.articles_departmentsUpdateManyWithWhereWithoutArticlesInput[];
    deleteMany?: Prisma.articles_departmentsScalarWhereInput | Prisma.articles_departmentsScalarWhereInput[];
};
export type articles_departmentsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.articles_departmentsCreateWithoutDepartmentsInput, Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.articles_departmentsCreateWithoutDepartmentsInput[] | Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.articles_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.articles_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.articles_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
};
export type articles_departmentsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.articles_departmentsCreateWithoutDepartmentsInput, Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.articles_departmentsCreateWithoutDepartmentsInput[] | Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.articles_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.articles_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.articles_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
};
export type articles_departmentsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.articles_departmentsCreateWithoutDepartmentsInput, Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.articles_departmentsCreateWithoutDepartmentsInput[] | Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.articles_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.articles_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.articles_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.articles_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.articles_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    disconnect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    delete?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    connect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    update?: Prisma.articles_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.articles_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.articles_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.articles_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.articles_departmentsScalarWhereInput | Prisma.articles_departmentsScalarWhereInput[];
};
export type articles_departmentsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.articles_departmentsCreateWithoutDepartmentsInput, Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.articles_departmentsCreateWithoutDepartmentsInput[] | Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.articles_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.articles_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.articles_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.articles_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.articles_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    disconnect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    delete?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    connect?: Prisma.articles_departmentsWhereUniqueInput | Prisma.articles_departmentsWhereUniqueInput[];
    update?: Prisma.articles_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.articles_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.articles_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.articles_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.articles_departmentsScalarWhereInput | Prisma.articles_departmentsScalarWhereInput[];
};
export type articles_departmentsCreateWithoutArticlesInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutArticles_departmentsInput;
};
export type articles_departmentsUncheckedCreateWithoutArticlesInput = {
    id?: number;
    departments_id?: number | null;
};
export type articles_departmentsCreateOrConnectWithoutArticlesInput = {
    where: Prisma.articles_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.articles_departmentsCreateWithoutArticlesInput, Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput>;
};
export type articles_departmentsCreateManyArticlesInputEnvelope = {
    data: Prisma.articles_departmentsCreateManyArticlesInput | Prisma.articles_departmentsCreateManyArticlesInput[];
    skipDuplicates?: boolean;
};
export type articles_departmentsUpsertWithWhereUniqueWithoutArticlesInput = {
    where: Prisma.articles_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.articles_departmentsUpdateWithoutArticlesInput, Prisma.articles_departmentsUncheckedUpdateWithoutArticlesInput>;
    create: Prisma.XOR<Prisma.articles_departmentsCreateWithoutArticlesInput, Prisma.articles_departmentsUncheckedCreateWithoutArticlesInput>;
};
export type articles_departmentsUpdateWithWhereUniqueWithoutArticlesInput = {
    where: Prisma.articles_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.articles_departmentsUpdateWithoutArticlesInput, Prisma.articles_departmentsUncheckedUpdateWithoutArticlesInput>;
};
export type articles_departmentsUpdateManyWithWhereWithoutArticlesInput = {
    where: Prisma.articles_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.articles_departmentsUpdateManyMutationInput, Prisma.articles_departmentsUncheckedUpdateManyWithoutArticlesInput>;
};
export type articles_departmentsScalarWhereInput = {
    AND?: Prisma.articles_departmentsScalarWhereInput | Prisma.articles_departmentsScalarWhereInput[];
    OR?: Prisma.articles_departmentsScalarWhereInput[];
    NOT?: Prisma.articles_departmentsScalarWhereInput | Prisma.articles_departmentsScalarWhereInput[];
    id?: Prisma.IntFilter<"articles_departments"> | number;
    articles_id?: Prisma.IntNullableFilter<"articles_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"articles_departments"> | number | null;
};
export type articles_departmentsCreateWithoutDepartmentsInput = {
    articles?: Prisma.articlesCreateNestedOneWithoutArticles_departmentsInput;
};
export type articles_departmentsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    articles_id?: number | null;
};
export type articles_departmentsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.articles_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.articles_departmentsCreateWithoutDepartmentsInput, Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type articles_departmentsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.articles_departmentsCreateManyDepartmentsInput | Prisma.articles_departmentsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type articles_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.articles_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.articles_departmentsUpdateWithoutDepartmentsInput, Prisma.articles_departmentsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.articles_departmentsCreateWithoutDepartmentsInput, Prisma.articles_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type articles_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.articles_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.articles_departmentsUpdateWithoutDepartmentsInput, Prisma.articles_departmentsUncheckedUpdateWithoutDepartmentsInput>;
};
export type articles_departmentsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.articles_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.articles_departmentsUpdateManyMutationInput, Prisma.articles_departmentsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type articles_departmentsCreateManyArticlesInput = {
    id?: number;
    departments_id?: number | null;
};
export type articles_departmentsUpdateWithoutArticlesInput = {
    departments?: Prisma.departmentsUpdateOneWithoutArticles_departmentsNestedInput;
};
export type articles_departmentsUncheckedUpdateWithoutArticlesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type articles_departmentsUncheckedUpdateManyWithoutArticlesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type articles_departmentsCreateManyDepartmentsInput = {
    id?: number;
    articles_id?: number | null;
};
export type articles_departmentsUpdateWithoutDepartmentsInput = {
    articles?: Prisma.articlesUpdateOneWithoutArticles_departmentsNestedInput;
};
export type articles_departmentsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    articles_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type articles_departmentsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    articles_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type articles_departmentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    articles_id?: boolean;
    departments_id?: boolean;
    articles?: boolean | Prisma.articles_departments$articlesArgs<ExtArgs>;
    departments?: boolean | Prisma.articles_departments$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["articles_departments"]>;
export type articles_departmentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    articles_id?: boolean;
    departments_id?: boolean;
    articles?: boolean | Prisma.articles_departments$articlesArgs<ExtArgs>;
    departments?: boolean | Prisma.articles_departments$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["articles_departments"]>;
export type articles_departmentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    articles_id?: boolean;
    departments_id?: boolean;
    articles?: boolean | Prisma.articles_departments$articlesArgs<ExtArgs>;
    departments?: boolean | Prisma.articles_departments$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["articles_departments"]>;
export type articles_departmentsSelectScalar = {
    id?: boolean;
    articles_id?: boolean;
    departments_id?: boolean;
};
export type articles_departmentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "articles_id" | "departments_id", ExtArgs["result"]["articles_departments"]>;
export type articles_departmentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    articles?: boolean | Prisma.articles_departments$articlesArgs<ExtArgs>;
    departments?: boolean | Prisma.articles_departments$departmentsArgs<ExtArgs>;
};
export type articles_departmentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    articles?: boolean | Prisma.articles_departments$articlesArgs<ExtArgs>;
    departments?: boolean | Prisma.articles_departments$departmentsArgs<ExtArgs>;
};
export type articles_departmentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    articles?: boolean | Prisma.articles_departments$articlesArgs<ExtArgs>;
    departments?: boolean | Prisma.articles_departments$departmentsArgs<ExtArgs>;
};
export type $articles_departmentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "articles_departments";
    objects: {
        articles: Prisma.$articlesPayload<ExtArgs> | null;
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        articles_id: number | null;
        departments_id: number | null;
    }, ExtArgs["result"]["articles_departments"]>;
    composites: {};
};
export type articles_departmentsGetPayload<S extends boolean | null | undefined | articles_departmentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload, S>;
export type articles_departmentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<articles_departmentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Articles_departmentsCountAggregateInputType | true;
};
export interface articles_departmentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['articles_departments'];
        meta: {
            name: 'articles_departments';
        };
    };
    /**
     * Find zero or one Articles_departments that matches the filter.
     * @param {articles_departmentsFindUniqueArgs} args - Arguments to find a Articles_departments
     * @example
     * // Get one Articles_departments
     * const articles_departments = await prisma.articles_departments.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends articles_departmentsFindUniqueArgs>(args: Prisma.SelectSubset<T, articles_departmentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__articles_departmentsClient<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Articles_departments that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {articles_departmentsFindUniqueOrThrowArgs} args - Arguments to find a Articles_departments
     * @example
     * // Get one Articles_departments
     * const articles_departments = await prisma.articles_departments.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends articles_departmentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, articles_departmentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__articles_departmentsClient<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Articles_departments 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 {articles_departmentsFindFirstArgs} args - Arguments to find a Articles_departments
     * @example
     * // Get one Articles_departments
     * const articles_departments = await prisma.articles_departments.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends articles_departmentsFindFirstArgs>(args?: Prisma.SelectSubset<T, articles_departmentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__articles_departmentsClient<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Articles_departments 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 {articles_departmentsFindFirstOrThrowArgs} args - Arguments to find a Articles_departments
     * @example
     * // Get one Articles_departments
     * const articles_departments = await prisma.articles_departments.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends articles_departmentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, articles_departmentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__articles_departmentsClient<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Articles_departments 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 {articles_departmentsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Articles_departments
     * const articles_departments = await prisma.articles_departments.findMany()
     *
     * // Get first 10 Articles_departments
     * const articles_departments = await prisma.articles_departments.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const articles_departmentsWithIdOnly = await prisma.articles_departments.findMany({ select: { id: true } })
     *
     */
    findMany<T extends articles_departmentsFindManyArgs>(args?: Prisma.SelectSubset<T, articles_departmentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Articles_departments.
     * @param {articles_departmentsCreateArgs} args - Arguments to create a Articles_departments.
     * @example
     * // Create one Articles_departments
     * const Articles_departments = await prisma.articles_departments.create({
     *   data: {
     *     // ... data to create a Articles_departments
     *   }
     * })
     *
     */
    create<T extends articles_departmentsCreateArgs>(args: Prisma.SelectSubset<T, articles_departmentsCreateArgs<ExtArgs>>): Prisma.Prisma__articles_departmentsClient<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Articles_departments.
     * @param {articles_departmentsCreateManyArgs} args - Arguments to create many Articles_departments.
     * @example
     * // Create many Articles_departments
     * const articles_departments = await prisma.articles_departments.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends articles_departmentsCreateManyArgs>(args?: Prisma.SelectSubset<T, articles_departmentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Articles_departments and returns the data saved in the database.
     * @param {articles_departmentsCreateManyAndReturnArgs} args - Arguments to create many Articles_departments.
     * @example
     * // Create many Articles_departments
     * const articles_departments = await prisma.articles_departments.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Articles_departments and only return the `id`
     * const articles_departmentsWithIdOnly = await prisma.articles_departments.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 articles_departmentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, articles_departmentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Articles_departments.
     * @param {articles_departmentsDeleteArgs} args - Arguments to delete one Articles_departments.
     * @example
     * // Delete one Articles_departments
     * const Articles_departments = await prisma.articles_departments.delete({
     *   where: {
     *     // ... filter to delete one Articles_departments
     *   }
     * })
     *
     */
    delete<T extends articles_departmentsDeleteArgs>(args: Prisma.SelectSubset<T, articles_departmentsDeleteArgs<ExtArgs>>): Prisma.Prisma__articles_departmentsClient<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Articles_departments.
     * @param {articles_departmentsUpdateArgs} args - Arguments to update one Articles_departments.
     * @example
     * // Update one Articles_departments
     * const articles_departments = await prisma.articles_departments.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends articles_departmentsUpdateArgs>(args: Prisma.SelectSubset<T, articles_departmentsUpdateArgs<ExtArgs>>): Prisma.Prisma__articles_departmentsClient<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Articles_departments.
     * @param {articles_departmentsDeleteManyArgs} args - Arguments to filter Articles_departments to delete.
     * @example
     * // Delete a few Articles_departments
     * const { count } = await prisma.articles_departments.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends articles_departmentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, articles_departmentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Articles_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {articles_departmentsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Articles_departments
     * const articles_departments = await prisma.articles_departments.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends articles_departmentsUpdateManyArgs>(args: Prisma.SelectSubset<T, articles_departmentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Articles_departments and returns the data updated in the database.
     * @param {articles_departmentsUpdateManyAndReturnArgs} args - Arguments to update many Articles_departments.
     * @example
     * // Update many Articles_departments
     * const articles_departments = await prisma.articles_departments.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Articles_departments and only return the `id`
     * const articles_departmentsWithIdOnly = await prisma.articles_departments.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 articles_departmentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, articles_departmentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Articles_departments.
     * @param {articles_departmentsUpsertArgs} args - Arguments to update or create a Articles_departments.
     * @example
     * // Update or create a Articles_departments
     * const articles_departments = await prisma.articles_departments.upsert({
     *   create: {
     *     // ... data to create a Articles_departments
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Articles_departments we want to update
     *   }
     * })
     */
    upsert<T extends articles_departmentsUpsertArgs>(args: Prisma.SelectSubset<T, articles_departmentsUpsertArgs<ExtArgs>>): Prisma.Prisma__articles_departmentsClient<runtime.Types.Result.GetResult<Prisma.$articles_departmentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Articles_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {articles_departmentsCountArgs} args - Arguments to filter Articles_departments to count.
     * @example
     * // Count the number of Articles_departments
     * const count = await prisma.articles_departments.count({
     *   where: {
     *     // ... the filter for the Articles_departments we want to count
     *   }
     * })
    **/
    count<T extends articles_departmentsCountArgs>(args?: Prisma.Subset<T, articles_departmentsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Articles_departmentsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Articles_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Articles_departmentsAggregateArgs} 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 Articles_departmentsAggregateArgs>(args: Prisma.Subset<T, Articles_departmentsAggregateArgs>): Prisma.PrismaPromise<GetArticles_departmentsAggregateType<T>>;
    /**
     * Group by Articles_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {articles_departmentsGroupByArgs} 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 articles_departmentsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: articles_departmentsGroupByArgs['orderBy'];
    } : {
        orderBy?: articles_departmentsGroupByArgs['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, articles_departmentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetArticles_departmentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the articles_departments model
     */
    readonly fields: articles_departmentsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for articles_departments.
 * 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__articles_departmentsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    articles<T extends Prisma.articles_departments$articlesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.articles_departments$articlesArgs<ExtArgs>>): Prisma.Prisma__articlesClient<runtime.Types.Result.GetResult<Prisma.$articlesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    departments<T extends Prisma.articles_departments$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.articles_departments$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 articles_departments model
 */
export interface articles_departmentsFieldRefs {
    readonly id: Prisma.FieldRef<"articles_departments", 'Int'>;
    readonly articles_id: Prisma.FieldRef<"articles_departments", 'Int'>;
    readonly departments_id: Prisma.FieldRef<"articles_departments", 'Int'>;
}
/**
 * articles_departments findUnique
 */
export type articles_departmentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which articles_departments to fetch.
     */
    where: Prisma.articles_departmentsWhereUniqueInput;
};
/**
 * articles_departments findUniqueOrThrow
 */
export type articles_departmentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which articles_departments to fetch.
     */
    where: Prisma.articles_departmentsWhereUniqueInput;
};
/**
 * articles_departments findFirst
 */
export type articles_departmentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which articles_departments to fetch.
     */
    where?: Prisma.articles_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of articles_departments to fetch.
     */
    orderBy?: Prisma.articles_departmentsOrderByWithRelationInput | Prisma.articles_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for articles_departments.
     */
    cursor?: Prisma.articles_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` articles_departments 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` articles_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of articles_departments.
     */
    distinct?: Prisma.Articles_departmentsScalarFieldEnum | Prisma.Articles_departmentsScalarFieldEnum[];
};
/**
 * articles_departments findFirstOrThrow
 */
export type articles_departmentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which articles_departments to fetch.
     */
    where?: Prisma.articles_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of articles_departments to fetch.
     */
    orderBy?: Prisma.articles_departmentsOrderByWithRelationInput | Prisma.articles_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for articles_departments.
     */
    cursor?: Prisma.articles_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` articles_departments 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` articles_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of articles_departments.
     */
    distinct?: Prisma.Articles_departmentsScalarFieldEnum | Prisma.Articles_departmentsScalarFieldEnum[];
};
/**
 * articles_departments findMany
 */
export type articles_departmentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which articles_departments to fetch.
     */
    where?: Prisma.articles_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of articles_departments to fetch.
     */
    orderBy?: Prisma.articles_departmentsOrderByWithRelationInput | Prisma.articles_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing articles_departments.
     */
    cursor?: Prisma.articles_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` articles_departments 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` articles_departments.
     */
    skip?: number;
    distinct?: Prisma.Articles_departmentsScalarFieldEnum | Prisma.Articles_departmentsScalarFieldEnum[];
};
/**
 * articles_departments create
 */
export type articles_departmentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to create a articles_departments.
     */
    data?: Prisma.XOR<Prisma.articles_departmentsCreateInput, Prisma.articles_departmentsUncheckedCreateInput>;
};
/**
 * articles_departments createMany
 */
export type articles_departmentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many articles_departments.
     */
    data: Prisma.articles_departmentsCreateManyInput | Prisma.articles_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * articles_departments createManyAndReturn
 */
export type articles_departmentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to create many articles_departments.
     */
    data: Prisma.articles_departmentsCreateManyInput | Prisma.articles_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * articles_departments update
 */
export type articles_departmentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to update a articles_departments.
     */
    data: Prisma.XOR<Prisma.articles_departmentsUpdateInput, Prisma.articles_departmentsUncheckedUpdateInput>;
    /**
     * Choose, which articles_departments to update.
     */
    where: Prisma.articles_departmentsWhereUniqueInput;
};
/**
 * articles_departments updateMany
 */
export type articles_departmentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update articles_departments.
     */
    data: Prisma.XOR<Prisma.articles_departmentsUpdateManyMutationInput, Prisma.articles_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which articles_departments to update
     */
    where?: Prisma.articles_departmentsWhereInput;
    /**
     * Limit how many articles_departments to update.
     */
    limit?: number;
};
/**
 * articles_departments updateManyAndReturn
 */
export type articles_departmentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to update articles_departments.
     */
    data: Prisma.XOR<Prisma.articles_departmentsUpdateManyMutationInput, Prisma.articles_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which articles_departments to update
     */
    where?: Prisma.articles_departmentsWhereInput;
    /**
     * Limit how many articles_departments to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * articles_departments upsert
 */
export type articles_departmentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * The filter to search for the articles_departments to update in case it exists.
     */
    where: Prisma.articles_departmentsWhereUniqueInput;
    /**
     * In case the articles_departments found by the `where` argument doesn't exist, create a new articles_departments with this data.
     */
    create: Prisma.XOR<Prisma.articles_departmentsCreateInput, Prisma.articles_departmentsUncheckedCreateInput>;
    /**
     * In case the articles_departments was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.articles_departmentsUpdateInput, Prisma.articles_departmentsUncheckedUpdateInput>;
};
/**
 * articles_departments delete
 */
export type articles_departmentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
    /**
     * Filter which articles_departments to delete.
     */
    where: Prisma.articles_departmentsWhereUniqueInput;
};
/**
 * articles_departments deleteMany
 */
export type articles_departmentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which articles_departments to delete
     */
    where?: Prisma.articles_departmentsWhereInput;
    /**
     * Limit how many articles_departments to delete.
     */
    limit?: number;
};
/**
 * articles_departments.articles
 */
export type articles_departments$articlesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles
     */
    select?: Prisma.articlesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles
     */
    omit?: Prisma.articlesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articlesInclude<ExtArgs> | null;
    where?: Prisma.articlesWhereInput;
};
/**
 * articles_departments.departments
 */
export type articles_departments$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;
};
/**
 * articles_departments without action
 */
export type articles_departmentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the articles_departments
     */
    select?: Prisma.articles_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the articles_departments
     */
    omit?: Prisma.articles_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.articles_departmentsInclude<ExtArgs> | null;
};
export {};
