import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model departments_categories
 * 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_categoriesModel = runtime.Types.Result.DefaultSelection<Prisma.$departments_categoriesPayload>;
export type AggregateDepartments_categories = {
    _count: Departments_categoriesCountAggregateOutputType | null;
    _avg: Departments_categoriesAvgAggregateOutputType | null;
    _sum: Departments_categoriesSumAggregateOutputType | null;
    _min: Departments_categoriesMinAggregateOutputType | null;
    _max: Departments_categoriesMaxAggregateOutputType | null;
};
export type Departments_categoriesAvgAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    categories_id: number | null;
};
export type Departments_categoriesSumAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    categories_id: number | null;
};
export type Departments_categoriesMinAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    categories_id: number | null;
};
export type Departments_categoriesMaxAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    categories_id: number | null;
};
export type Departments_categoriesCountAggregateOutputType = {
    id: number;
    departments_id: number;
    categories_id: number;
    _all: number;
};
export type Departments_categoriesAvgAggregateInputType = {
    id?: true;
    departments_id?: true;
    categories_id?: true;
};
export type Departments_categoriesSumAggregateInputType = {
    id?: true;
    departments_id?: true;
    categories_id?: true;
};
export type Departments_categoriesMinAggregateInputType = {
    id?: true;
    departments_id?: true;
    categories_id?: true;
};
export type Departments_categoriesMaxAggregateInputType = {
    id?: true;
    departments_id?: true;
    categories_id?: true;
};
export type Departments_categoriesCountAggregateInputType = {
    id?: true;
    departments_id?: true;
    categories_id?: true;
    _all?: true;
};
export type Departments_categoriesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which departments_categories to aggregate.
     */
    where?: Prisma.departments_categoriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_categories to fetch.
     */
    orderBy?: Prisma.departments_categoriesOrderByWithRelationInput | Prisma.departments_categoriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.departments_categoriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_categories 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_categories.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned departments_categories
    **/
    _count?: true | Departments_categoriesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Departments_categoriesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Departments_categoriesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Departments_categoriesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Departments_categoriesMaxAggregateInputType;
};
export type GetDepartments_categoriesAggregateType<T extends Departments_categoriesAggregateArgs> = {
    [P in keyof T & keyof AggregateDepartments_categories]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDepartments_categories[P]> : Prisma.GetScalarType<T[P], AggregateDepartments_categories[P]>;
};
export type departments_categoriesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.departments_categoriesWhereInput;
    orderBy?: Prisma.departments_categoriesOrderByWithAggregationInput | Prisma.departments_categoriesOrderByWithAggregationInput[];
    by: Prisma.Departments_categoriesScalarFieldEnum[] | Prisma.Departments_categoriesScalarFieldEnum;
    having?: Prisma.departments_categoriesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Departments_categoriesCountAggregateInputType | true;
    _avg?: Departments_categoriesAvgAggregateInputType;
    _sum?: Departments_categoriesSumAggregateInputType;
    _min?: Departments_categoriesMinAggregateInputType;
    _max?: Departments_categoriesMaxAggregateInputType;
};
export type Departments_categoriesGroupByOutputType = {
    id: number;
    departments_id: number | null;
    categories_id: number | null;
    _count: Departments_categoriesCountAggregateOutputType | null;
    _avg: Departments_categoriesAvgAggregateOutputType | null;
    _sum: Departments_categoriesSumAggregateOutputType | null;
    _min: Departments_categoriesMinAggregateOutputType | null;
    _max: Departments_categoriesMaxAggregateOutputType | null;
};
type GetDepartments_categoriesGroupByPayload<T extends departments_categoriesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Departments_categoriesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Departments_categoriesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Departments_categoriesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Departments_categoriesGroupByOutputType[P]>;
}>>;
export type departments_categoriesWhereInput = {
    AND?: Prisma.departments_categoriesWhereInput | Prisma.departments_categoriesWhereInput[];
    OR?: Prisma.departments_categoriesWhereInput[];
    NOT?: Prisma.departments_categoriesWhereInput | Prisma.departments_categoriesWhereInput[];
    id?: Prisma.IntFilter<"departments_categories"> | number;
    departments_id?: Prisma.IntNullableFilter<"departments_categories"> | number | null;
    categories_id?: Prisma.IntNullableFilter<"departments_categories"> | number | null;
    categories?: Prisma.XOR<Prisma.CategoriesNullableScalarRelationFilter, Prisma.categoriesWhereInput> | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
};
export type departments_categoriesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    categories_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    categories?: Prisma.categoriesOrderByWithRelationInput;
    departments?: Prisma.departmentsOrderByWithRelationInput;
};
export type departments_categoriesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.departments_categoriesWhereInput | Prisma.departments_categoriesWhereInput[];
    OR?: Prisma.departments_categoriesWhereInput[];
    NOT?: Prisma.departments_categoriesWhereInput | Prisma.departments_categoriesWhereInput[];
    departments_id?: Prisma.IntNullableFilter<"departments_categories"> | number | null;
    categories_id?: Prisma.IntNullableFilter<"departments_categories"> | number | null;
    categories?: Prisma.XOR<Prisma.CategoriesNullableScalarRelationFilter, Prisma.categoriesWhereInput> | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
}, "id">;
export type departments_categoriesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    categories_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.departments_categoriesCountOrderByAggregateInput;
    _avg?: Prisma.departments_categoriesAvgOrderByAggregateInput;
    _max?: Prisma.departments_categoriesMaxOrderByAggregateInput;
    _min?: Prisma.departments_categoriesMinOrderByAggregateInput;
    _sum?: Prisma.departments_categoriesSumOrderByAggregateInput;
};
export type departments_categoriesScalarWhereWithAggregatesInput = {
    AND?: Prisma.departments_categoriesScalarWhereWithAggregatesInput | Prisma.departments_categoriesScalarWhereWithAggregatesInput[];
    OR?: Prisma.departments_categoriesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.departments_categoriesScalarWhereWithAggregatesInput | Prisma.departments_categoriesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"departments_categories"> | number;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"departments_categories"> | number | null;
    categories_id?: Prisma.IntNullableWithAggregatesFilter<"departments_categories"> | number | null;
};
export type departments_categoriesCreateInput = {
    categories?: Prisma.categoriesCreateNestedOneWithoutDepartments_categoriesInput;
    departments?: Prisma.departmentsCreateNestedOneWithoutDepartments_categoriesInput;
};
export type departments_categoriesUncheckedCreateInput = {
    id?: number;
    departments_id?: number | null;
    categories_id?: number | null;
};
export type departments_categoriesUpdateInput = {
    categories?: Prisma.categoriesUpdateOneWithoutDepartments_categoriesNestedInput;
    departments?: Prisma.departmentsUpdateOneWithoutDepartments_categoriesNestedInput;
};
export type departments_categoriesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    categories_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_categoriesCreateManyInput = {
    id?: number;
    departments_id?: number | null;
    categories_id?: number | null;
};
export type departments_categoriesUpdateManyMutationInput = {};
export type departments_categoriesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    categories_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Departments_categoriesListRelationFilter = {
    every?: Prisma.departments_categoriesWhereInput;
    some?: Prisma.departments_categoriesWhereInput;
    none?: Prisma.departments_categoriesWhereInput;
};
export type departments_categoriesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type departments_categoriesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type departments_categoriesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type departments_categoriesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type departments_categoriesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type departments_categoriesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type departments_categoriesCreateNestedManyWithoutCategoriesInput = {
    create?: Prisma.XOR<Prisma.departments_categoriesCreateWithoutCategoriesInput, Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput> | Prisma.departments_categoriesCreateWithoutCategoriesInput[] | Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput[];
    connectOrCreate?: Prisma.departments_categoriesCreateOrConnectWithoutCategoriesInput | Prisma.departments_categoriesCreateOrConnectWithoutCategoriesInput[];
    createMany?: Prisma.departments_categoriesCreateManyCategoriesInputEnvelope;
    connect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
};
export type departments_categoriesUncheckedCreateNestedManyWithoutCategoriesInput = {
    create?: Prisma.XOR<Prisma.departments_categoriesCreateWithoutCategoriesInput, Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput> | Prisma.departments_categoriesCreateWithoutCategoriesInput[] | Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput[];
    connectOrCreate?: Prisma.departments_categoriesCreateOrConnectWithoutCategoriesInput | Prisma.departments_categoriesCreateOrConnectWithoutCategoriesInput[];
    createMany?: Prisma.departments_categoriesCreateManyCategoriesInputEnvelope;
    connect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
};
export type departments_categoriesUpdateManyWithoutCategoriesNestedInput = {
    create?: Prisma.XOR<Prisma.departments_categoriesCreateWithoutCategoriesInput, Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput> | Prisma.departments_categoriesCreateWithoutCategoriesInput[] | Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput[];
    connectOrCreate?: Prisma.departments_categoriesCreateOrConnectWithoutCategoriesInput | Prisma.departments_categoriesCreateOrConnectWithoutCategoriesInput[];
    upsert?: Prisma.departments_categoriesUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.departments_categoriesUpsertWithWhereUniqueWithoutCategoriesInput[];
    createMany?: Prisma.departments_categoriesCreateManyCategoriesInputEnvelope;
    set?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    disconnect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    delete?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    connect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    update?: Prisma.departments_categoriesUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.departments_categoriesUpdateWithWhereUniqueWithoutCategoriesInput[];
    updateMany?: Prisma.departments_categoriesUpdateManyWithWhereWithoutCategoriesInput | Prisma.departments_categoriesUpdateManyWithWhereWithoutCategoriesInput[];
    deleteMany?: Prisma.departments_categoriesScalarWhereInput | Prisma.departments_categoriesScalarWhereInput[];
};
export type departments_categoriesUncheckedUpdateManyWithoutCategoriesNestedInput = {
    create?: Prisma.XOR<Prisma.departments_categoriesCreateWithoutCategoriesInput, Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput> | Prisma.departments_categoriesCreateWithoutCategoriesInput[] | Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput[];
    connectOrCreate?: Prisma.departments_categoriesCreateOrConnectWithoutCategoriesInput | Prisma.departments_categoriesCreateOrConnectWithoutCategoriesInput[];
    upsert?: Prisma.departments_categoriesUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.departments_categoriesUpsertWithWhereUniqueWithoutCategoriesInput[];
    createMany?: Prisma.departments_categoriesCreateManyCategoriesInputEnvelope;
    set?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    disconnect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    delete?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    connect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    update?: Prisma.departments_categoriesUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.departments_categoriesUpdateWithWhereUniqueWithoutCategoriesInput[];
    updateMany?: Prisma.departments_categoriesUpdateManyWithWhereWithoutCategoriesInput | Prisma.departments_categoriesUpdateManyWithWhereWithoutCategoriesInput[];
    deleteMany?: Prisma.departments_categoriesScalarWhereInput | Prisma.departments_categoriesScalarWhereInput[];
};
export type departments_categoriesCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.departments_categoriesCreateWithoutDepartmentsInput, Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_categoriesCreateWithoutDepartmentsInput[] | Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_categoriesCreateOrConnectWithoutDepartmentsInput | Prisma.departments_categoriesCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.departments_categoriesCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
};
export type departments_categoriesUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.departments_categoriesCreateWithoutDepartmentsInput, Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_categoriesCreateWithoutDepartmentsInput[] | Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_categoriesCreateOrConnectWithoutDepartmentsInput | Prisma.departments_categoriesCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.departments_categoriesCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
};
export type departments_categoriesUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_categoriesCreateWithoutDepartmentsInput, Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_categoriesCreateWithoutDepartmentsInput[] | Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_categoriesCreateOrConnectWithoutDepartmentsInput | Prisma.departments_categoriesCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.departments_categoriesUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_categoriesUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.departments_categoriesCreateManyDepartmentsInputEnvelope;
    set?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    disconnect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    delete?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    connect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    update?: Prisma.departments_categoriesUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_categoriesUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.departments_categoriesUpdateManyWithWhereWithoutDepartmentsInput | Prisma.departments_categoriesUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.departments_categoriesScalarWhereInput | Prisma.departments_categoriesScalarWhereInput[];
};
export type departments_categoriesUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_categoriesCreateWithoutDepartmentsInput, Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_categoriesCreateWithoutDepartmentsInput[] | Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_categoriesCreateOrConnectWithoutDepartmentsInput | Prisma.departments_categoriesCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.departments_categoriesUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_categoriesUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.departments_categoriesCreateManyDepartmentsInputEnvelope;
    set?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    disconnect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    delete?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    connect?: Prisma.departments_categoriesWhereUniqueInput | Prisma.departments_categoriesWhereUniqueInput[];
    update?: Prisma.departments_categoriesUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_categoriesUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.departments_categoriesUpdateManyWithWhereWithoutDepartmentsInput | Prisma.departments_categoriesUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.departments_categoriesScalarWhereInput | Prisma.departments_categoriesScalarWhereInput[];
};
export type departments_categoriesCreateWithoutCategoriesInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutDepartments_categoriesInput;
};
export type departments_categoriesUncheckedCreateWithoutCategoriesInput = {
    id?: number;
    departments_id?: number | null;
};
export type departments_categoriesCreateOrConnectWithoutCategoriesInput = {
    where: Prisma.departments_categoriesWhereUniqueInput;
    create: Prisma.XOR<Prisma.departments_categoriesCreateWithoutCategoriesInput, Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput>;
};
export type departments_categoriesCreateManyCategoriesInputEnvelope = {
    data: Prisma.departments_categoriesCreateManyCategoriesInput | Prisma.departments_categoriesCreateManyCategoriesInput[];
    skipDuplicates?: boolean;
};
export type departments_categoriesUpsertWithWhereUniqueWithoutCategoriesInput = {
    where: Prisma.departments_categoriesWhereUniqueInput;
    update: Prisma.XOR<Prisma.departments_categoriesUpdateWithoutCategoriesInput, Prisma.departments_categoriesUncheckedUpdateWithoutCategoriesInput>;
    create: Prisma.XOR<Prisma.departments_categoriesCreateWithoutCategoriesInput, Prisma.departments_categoriesUncheckedCreateWithoutCategoriesInput>;
};
export type departments_categoriesUpdateWithWhereUniqueWithoutCategoriesInput = {
    where: Prisma.departments_categoriesWhereUniqueInput;
    data: Prisma.XOR<Prisma.departments_categoriesUpdateWithoutCategoriesInput, Prisma.departments_categoriesUncheckedUpdateWithoutCategoriesInput>;
};
export type departments_categoriesUpdateManyWithWhereWithoutCategoriesInput = {
    where: Prisma.departments_categoriesScalarWhereInput;
    data: Prisma.XOR<Prisma.departments_categoriesUpdateManyMutationInput, Prisma.departments_categoriesUncheckedUpdateManyWithoutCategoriesInput>;
};
export type departments_categoriesScalarWhereInput = {
    AND?: Prisma.departments_categoriesScalarWhereInput | Prisma.departments_categoriesScalarWhereInput[];
    OR?: Prisma.departments_categoriesScalarWhereInput[];
    NOT?: Prisma.departments_categoriesScalarWhereInput | Prisma.departments_categoriesScalarWhereInput[];
    id?: Prisma.IntFilter<"departments_categories"> | number;
    departments_id?: Prisma.IntNullableFilter<"departments_categories"> | number | null;
    categories_id?: Prisma.IntNullableFilter<"departments_categories"> | number | null;
};
export type departments_categoriesCreateWithoutDepartmentsInput = {
    categories?: Prisma.categoriesCreateNestedOneWithoutDepartments_categoriesInput;
};
export type departments_categoriesUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    categories_id?: number | null;
};
export type departments_categoriesCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.departments_categoriesWhereUniqueInput;
    create: Prisma.XOR<Prisma.departments_categoriesCreateWithoutDepartmentsInput, Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput>;
};
export type departments_categoriesCreateManyDepartmentsInputEnvelope = {
    data: Prisma.departments_categoriesCreateManyDepartmentsInput | Prisma.departments_categoriesCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type departments_categoriesUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.departments_categoriesWhereUniqueInput;
    update: Prisma.XOR<Prisma.departments_categoriesUpdateWithoutDepartmentsInput, Prisma.departments_categoriesUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.departments_categoriesCreateWithoutDepartmentsInput, Prisma.departments_categoriesUncheckedCreateWithoutDepartmentsInput>;
};
export type departments_categoriesUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.departments_categoriesWhereUniqueInput;
    data: Prisma.XOR<Prisma.departments_categoriesUpdateWithoutDepartmentsInput, Prisma.departments_categoriesUncheckedUpdateWithoutDepartmentsInput>;
};
export type departments_categoriesUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.departments_categoriesScalarWhereInput;
    data: Prisma.XOR<Prisma.departments_categoriesUpdateManyMutationInput, Prisma.departments_categoriesUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type departments_categoriesCreateManyCategoriesInput = {
    id?: number;
    departments_id?: number | null;
};
export type departments_categoriesUpdateWithoutCategoriesInput = {
    departments?: Prisma.departmentsUpdateOneWithoutDepartments_categoriesNestedInput;
};
export type departments_categoriesUncheckedUpdateWithoutCategoriesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_categoriesUncheckedUpdateManyWithoutCategoriesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_categoriesCreateManyDepartmentsInput = {
    id?: number;
    categories_id?: number | null;
};
export type departments_categoriesUpdateWithoutDepartmentsInput = {
    categories?: Prisma.categoriesUpdateOneWithoutDepartments_categoriesNestedInput;
};
export type departments_categoriesUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    categories_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_categoriesUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    categories_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_categoriesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    categories_id?: boolean;
    categories?: boolean | Prisma.departments_categories$categoriesArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_categories$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_categories"]>;
