import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model products_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 products_departmentsModel = runtime.Types.Result.DefaultSelection<Prisma.$products_departmentsPayload>;
export type AggregateProducts_departments = {
    _count: Products_departmentsCountAggregateOutputType | null;
    _avg: Products_departmentsAvgAggregateOutputType | null;
    _sum: Products_departmentsSumAggregateOutputType | null;
    _min: Products_departmentsMinAggregateOutputType | null;
    _max: Products_departmentsMaxAggregateOutputType | null;
};
export type Products_departmentsAvgAggregateOutputType = {
    id: number | null;
    products_id: number | null;
    departments_id: number | null;
};
export type Products_departmentsSumAggregateOutputType = {
    id: number | null;
    products_id: bigint | null;
    departments_id: number | null;
};
export type Products_departmentsMinAggregateOutputType = {
    id: number | null;
    products_id: bigint | null;
    departments_id: number | null;
};
export type Products_departmentsMaxAggregateOutputType = {
    id: number | null;
    products_id: bigint | null;
    departments_id: number | null;
};
export type Products_departmentsCountAggregateOutputType = {
    id: number;
    products_id: number;
    departments_id: number;
    _all: number;
};
export type Products_departmentsAvgAggregateInputType = {
    id?: true;
    products_id?: true;
    departments_id?: true;
};
export type Products_departmentsSumAggregateInputType = {
    id?: true;
    products_id?: true;
    departments_id?: true;
};
export type Products_departmentsMinAggregateInputType = {
    id?: true;
    products_id?: true;
    departments_id?: true;
};
export type Products_departmentsMaxAggregateInputType = {
    id?: true;
    products_id?: true;
    departments_id?: true;
};
export type Products_departmentsCountAggregateInputType = {
    id?: true;
    products_id?: true;
    departments_id?: true;
    _all?: true;
};
export type Products_departmentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which products_departments to aggregate.
     */
    where?: Prisma.products_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of products_departments to fetch.
     */
    orderBy?: Prisma.products_departmentsOrderByWithRelationInput | Prisma.products_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.products_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` products_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` products_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned products_departments
    **/
    _count?: true | Products_departmentsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Products_departmentsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Products_departmentsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Products_departmentsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Products_departmentsMaxAggregateInputType;
};
export type GetProducts_departmentsAggregateType<T extends Products_departmentsAggregateArgs> = {
    [P in keyof T & keyof AggregateProducts_departments]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProducts_departments[P]> : Prisma.GetScalarType<T[P], AggregateProducts_departments[P]>;
};
export type products_departmentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.products_departmentsWhereInput;
    orderBy?: Prisma.products_departmentsOrderByWithAggregationInput | Prisma.products_departmentsOrderByWithAggregationInput[];
    by: Prisma.Products_departmentsScalarFieldEnum[] | Prisma.Products_departmentsScalarFieldEnum;
    having?: Prisma.products_departmentsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Products_departmentsCountAggregateInputType | true;
    _avg?: Products_departmentsAvgAggregateInputType;
    _sum?: Products_departmentsSumAggregateInputType;
    _min?: Products_departmentsMinAggregateInputType;
    _max?: Products_departmentsMaxAggregateInputType;
};
export type Products_departmentsGroupByOutputType = {
    id: number;
    products_id: bigint | null;
    departments_id: number | null;
    _count: Products_departmentsCountAggregateOutputType | null;
    _avg: Products_departmentsAvgAggregateOutputType | null;
    _sum: Products_departmentsSumAggregateOutputType | null;
    _min: Products_departmentsMinAggregateOutputType | null;
    _max: Products_departmentsMaxAggregateOutputType | null;
};
type GetProducts_departmentsGroupByPayload<T extends products_departmentsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Products_departmentsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Products_departmentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Products_departmentsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Products_departmentsGroupByOutputType[P]>;
}>>;
export type products_departmentsWhereInput = {
    AND?: Prisma.products_departmentsWhereInput | Prisma.products_departmentsWhereInput[];
    OR?: Prisma.products_departmentsWhereInput[];
    NOT?: Prisma.products_departmentsWhereInput | Prisma.products_departmentsWhereInput[];
    id?: Prisma.IntFilter<"products_departments"> | number;
    products_id?: Prisma.BigIntNullableFilter<"products_departments"> | bigint | number | null;
    departments_id?: Prisma.IntNullableFilter<"products_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    products?: Prisma.XOR<Prisma.ProductsNullableScalarRelationFilter, Prisma.productsWhereInput> | null;
};
export type products_departmentsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments?: Prisma.departmentsOrderByWithRelationInput;
    products?: Prisma.productsOrderByWithRelationInput;
};
export type products_departmentsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.products_departmentsWhereInput | Prisma.products_departmentsWhereInput[];
    OR?: Prisma.products_departmentsWhereInput[];
    NOT?: Prisma.products_departmentsWhereInput | Prisma.products_departmentsWhereInput[];
    products_id?: Prisma.BigIntNullableFilter<"products_departments"> | bigint | number | null;
    departments_id?: Prisma.IntNullableFilter<"products_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    products?: Prisma.XOR<Prisma.ProductsNullableScalarRelationFilter, Prisma.productsWhereInput> | null;
}, "id">;
export type products_departmentsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.products_departmentsCountOrderByAggregateInput;
    _avg?: Prisma.products_departmentsAvgOrderByAggregateInput;
    _max?: Prisma.products_departmentsMaxOrderByAggregateInput;
    _min?: Prisma.products_departmentsMinOrderByAggregateInput;
    _sum?: Prisma.products_departmentsSumOrderByAggregateInput;
};
export type products_departmentsScalarWhereWithAggregatesInput = {
    AND?: Prisma.products_departmentsScalarWhereWithAggregatesInput | Prisma.products_departmentsScalarWhereWithAggregatesInput[];
    OR?: Prisma.products_departmentsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.products_departmentsScalarWhereWithAggregatesInput | Prisma.products_departmentsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"products_departments"> | number;
    products_id?: Prisma.BigIntNullableWithAggregatesFilter<"products_departments"> | bigint | number | null;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"products_departments"> | number | null;
};
export type products_departmentsCreateInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutProducts_departmentsInput;
    products?: Prisma.productsCreateNestedOneWithoutProducts_departmentsInput;
};
export type products_departmentsUncheckedCreateInput = {
    id?: number;
    products_id?: bigint | number | null;
    departments_id?: number | null;
};
export type products_departmentsUpdateInput = {
    departments?: Prisma.departmentsUpdateOneWithoutProducts_departmentsNestedInput;
    products?: Prisma.productsUpdateOneWithoutProducts_departmentsNestedInput;
};
export type products_departmentsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type products_departmentsCreateManyInput = {
    id?: number;
    products_id?: bigint | number | null;
    departments_id?: number | null;
};
export type products_departmentsUpdateManyMutationInput = {};
export type products_departmentsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Products_departmentsListRelationFilter = {
    every?: Prisma.products_departmentsWhereInput;
    some?: Prisma.products_departmentsWhereInput;
    none?: Prisma.products_departmentsWhereInput;
};
export type products_departmentsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type products_departmentsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type products_departmentsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type products_departmentsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type products_departmentsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type products_departmentsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type products_departmentsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.products_departmentsCreateWithoutDepartmentsInput, Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.products_departmentsCreateWithoutDepartmentsInput[] | Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.products_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.products_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.products_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
};
export type products_departmentsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.products_departmentsCreateWithoutDepartmentsInput, Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.products_departmentsCreateWithoutDepartmentsInput[] | Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.products_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.products_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.products_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
};
export type products_departmentsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.products_departmentsCreateWithoutDepartmentsInput, Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.products_departmentsCreateWithoutDepartmentsInput[] | Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.products_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.products_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.products_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.products_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.products_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    disconnect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    delete?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    connect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    update?: Prisma.products_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.products_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.products_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.products_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.products_departmentsScalarWhereInput | Prisma.products_departmentsScalarWhereInput[];
};
export type products_departmentsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.products_departmentsCreateWithoutDepartmentsInput, Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.products_departmentsCreateWithoutDepartmentsInput[] | Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.products_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.products_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.products_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.products_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.products_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    disconnect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    delete?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    connect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    update?: Prisma.products_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.products_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.products_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.products_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.products_departmentsScalarWhereInput | Prisma.products_departmentsScalarWhereInput[];
};
export type products_departmentsCreateNestedManyWithoutProductsInput = {
    create?: Prisma.XOR<Prisma.products_departmentsCreateWithoutProductsInput, Prisma.products_departmentsUncheckedCreateWithoutProductsInput> | Prisma.products_departmentsCreateWithoutProductsInput[] | Prisma.products_departmentsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.products_departmentsCreateOrConnectWithoutProductsInput | Prisma.products_departmentsCreateOrConnectWithoutProductsInput[];
    createMany?: Prisma.products_departmentsCreateManyProductsInputEnvelope;
    connect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
};
export type products_departmentsUncheckedCreateNestedManyWithoutProductsInput = {
    create?: Prisma.XOR<Prisma.products_departmentsCreateWithoutProductsInput, Prisma.products_departmentsUncheckedCreateWithoutProductsInput> | Prisma.products_departmentsCreateWithoutProductsInput[] | Prisma.products_departmentsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.products_departmentsCreateOrConnectWithoutProductsInput | Prisma.products_departmentsCreateOrConnectWithoutProductsInput[];
    createMany?: Prisma.products_departmentsCreateManyProductsInputEnvelope;
    connect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
};
export type products_departmentsUpdateManyWithoutProductsNestedInput = {
    create?: Prisma.XOR<Prisma.products_departmentsCreateWithoutProductsInput, Prisma.products_departmentsUncheckedCreateWithoutProductsInput> | Prisma.products_departmentsCreateWithoutProductsInput[] | Prisma.products_departmentsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.products_departmentsCreateOrConnectWithoutProductsInput | Prisma.products_departmentsCreateOrConnectWithoutProductsInput[];
    upsert?: Prisma.products_departmentsUpsertWithWhereUniqueWithoutProductsInput | Prisma.products_departmentsUpsertWithWhereUniqueWithoutProductsInput[];
    createMany?: Prisma.products_departmentsCreateManyProductsInputEnvelope;
    set?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    disconnect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    delete?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    connect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    update?: Prisma.products_departmentsUpdateWithWhereUniqueWithoutProductsInput | Prisma.products_departmentsUpdateWithWhereUniqueWithoutProductsInput[];
    updateMany?: Prisma.products_departmentsUpdateManyWithWhereWithoutProductsInput | Prisma.products_departmentsUpdateManyWithWhereWithoutProductsInput[];
    deleteMany?: Prisma.products_departmentsScalarWhereInput | Prisma.products_departmentsScalarWhereInput[];
};
export type products_departmentsUncheckedUpdateManyWithoutProductsNestedInput = {
    create?: Prisma.XOR<Prisma.products_departmentsCreateWithoutProductsInput, Prisma.products_departmentsUncheckedCreateWithoutProductsInput> | Prisma.products_departmentsCreateWithoutProductsInput[] | Prisma.products_departmentsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.products_departmentsCreateOrConnectWithoutProductsInput | Prisma.products_departmentsCreateOrConnectWithoutProductsInput[];
    upsert?: Prisma.products_departmentsUpsertWithWhereUniqueWithoutProductsInput | Prisma.products_departmentsUpsertWithWhereUniqueWithoutProductsInput[];
    createMany?: Prisma.products_departmentsCreateManyProductsInputEnvelope;
    set?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    disconnect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    delete?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    connect?: Prisma.products_departmentsWhereUniqueInput | Prisma.products_departmentsWhereUniqueInput[];
    update?: Prisma.products_departmentsUpdateWithWhereUniqueWithoutProductsInput | Prisma.products_departmentsUpdateWithWhereUniqueWithoutProductsInput[];
    updateMany?: Prisma.products_departmentsUpdateManyWithWhereWithoutProductsInput | Prisma.products_departmentsUpdateManyWithWhereWithoutProductsInput[];
    deleteMany?: Prisma.products_departmentsScalarWhereInput | Prisma.products_departmentsScalarWhereInput[];
};
export type products_departmentsCreateWithoutDepartmentsInput = {
    products?: Prisma.productsCreateNestedOneWithoutProducts_departmentsInput;
};
export type products_departmentsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    products_id?: bigint | number | null;
};
export type products_departmentsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.products_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.products_departmentsCreateWithoutDepartmentsInput, Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type products_departmentsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.products_departmentsCreateManyDepartmentsInput | Prisma.products_departmentsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type products_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.products_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.products_departmentsUpdateWithoutDepartmentsInput, Prisma.products_departmentsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.products_departmentsCreateWithoutDepartmentsInput, Prisma.products_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type products_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.products_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.products_departmentsUpdateWithoutDepartmentsInput, Prisma.products_departmentsUncheckedUpdateWithoutDepartmentsInput>;
};
export type products_departmentsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.products_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.products_departmentsUpdateManyMutationInput, Prisma.products_departmentsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type products_departmentsScalarWhereInput = {
    AND?: Prisma.products_departmentsScalarWhereInput | Prisma.products_departmentsScalarWhereInput[];
    OR?: Prisma.products_departmentsScalarWhereInput[];
    NOT?: Prisma.products_departmentsScalarWhereInput | Prisma.products_departmentsScalarWhereInput[];
    id?: Prisma.IntFilter<"products_departments"> | number;
    products_id?: Prisma.BigIntNullableFilter<"products_departments"> | bigint | number | null;
    departments_id?: Prisma.IntNullableFilter<"products_departments"> | number | null;
};
export type products_departmentsCreateWithoutProductsInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutProducts_departmentsInput;
};
export type products_departmentsUncheckedCreateWithoutProductsInput = {
    id?: number;
    departments_id?: number | null;
};
export type products_departmentsCreateOrConnectWithoutProductsInput = {
    where: Prisma.products_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.products_departmentsCreateWithoutProductsInput, Prisma.products_departmentsUncheckedCreateWithoutProductsInput>;
};
export type products_departmentsCreateManyProductsInputEnvelope = {
    data: Prisma.products_departmentsCreateManyProductsInput | Prisma.products_departmentsCreateManyProductsInput[];
    skipDuplicates?: boolean;
};
export type products_departmentsUpsertWithWhereUniqueWithoutProductsInput = {
    where: Prisma.products_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.products_departmentsUpdateWithoutProductsInput, Prisma.products_departmentsUncheckedUpdateWithoutProductsInput>;
    create: Prisma.XOR<Prisma.products_departmentsCreateWithoutProductsInput, Prisma.products_departmentsUncheckedCreateWithoutProductsInput>;
};
export type products_departmentsUpdateWithWhereUniqueWithoutProductsInput = {
    where: Prisma.products_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.products_departmentsUpdateWithoutProductsInput, Prisma.products_departmentsUncheckedUpdateWithoutProductsInput>;
};
export type products_departmentsUpdateManyWithWhereWithoutProductsInput = {
    where: Prisma.products_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.products_departmentsUpdateManyMutationInput, Prisma.products_departmentsUncheckedUpdateManyWithoutProductsInput>;
};
export type products_departmentsCreateManyDepartmentsInput = {
    id?: number;
    products_id?: bigint | number | null;
};
export type products_departmentsUpdateWithoutDepartmentsInput = {
    products?: Prisma.productsUpdateOneWithoutProducts_departmentsNestedInput;
};
export type products_departmentsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type products_departmentsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type products_departmentsCreateManyProductsInput = {
    id?: number;
    departments_id?: number | null;
};
export type products_departmentsUpdateWithoutProductsInput = {
    departments?: Prisma.departmentsUpdateOneWithoutProducts_departmentsNestedInput;
};
export type products_departmentsUncheckedUpdateWithoutProductsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type products_departmentsUncheckedUpdateManyWithoutProductsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type products_departmentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    products_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.products_departments$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.products_departments$productsArgs<ExtArgs>;
}, ExtArgs["result"]["products_departments"]>;
export type products_departmentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    products_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.products_departments$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.products_departments$productsArgs<ExtArgs>;
}, ExtArgs["result"]["products_departments"]>;
export type products_departmentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    products_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.products_departments$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.products_departments$productsArgs<ExtArgs>;
}, ExtArgs["result"]["products_departments"]>;
export type products_departmentsSelectScalar = {
    id?: boolean;
    products_id?: boolean;
    departments_id?: boolean;
};
export type products_departmentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "products_id" | "departments_id", ExtArgs["result"]["products_departments"]>;
export type products_departmentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.products_departments$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.products_departments$productsArgs<ExtArgs>;
};
export type products_departmentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.products_departments$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.products_departments$productsArgs<ExtArgs>;
};
export type products_departmentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.products_departments$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.products_departments$productsArgs<ExtArgs>;
};
export type $products_departmentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "products_departments";
    objects: {
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
        products: Prisma.$productsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        products_id: bigint | null;
        departments_id: number | null;
    }, ExtArgs["result"]["products_departments"]>;
    composites: {};
};
export type products_departmentsGetPayload<S extends boolean | null | undefined | products_departmentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload, S>;
export type products_departmentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<products_departmentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Products_departmentsCountAggregateInputType | true;
};
export interface products_departmentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['products_departments'];
        meta: {
            name: 'products_departments';
        };
    };
    /**
     * Find zero or one Products_departments that matches the filter.
     * @param {products_departmentsFindUniqueArgs} args - Arguments to find a Products_departments
     * @example
     * // Get one Products_departments
     * const products_departments = await prisma.products_departments.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends products_departmentsFindUniqueArgs>(args: Prisma.SelectSubset<T, products_departmentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__products_departmentsClient<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Products_departments that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {products_departmentsFindUniqueOrThrowArgs} args - Arguments to find a Products_departments
     * @example
     * // Get one Products_departments
     * const products_departments = await prisma.products_departments.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends products_departmentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, products_departmentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__products_departmentsClient<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Products_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 {products_departmentsFindFirstArgs} args - Arguments to find a Products_departments
     * @example
     * // Get one Products_departments
     * const products_departments = await prisma.products_departments.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends products_departmentsFindFirstArgs>(args?: Prisma.SelectSubset<T, products_departmentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__products_departmentsClient<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Products_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 {products_departmentsFindFirstOrThrowArgs} args - Arguments to find a Products_departments
     * @example
     * // Get one Products_departments
     * const products_departments = await prisma.products_departments.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends products_departmentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, products_departmentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__products_departmentsClient<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Products_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 {products_departmentsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Products_departments
     * const products_departments = await prisma.products_departments.findMany()
     *
     * // Get first 10 Products_departments
     * const products_departments = await prisma.products_departments.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const products_departmentsWithIdOnly = await prisma.products_departments.findMany({ select: { id: true } })
     *
     */
    findMany<T extends products_departmentsFindManyArgs>(args?: Prisma.SelectSubset<T, products_departmentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Products_departments.
     * @param {products_departmentsCreateArgs} args - Arguments to create a Products_departments.
     * @example
     * // Create one Products_departments
     * const Products_departments = await prisma.products_departments.create({
     *   data: {
     *     // ... data to create a Products_departments
     *   }
     * })
     *
     */
    create<T extends products_departmentsCreateArgs>(args: Prisma.SelectSubset<T, products_departmentsCreateArgs<ExtArgs>>): Prisma.Prisma__products_departmentsClient<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Products_departments.
     * @param {products_departmentsCreateManyArgs} args - Arguments to create many Products_departments.
     * @example
     * // Create many Products_departments
     * const products_departments = await prisma.products_departments.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends products_departmentsCreateManyArgs>(args?: Prisma.SelectSubset<T, products_departmentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Products_departments and returns the data saved in the database.
     * @param {products_departmentsCreateManyAndReturnArgs} args - Arguments to create many Products_departments.
     * @example
     * // Create many Products_departments
     * const products_departments = await prisma.products_departments.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Products_departments and only return the `id`
     * const products_departmentsWithIdOnly = await prisma.products_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 products_departmentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, products_departmentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Products_departments.
     * @param {products_departmentsDeleteArgs} args - Arguments to delete one Products_departments.
     * @example
     * // Delete one Products_departments
     * const Products_departments = await prisma.products_departments.delete({
     *   where: {
     *     // ... filter to delete one Products_departments
     *   }
     * })
     *
     */
    delete<T extends products_departmentsDeleteArgs>(args: Prisma.SelectSubset<T, products_departmentsDeleteArgs<ExtArgs>>): Prisma.Prisma__products_departmentsClient<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Products_departments.
     * @param {products_departmentsUpdateArgs} args - Arguments to update one Products_departments.
     * @example
     * // Update one Products_departments
     * const products_departments = await prisma.products_departments.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends products_departmentsUpdateArgs>(args: Prisma.SelectSubset<T, products_departmentsUpdateArgs<ExtArgs>>): Prisma.Prisma__products_departmentsClient<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Products_departments.
     * @param {products_departmentsDeleteManyArgs} args - Arguments to filter Products_departments to delete.
     * @example
     * // Delete a few Products_departments
     * const { count } = await prisma.products_departments.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends products_departmentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, products_departmentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Products_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {products_departmentsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Products_departments
     * const products_departments = await prisma.products_departments.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends products_departmentsUpdateManyArgs>(args: Prisma.SelectSubset<T, products_departmentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Products_departments and returns the data updated in the database.
     * @param {products_departmentsUpdateManyAndReturnArgs} args - Arguments to update many Products_departments.
     * @example
     * // Update many Products_departments
     * const products_departments = await prisma.products_departments.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Products_departments and only return the `id`
     * const products_departmentsWithIdOnly = await prisma.products_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 products_departmentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, products_departmentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Products_departments.
     * @param {products_departmentsUpsertArgs} args - Arguments to update or create a Products_departments.
     * @example
     * // Update or create a Products_departments
     * const products_departments = await prisma.products_departments.upsert({
     *   create: {
     *     // ... data to create a Products_departments
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Products_departments we want to update
     *   }
     * })
     */
    upsert<T extends products_departmentsUpsertArgs>(args: Prisma.SelectSubset<T, products_departmentsUpsertArgs<ExtArgs>>): Prisma.Prisma__products_departmentsClient<runtime.Types.Result.GetResult<Prisma.$products_departmentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Products_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {products_departmentsCountArgs} args - Arguments to filter Products_departments to count.
     * @example
     * // Count the number of Products_departments
     * const count = await prisma.products_departments.count({
     *   where: {
     *     // ... the filter for the Products_departments we want to count
     *   }
     * })
    **/
    count<T extends products_departmentsCountArgs>(args?: Prisma.Subset<T, products_departmentsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Products_departmentsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Products_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Products_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 Products_departmentsAggregateArgs>(args: Prisma.Subset<T, Products_departmentsAggregateArgs>): Prisma.PrismaPromise<GetProducts_departmentsAggregateType<T>>;
    /**
     * Group by Products_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {products_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 products_departmentsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: products_departmentsGroupByArgs['orderBy'];
    } : {
        orderBy?: products_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, products_departmentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProducts_departmentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the products_departments model
     */
    readonly fields: products_departmentsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for products_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__products_departmentsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    departments<T extends Prisma.products_departments$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.products_departments$departmentsArgs<ExtArgs>>): Prisma.Prisma__departmentsClient<runtime.Types.Result.GetResult<Prisma.$departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    products<T extends Prisma.products_departments$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.products_departments$productsArgs<ExtArgs>>): Prisma.Prisma__productsClient<runtime.Types.Result.GetResult<Prisma.$productsPayload<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 products_departments model
 */
export interface products_departmentsFieldRefs {
    readonly id: Prisma.FieldRef<"products_departments", 'Int'>;
    readonly products_id: Prisma.FieldRef<"products_departments", 'BigInt'>;
    readonly departments_id: Prisma.FieldRef<"products_departments", 'Int'>;
}
/**
 * products_departments findUnique
 */
export type products_departmentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which products_departments to fetch.
     */
    where: Prisma.products_departmentsWhereUniqueInput;
};
/**
 * products_departments findUniqueOrThrow
 */
export type products_departmentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which products_departments to fetch.
     */
    where: Prisma.products_departmentsWhereUniqueInput;
};
/**
 * products_departments findFirst
 */
export type products_departmentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which products_departments to fetch.
     */
    where?: Prisma.products_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of products_departments to fetch.
     */
    orderBy?: Prisma.products_departmentsOrderByWithRelationInput | Prisma.products_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for products_departments.
     */
    cursor?: Prisma.products_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` products_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` products_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of products_departments.
     */
    distinct?: Prisma.Products_departmentsScalarFieldEnum | Prisma.Products_departmentsScalarFieldEnum[];
};
/**
 * products_departments findFirstOrThrow
 */
