import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model departments_products
 * 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_productsModel = runtime.Types.Result.DefaultSelection<Prisma.$departments_productsPayload>;
export type AggregateDepartments_products = {
    _count: Departments_productsCountAggregateOutputType | null;
    _avg: Departments_productsAvgAggregateOutputType | null;
    _sum: Departments_productsSumAggregateOutputType | null;
    _min: Departments_productsMinAggregateOutputType | null;
    _max: Departments_productsMaxAggregateOutputType | null;
};
export type Departments_productsAvgAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    products_id: number | null;
};
export type Departments_productsSumAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    products_id: bigint | null;
};
export type Departments_productsMinAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    products_id: bigint | null;
};
export type Departments_productsMaxAggregateOutputType = {
    id: number | null;
    departments_id: number | null;
    products_id: bigint | null;
};
export type Departments_productsCountAggregateOutputType = {
    id: number;
    departments_id: number;
    products_id: number;
    _all: number;
};
export type Departments_productsAvgAggregateInputType = {
    id?: true;
    departments_id?: true;
    products_id?: true;
};
export type Departments_productsSumAggregateInputType = {
    id?: true;
    departments_id?: true;
    products_id?: true;
};
export type Departments_productsMinAggregateInputType = {
    id?: true;
    departments_id?: true;
    products_id?: true;
};
export type Departments_productsMaxAggregateInputType = {
    id?: true;
    departments_id?: true;
    products_id?: true;
};
export type Departments_productsCountAggregateInputType = {
    id?: true;
    departments_id?: true;
    products_id?: true;
    _all?: true;
};
export type Departments_productsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which departments_products to aggregate.
     */
    where?: Prisma.departments_productsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_products to fetch.
     */
    orderBy?: Prisma.departments_productsOrderByWithRelationInput | Prisma.departments_productsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.departments_productsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_products 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_products.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned departments_products
    **/
    _count?: true | Departments_productsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Departments_productsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Departments_productsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Departments_productsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Departments_productsMaxAggregateInputType;
};
export type GetDepartments_productsAggregateType<T extends Departments_productsAggregateArgs> = {
    [P in keyof T & keyof AggregateDepartments_products]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDepartments_products[P]> : Prisma.GetScalarType<T[P], AggregateDepartments_products[P]>;
};
export type departments_productsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.departments_productsWhereInput;
    orderBy?: Prisma.departments_productsOrderByWithAggregationInput | Prisma.departments_productsOrderByWithAggregationInput[];
    by: Prisma.Departments_productsScalarFieldEnum[] | Prisma.Departments_productsScalarFieldEnum;
    having?: Prisma.departments_productsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Departments_productsCountAggregateInputType | true;
    _avg?: Departments_productsAvgAggregateInputType;
    _sum?: Departments_productsSumAggregateInputType;
    _min?: Departments_productsMinAggregateInputType;
    _max?: Departments_productsMaxAggregateInputType;
};
export type Departments_productsGroupByOutputType = {
    id: number;
    departments_id: number | null;
    products_id: bigint | null;
    _count: Departments_productsCountAggregateOutputType | null;
    _avg: Departments_productsAvgAggregateOutputType | null;
    _sum: Departments_productsSumAggregateOutputType | null;
    _min: Departments_productsMinAggregateOutputType | null;
    _max: Departments_productsMaxAggregateOutputType | null;
};
type GetDepartments_productsGroupByPayload<T extends departments_productsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Departments_productsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Departments_productsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Departments_productsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Departments_productsGroupByOutputType[P]>;
}>>;
export type departments_productsWhereInput = {
    AND?: Prisma.departments_productsWhereInput | Prisma.departments_productsWhereInput[];
    OR?: Prisma.departments_productsWhereInput[];
    NOT?: Prisma.departments_productsWhereInput | Prisma.departments_productsWhereInput[];
    id?: Prisma.IntFilter<"departments_products"> | number;
    departments_id?: Prisma.IntNullableFilter<"departments_products"> | number | null;
    products_id?: Prisma.BigIntNullableFilter<"departments_products"> | bigint | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    products?: Prisma.XOR<Prisma.ProductsNullableScalarRelationFilter, Prisma.productsWhereInput> | null;
};
export type departments_productsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    products_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments?: Prisma.departmentsOrderByWithRelationInput;
    products?: Prisma.productsOrderByWithRelationInput;
};
export type departments_productsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.departments_productsWhereInput | Prisma.departments_productsWhereInput[];
    OR?: Prisma.departments_productsWhereInput[];
    NOT?: Prisma.departments_productsWhereInput | Prisma.departments_productsWhereInput[];
    departments_id?: Prisma.IntNullableFilter<"departments_products"> | number | null;
    products_id?: Prisma.BigIntNullableFilter<"departments_products"> | bigint | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    products?: Prisma.XOR<Prisma.ProductsNullableScalarRelationFilter, Prisma.productsWhereInput> | null;
}, "id">;
export type departments_productsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    products_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.departments_productsCountOrderByAggregateInput;
    _avg?: Prisma.departments_productsAvgOrderByAggregateInput;
    _max?: Prisma.departments_productsMaxOrderByAggregateInput;
    _min?: Prisma.departments_productsMinOrderByAggregateInput;
    _sum?: Prisma.departments_productsSumOrderByAggregateInput;
};
export type departments_productsScalarWhereWithAggregatesInput = {
    AND?: Prisma.departments_productsScalarWhereWithAggregatesInput | Prisma.departments_productsScalarWhereWithAggregatesInput[];
    OR?: Prisma.departments_productsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.departments_productsScalarWhereWithAggregatesInput | Prisma.departments_productsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"departments_products"> | number;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"departments_products"> | number | null;
    products_id?: Prisma.BigIntNullableWithAggregatesFilter<"departments_products"> | bigint | number | null;
};
export type departments_productsCreateInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutDepartments_productsInput;
    products?: Prisma.productsCreateNestedOneWithoutDepartments_productsInput;
};
export type departments_productsUncheckedCreateInput = {
    id?: number;
    departments_id?: number | null;
    products_id?: bigint | number | null;
};
export type departments_productsUpdateInput = {
    departments?: Prisma.departmentsUpdateOneWithoutDepartments_productsNestedInput;
    products?: Prisma.productsUpdateOneWithoutDepartments_productsNestedInput;
};
export type departments_productsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type departments_productsCreateManyInput = {
    id?: number;
    departments_id?: number | null;
    products_id?: bigint | number | null;
};
export type departments_productsUpdateManyMutationInput = {};
export type departments_productsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type Departments_productsListRelationFilter = {
    every?: Prisma.departments_productsWhereInput;
    some?: Prisma.departments_productsWhereInput;
    none?: Prisma.departments_productsWhereInput;
};
export type departments_productsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type departments_productsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type departments_productsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type departments_productsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type departments_productsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type departments_productsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
    products_id?: Prisma.SortOrder;
};
export type departments_productsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.departments_productsCreateWithoutDepartmentsInput, Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_productsCreateWithoutDepartmentsInput[] | Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_productsCreateOrConnectWithoutDepartmentsInput | Prisma.departments_productsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.departments_productsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
};
export type departments_productsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.departments_productsCreateWithoutDepartmentsInput, Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_productsCreateWithoutDepartmentsInput[] | Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_productsCreateOrConnectWithoutDepartmentsInput | Prisma.departments_productsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.departments_productsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
};
export type departments_productsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_productsCreateWithoutDepartmentsInput, Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_productsCreateWithoutDepartmentsInput[] | Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_productsCreateOrConnectWithoutDepartmentsInput | Prisma.departments_productsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.departments_productsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_productsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.departments_productsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    disconnect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    delete?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    connect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    update?: Prisma.departments_productsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_productsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.departments_productsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.departments_productsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.departments_productsScalarWhereInput | Prisma.departments_productsScalarWhereInput[];
};
export type departments_productsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_productsCreateWithoutDepartmentsInput, Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput> | Prisma.departments_productsCreateWithoutDepartmentsInput[] | Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.departments_productsCreateOrConnectWithoutDepartmentsInput | Prisma.departments_productsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.departments_productsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_productsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.departments_productsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    disconnect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    delete?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    connect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    update?: Prisma.departments_productsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.departments_productsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.departments_productsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.departments_productsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.departments_productsScalarWhereInput | Prisma.departments_productsScalarWhereInput[];
};
export type departments_productsCreateNestedManyWithoutProductsInput = {
    create?: Prisma.XOR<Prisma.departments_productsCreateWithoutProductsInput, Prisma.departments_productsUncheckedCreateWithoutProductsInput> | Prisma.departments_productsCreateWithoutProductsInput[] | Prisma.departments_productsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.departments_productsCreateOrConnectWithoutProductsInput | Prisma.departments_productsCreateOrConnectWithoutProductsInput[];
    createMany?: Prisma.departments_productsCreateManyProductsInputEnvelope;
    connect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
};
export type departments_productsUncheckedCreateNestedManyWithoutProductsInput = {
    create?: Prisma.XOR<Prisma.departments_productsCreateWithoutProductsInput, Prisma.departments_productsUncheckedCreateWithoutProductsInput> | Prisma.departments_productsCreateWithoutProductsInput[] | Prisma.departments_productsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.departments_productsCreateOrConnectWithoutProductsInput | Prisma.departments_productsCreateOrConnectWithoutProductsInput[];
    createMany?: Prisma.departments_productsCreateManyProductsInputEnvelope;
    connect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
};
export type departments_productsUpdateManyWithoutProductsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_productsCreateWithoutProductsInput, Prisma.departments_productsUncheckedCreateWithoutProductsInput> | Prisma.departments_productsCreateWithoutProductsInput[] | Prisma.departments_productsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.departments_productsCreateOrConnectWithoutProductsInput | Prisma.departments_productsCreateOrConnectWithoutProductsInput[];
    upsert?: Prisma.departments_productsUpsertWithWhereUniqueWithoutProductsInput | Prisma.departments_productsUpsertWithWhereUniqueWithoutProductsInput[];
    createMany?: Prisma.departments_productsCreateManyProductsInputEnvelope;
    set?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    disconnect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    delete?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    connect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    update?: Prisma.departments_productsUpdateWithWhereUniqueWithoutProductsInput | Prisma.departments_productsUpdateWithWhereUniqueWithoutProductsInput[];
    updateMany?: Prisma.departments_productsUpdateManyWithWhereWithoutProductsInput | Prisma.departments_productsUpdateManyWithWhereWithoutProductsInput[];
    deleteMany?: Prisma.departments_productsScalarWhereInput | Prisma.departments_productsScalarWhereInput[];
};
export type departments_productsUncheckedUpdateManyWithoutProductsNestedInput = {
    create?: Prisma.XOR<Prisma.departments_productsCreateWithoutProductsInput, Prisma.departments_productsUncheckedCreateWithoutProductsInput> | Prisma.departments_productsCreateWithoutProductsInput[] | Prisma.departments_productsUncheckedCreateWithoutProductsInput[];
    connectOrCreate?: Prisma.departments_productsCreateOrConnectWithoutProductsInput | Prisma.departments_productsCreateOrConnectWithoutProductsInput[];
    upsert?: Prisma.departments_productsUpsertWithWhereUniqueWithoutProductsInput | Prisma.departments_productsUpsertWithWhereUniqueWithoutProductsInput[];
    createMany?: Prisma.departments_productsCreateManyProductsInputEnvelope;
    set?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    disconnect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    delete?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    connect?: Prisma.departments_productsWhereUniqueInput | Prisma.departments_productsWhereUniqueInput[];
    update?: Prisma.departments_productsUpdateWithWhereUniqueWithoutProductsInput | Prisma.departments_productsUpdateWithWhereUniqueWithoutProductsInput[];
    updateMany?: Prisma.departments_productsUpdateManyWithWhereWithoutProductsInput | Prisma.departments_productsUpdateManyWithWhereWithoutProductsInput[];
    deleteMany?: Prisma.departments_productsScalarWhereInput | Prisma.departments_productsScalarWhereInput[];
};
export type departments_productsCreateWithoutDepartmentsInput = {
    products?: Prisma.productsCreateNestedOneWithoutDepartments_productsInput;
};
export type departments_productsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    products_id?: bigint | number | null;
};
export type departments_productsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.departments_productsWhereUniqueInput;
    create: Prisma.XOR<Prisma.departments_productsCreateWithoutDepartmentsInput, Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput>;
};
export type departments_productsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.departments_productsCreateManyDepartmentsInput | Prisma.departments_productsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type departments_productsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.departments_productsWhereUniqueInput;
    update: Prisma.XOR<Prisma.departments_productsUpdateWithoutDepartmentsInput, Prisma.departments_productsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.departments_productsCreateWithoutDepartmentsInput, Prisma.departments_productsUncheckedCreateWithoutDepartmentsInput>;
};
export type departments_productsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.departments_productsWhereUniqueInput;
    data: Prisma.XOR<Prisma.departments_productsUpdateWithoutDepartmentsInput, Prisma.departments_productsUncheckedUpdateWithoutDepartmentsInput>;
};
export type departments_productsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.departments_productsScalarWhereInput;
    data: Prisma.XOR<Prisma.departments_productsUpdateManyMutationInput, Prisma.departments_productsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type departments_productsScalarWhereInput = {
    AND?: Prisma.departments_productsScalarWhereInput | Prisma.departments_productsScalarWhereInput[];
    OR?: Prisma.departments_productsScalarWhereInput[];
    NOT?: Prisma.departments_productsScalarWhereInput | Prisma.departments_productsScalarWhereInput[];
    id?: Prisma.IntFilter<"departments_products"> | number;
    departments_id?: Prisma.IntNullableFilter<"departments_products"> | number | null;
    products_id?: Prisma.BigIntNullableFilter<"departments_products"> | bigint | number | null;
};
export type departments_productsCreateWithoutProductsInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutDepartments_productsInput;
};
export type departments_productsUncheckedCreateWithoutProductsInput = {
    id?: number;
    departments_id?: number | null;
};
export type departments_productsCreateOrConnectWithoutProductsInput = {
    where: Prisma.departments_productsWhereUniqueInput;
    create: Prisma.XOR<Prisma.departments_productsCreateWithoutProductsInput, Prisma.departments_productsUncheckedCreateWithoutProductsInput>;
};
export type departments_productsCreateManyProductsInputEnvelope = {
    data: Prisma.departments_productsCreateManyProductsInput | Prisma.departments_productsCreateManyProductsInput[];
    skipDuplicates?: boolean;
};
export type departments_productsUpsertWithWhereUniqueWithoutProductsInput = {
    where: Prisma.departments_productsWhereUniqueInput;
    update: Prisma.XOR<Prisma.departments_productsUpdateWithoutProductsInput, Prisma.departments_productsUncheckedUpdateWithoutProductsInput>;
    create: Prisma.XOR<Prisma.departments_productsCreateWithoutProductsInput, Prisma.departments_productsUncheckedCreateWithoutProductsInput>;
};
export type departments_productsUpdateWithWhereUniqueWithoutProductsInput = {
    where: Prisma.departments_productsWhereUniqueInput;
    data: Prisma.XOR<Prisma.departments_productsUpdateWithoutProductsInput, Prisma.departments_productsUncheckedUpdateWithoutProductsInput>;
};
export type departments_productsUpdateManyWithWhereWithoutProductsInput = {
    where: Prisma.departments_productsScalarWhereInput;
    data: Prisma.XOR<Prisma.departments_productsUpdateManyMutationInput, Prisma.departments_productsUncheckedUpdateManyWithoutProductsInput>;
};
export type departments_productsCreateManyDepartmentsInput = {
    id?: number;
    products_id?: bigint | number | null;
};
export type departments_productsUpdateWithoutDepartmentsInput = {
    products?: Prisma.productsUpdateOneWithoutDepartments_productsNestedInput;
};
export type departments_productsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type departments_productsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    products_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type departments_productsCreateManyProductsInput = {
    id?: number;
    departments_id?: number | null;
};
export type departments_productsUpdateWithoutProductsInput = {
    departments?: Prisma.departmentsUpdateOneWithoutDepartments_productsNestedInput;
};
export type departments_productsUncheckedUpdateWithoutProductsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_productsUncheckedUpdateManyWithoutProductsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type departments_productsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    products_id?: boolean;
    departments?: boolean | Prisma.departments_products$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.departments_products$productsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_products"]>;