export type departments_categoriesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    categories_id?: boolean;
    categories?: boolean | Prisma.departments_categories$categoriesArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_categories$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_categories"]>;
export type departments_categoriesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    categories_id?: boolean;
    categories?: boolean | Prisma.departments_categories$categoriesArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_categories$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_categories"]>;
export type departments_categoriesSelectScalar = {
    id?: boolean;
    departments_id?: boolean;
    categories_id?: boolean;
};
export type departments_categoriesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "departments_id" | "categories_id", ExtArgs["result"]["departments_categories"]>;
export type departments_categoriesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    categories?: boolean | Prisma.departments_categories$categoriesArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_categories$departmentsArgs<ExtArgs>;
};
export type departments_categoriesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    categories?: boolean | Prisma.departments_categories$categoriesArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_categories$departmentsArgs<ExtArgs>;
};
export type departments_categoriesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    categories?: boolean | Prisma.departments_categories$categoriesArgs<ExtArgs>;
    departments?: boolean | Prisma.departments_categories$departmentsArgs<ExtArgs>;
};
export type $departments_categoriesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "departments_categories";
    objects: {
        categories: Prisma.$categoriesPayload<ExtArgs> | null;
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        departments_id: number | null;
        categories_id: number | null;
    }, ExtArgs["result"]["departments_categories"]>;
    composites: {};
};
export type departments_categoriesGetPayload<S extends boolean | null | undefined | departments_categoriesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload, S>;
export type departments_categoriesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<departments_categoriesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Departments_categoriesCountAggregateInputType | true;
};
export interface departments_categoriesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['departments_categories'];
        meta: {
            name: 'departments_categories';
        };
    };
    /**
     * Find zero or one Departments_categories that matches the filter.
     * @param {departments_categoriesFindUniqueArgs} args - Arguments to find a Departments_categories
     * @example
     * // Get one Departments_categories
     * const departments_categories = await prisma.departments_categories.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends departments_categoriesFindUniqueArgs>(args: Prisma.SelectSubset<T, departments_categoriesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__departments_categoriesClient<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Departments_categories that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {departments_categoriesFindUniqueOrThrowArgs} args - Arguments to find a Departments_categories
     * @example
     * // Get one Departments_categories
     * const departments_categories = await prisma.departments_categories.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends departments_categoriesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, departments_categoriesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__departments_categoriesClient<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Departments_categories 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_categoriesFindFirstArgs} args - Arguments to find a Departments_categories
     * @example
     * // Get one Departments_categories
     * const departments_categories = await prisma.departments_categories.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends departments_categoriesFindFirstArgs>(args?: Prisma.SelectSubset<T, departments_categoriesFindFirstArgs<ExtArgs>>): Prisma.Prisma__departments_categoriesClient<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Departments_categories 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_categoriesFindFirstOrThrowArgs} args - Arguments to find a Departments_categories
     * @example
     * // Get one Departments_categories
     * const departments_categories = await prisma.departments_categories.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends departments_categoriesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, departments_categoriesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__departments_categoriesClient<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Departments_categories 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_categoriesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Departments_categories
     * const departments_categories = await prisma.departments_categories.findMany()
     *
     * // Get first 10 Departments_categories
     * const departments_categories = await prisma.departments_categories.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const departments_categoriesWithIdOnly = await prisma.departments_categories.findMany({ select: { id: true } })
     *
     */
    findMany<T extends departments_categoriesFindManyArgs>(args?: Prisma.SelectSubset<T, departments_categoriesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Departments_categories.
     * @param {departments_categoriesCreateArgs} args - Arguments to create a Departments_categories.
     * @example
     * // Create one Departments_categories
     * const Departments_categories = await prisma.departments_categories.create({
     *   data: {
     *     // ... data to create a Departments_categories
     *   }
     * })
     *
     */
    create<T extends departments_categoriesCreateArgs>(args: Prisma.SelectSubset<T, departments_categoriesCreateArgs<ExtArgs>>): Prisma.Prisma__departments_categoriesClient<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Departments_categories.
     * @param {departments_categoriesCreateManyArgs} args - Arguments to create many Departments_categories.
     * @example
     * // Create many Departments_categories
     * const departments_categories = await prisma.departments_categories.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends departments_categoriesCreateManyArgs>(args?: Prisma.SelectSubset<T, departments_categoriesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Departments_categories and returns the data saved in the database.
     * @param {departments_categoriesCreateManyAndReturnArgs} args - Arguments to create many Departments_categories.
     * @example
     * // Create many Departments_categories
     * const departments_categories = await prisma.departments_categories.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Departments_categories and only return the `id`
     * const departments_categoriesWithIdOnly = await prisma.departments_categories.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_categoriesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, departments_categoriesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Departments_categories.
     * @param {departments_categoriesDeleteArgs} args - Arguments to delete one Departments_categories.
     * @example
     * // Delete one Departments_categories
     * const Departments_categories = await prisma.departments_categories.delete({
     *   where: {
     *     // ... filter to delete one Departments_categories
     *   }
     * })
     *
     */
    delete<T extends departments_categoriesDeleteArgs>(args: Prisma.SelectSubset<T, departments_categoriesDeleteArgs<ExtArgs>>): Prisma.Prisma__departments_categoriesClient<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Departments_categories.
     * @param {departments_categoriesUpdateArgs} args - Arguments to update one Departments_categories.
     * @example
     * // Update one Departments_categories
     * const departments_categories = await prisma.departments_categories.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends departments_categoriesUpdateArgs>(args: Prisma.SelectSubset<T, departments_categoriesUpdateArgs<ExtArgs>>): Prisma.Prisma__departments_categoriesClient<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Departments_categories.
     * @param {departments_categoriesDeleteManyArgs} args - Arguments to filter Departments_categories to delete.
     * @example
     * // Delete a few Departments_categories
     * const { count } = await prisma.departments_categories.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends departments_categoriesDeleteManyArgs>(args?: Prisma.SelectSubset<T, departments_categoriesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Departments_categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_categoriesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Departments_categories
     * const departments_categories = await prisma.departments_categories.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends departments_categoriesUpdateManyArgs>(args: Prisma.SelectSubset<T, departments_categoriesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Departments_categories and returns the data updated in the database.
     * @param {departments_categoriesUpdateManyAndReturnArgs} args - Arguments to update many Departments_categories.
     * @example
     * // Update many Departments_categories
     * const departments_categories = await prisma.departments_categories.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Departments_categories and only return the `id`
     * const departments_categoriesWithIdOnly = await prisma.departments_categories.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_categoriesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, departments_categoriesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Departments_categories.
     * @param {departments_categoriesUpsertArgs} args - Arguments to update or create a Departments_categories.
     * @example
     * // Update or create a Departments_categories
     * const departments_categories = await prisma.departments_categories.upsert({
     *   create: {
     *     // ... data to create a Departments_categories
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Departments_categories we want to update
     *   }
     * })
     */
    upsert<T extends departments_categoriesUpsertArgs>(args: Prisma.SelectSubset<T, departments_categoriesUpsertArgs<ExtArgs>>): Prisma.Prisma__departments_categoriesClient<runtime.Types.Result.GetResult<Prisma.$departments_categoriesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Departments_categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_categoriesCountArgs} args - Arguments to filter Departments_categories to count.
     * @example
     * // Count the number of Departments_categories
     * const count = await prisma.departments_categories.count({
     *   where: {
     *     // ... the filter for the Departments_categories we want to count
     *   }
     * })
    **/
    count<T extends departments_categoriesCountArgs>(args?: Prisma.Subset<T, departments_categoriesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Departments_categoriesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Departments_categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Departments_categoriesAggregateArgs} 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_categoriesAggregateArgs>(args: Prisma.Subset<T, Departments_categoriesAggregateArgs>): Prisma.PrismaPromise<GetDepartments_categoriesAggregateType<T>>;
    /**
     * Group by Departments_categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_categoriesGroupByArgs} 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_categoriesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: departments_categoriesGroupByArgs['orderBy'];
    } : {
        orderBy?: departments_categoriesGroupByArgs['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_categoriesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDepartments_categoriesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the departments_categories model
     */
    readonly fields: departments_categoriesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for departments_categories.
 * 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_categoriesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    categories<T extends Prisma.departments_categories$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.departments_categories$categoriesArgs<ExtArgs>>): Prisma.Prisma__categoriesClient<runtime.Types.Result.GetResult<Prisma.$categoriesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    departments<T extends Prisma.departments_categories$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.departments_categories$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_categories model
 */
export interface departments_categoriesFieldRefs {
    readonly id: Prisma.FieldRef<"departments_categories", 'Int'>;
    readonly departments_id: Prisma.FieldRef<"departments_categories", 'Int'>;
    readonly categories_id: Prisma.FieldRef<"departments_categories", 'Int'>;
}
/**
 * departments_categories findUnique
 */
export type departments_categoriesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which departments_categories to fetch.
     */
    where: Prisma.departments_categoriesWhereUniqueInput;
};
/**
 * departments_categories findUniqueOrThrow
 */
export type departments_categoriesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which departments_categories to fetch.
     */
    where: Prisma.departments_categoriesWhereUniqueInput;
};
/**
 * departments_categories findFirst
 */
