import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model brands_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 brands_departmentsModel = runtime.Types.Result.DefaultSelection<Prisma.$brands_departmentsPayload>;
export type AggregateBrands_departments = {
    _count: Brands_departmentsCountAggregateOutputType | null;
    _avg: Brands_departmentsAvgAggregateOutputType | null;
    _sum: Brands_departmentsSumAggregateOutputType | null;
    _min: Brands_departmentsMinAggregateOutputType | null;
    _max: Brands_departmentsMaxAggregateOutputType | null;
};
export type Brands_departmentsAvgAggregateOutputType = {
    id: number | null;
    brands_id: number | null;
    departments_id: number | null;
};
export type Brands_departmentsSumAggregateOutputType = {
    id: number | null;
    brands_id: bigint | null;
    departments_id: number | null;
};
export type Brands_departmentsMinAggregateOutputType = {
    id: number | null;
    brands_id: bigint | null;
    departments_id: number | null;
};
export type Brands_departmentsMaxAggregateOutputType = {
    id: number | null;
    brands_id: bigint | null;
    departments_id: number | null;
};
export type Brands_departmentsCountAggregateOutputType = {
    id: number;
    brands_id: number;
    departments_id: number;
    _all: number;
};
export type Brands_departmentsAvgAggregateInputType = {
    id?: true;
    brands_id?: true;
    departments_id?: true;
};
export type Brands_departmentsSumAggregateInputType = {
    id?: true;
    brands_id?: true;
    departments_id?: true;
};
export type Brands_departmentsMinAggregateInputType = {
    id?: true;
    brands_id?: true;
    departments_id?: true;
};
export type Brands_departmentsMaxAggregateInputType = {
    id?: true;
    brands_id?: true;
    departments_id?: true;
};
export type Brands_departmentsCountAggregateInputType = {
    id?: true;
    brands_id?: true;
    departments_id?: true;
    _all?: true;
};
export type Brands_departmentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which brands_departments to aggregate.
     */
    where?: Prisma.brands_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of brands_departments to fetch.
     */
    orderBy?: Prisma.brands_departmentsOrderByWithRelationInput | Prisma.brands_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.brands_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` brands_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` brands_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned brands_departments
    **/
    _count?: true | Brands_departmentsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Brands_departmentsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Brands_departmentsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Brands_departmentsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Brands_departmentsMaxAggregateInputType;
};
export type GetBrands_departmentsAggregateType<T extends Brands_departmentsAggregateArgs> = {
    [P in keyof T & keyof AggregateBrands_departments]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateBrands_departments[P]> : Prisma.GetScalarType<T[P], AggregateBrands_departments[P]>;
};
export type brands_departmentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.brands_departmentsWhereInput;
    orderBy?: Prisma.brands_departmentsOrderByWithAggregationInput | Prisma.brands_departmentsOrderByWithAggregationInput[];
    by: Prisma.Brands_departmentsScalarFieldEnum[] | Prisma.Brands_departmentsScalarFieldEnum;
    having?: Prisma.brands_departmentsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Brands_departmentsCountAggregateInputType | true;
    _avg?: Brands_departmentsAvgAggregateInputType;
    _sum?: Brands_departmentsSumAggregateInputType;
    _min?: Brands_departmentsMinAggregateInputType;
    _max?: Brands_departmentsMaxAggregateInputType;
};
export type Brands_departmentsGroupByOutputType = {
    id: number;
    brands_id: bigint | null;
    departments_id: number | null;
    _count: Brands_departmentsCountAggregateOutputType | null;
    _avg: Brands_departmentsAvgAggregateOutputType | null;
    _sum: Brands_departmentsSumAggregateOutputType | null;
    _min: Brands_departmentsMinAggregateOutputType | null;
    _max: Brands_departmentsMaxAggregateOutputType | null;
};
type GetBrands_departmentsGroupByPayload<T extends brands_departmentsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Brands_departmentsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Brands_departmentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Brands_departmentsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Brands_departmentsGroupByOutputType[P]>;
}>>;
export type brands_departmentsWhereInput = {
    AND?: Prisma.brands_departmentsWhereInput | Prisma.brands_departmentsWhereInput[];
    OR?: Prisma.brands_departmentsWhereInput[];
    NOT?: Prisma.brands_departmentsWhereInput | Prisma.brands_departmentsWhereInput[];
    id?: Prisma.IntFilter<"brands_departments"> | number;
    brands_id?: Prisma.BigIntNullableFilter<"brands_departments"> | bigint | number | null;
    departments_id?: Prisma.IntNullableFilter<"brands_departments"> | number | null;
    brands?: Prisma.XOR<Prisma.BrandsNullableScalarRelationFilter, Prisma.brandsWhereInput> | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
};
export type brands_departmentsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    brands?: Prisma.brandsOrderByWithRelationInput;
    departments?: Prisma.departmentsOrderByWithRelationInput;
};
export type brands_departmentsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.brands_departmentsWhereInput | Prisma.brands_departmentsWhereInput[];
    OR?: Prisma.brands_departmentsWhereInput[];
    NOT?: Prisma.brands_departmentsWhereInput | Prisma.brands_departmentsWhereInput[];
    brands_id?: Prisma.BigIntNullableFilter<"brands_departments"> | bigint | number | null;
    departments_id?: Prisma.IntNullableFilter<"brands_departments"> | number | null;
    brands?: Prisma.XOR<Prisma.BrandsNullableScalarRelationFilter, Prisma.brandsWhereInput> | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
}, "id">;
export type brands_departmentsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.brands_departmentsCountOrderByAggregateInput;
    _avg?: Prisma.brands_departmentsAvgOrderByAggregateInput;
    _max?: Prisma.brands_departmentsMaxOrderByAggregateInput;
    _min?: Prisma.brands_departmentsMinOrderByAggregateInput;
    _sum?: Prisma.brands_departmentsSumOrderByAggregateInput;
};
export type brands_departmentsScalarWhereWithAggregatesInput = {
    AND?: Prisma.brands_departmentsScalarWhereWithAggregatesInput | Prisma.brands_departmentsScalarWhereWithAggregatesInput[];
    OR?: Prisma.brands_departmentsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.brands_departmentsScalarWhereWithAggregatesInput | Prisma.brands_departmentsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"brands_departments"> | number;
    brands_id?: Prisma.BigIntNullableWithAggregatesFilter<"brands_departments"> | bigint | number | null;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"brands_departments"> | number | null;
};
export type brands_departmentsCreateInput = {
    brands?: Prisma.brandsCreateNestedOneWithoutBrands_departmentsInput;
    departments?: Prisma.departmentsCreateNestedOneWithoutBrands_departmentsInput;
};
export type brands_departmentsUncheckedCreateInput = {
    id?: number;
    brands_id?: bigint | number | null;
    departments_id?: number | null;
};
export type brands_departmentsUpdateInput = {
    brands?: Prisma.brandsUpdateOneWithoutBrands_departmentsNestedInput;
    departments?: Prisma.departmentsUpdateOneWithoutBrands_departmentsNestedInput;
};
export type brands_departmentsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    brands_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type brands_departmentsCreateManyInput = {
    id?: number;
    brands_id?: bigint | number | null;
    departments_id?: number | null;
};
export type brands_departmentsUpdateManyMutationInput = {};
export type brands_departmentsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    brands_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Brands_departmentsListRelationFilter = {
    every?: Prisma.brands_departmentsWhereInput;
    some?: Prisma.brands_departmentsWhereInput;
    none?: Prisma.brands_departmentsWhereInput;
};
export type brands_departmentsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type brands_departmentsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type brands_departmentsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type brands_departmentsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type brands_departmentsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type brands_departmentsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type brands_departmentsCreateNestedManyWithoutBrandsInput = {
    create?: Prisma.XOR<Prisma.brands_departmentsCreateWithoutBrandsInput, Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput> | Prisma.brands_departmentsCreateWithoutBrandsInput[] | Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput[];
    connectOrCreate?: Prisma.brands_departmentsCreateOrConnectWithoutBrandsInput | Prisma.brands_departmentsCreateOrConnectWithoutBrandsInput[];
    createMany?: Prisma.brands_departmentsCreateManyBrandsInputEnvelope;
    connect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
};
export type brands_departmentsUncheckedCreateNestedManyWithoutBrandsInput = {
    create?: Prisma.XOR<Prisma.brands_departmentsCreateWithoutBrandsInput, Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput> | Prisma.brands_departmentsCreateWithoutBrandsInput[] | Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput[];
    connectOrCreate?: Prisma.brands_departmentsCreateOrConnectWithoutBrandsInput | Prisma.brands_departmentsCreateOrConnectWithoutBrandsInput[];
    createMany?: Prisma.brands_departmentsCreateManyBrandsInputEnvelope;
    connect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
};
export type brands_departmentsUpdateManyWithoutBrandsNestedInput = {
    create?: Prisma.XOR<Prisma.brands_departmentsCreateWithoutBrandsInput, Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput> | Prisma.brands_departmentsCreateWithoutBrandsInput[] | Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput[];
    connectOrCreate?: Prisma.brands_departmentsCreateOrConnectWithoutBrandsInput | Prisma.brands_departmentsCreateOrConnectWithoutBrandsInput[];
    upsert?: Prisma.brands_departmentsUpsertWithWhereUniqueWithoutBrandsInput | Prisma.brands_departmentsUpsertWithWhereUniqueWithoutBrandsInput[];
    createMany?: Prisma.brands_departmentsCreateManyBrandsInputEnvelope;
    set?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    disconnect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    delete?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    connect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    update?: Prisma.brands_departmentsUpdateWithWhereUniqueWithoutBrandsInput | Prisma.brands_departmentsUpdateWithWhereUniqueWithoutBrandsInput[];
    updateMany?: Prisma.brands_departmentsUpdateManyWithWhereWithoutBrandsInput | Prisma.brands_departmentsUpdateManyWithWhereWithoutBrandsInput[];
    deleteMany?: Prisma.brands_departmentsScalarWhereInput | Prisma.brands_departmentsScalarWhereInput[];
};
export type brands_departmentsUncheckedUpdateManyWithoutBrandsNestedInput = {
    create?: Prisma.XOR<Prisma.brands_departmentsCreateWithoutBrandsInput, Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput> | Prisma.brands_departmentsCreateWithoutBrandsInput[] | Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput[];
    connectOrCreate?: Prisma.brands_departmentsCreateOrConnectWithoutBrandsInput | Prisma.brands_departmentsCreateOrConnectWithoutBrandsInput[];
    upsert?: Prisma.brands_departmentsUpsertWithWhereUniqueWithoutBrandsInput | Prisma.brands_departmentsUpsertWithWhereUniqueWithoutBrandsInput[];
    createMany?: Prisma.brands_departmentsCreateManyBrandsInputEnvelope;
    set?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    disconnect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    delete?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    connect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    update?: Prisma.brands_departmentsUpdateWithWhereUniqueWithoutBrandsInput | Prisma.brands_departmentsUpdateWithWhereUniqueWithoutBrandsInput[];
    updateMany?: Prisma.brands_departmentsUpdateManyWithWhereWithoutBrandsInput | Prisma.brands_departmentsUpdateManyWithWhereWithoutBrandsInput[];
    deleteMany?: Prisma.brands_departmentsScalarWhereInput | Prisma.brands_departmentsScalarWhereInput[];
};
export type brands_departmentsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.brands_departmentsCreateWithoutDepartmentsInput, Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.brands_departmentsCreateWithoutDepartmentsInput[] | Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.brands_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.brands_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.brands_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
};
export type brands_departmentsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.brands_departmentsCreateWithoutDepartmentsInput, Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.brands_departmentsCreateWithoutDepartmentsInput[] | Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.brands_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.brands_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.brands_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
};
export type brands_departmentsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.brands_departmentsCreateWithoutDepartmentsInput, Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.brands_departmentsCreateWithoutDepartmentsInput[] | Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.brands_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.brands_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.brands_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.brands_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.brands_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    disconnect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    delete?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    connect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    update?: Prisma.brands_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.brands_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.brands_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.brands_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.brands_departmentsScalarWhereInput | Prisma.brands_departmentsScalarWhereInput[];
};
export type brands_departmentsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.brands_departmentsCreateWithoutDepartmentsInput, Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.brands_departmentsCreateWithoutDepartmentsInput[] | Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.brands_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.brands_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.brands_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.brands_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.brands_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    disconnect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    delete?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    connect?: Prisma.brands_departmentsWhereUniqueInput | Prisma.brands_departmentsWhereUniqueInput[];
    update?: Prisma.brands_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.brands_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.brands_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.brands_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.brands_departmentsScalarWhereInput | Prisma.brands_departmentsScalarWhereInput[];
};
export type brands_departmentsCreateWithoutBrandsInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutBrands_departmentsInput;
};
export type brands_departmentsUncheckedCreateWithoutBrandsInput = {
    id?: number;
    departments_id?: number | null;
};
export type brands_departmentsCreateOrConnectWithoutBrandsInput = {
    where: Prisma.brands_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.brands_departmentsCreateWithoutBrandsInput, Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput>;
};
export type brands_departmentsCreateManyBrandsInputEnvelope = {
    data: Prisma.brands_departmentsCreateManyBrandsInput | Prisma.brands_departmentsCreateManyBrandsInput[];
    skipDuplicates?: boolean;
};
export type brands_departmentsUpsertWithWhereUniqueWithoutBrandsInput = {
    where: Prisma.brands_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.brands_departmentsUpdateWithoutBrandsInput, Prisma.brands_departmentsUncheckedUpdateWithoutBrandsInput>;
    create: Prisma.XOR<Prisma.brands_departmentsCreateWithoutBrandsInput, Prisma.brands_departmentsUncheckedCreateWithoutBrandsInput>;
};
export type brands_departmentsUpdateWithWhereUniqueWithoutBrandsInput = {
    where: Prisma.brands_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.brands_departmentsUpdateWithoutBrandsInput, Prisma.brands_departmentsUncheckedUpdateWithoutBrandsInput>;
};
export type brands_departmentsUpdateManyWithWhereWithoutBrandsInput = {
    where: Prisma.brands_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.brands_departmentsUpdateManyMutationInput, Prisma.brands_departmentsUncheckedUpdateManyWithoutBrandsInput>;
};
export type brands_departmentsScalarWhereInput = {
    AND?: Prisma.brands_departmentsScalarWhereInput | Prisma.brands_departmentsScalarWhereInput[];
    OR?: Prisma.brands_departmentsScalarWhereInput[];
    NOT?: Prisma.brands_departmentsScalarWhereInput | Prisma.brands_departmentsScalarWhereInput[];
    id?: Prisma.IntFilter<"brands_departments"> | number;
    brands_id?: Prisma.BigIntNullableFilter<"brands_departments"> | bigint | number | null;
    departments_id?: Prisma.IntNullableFilter<"brands_departments"> | number | null;
};
export type brands_departmentsCreateWithoutDepartmentsInput = {
    brands?: Prisma.brandsCreateNestedOneWithoutBrands_departmentsInput;
};
export type brands_departmentsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    brands_id?: bigint | number | null;
};
export type brands_departmentsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.brands_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.brands_departmentsCreateWithoutDepartmentsInput, Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type brands_departmentsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.brands_departmentsCreateManyDepartmentsInput | Prisma.brands_departmentsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type brands_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.brands_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.brands_departmentsUpdateWithoutDepartmentsInput, Prisma.brands_departmentsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.brands_departmentsCreateWithoutDepartmentsInput, Prisma.brands_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type brands_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.brands_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.brands_departmentsUpdateWithoutDepartmentsInput, Prisma.brands_departmentsUncheckedUpdateWithoutDepartmentsInput>;
};
export type brands_departmentsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.brands_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.brands_departmentsUpdateManyMutationInput, Prisma.brands_departmentsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type brands_departmentsCreateManyBrandsInput = {
    id?: number;
    departments_id?: number | null;
};
export type brands_departmentsUpdateWithoutBrandsInput = {
    departments?: Prisma.departmentsUpdateOneWithoutBrands_departmentsNestedInput;
};
export type brands_departmentsUncheckedUpdateWithoutBrandsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type brands_departmentsUncheckedUpdateManyWithoutBrandsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type brands_departmentsCreateManyDepartmentsInput = {
    id?: number;
    brands_id?: bigint | number | null;
};
export type brands_departmentsUpdateWithoutDepartmentsInput = {
    brands?: Prisma.brandsUpdateOneWithoutBrands_departmentsNestedInput;
};
export type brands_departmentsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    brands_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type brands_departmentsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    brands_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type brands_departmentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    brands_id?: boolean;
    departments_id?: boolean;
    brands?: boolean | Prisma.brands_departments$brandsArgs<ExtArgs>;
    departments?: boolean | Prisma.brands_departments$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["brands_departments"]>;