export type departments_productsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    products_id?: boolean;
    departments?: boolean | Prisma.departments_products$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.departments_products$productsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_products"]>;
export type departments_productsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    departments_id?: boolean;
    products_id?: boolean;
    departments?: boolean | Prisma.departments_products$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.departments_products$productsArgs<ExtArgs>;
}, ExtArgs["result"]["departments_products"]>;
export type departments_productsSelectScalar = {
    id?: boolean;
    departments_id?: boolean;
    products_id?: boolean;
};
export type departments_productsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "departments_id" | "products_id", ExtArgs["result"]["departments_products"]>;
export type departments_productsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.departments_products$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.departments_products$productsArgs<ExtArgs>;
};
export type departments_productsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.departments_products$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.departments_products$productsArgs<ExtArgs>;
};
export type departments_productsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.departments_products$departmentsArgs<ExtArgs>;
    products?: boolean | Prisma.departments_products$productsArgs<ExtArgs>;
};
export type $departments_productsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "departments_products";
    objects: {
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
        products: Prisma.$productsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        departments_id: number | null;
        products_id: bigint | null;
    }, ExtArgs["result"]["departments_products"]>;
    composites: {};
};
export type departments_productsGetPayload<S extends boolean | null | undefined | departments_productsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$departments_productsPayload, S>;
export type departments_productsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<departments_productsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Departments_productsCountAggregateInputType | true;
};
export interface departments_productsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['departments_products'];
        meta: {
            name: 'departments_products';
        };
    };
    /**
     * Find zero or one Departments_products that matches the filter.
     * @param {departments_productsFindUniqueArgs} args - Arguments to find a Departments_products
     * @example
     * // Get one Departments_products
     * const departments_products = await prisma.departments_products.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends departments_productsFindUniqueArgs>(args: Prisma.SelectSubset<T, departments_productsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__departments_productsClient<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Departments_products that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {departments_productsFindUniqueOrThrowArgs} args - Arguments to find a Departments_products
     * @example
     * // Get one Departments_products
     * const departments_products = await prisma.departments_products.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends departments_productsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, departments_productsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__departments_productsClient<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Departments_products 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_productsFindFirstArgs} args - Arguments to find a Departments_products
     * @example
     * // Get one Departments_products
     * const departments_products = await prisma.departments_products.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends departments_productsFindFirstArgs>(args?: Prisma.SelectSubset<T, departments_productsFindFirstArgs<ExtArgs>>): Prisma.Prisma__departments_productsClient<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Departments_products 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_productsFindFirstOrThrowArgs} args - Arguments to find a Departments_products
     * @example
     * // Get one Departments_products
     * const departments_products = await prisma.departments_products.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends departments_productsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, departments_productsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__departments_productsClient<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Departments_products 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_productsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Departments_products
     * const departments_products = await prisma.departments_products.findMany()
     *
     * // Get first 10 Departments_products
     * const departments_products = await prisma.departments_products.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const departments_productsWithIdOnly = await prisma.departments_products.findMany({ select: { id: true } })
     *
     */
    findMany<T extends departments_productsFindManyArgs>(args?: Prisma.SelectSubset<T, departments_productsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Departments_products.
     * @param {departments_productsCreateArgs} args - Arguments to create a Departments_products.
     * @example
     * // Create one Departments_products
     * const Departments_products = await prisma.departments_products.create({
     *   data: {
     *     // ... data to create a Departments_products
     *   }
     * })
     *
     */
    create<T extends departments_productsCreateArgs>(args: Prisma.SelectSubset<T, departments_productsCreateArgs<ExtArgs>>): Prisma.Prisma__departments_productsClient<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Departments_products.
     * @param {departments_productsCreateManyArgs} args - Arguments to create many Departments_products.
     * @example
     * // Create many Departments_products
     * const departments_products = await prisma.departments_products.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends departments_productsCreateManyArgs>(args?: Prisma.SelectSubset<T, departments_productsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Departments_products and returns the data saved in the database.
     * @param {departments_productsCreateManyAndReturnArgs} args - Arguments to create many Departments_products.
     * @example
     * // Create many Departments_products
     * const departments_products = await prisma.departments_products.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Departments_products and only return the `id`
     * const departments_productsWithIdOnly = await prisma.departments_products.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_productsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, departments_productsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Departments_products.
     * @param {departments_productsDeleteArgs} args - Arguments to delete one Departments_products.
     * @example
     * // Delete one Departments_products
     * const Departments_products = await prisma.departments_products.delete({
     *   where: {
     *     // ... filter to delete one Departments_products
     *   }
     * })
     *
     */
    delete<T extends departments_productsDeleteArgs>(args: Prisma.SelectSubset<T, departments_productsDeleteArgs<ExtArgs>>): Prisma.Prisma__departments_productsClient<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Departments_products.
     * @param {departments_productsUpdateArgs} args - Arguments to update one Departments_products.
     * @example
     * // Update one Departments_products
     * const departments_products = await prisma.departments_products.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends departments_productsUpdateArgs>(args: Prisma.SelectSubset<T, departments_productsUpdateArgs<ExtArgs>>): Prisma.Prisma__departments_productsClient<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Departments_products.
     * @param {departments_productsDeleteManyArgs} args - Arguments to filter Departments_products to delete.
     * @example
     * // Delete a few Departments_products
     * const { count } = await prisma.departments_products.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends departments_productsDeleteManyArgs>(args?: Prisma.SelectSubset<T, departments_productsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Departments_products.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_productsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Departments_products
     * const departments_products = await prisma.departments_products.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends departments_productsUpdateManyArgs>(args: Prisma.SelectSubset<T, departments_productsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Departments_products and returns the data updated in the database.
     * @param {departments_productsUpdateManyAndReturnArgs} args - Arguments to update many Departments_products.
     * @example
     * // Update many Departments_products
     * const departments_products = await prisma.departments_products.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Departments_products and only return the `id`
     * const departments_productsWithIdOnly = await prisma.departments_products.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_productsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, departments_productsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Departments_products.
     * @param {departments_productsUpsertArgs} args - Arguments to update or create a Departments_products.
     * @example
     * // Update or create a Departments_products
     * const departments_products = await prisma.departments_products.upsert({
     *   create: {
     *     // ... data to create a Departments_products
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Departments_products we want to update
     *   }
     * })
     */
    upsert<T extends departments_productsUpsertArgs>(args: Prisma.SelectSubset<T, departments_productsUpsertArgs<ExtArgs>>): Prisma.Prisma__departments_productsClient<runtime.Types.Result.GetResult<Prisma.$departments_productsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Departments_products.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_productsCountArgs} args - Arguments to filter Departments_products to count.
     * @example
     * // Count the number of Departments_products
     * const count = await prisma.departments_products.count({
     *   where: {
     *     // ... the filter for the Departments_products we want to count
     *   }
     * })
    **/
    count<T extends departments_productsCountArgs>(args?: Prisma.Subset<T, departments_productsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Departments_productsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Departments_products.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Departments_productsAggregateArgs} 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_productsAggregateArgs>(args: Prisma.Subset<T, Departments_productsAggregateArgs>): Prisma.PrismaPromise<GetDepartments_productsAggregateType<T>>;
    /**
     * Group by Departments_products.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {departments_productsGroupByArgs} 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_productsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: departments_productsGroupByArgs['orderBy'];
    } : {
        orderBy?: departments_productsGroupByArgs['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_productsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDepartments_productsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the departments_products model
     */
    readonly fields: departments_productsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for departments_products.
 * 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_productsClient<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.departments_products$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.departments_products$departmentsArgs<ExtArgs>>): Prisma.Prisma__departmentsClient<runtime.Types.Result.GetResult<Prisma.$departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    products<T extends Prisma.departments_products$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.departments_products$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 departments_products model
 */
export interface departments_productsFieldRefs {
    readonly id: Prisma.FieldRef<"departments_products", 'Int'>;
    readonly departments_id: Prisma.FieldRef<"departments_products", 'Int'>;
    readonly products_id: Prisma.FieldRef<"departments_products", 'BigInt'>;
}
/**
 * departments_products findUnique
 */
export type departments_productsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_products to fetch.
     */
    where: Prisma.departments_productsWhereUniqueInput;
};
/**
 * departments_products findUniqueOrThrow
 */
export type departments_productsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_products to fetch.
     */
    where: Prisma.departments_productsWhereUniqueInput;
};
/**
 * departments_products findFirst
 */