export type products_departmentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which products_departments to fetch.
     */
    where?: Prisma.products_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of products_departments to fetch.
     */
    orderBy?: Prisma.products_departmentsOrderByWithRelationInput | Prisma.products_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for products_departments.
     */
    cursor?: Prisma.products_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` products_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` products_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of products_departments.
     */
    distinct?: Prisma.Products_departmentsScalarFieldEnum | Prisma.Products_departmentsScalarFieldEnum[];
};
/**
 * products_departments findMany
 */
export type products_departmentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which products_departments to fetch.
     */
    where?: Prisma.products_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of products_departments to fetch.
     */
    orderBy?: Prisma.products_departmentsOrderByWithRelationInput | Prisma.products_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing products_departments.
     */
    cursor?: Prisma.products_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` products_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` products_departments.
     */
    skip?: number;
    distinct?: Prisma.Products_departmentsScalarFieldEnum | Prisma.Products_departmentsScalarFieldEnum[];
};
/**
 * products_departments create
 */
export type products_departmentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to create a products_departments.
     */
    data?: Prisma.XOR<Prisma.products_departmentsCreateInput, Prisma.products_departmentsUncheckedCreateInput>;
};
/**
 * products_departments createMany
 */
export type products_departmentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many products_departments.
     */
    data: Prisma.products_departmentsCreateManyInput | Prisma.products_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * products_departments createManyAndReturn
 */