export type brands_departmentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    brands_id?: boolean;
    departments_id?: boolean;
    brands?: boolean | Prisma.brands_departments$brandsArgs<ExtArgs>;
    departments?: boolean | Prisma.brands_departments$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["brands_departments"]>;
export type brands_departmentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    brands_id?: boolean;
    departments_id?: boolean;
    brands?: boolean | Prisma.brands_departments$brandsArgs<ExtArgs>;
    departments?: boolean | Prisma.brands_departments$departmentsArgs<ExtArgs>;
}, ExtArgs["result"]["brands_departments"]>;
export type brands_departmentsSelectScalar = {
    id?: boolean;
    brands_id?: boolean;
    departments_id?: boolean;
};
export type brands_departmentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "brands_id" | "departments_id", ExtArgs["result"]["brands_departments"]>;
export type brands_departmentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    brands?: boolean | Prisma.brands_departments$brandsArgs<ExtArgs>;
    departments?: boolean | Prisma.brands_departments$departmentsArgs<ExtArgs>;
};
export type brands_departmentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    brands?: boolean | Prisma.brands_departments$brandsArgs<ExtArgs>;
    departments?: boolean | Prisma.brands_departments$departmentsArgs<ExtArgs>;
};
export type brands_departmentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    brands?: boolean | Prisma.brands_departments$brandsArgs<ExtArgs>;
    departments?: boolean | Prisma.brands_departments$departmentsArgs<ExtArgs>;
};
export type $brands_departmentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "brands_departments";
    objects: {
        brands: Prisma.$brandsPayload<ExtArgs> | null;
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        brands_id: bigint | null;
        departments_id: number | null;
    }, ExtArgs["result"]["brands_departments"]>;
    composites: {};
};
export type brands_departmentsGetPayload<S extends boolean | null | undefined | brands_departmentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload, S>;
export type brands_departmentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<brands_departmentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Brands_departmentsCountAggregateInputType | true;
};
export interface brands_departmentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['brands_departments'];
        meta: {
            name: 'brands_departments';
        };
    };
    /**
     * Find zero or one Brands_departments that matches the filter.
     * @param {brands_departmentsFindUniqueArgs} args - Arguments to find a Brands_departments
     * @example
     * // Get one Brands_departments
     * const brands_departments = await prisma.brands_departments.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends brands_departmentsFindUniqueArgs>(args: Prisma.SelectSubset<T, brands_departmentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__brands_departmentsClient<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Brands_departments that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {brands_departmentsFindUniqueOrThrowArgs} args - Arguments to find a Brands_departments
     * @example
     * // Get one Brands_departments
     * const brands_departments = await prisma.brands_departments.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends brands_departmentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, brands_departmentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__brands_departmentsClient<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Brands_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 {brands_departmentsFindFirstArgs} args - Arguments to find a Brands_departments
     * @example
     * // Get one Brands_departments
     * const brands_departments = await prisma.brands_departments.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends brands_departmentsFindFirstArgs>(args?: Prisma.SelectSubset<T, brands_departmentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__brands_departmentsClient<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Brands_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 {brands_departmentsFindFirstOrThrowArgs} args - Arguments to find a Brands_departments
     * @example
     * // Get one Brands_departments
     * const brands_departments = await prisma.brands_departments.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends brands_departmentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, brands_departmentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__brands_departmentsClient<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Brands_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 {brands_departmentsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Brands_departments
     * const brands_departments = await prisma.brands_departments.findMany()
     *
     * // Get first 10 Brands_departments
     * const brands_departments = await prisma.brands_departments.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const brands_departmentsWithIdOnly = await prisma.brands_departments.findMany({ select: { id: true } })
     *
     */
    findMany<T extends brands_departmentsFindManyArgs>(args?: Prisma.SelectSubset<T, brands_departmentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Brands_departments.
     * @param {brands_departmentsCreateArgs} args - Arguments to create a Brands_departments.
     * @example
     * // Create one Brands_departments
     * const Brands_departments = await prisma.brands_departments.create({
     *   data: {
     *     // ... data to create a Brands_departments
     *   }
     * })
     *
     */
    create<T extends brands_departmentsCreateArgs>(args: Prisma.SelectSubset<T, brands_departmentsCreateArgs<ExtArgs>>): Prisma.Prisma__brands_departmentsClient<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Brands_departments.
     * @param {brands_departmentsCreateManyArgs} args - Arguments to create many Brands_departments.
     * @example
     * // Create many Brands_departments
     * const brands_departments = await prisma.brands_departments.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends brands_departmentsCreateManyArgs>(args?: Prisma.SelectSubset<T, brands_departmentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Brands_departments and returns the data saved in the database.
     * @param {brands_departmentsCreateManyAndReturnArgs} args - Arguments to create many Brands_departments.
     * @example
     * // Create many Brands_departments
     * const brands_departments = await prisma.brands_departments.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Brands_departments and only return the `id`
     * const brands_departmentsWithIdOnly = await prisma.brands_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 brands_departmentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, brands_departmentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Brands_departments.
     * @param {brands_departmentsDeleteArgs} args - Arguments to delete one Brands_departments.
     * @example
     * // Delete one Brands_departments
     * const Brands_departments = await prisma.brands_departments.delete({
     *   where: {
     *     // ... filter to delete one Brands_departments
     *   }
     * })
     *
     */
    delete<T extends brands_departmentsDeleteArgs>(args: Prisma.SelectSubset<T, brands_departmentsDeleteArgs<ExtArgs>>): Prisma.Prisma__brands_departmentsClient<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Brands_departments.
     * @param {brands_departmentsUpdateArgs} args - Arguments to update one Brands_departments.
     * @example
     * // Update one Brands_departments
     * const brands_departments = await prisma.brands_departments.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends brands_departmentsUpdateArgs>(args: Prisma.SelectSubset<T, brands_departmentsUpdateArgs<ExtArgs>>): Prisma.Prisma__brands_departmentsClient<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Brands_departments.
     * @param {brands_departmentsDeleteManyArgs} args - Arguments to filter Brands_departments to delete.
     * @example
     * // Delete a few Brands_departments
     * const { count } = await prisma.brands_departments.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends brands_departmentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, brands_departmentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Brands_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_departmentsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Brands_departments
     * const brands_departments = await prisma.brands_departments.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends brands_departmentsUpdateManyArgs>(args: Prisma.SelectSubset<T, brands_departmentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Brands_departments and returns the data updated in the database.
     * @param {brands_departmentsUpdateManyAndReturnArgs} args - Arguments to update many Brands_departments.
     * @example
     * // Update many Brands_departments
     * const brands_departments = await prisma.brands_departments.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Brands_departments and only return the `id`
     * const brands_departmentsWithIdOnly = await prisma.brands_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 brands_departmentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, brands_departmentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Brands_departments.
     * @param {brands_departmentsUpsertArgs} args - Arguments to update or create a Brands_departments.
     * @example
     * // Update or create a Brands_departments
     * const brands_departments = await prisma.brands_departments.upsert({
     *   create: {
     *     // ... data to create a Brands_departments
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Brands_departments we want to update
     *   }
     * })
     */
    upsert<T extends brands_departmentsUpsertArgs>(args: Prisma.SelectSubset<T, brands_departmentsUpsertArgs<ExtArgs>>): Prisma.Prisma__brands_departmentsClient<runtime.Types.Result.GetResult<Prisma.$brands_departmentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Brands_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_departmentsCountArgs} args - Arguments to filter Brands_departments to count.
     * @example
     * // Count the number of Brands_departments
     * const count = await prisma.brands_departments.count({
     *   where: {
     *     // ... the filter for the Brands_departments we want to count
     *   }
     * })
    **/
    count<T extends brands_departmentsCountArgs>(args?: Prisma.Subset<T, brands_departmentsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Brands_departmentsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Brands_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Brands_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 Brands_departmentsAggregateArgs>(args: Prisma.Subset<T, Brands_departmentsAggregateArgs>): Prisma.PrismaPromise<GetBrands_departmentsAggregateType<T>>;
    /**
     * Group by Brands_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_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 brands_departmentsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: brands_departmentsGroupByArgs['orderBy'];
    } : {
        orderBy?: brands_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, brands_departmentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBrands_departmentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the brands_departments model
     */
    readonly fields: brands_departmentsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for brands_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__brands_departmentsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    brands<T extends Prisma.brands_departments$brandsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.brands_departments$brandsArgs<ExtArgs>>): Prisma.Prisma__brandsClient<runtime.Types.Result.GetResult<Prisma.$brandsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    departments<T extends Prisma.brands_departments$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.brands_departments$departmentsArgs<ExtArgs>>): Prisma.Prisma__departmentsClient<runtime.Types.Result.GetResult<Prisma.$departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
}
/**
 * Fields of the brands_departments model
 */