export type departments_categoriesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which departments_categories to fetch.
     */
    where?: Prisma.departments_categoriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_categories to fetch.
     */
    orderBy?: Prisma.departments_categoriesOrderByWithRelationInput | Prisma.departments_categoriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for departments_categories.
     */
    cursor?: Prisma.departments_categoriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_categories 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_categories.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of departments_categories.
     */
    distinct?: Prisma.Departments_categoriesScalarFieldEnum | Prisma.Departments_categoriesScalarFieldEnum[];
};
/**
 * departments_categories findFirstOrThrow
 */
export type departments_categoriesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which departments_categories to fetch.
     */
    where?: Prisma.departments_categoriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_categories to fetch.
     */
    orderBy?: Prisma.departments_categoriesOrderByWithRelationInput | Prisma.departments_categoriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for departments_categories.
     */
    cursor?: Prisma.departments_categoriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_categories 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_categories.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of departments_categories.
     */
    distinct?: Prisma.Departments_categoriesScalarFieldEnum | Prisma.Departments_categoriesScalarFieldEnum[];
};
/**
 * departments_categories findMany
 */
export type departments_categoriesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which departments_categories to fetch.
     */
    where?: Prisma.departments_categoriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_categories to fetch.
     */
    orderBy?: Prisma.departments_categoriesOrderByWithRelationInput | Prisma.departments_categoriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing departments_categories.
     */
    cursor?: Prisma.departments_categoriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_categories 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_categories.
     */
    skip?: number;
    distinct?: Prisma.Departments_categoriesScalarFieldEnum | Prisma.Departments_categoriesScalarFieldEnum[];
};
/**
 * departments_categories create
 */