export type departments_productsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_products to fetch.
     */
    where?: Prisma.departments_productsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_products to fetch.
     */
    orderBy?: Prisma.departments_productsOrderByWithRelationInput | Prisma.departments_productsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for departments_products.
     */
    cursor?: Prisma.departments_productsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_products 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_products.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of departments_products.
     */
    distinct?: Prisma.Departments_productsScalarFieldEnum | Prisma.Departments_productsScalarFieldEnum[];
};
/**
 * departments_products findFirstOrThrow
 */
export type departments_productsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_products to fetch.
     */
    where?: Prisma.departments_productsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_products to fetch.
     */
    orderBy?: Prisma.departments_productsOrderByWithRelationInput | Prisma.departments_productsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for departments_products.
     */
    cursor?: Prisma.departments_productsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_products 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_products.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of departments_products.
     */
    distinct?: Prisma.Departments_productsScalarFieldEnum | Prisma.Departments_productsScalarFieldEnum[];
};
/**
 * departments_products findMany
 */
export type departments_productsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * Filter, which departments_products to fetch.
     */
    where?: Prisma.departments_productsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of departments_products to fetch.
     */
    orderBy?: Prisma.departments_productsOrderByWithRelationInput | Prisma.departments_productsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing departments_products.
     */
    cursor?: Prisma.departments_productsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` departments_products 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_products.
     */
    skip?: number;
    distinct?: Prisma.Departments_productsScalarFieldEnum | Prisma.Departments_productsScalarFieldEnum[];
};
/**
 * departments_products create
 */
export type departments_productsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * The data needed to create a departments_products.
     */
    data?: Prisma.XOR<Prisma.departments_productsCreateInput, Prisma.departments_productsUncheckedCreateInput>;
};
/**
 * departments_products createMany
 */
export type departments_productsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many departments_products.
     */
    data: Prisma.departments_productsCreateManyInput | Prisma.departments_productsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * departments_products createManyAndReturn
 */
export type departments_productsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * The data used to create many departments_products.
     */
    data: Prisma.departments_productsCreateManyInput | Prisma.departments_productsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * departments_products update
 */
export type departments_productsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * The data needed to update a departments_products.
     */
    data: Prisma.XOR<Prisma.departments_productsUpdateInput, Prisma.departments_productsUncheckedUpdateInput>;
    /**
     * Choose, which departments_products to update.
     */
    where: Prisma.departments_productsWhereUniqueInput;
};
/**
 * departments_products updateMany
 */
export type departments_productsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update departments_products.
     */
    data: Prisma.XOR<Prisma.departments_productsUpdateManyMutationInput, Prisma.departments_productsUncheckedUpdateManyInput>;
    /**
     * Filter which departments_products to update
     */
    where?: Prisma.departments_productsWhereInput;
    /**
     * Limit how many departments_products to update.
     */
    limit?: number;
};
/**
 * departments_products updateManyAndReturn
 */
export type departments_productsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * The data used to update departments_products.
     */
    data: Prisma.XOR<Prisma.departments_productsUpdateManyMutationInput, Prisma.departments_productsUncheckedUpdateManyInput>;
    /**
     * Filter which departments_products to update
     */
    where?: Prisma.departments_productsWhereInput;
    /**
     * Limit how many departments_products to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * departments_products upsert
 */
export type departments_productsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * The filter to search for the departments_products to update in case it exists.
     */
    where: Prisma.departments_productsWhereUniqueInput;
    /**
     * In case the departments_products found by the `where` argument doesn't exist, create a new departments_products with this data.
     */
    create: Prisma.XOR<Prisma.departments_productsCreateInput, Prisma.departments_productsUncheckedCreateInput>;
    /**
     * In case the departments_products was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.departments_productsUpdateInput, Prisma.departments_productsUncheckedUpdateInput>;
};
/**
 * departments_products delete
 */
export type departments_productsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
    /**
     * Filter which departments_products to delete.
     */
    where: Prisma.departments_productsWhereUniqueInput;
};
/**
 * departments_products deleteMany
 */
export type departments_productsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which departments_products to delete
     */
    where?: Prisma.departments_productsWhereInput;
    /**
     * Limit how many departments_products to delete.
     */
    limit?: number;
};
/**
 * departments_products.departments
 */
export type departments_products$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_products.products
 */
export type departments_products$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;
};
/**
 * departments_products without action
 */
export type departments_productsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments_products
     */
    select?: Prisma.departments_productsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments_products
     */
    omit?: Prisma.departments_productsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departments_productsInclude<ExtArgs> | null;
};
export {};