export interface brands_departmentsFieldRefs {
    readonly id: Prisma.FieldRef<"brands_departments", 'Int'>;
    readonly brands_id: Prisma.FieldRef<"brands_departments", 'BigInt'>;
    readonly departments_id: Prisma.FieldRef<"brands_departments", 'Int'>;
}
/**
 * brands_departments findUnique
 */
export type brands_departmentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which brands_departments to fetch.
     */
    where: Prisma.brands_departmentsWhereUniqueInput;
};
/**
 * brands_departments findUniqueOrThrow
 */
export type brands_departmentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which brands_departments to fetch.
     */
    where: Prisma.brands_departmentsWhereUniqueInput;
};
/**
 * brands_departments findFirst
 */
export type brands_departmentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which brands_departments to fetch.
     */
    where?: Prisma.brands_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of brands_departments to fetch.
     */
    orderBy?: Prisma.brands_departmentsOrderByWithRelationInput | Prisma.brands_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for brands_departments.
     */
    cursor?: Prisma.brands_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` brands_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` brands_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of brands_departments.
     */
    distinct?: Prisma.Brands_departmentsScalarFieldEnum | Prisma.Brands_departmentsScalarFieldEnum[];
};
/**
 * brands_departments findFirstOrThrow
 */
export type brands_departmentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which brands_departments to fetch.
     */
    where?: Prisma.brands_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of brands_departments to fetch.
     */
    orderBy?: Prisma.brands_departmentsOrderByWithRelationInput | Prisma.brands_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for brands_departments.
     */
    cursor?: Prisma.brands_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` brands_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` brands_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of brands_departments.
     */
    distinct?: Prisma.Brands_departmentsScalarFieldEnum | Prisma.Brands_departmentsScalarFieldEnum[];
};
/**
 * brands_departments findMany
 */