export type departments_categoriesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * The data needed to create a departments_categories.
     */
    data?: Prisma.XOR<Prisma.departments_categoriesCreateInput, Prisma.departments_categoriesUncheckedCreateInput>;
};
/**
 * departments_categories createMany
 */
export type departments_categoriesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many departments_categories.
     */
    data: Prisma.departments_categoriesCreateManyInput | Prisma.departments_categoriesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * departments_categories createManyAndReturn
 */
export type departments_categoriesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * The data used to create many departments_categories.
     */
    data: Prisma.departments_categoriesCreateManyInput | Prisma.departments_categoriesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * departments_categories update
 */
export type departments_categoriesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * The data needed to update a departments_categories.
     */
    data: Prisma.XOR<Prisma.departments_categoriesUpdateInput, Prisma.departments_categoriesUncheckedUpdateInput>;
    /**
     * Choose, which departments_categories to update.
     */
    where: Prisma.departments_categoriesWhereUniqueInput;
};
/**
 * departments_categories updateMany
 */
export type departments_categoriesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update departments_categories.
     */
    data: Prisma.XOR<Prisma.departments_categoriesUpdateManyMutationInput, Prisma.departments_categoriesUncheckedUpdateManyInput>;
    /**
     * Filter which departments_categories to update
     */
    where?: Prisma.departments_categoriesWhereInput;
    /**
     * Limit how many departments_categories to update.
     */
    limit?: number;
};
/**
 * departments_categories updateManyAndReturn
 */