export type products_departmentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to create many products_departments.
     */
    data: Prisma.products_departmentsCreateManyInput | Prisma.products_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * products_departments update
 */
export type products_departmentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to update a products_departments.
     */
    data: Prisma.XOR<Prisma.products_departmentsUpdateInput, Prisma.products_departmentsUncheckedUpdateInput>;
    /**
     * Choose, which products_departments to update.
     */
    where: Prisma.products_departmentsWhereUniqueInput;
};
/**
 * products_departments updateMany
 */
export type products_departmentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update products_departments.
     */
    data: Prisma.XOR<Prisma.products_departmentsUpdateManyMutationInput, Prisma.products_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which products_departments to update
     */
    where?: Prisma.products_departmentsWhereInput;
    /**
     * Limit how many products_departments to update.
     */
    limit?: number;
};
/**
 * products_departments updateManyAndReturn
 */
export type products_departmentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to update products_departments.
     */
    data: Prisma.XOR<Prisma.products_departmentsUpdateManyMutationInput, Prisma.products_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which products_departments to update
     */
    where?: Prisma.products_departmentsWhereInput;
    /**
     * Limit how many products_departments to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * products_departments upsert
 */
export type products_departmentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * The filter to search for the products_departments to update in case it exists.
     */
    where: Prisma.products_departmentsWhereUniqueInput;
    /**
     * In case the products_departments found by the `where` argument doesn't exist, create a new products_departments with this data.
     */
    create: Prisma.XOR<Prisma.products_departmentsCreateInput, Prisma.products_departmentsUncheckedCreateInput>;
    /**
     * In case the products_departments was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.products_departmentsUpdateInput, Prisma.products_departmentsUncheckedUpdateInput>;
};
/**
 * products_departments delete
 */
export type products_departmentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
    /**
     * Filter which products_departments to delete.
     */
    where: Prisma.products_departmentsWhereUniqueInput;
};
/**
 * products_departments deleteMany
 */
export type products_departmentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which products_departments to delete
     */
    where?: Prisma.products_departmentsWhereInput;
    /**
     * Limit how many products_departments to delete.
     */
    limit?: number;
};
/**
 * products_departments.departments
 */
export type products_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;
};
/**
 * products_departments.products
 */
export type products_departments$productsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products
     */
    select?: Prisma.productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products
     */
    omit?: Prisma.productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.productsInclude<ExtArgs> | null;
    where?: Prisma.productsWhereInput;
};
/**
 * products_departments without action
 */
export type products_departmentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the products_departments
     */
    select?: Prisma.products_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the products_departments
     */
    omit?: Prisma.products_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.products_departmentsInclude<ExtArgs> | null;
};
export {};