export type brands_departmentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which brands_departments to fetch.
     */
    where?: Prisma.brands_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of brands_departments to fetch.
     */
    orderBy?: Prisma.brands_departmentsOrderByWithRelationInput | Prisma.brands_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing brands_departments.
     */
    cursor?: Prisma.brands_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` brands_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` brands_departments.
     */
    skip?: number;
    distinct?: Prisma.Brands_departmentsScalarFieldEnum | Prisma.Brands_departmentsScalarFieldEnum[];
};
/**
 * brands_departments create
 */
export type brands_departmentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to create a brands_departments.
     */
    data?: Prisma.XOR<Prisma.brands_departmentsCreateInput, Prisma.brands_departmentsUncheckedCreateInput>;
};
/**
 * brands_departments createMany
 */
export type brands_departmentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many brands_departments.
     */
    data: Prisma.brands_departmentsCreateManyInput | Prisma.brands_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * brands_departments createManyAndReturn
 */
export type brands_departmentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to create many brands_departments.
     */
    data: Prisma.brands_departmentsCreateManyInput | Prisma.brands_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * brands_departments update
 */
export type brands_departmentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to update a brands_departments.
     */
    data: Prisma.XOR<Prisma.brands_departmentsUpdateInput, Prisma.brands_departmentsUncheckedUpdateInput>;
    /**
     * Choose, which brands_departments to update.
     */
    where: Prisma.brands_departmentsWhereUniqueInput;
};
/**
 * brands_departments updateMany
 */