export type departments_categoriesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * The data used to update departments_categories.
     */
    data: Prisma.XOR<Prisma.departments_categoriesUpdateManyMutationInput, Prisma.departments_categoriesUncheckedUpdateManyInput>;
    /**
     * Filter which departments_categories to update
     */
    where?: Prisma.departments_categoriesWhereInput;
    /**
     * Limit how many departments_categories to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * departments_categories upsert
 */
export type departments_categoriesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * The filter to search for the departments_categories to update in case it exists.
     */
    where: Prisma.departments_categoriesWhereUniqueInput;
    /**
     * In case the departments_categories found by the `where` argument doesn't exist, create a new departments_categories with this data.
     */
    create: Prisma.XOR<Prisma.departments_categoriesCreateInput, Prisma.departments_categoriesUncheckedCreateInput>;
    /**
     * In case the departments_categories was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.departments_categoriesUpdateInput, Prisma.departments_categoriesUncheckedUpdateInput>;
};
/**
 * departments_categories delete
 */
export type departments_categoriesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
    /**
     * Filter which departments_categories to delete.
     */
    where: Prisma.departments_categoriesWhereUniqueInput;
};
/**
 * departments_categories deleteMany
 */
export type departments_categoriesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which departments_categories to delete
     */
    where?: Prisma.departments_categoriesWhereInput;
    /**
     * Limit how many departments_categories to delete.
     */
    limit?: number;
};
/**
 * departments_categories.categories
 */
export type departments_categories$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the categories
     */
    select?: Prisma.categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the categories
     */
    omit?: Prisma.categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.categoriesInclude<ExtArgs> | null;
    where?: Prisma.categoriesWhereInput;
};
/**
 * departments_categories.departments
 */
export type departments_categories$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_categories without action
 */
export type departments_categoriesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_categories
     */
    select?: Prisma.departments_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_categories
     */
    omit?: Prisma.departments_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_categoriesInclude<ExtArgs> | null;
};
export {};