export type brands_departmentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update brands_departments.
     */
    data: Prisma.XOR<Prisma.brands_departmentsUpdateManyMutationInput, Prisma.brands_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which brands_departments to update
     */
    where?: Prisma.brands_departmentsWhereInput;
    /**
     * Limit how many brands_departments to update.
     */
    limit?: number;
};
/**
 * brands_departments updateManyAndReturn
 */
export type brands_departmentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to update brands_departments.
     */
    data: Prisma.XOR<Prisma.brands_departmentsUpdateManyMutationInput, Prisma.brands_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which brands_departments to update
     */
    where?: Prisma.brands_departmentsWhereInput;
    /**
     * Limit how many brands_departments to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * brands_departments upsert
 */
export type brands_departmentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * The filter to search for the brands_departments to update in case it exists.
     */
    where: Prisma.brands_departmentsWhereUniqueInput;
    /**
     * In case the brands_departments found by the `where` argument doesn't exist, create a new brands_departments with this data.
     */
    create: Prisma.XOR<Prisma.brands_departmentsCreateInput, Prisma.brands_departmentsUncheckedCreateInput>;
    /**
     * In case the brands_departments was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.brands_departmentsUpdateInput, Prisma.brands_departmentsUncheckedUpdateInput>;
};
/**
 * brands_departments delete
 */
export type brands_departmentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
    /**
     * Filter which brands_departments to delete.
     */
    where: Prisma.brands_departmentsWhereUniqueInput;
};
/**
 * brands_departments deleteMany
 */
export type brands_departmentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which brands_departments to delete
     */
    where?: Prisma.brands_departmentsWhereInput;
    /**
     * Limit how many brands_departments to delete.
     */
    limit?: number;
};
/**
 * brands_departments.brands
 */
export type brands_departments$brandsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands
     */
    select?: Prisma.brandsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands
     */
    omit?: Prisma.brandsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brandsInclude<ExtArgs> | null;
    where?: Prisma.brandsWhereInput;
};
/**
 * brands_departments.departments
 */
export type brands_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;
};
/**
 * brands_departments without action
 */
export type brands_departmentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_departments
     */
    select?: Prisma.brands_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_departments
     */
    omit?: Prisma.brands_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_departmentsInclude<ExtArgs> | null;
};
export {};
