import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model brands_categories
 * This model contains row level security and requires additional setup for migrations. Visit https://pris.ly/d/row-level-security for more info.
 */
export type brands_categoriesModel = runtime.Types.Result.DefaultSelection<Prisma.$brands_categoriesPayload>;
export type AggregateBrands_categories = {
    _count: Brands_categoriesCountAggregateOutputType | null;
    _avg: Brands_categoriesAvgAggregateOutputType | null;
    _sum: Brands_categoriesSumAggregateOutputType | null;
    _min: Brands_categoriesMinAggregateOutputType | null;
    _max: Brands_categoriesMaxAggregateOutputType | null;
};
export type Brands_categoriesAvgAggregateOutputType = {
    id: number | null;
    brands_id: number | null;
    categories_id: number | null;
};
export type Brands_categoriesSumAggregateOutputType = {
    id: number | null;
    brands_id: bigint | null;
    categories_id: number | null;
};
export type Brands_categoriesMinAggregateOutputType = {
    id: number | null;
    brands_id: bigint | null;
    categories_id: number | null;
};
export type Brands_categoriesMaxAggregateOutputType = {
    id: number | null;
    brands_id: bigint | null;
    categories_id: number | null;
};
export type Brands_categoriesCountAggregateOutputType = {
    id: number;
    brands_id: number;
    categories_id: number;
    _all: number;
};
export type Brands_categoriesAvgAggregateInputType = {
    id?: true;
    brands_id?: true;
    categories_id?: true;
};
export type Brands_categoriesSumAggregateInputType = {
    id?: true;
    brands_id?: true;
    categories_id?: true;
};
export type Brands_categoriesMinAggregateInputType = {
    id?: true;
    brands_id?: true;
    categories_id?: true;
};
export type Brands_categoriesMaxAggregateInputType = {
    id?: true;
    brands_id?: true;
    categories_id?: true;
};
export type Brands_categoriesCountAggregateInputType = {
    id?: true;
    brands_id?: true;
    categories_id?: true;
    _all?: true;
};
export type Brands_categoriesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which brands_categories to aggregate.
     */
    where?: Prisma.brands_categoriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of brands_categories to fetch.
     */
    orderBy?: Prisma.brands_categoriesOrderByWithRelationInput | Prisma.brands_categoriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.brands_categoriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` brands_categories from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` brands_categories.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned brands_categories
    **/
    _count?: true | Brands_categoriesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Brands_categoriesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Brands_categoriesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Brands_categoriesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Brands_categoriesMaxAggregateInputType;
};
export type GetBrands_categoriesAggregateType<T extends Brands_categoriesAggregateArgs> = {
    [P in keyof T & keyof AggregateBrands_categories]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateBrands_categories[P]> : Prisma.GetScalarType<T[P], AggregateBrands_categories[P]>;
};
export type brands_categoriesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.brands_categoriesWhereInput;
    orderBy?: Prisma.brands_categoriesOrderByWithAggregationInput | Prisma.brands_categoriesOrderByWithAggregationInput[];
    by: Prisma.Brands_categoriesScalarFieldEnum[] | Prisma.Brands_categoriesScalarFieldEnum;
    having?: Prisma.brands_categoriesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Brands_categoriesCountAggregateInputType | true;
    _avg?: Brands_categoriesAvgAggregateInputType;
    _sum?: Brands_categoriesSumAggregateInputType;
    _min?: Brands_categoriesMinAggregateInputType;
    _max?: Brands_categoriesMaxAggregateInputType;
};
export type Brands_categoriesGroupByOutputType = {
    id: number;
    brands_id: bigint | null;
    categories_id: number | null;
    _count: Brands_categoriesCountAggregateOutputType | null;
    _avg: Brands_categoriesAvgAggregateOutputType | null;
    _sum: Brands_categoriesSumAggregateOutputType | null;
    _min: Brands_categoriesMinAggregateOutputType | null;
    _max: Brands_categoriesMaxAggregateOutputType | null;
};
type GetBrands_categoriesGroupByPayload<T extends brands_categoriesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Brands_categoriesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Brands_categoriesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Brands_categoriesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Brands_categoriesGroupByOutputType[P]>;
}>>;
export type brands_categoriesWhereInput = {
    AND?: Prisma.brands_categoriesWhereInput | Prisma.brands_categoriesWhereInput[];
    OR?: Prisma.brands_categoriesWhereInput[];
    NOT?: Prisma.brands_categoriesWhereInput | Prisma.brands_categoriesWhereInput[];
    id?: Prisma.IntFilter<"brands_categories"> | number;
    brands_id?: Prisma.BigIntNullableFilter<"brands_categories"> | bigint | number | null;
    categories_id?: Prisma.IntNullableFilter<"brands_categories"> | number | null;
    brands?: Prisma.XOR<Prisma.BrandsNullableScalarRelationFilter, Prisma.brandsWhereInput> | null;
    categories?: Prisma.XOR<Prisma.CategoriesNullableScalarRelationFilter, Prisma.categoriesWhereInput> | null;
};
export type brands_categoriesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    categories_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    brands?: Prisma.brandsOrderByWithRelationInput;
    categories?: Prisma.categoriesOrderByWithRelationInput;
};
export type brands_categoriesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.brands_categoriesWhereInput | Prisma.brands_categoriesWhereInput[];
    OR?: Prisma.brands_categoriesWhereInput[];
    NOT?: Prisma.brands_categoriesWhereInput | Prisma.brands_categoriesWhereInput[];
    brands_id?: Prisma.BigIntNullableFilter<"brands_categories"> | bigint | number | null;
    categories_id?: Prisma.IntNullableFilter<"brands_categories"> | number | null;
    brands?: Prisma.XOR<Prisma.BrandsNullableScalarRelationFilter, Prisma.brandsWhereInput> | null;
    categories?: Prisma.XOR<Prisma.CategoriesNullableScalarRelationFilter, Prisma.categoriesWhereInput> | null;
}, "id">;
export type brands_categoriesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    categories_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.brands_categoriesCountOrderByAggregateInput;
    _avg?: Prisma.brands_categoriesAvgOrderByAggregateInput;
    _max?: Prisma.brands_categoriesMaxOrderByAggregateInput;
    _min?: Prisma.brands_categoriesMinOrderByAggregateInput;
    _sum?: Prisma.brands_categoriesSumOrderByAggregateInput;
};
export type brands_categoriesScalarWhereWithAggregatesInput = {
    AND?: Prisma.brands_categoriesScalarWhereWithAggregatesInput | Prisma.brands_categoriesScalarWhereWithAggregatesInput[];
    OR?: Prisma.brands_categoriesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.brands_categoriesScalarWhereWithAggregatesInput | Prisma.brands_categoriesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"brands_categories"> | number;
    brands_id?: Prisma.BigIntNullableWithAggregatesFilter<"brands_categories"> | bigint | number | null;
    categories_id?: Prisma.IntNullableWithAggregatesFilter<"brands_categories"> | number | null;
};
export type brands_categoriesCreateInput = {
    brands?: Prisma.brandsCreateNestedOneWithoutBrands_categoriesInput;
    categories?: Prisma.categoriesCreateNestedOneWithoutBrands_categoriesInput;
};
export type brands_categoriesUncheckedCreateInput = {
    id?: number;
    brands_id?: bigint | number | null;
    categories_id?: number | null;
};
export type brands_categoriesUpdateInput = {
    brands?: Prisma.brandsUpdateOneWithoutBrands_categoriesNestedInput;
    categories?: Prisma.categoriesUpdateOneWithoutBrands_categoriesNestedInput;
};
export type brands_categoriesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    brands_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    categories_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type brands_categoriesCreateManyInput = {
    id?: number;
    brands_id?: bigint | number | null;
    categories_id?: number | null;
};
export type brands_categoriesUpdateManyMutationInput = {};
export type brands_categoriesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    brands_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
    categories_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Brands_categoriesListRelationFilter = {
    every?: Prisma.brands_categoriesWhereInput;
    some?: Prisma.brands_categoriesWhereInput;
    none?: Prisma.brands_categoriesWhereInput;
};
export type brands_categoriesOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type brands_categoriesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type brands_categoriesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type brands_categoriesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type brands_categoriesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type brands_categoriesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    brands_id?: Prisma.SortOrder;
    categories_id?: Prisma.SortOrder;
};
export type brands_categoriesCreateNestedManyWithoutBrandsInput = {
    create?: Prisma.XOR<Prisma.brands_categoriesCreateWithoutBrandsInput, Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput> | Prisma.brands_categoriesCreateWithoutBrandsInput[] | Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput[];
    connectOrCreate?: Prisma.brands_categoriesCreateOrConnectWithoutBrandsInput | Prisma.brands_categoriesCreateOrConnectWithoutBrandsInput[];
    createMany?: Prisma.brands_categoriesCreateManyBrandsInputEnvelope;
    connect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
};
export type brands_categoriesUncheckedCreateNestedManyWithoutBrandsInput = {
    create?: Prisma.XOR<Prisma.brands_categoriesCreateWithoutBrandsInput, Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput> | Prisma.brands_categoriesCreateWithoutBrandsInput[] | Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput[];
    connectOrCreate?: Prisma.brands_categoriesCreateOrConnectWithoutBrandsInput | Prisma.brands_categoriesCreateOrConnectWithoutBrandsInput[];
    createMany?: Prisma.brands_categoriesCreateManyBrandsInputEnvelope;
    connect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
};
export type brands_categoriesUpdateManyWithoutBrandsNestedInput = {
    create?: Prisma.XOR<Prisma.brands_categoriesCreateWithoutBrandsInput, Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput> | Prisma.brands_categoriesCreateWithoutBrandsInput[] | Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput[];
    connectOrCreate?: Prisma.brands_categoriesCreateOrConnectWithoutBrandsInput | Prisma.brands_categoriesCreateOrConnectWithoutBrandsInput[];
    upsert?: Prisma.brands_categoriesUpsertWithWhereUniqueWithoutBrandsInput | Prisma.brands_categoriesUpsertWithWhereUniqueWithoutBrandsInput[];
    createMany?: Prisma.brands_categoriesCreateManyBrandsInputEnvelope;
    set?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    disconnect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    delete?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    connect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    update?: Prisma.brands_categoriesUpdateWithWhereUniqueWithoutBrandsInput | Prisma.brands_categoriesUpdateWithWhereUniqueWithoutBrandsInput[];
    updateMany?: Prisma.brands_categoriesUpdateManyWithWhereWithoutBrandsInput | Prisma.brands_categoriesUpdateManyWithWhereWithoutBrandsInput[];
    deleteMany?: Prisma.brands_categoriesScalarWhereInput | Prisma.brands_categoriesScalarWhereInput[];
};
export type brands_categoriesUncheckedUpdateManyWithoutBrandsNestedInput = {
    create?: Prisma.XOR<Prisma.brands_categoriesCreateWithoutBrandsInput, Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput> | Prisma.brands_categoriesCreateWithoutBrandsInput[] | Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput[];
    connectOrCreate?: Prisma.brands_categoriesCreateOrConnectWithoutBrandsInput | Prisma.brands_categoriesCreateOrConnectWithoutBrandsInput[];
    upsert?: Prisma.brands_categoriesUpsertWithWhereUniqueWithoutBrandsInput | Prisma.brands_categoriesUpsertWithWhereUniqueWithoutBrandsInput[];
    createMany?: Prisma.brands_categoriesCreateManyBrandsInputEnvelope;
    set?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    disconnect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    delete?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    connect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    update?: Prisma.brands_categoriesUpdateWithWhereUniqueWithoutBrandsInput | Prisma.brands_categoriesUpdateWithWhereUniqueWithoutBrandsInput[];
    updateMany?: Prisma.brands_categoriesUpdateManyWithWhereWithoutBrandsInput | Prisma.brands_categoriesUpdateManyWithWhereWithoutBrandsInput[];
    deleteMany?: Prisma.brands_categoriesScalarWhereInput | Prisma.brands_categoriesScalarWhereInput[];
};
export type brands_categoriesCreateNestedManyWithoutCategoriesInput = {
    create?: Prisma.XOR<Prisma.brands_categoriesCreateWithoutCategoriesInput, Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput> | Prisma.brands_categoriesCreateWithoutCategoriesInput[] | Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput[];
    connectOrCreate?: Prisma.brands_categoriesCreateOrConnectWithoutCategoriesInput | Prisma.brands_categoriesCreateOrConnectWithoutCategoriesInput[];
    createMany?: Prisma.brands_categoriesCreateManyCategoriesInputEnvelope;
    connect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
};
export type brands_categoriesUncheckedCreateNestedManyWithoutCategoriesInput = {
    create?: Prisma.XOR<Prisma.brands_categoriesCreateWithoutCategoriesInput, Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput> | Prisma.brands_categoriesCreateWithoutCategoriesInput[] | Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput[];
    connectOrCreate?: Prisma.brands_categoriesCreateOrConnectWithoutCategoriesInput | Prisma.brands_categoriesCreateOrConnectWithoutCategoriesInput[];
    createMany?: Prisma.brands_categoriesCreateManyCategoriesInputEnvelope;
    connect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
};
export type brands_categoriesUpdateManyWithoutCategoriesNestedInput = {
    create?: Prisma.XOR<Prisma.brands_categoriesCreateWithoutCategoriesInput, Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput> | Prisma.brands_categoriesCreateWithoutCategoriesInput[] | Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput[];
    connectOrCreate?: Prisma.brands_categoriesCreateOrConnectWithoutCategoriesInput | Prisma.brands_categoriesCreateOrConnectWithoutCategoriesInput[];
    upsert?: Prisma.brands_categoriesUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.brands_categoriesUpsertWithWhereUniqueWithoutCategoriesInput[];
    createMany?: Prisma.brands_categoriesCreateManyCategoriesInputEnvelope;
    set?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    disconnect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    delete?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    connect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    update?: Prisma.brands_categoriesUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.brands_categoriesUpdateWithWhereUniqueWithoutCategoriesInput[];
    updateMany?: Prisma.brands_categoriesUpdateManyWithWhereWithoutCategoriesInput | Prisma.brands_categoriesUpdateManyWithWhereWithoutCategoriesInput[];
    deleteMany?: Prisma.brands_categoriesScalarWhereInput | Prisma.brands_categoriesScalarWhereInput[];
};
export type brands_categoriesUncheckedUpdateManyWithoutCategoriesNestedInput = {
    create?: Prisma.XOR<Prisma.brands_categoriesCreateWithoutCategoriesInput, Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput> | Prisma.brands_categoriesCreateWithoutCategoriesInput[] | Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput[];
    connectOrCreate?: Prisma.brands_categoriesCreateOrConnectWithoutCategoriesInput | Prisma.brands_categoriesCreateOrConnectWithoutCategoriesInput[];
    upsert?: Prisma.brands_categoriesUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.brands_categoriesUpsertWithWhereUniqueWithoutCategoriesInput[];
    createMany?: Prisma.brands_categoriesCreateManyCategoriesInputEnvelope;
    set?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    disconnect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    delete?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    connect?: Prisma.brands_categoriesWhereUniqueInput | Prisma.brands_categoriesWhereUniqueInput[];
    update?: Prisma.brands_categoriesUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.brands_categoriesUpdateWithWhereUniqueWithoutCategoriesInput[];
    updateMany?: Prisma.brands_categoriesUpdateManyWithWhereWithoutCategoriesInput | Prisma.brands_categoriesUpdateManyWithWhereWithoutCategoriesInput[];
    deleteMany?: Prisma.brands_categoriesScalarWhereInput | Prisma.brands_categoriesScalarWhereInput[];
};
export type brands_categoriesCreateWithoutBrandsInput = {
    categories?: Prisma.categoriesCreateNestedOneWithoutBrands_categoriesInput;
};
export type brands_categoriesUncheckedCreateWithoutBrandsInput = {
    id?: number;
    categories_id?: number | null;
};
export type brands_categoriesCreateOrConnectWithoutBrandsInput = {
    where: Prisma.brands_categoriesWhereUniqueInput;
    create: Prisma.XOR<Prisma.brands_categoriesCreateWithoutBrandsInput, Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput>;
};
export type brands_categoriesCreateManyBrandsInputEnvelope = {
    data: Prisma.brands_categoriesCreateManyBrandsInput | Prisma.brands_categoriesCreateManyBrandsInput[];
    skipDuplicates?: boolean;
};
export type brands_categoriesUpsertWithWhereUniqueWithoutBrandsInput = {
    where: Prisma.brands_categoriesWhereUniqueInput;
    update: Prisma.XOR<Prisma.brands_categoriesUpdateWithoutBrandsInput, Prisma.brands_categoriesUncheckedUpdateWithoutBrandsInput>;
    create: Prisma.XOR<Prisma.brands_categoriesCreateWithoutBrandsInput, Prisma.brands_categoriesUncheckedCreateWithoutBrandsInput>;
};
export type brands_categoriesUpdateWithWhereUniqueWithoutBrandsInput = {
    where: Prisma.brands_categoriesWhereUniqueInput;
    data: Prisma.XOR<Prisma.brands_categoriesUpdateWithoutBrandsInput, Prisma.brands_categoriesUncheckedUpdateWithoutBrandsInput>;
};
export type brands_categoriesUpdateManyWithWhereWithoutBrandsInput = {
    where: Prisma.brands_categoriesScalarWhereInput;
    data: Prisma.XOR<Prisma.brands_categoriesUpdateManyMutationInput, Prisma.brands_categoriesUncheckedUpdateManyWithoutBrandsInput>;
};
export type brands_categoriesScalarWhereInput = {
    AND?: Prisma.brands_categoriesScalarWhereInput | Prisma.brands_categoriesScalarWhereInput[];
    OR?: Prisma.brands_categoriesScalarWhereInput[];
    NOT?: Prisma.brands_categoriesScalarWhereInput | Prisma.brands_categoriesScalarWhereInput[];
    id?: Prisma.IntFilter<"brands_categories"> | number;
    brands_id?: Prisma.BigIntNullableFilter<"brands_categories"> | bigint | number | null;
    categories_id?: Prisma.IntNullableFilter<"brands_categories"> | number | null;
};
export type brands_categoriesCreateWithoutCategoriesInput = {
    brands?: Prisma.brandsCreateNestedOneWithoutBrands_categoriesInput;
};
export type brands_categoriesUncheckedCreateWithoutCategoriesInput = {
    id?: number;
    brands_id?: bigint | number | null;
};
export type brands_categoriesCreateOrConnectWithoutCategoriesInput = {
    where: Prisma.brands_categoriesWhereUniqueInput;
    create: Prisma.XOR<Prisma.brands_categoriesCreateWithoutCategoriesInput, Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput>;
};
export type brands_categoriesCreateManyCategoriesInputEnvelope = {
    data: Prisma.brands_categoriesCreateManyCategoriesInput | Prisma.brands_categoriesCreateManyCategoriesInput[];
    skipDuplicates?: boolean;
};
export type brands_categoriesUpsertWithWhereUniqueWithoutCategoriesInput = {
    where: Prisma.brands_categoriesWhereUniqueInput;
    update: Prisma.XOR<Prisma.brands_categoriesUpdateWithoutCategoriesInput, Prisma.brands_categoriesUncheckedUpdateWithoutCategoriesInput>;
    create: Prisma.XOR<Prisma.brands_categoriesCreateWithoutCategoriesInput, Prisma.brands_categoriesUncheckedCreateWithoutCategoriesInput>;
};
export type brands_categoriesUpdateWithWhereUniqueWithoutCategoriesInput = {
    where: Prisma.brands_categoriesWhereUniqueInput;
    data: Prisma.XOR<Prisma.brands_categoriesUpdateWithoutCategoriesInput, Prisma.brands_categoriesUncheckedUpdateWithoutCategoriesInput>;
};
export type brands_categoriesUpdateManyWithWhereWithoutCategoriesInput = {
    where: Prisma.brands_categoriesScalarWhereInput;
    data: Prisma.XOR<Prisma.brands_categoriesUpdateManyMutationInput, Prisma.brands_categoriesUncheckedUpdateManyWithoutCategoriesInput>;
};
export type brands_categoriesCreateManyBrandsInput = {
    id?: number;
    categories_id?: number | null;
};
export type brands_categoriesUpdateWithoutBrandsInput = {
    categories?: Prisma.categoriesUpdateOneWithoutBrands_categoriesNestedInput;
};
export type brands_categoriesUncheckedUpdateWithoutBrandsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    categories_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type brands_categoriesUncheckedUpdateManyWithoutBrandsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    categories_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type brands_categoriesCreateManyCategoriesInput = {
    id?: number;
    brands_id?: bigint | number | null;
};
export type brands_categoriesUpdateWithoutCategoriesInput = {
    brands?: Prisma.brandsUpdateOneWithoutBrands_categoriesNestedInput;
};
export type brands_categoriesUncheckedUpdateWithoutCategoriesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    brands_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type brands_categoriesUncheckedUpdateManyWithoutCategoriesInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    brands_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
};
export type brands_categoriesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    brands_id?: boolean;
    categories_id?: boolean;
    brands?: boolean | Prisma.brands_categories$brandsArgs<ExtArgs>;
    categories?: boolean | Prisma.brands_categories$categoriesArgs<ExtArgs>;
}, ExtArgs["result"]["brands_categories"]>;
export type brands_categoriesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    brands_id?: boolean;
    categories_id?: boolean;
    brands?: boolean | Prisma.brands_categories$brandsArgs<ExtArgs>;
    categories?: boolean | Prisma.brands_categories$categoriesArgs<ExtArgs>;
}, ExtArgs["result"]["brands_categories"]>;
export type brands_categoriesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    brands_id?: boolean;
    categories_id?: boolean;
    brands?: boolean | Prisma.brands_categories$brandsArgs<ExtArgs>;
    categories?: boolean | Prisma.brands_categories$categoriesArgs<ExtArgs>;
}, ExtArgs["result"]["brands_categories"]>;
export type brands_categoriesSelectScalar = {
    id?: boolean;
    brands_id?: boolean;
    categories_id?: boolean;
};
export type brands_categoriesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "brands_id" | "categories_id", ExtArgs["result"]["brands_categories"]>;
export type brands_categoriesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    brands?: boolean | Prisma.brands_categories$brandsArgs<ExtArgs>;
    categories?: boolean | Prisma.brands_categories$categoriesArgs<ExtArgs>;
};
export type brands_categoriesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    brands?: boolean | Prisma.brands_categories$brandsArgs<ExtArgs>;
    categories?: boolean | Prisma.brands_categories$categoriesArgs<ExtArgs>;
};
export type brands_categoriesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    brands?: boolean | Prisma.brands_categories$brandsArgs<ExtArgs>;
    categories?: boolean | Prisma.brands_categories$categoriesArgs<ExtArgs>;
};
export type $brands_categoriesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "brands_categories";
    objects: {
        brands: Prisma.$brandsPayload<ExtArgs> | null;
        categories: Prisma.$categoriesPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        brands_id: bigint | null;
        categories_id: number | null;
    }, ExtArgs["result"]["brands_categories"]>;
    composites: {};
};
export type brands_categoriesGetPayload<S extends boolean | null | undefined | brands_categoriesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload, S>;
export type brands_categoriesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<brands_categoriesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Brands_categoriesCountAggregateInputType | true;
};
export interface brands_categoriesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['brands_categories'];
        meta: {
            name: 'brands_categories';
        };
    };
    /**
     * Find zero or one Brands_categories that matches the filter.
     * @param {brands_categoriesFindUniqueArgs} args - Arguments to find a Brands_categories
     * @example
     * // Get one Brands_categories
     * const brands_categories = await prisma.brands_categories.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends brands_categoriesFindUniqueArgs>(args: Prisma.SelectSubset<T, brands_categoriesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__brands_categoriesClient<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Brands_categories that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {brands_categoriesFindUniqueOrThrowArgs} args - Arguments to find a Brands_categories
     * @example
     * // Get one Brands_categories
     * const brands_categories = await prisma.brands_categories.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends brands_categoriesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, brands_categoriesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__brands_categoriesClient<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Brands_categories that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_categoriesFindFirstArgs} args - Arguments to find a Brands_categories
     * @example
     * // Get one Brands_categories
     * const brands_categories = await prisma.brands_categories.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends brands_categoriesFindFirstArgs>(args?: Prisma.SelectSubset<T, brands_categoriesFindFirstArgs<ExtArgs>>): Prisma.Prisma__brands_categoriesClient<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Brands_categories that matches the filter or
     * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_categoriesFindFirstOrThrowArgs} args - Arguments to find a Brands_categories
     * @example
     * // Get one Brands_categories
     * const brands_categories = await prisma.brands_categories.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends brands_categoriesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, brands_categoriesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__brands_categoriesClient<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Brands_categories that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_categoriesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Brands_categories
     * const brands_categories = await prisma.brands_categories.findMany()
     *
     * // Get first 10 Brands_categories
     * const brands_categories = await prisma.brands_categories.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const brands_categoriesWithIdOnly = await prisma.brands_categories.findMany({ select: { id: true } })
     *
     */
    findMany<T extends brands_categoriesFindManyArgs>(args?: Prisma.SelectSubset<T, brands_categoriesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Brands_categories.
     * @param {brands_categoriesCreateArgs} args - Arguments to create a Brands_categories.
     * @example
     * // Create one Brands_categories
     * const Brands_categories = await prisma.brands_categories.create({
     *   data: {
     *     // ... data to create a Brands_categories
     *   }
     * })
     *
     */
    create<T extends brands_categoriesCreateArgs>(args: Prisma.SelectSubset<T, brands_categoriesCreateArgs<ExtArgs>>): Prisma.Prisma__brands_categoriesClient<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Brands_categories.
     * @param {brands_categoriesCreateManyArgs} args - Arguments to create many Brands_categories.
     * @example
     * // Create many Brands_categories
     * const brands_categories = await prisma.brands_categories.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends brands_categoriesCreateManyArgs>(args?: Prisma.SelectSubset<T, brands_categoriesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Brands_categories and returns the data saved in the database.
     * @param {brands_categoriesCreateManyAndReturnArgs} args - Arguments to create many Brands_categories.
     * @example
     * // Create many Brands_categories
     * const brands_categories = await prisma.brands_categories.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Brands_categories and only return the `id`
     * const brands_categoriesWithIdOnly = await prisma.brands_categories.createManyAndReturn({
     *   select: { id: true },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    createManyAndReturn<T extends brands_categoriesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, brands_categoriesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Brands_categories.
     * @param {brands_categoriesDeleteArgs} args - Arguments to delete one Brands_categories.
     * @example
     * // Delete one Brands_categories
     * const Brands_categories = await prisma.brands_categories.delete({
     *   where: {
     *     // ... filter to delete one Brands_categories
     *   }
     * })
     *
     */
    delete<T extends brands_categoriesDeleteArgs>(args: Prisma.SelectSubset<T, brands_categoriesDeleteArgs<ExtArgs>>): Prisma.Prisma__brands_categoriesClient<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Brands_categories.
     * @param {brands_categoriesUpdateArgs} args - Arguments to update one Brands_categories.
     * @example
     * // Update one Brands_categories
     * const brands_categories = await prisma.brands_categories.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends brands_categoriesUpdateArgs>(args: Prisma.SelectSubset<T, brands_categoriesUpdateArgs<ExtArgs>>): Prisma.Prisma__brands_categoriesClient<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Brands_categories.
     * @param {brands_categoriesDeleteManyArgs} args - Arguments to filter Brands_categories to delete.
     * @example
     * // Delete a few Brands_categories
     * const { count } = await prisma.brands_categories.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends brands_categoriesDeleteManyArgs>(args?: Prisma.SelectSubset<T, brands_categoriesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Brands_categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_categoriesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Brands_categories
     * const brands_categories = await prisma.brands_categories.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends brands_categoriesUpdateManyArgs>(args: Prisma.SelectSubset<T, brands_categoriesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Brands_categories and returns the data updated in the database.
     * @param {brands_categoriesUpdateManyAndReturnArgs} args - Arguments to update many Brands_categories.
     * @example
     * // Update many Brands_categories
     * const brands_categories = await prisma.brands_categories.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Brands_categories and only return the `id`
     * const brands_categoriesWithIdOnly = await prisma.brands_categories.updateManyAndReturn({
     *   select: { id: true },
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    updateManyAndReturn<T extends brands_categoriesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, brands_categoriesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Brands_categories.
     * @param {brands_categoriesUpsertArgs} args - Arguments to update or create a Brands_categories.
     * @example
     * // Update or create a Brands_categories
     * const brands_categories = await prisma.brands_categories.upsert({
     *   create: {
     *     // ... data to create a Brands_categories
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Brands_categories we want to update
     *   }
     * })
     */
    upsert<T extends brands_categoriesUpsertArgs>(args: Prisma.SelectSubset<T, brands_categoriesUpsertArgs<ExtArgs>>): Prisma.Prisma__brands_categoriesClient<runtime.Types.Result.GetResult<Prisma.$brands_categoriesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Brands_categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_categoriesCountArgs} args - Arguments to filter Brands_categories to count.
     * @example
     * // Count the number of Brands_categories
     * const count = await prisma.brands_categories.count({
     *   where: {
     *     // ... the filter for the Brands_categories we want to count
     *   }
     * })
    **/
    count<T extends brands_categoriesCountArgs>(args?: Prisma.Subset<T, brands_categoriesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Brands_categoriesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Brands_categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Brands_categoriesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
     * @example
     * // Ordered by age ascending
     * // Where email contains prisma.io
     * // Limited to the 10 users
     * const aggregations = await prisma.user.aggregate({
     *   _avg: {
     *     age: true,
     *   },
     *   where: {
     *     email: {
     *       contains: "prisma.io",
     *     },
     *   },
     *   orderBy: {
     *     age: "asc",
     *   },
     *   take: 10,
     * })
    **/
    aggregate<T extends Brands_categoriesAggregateArgs>(args: Prisma.Subset<T, Brands_categoriesAggregateArgs>): Prisma.PrismaPromise<GetBrands_categoriesAggregateType<T>>;
    /**
     * Group by Brands_categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {brands_categoriesGroupByArgs} args - Group by arguments.
     * @example
     * // Group by city, order by createdAt, get count
     * const result = await prisma.user.groupBy({
     *   by: ['city', 'createdAt'],
     *   orderBy: {
     *     createdAt: true
     *   },
     *   _count: {
     *     _all: true
     *   },
     * })
     *
    **/
    groupBy<T extends brands_categoriesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: brands_categoriesGroupByArgs['orderBy'];
    } : {
        orderBy?: brands_categoriesGroupByArgs['orderBy'];
    }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
        [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
            Error,
            'Field ',
            P,
            ` in "having" needs to be provided in "by"`
        ];
    }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields]>(args: Prisma.SubsetIntersection<T, brands_categoriesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBrands_categoriesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the brands_categories model
     */
    readonly fields: brands_categoriesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for brands_categories.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__brands_categoriesClient<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_categories$brandsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.brands_categories$brandsArgs<ExtArgs>>): Prisma.Prisma__brandsClient<runtime.Types.Result.GetResult<Prisma.$brandsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    categories<T extends Prisma.brands_categories$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.brands_categories$categoriesArgs<ExtArgs>>): Prisma.Prisma__categoriesClient<runtime.Types.Result.GetResult<Prisma.$categoriesPayload<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_categories model
 */
export interface brands_categoriesFieldRefs {
    readonly id: Prisma.FieldRef<"brands_categories", 'Int'>;
    readonly brands_id: Prisma.FieldRef<"brands_categories", 'BigInt'>;
    readonly categories_id: Prisma.FieldRef<"brands_categories", 'Int'>;
}
/**
 * brands_categories findUnique
 */
export type brands_categoriesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which brands_categories to fetch.
     */
    where: Prisma.brands_categoriesWhereUniqueInput;
};
/**
 * brands_categories findUniqueOrThrow
 */
export type brands_categoriesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which brands_categories to fetch.
     */
    where: Prisma.brands_categoriesWhereUniqueInput;
};
/**
 * brands_categories findFirst
 */
export type brands_categoriesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which brands_categories to fetch.
     */
    where?: Prisma.brands_categoriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of brands_categories to fetch.
     */
    orderBy?: Prisma.brands_categoriesOrderByWithRelationInput | Prisma.brands_categoriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for brands_categories.
     */
    cursor?: Prisma.brands_categoriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` brands_categories from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` brands_categories.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of brands_categories.
     */
    distinct?: Prisma.Brands_categoriesScalarFieldEnum | Prisma.Brands_categoriesScalarFieldEnum[];
};
/**
 * brands_categories findFirstOrThrow
 */
export type brands_categoriesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which brands_categories to fetch.
     */
    where?: Prisma.brands_categoriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of brands_categories to fetch.
     */
    orderBy?: Prisma.brands_categoriesOrderByWithRelationInput | Prisma.brands_categoriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for brands_categories.
     */
    cursor?: Prisma.brands_categoriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` brands_categories from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` brands_categories.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of brands_categories.
     */
    distinct?: Prisma.Brands_categoriesScalarFieldEnum | Prisma.Brands_categoriesScalarFieldEnum[];
};
/**
 * brands_categories findMany
 */
export type brands_categoriesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * Filter, which brands_categories to fetch.
     */
    where?: Prisma.brands_categoriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of brands_categories to fetch.
     */
    orderBy?: Prisma.brands_categoriesOrderByWithRelationInput | Prisma.brands_categoriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing brands_categories.
     */
    cursor?: Prisma.brands_categoriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` brands_categories from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` brands_categories.
     */
    skip?: number;
    distinct?: Prisma.Brands_categoriesScalarFieldEnum | Prisma.Brands_categoriesScalarFieldEnum[];
};
/**
 * brands_categories create
 */
export type brands_categoriesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * The data needed to create a brands_categories.
     */
    data?: Prisma.XOR<Prisma.brands_categoriesCreateInput, Prisma.brands_categoriesUncheckedCreateInput>;
};
/**
 * brands_categories createMany
 */
export type brands_categoriesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many brands_categories.
     */
    data: Prisma.brands_categoriesCreateManyInput | Prisma.brands_categoriesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * brands_categories createManyAndReturn
 */
export type brands_categoriesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * The data used to create many brands_categories.
     */
    data: Prisma.brands_categoriesCreateManyInput | Prisma.brands_categoriesCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * brands_categories update
 */
export type brands_categoriesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * The data needed to update a brands_categories.
     */
    data: Prisma.XOR<Prisma.brands_categoriesUpdateInput, Prisma.brands_categoriesUncheckedUpdateInput>;
    /**
     * Choose, which brands_categories to update.
     */
    where: Prisma.brands_categoriesWhereUniqueInput;
};
/**
 * brands_categories updateMany
 */
export type brands_categoriesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update brands_categories.
     */
    data: Prisma.XOR<Prisma.brands_categoriesUpdateManyMutationInput, Prisma.brands_categoriesUncheckedUpdateManyInput>;
    /**
     * Filter which brands_categories to update
     */
    where?: Prisma.brands_categoriesWhereInput;
    /**
     * Limit how many brands_categories to update.
     */
    limit?: number;
};
/**
 * brands_categories updateManyAndReturn
 */
export type brands_categoriesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * The data used to update brands_categories.
     */
    data: Prisma.XOR<Prisma.brands_categoriesUpdateManyMutationInput, Prisma.brands_categoriesUncheckedUpdateManyInput>;
    /**
     * Filter which brands_categories to update
     */
    where?: Prisma.brands_categoriesWhereInput;
    /**
     * Limit how many brands_categories to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * brands_categories upsert
 */
export type brands_categoriesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * The filter to search for the brands_categories to update in case it exists.
     */
    where: Prisma.brands_categoriesWhereUniqueInput;
    /**
     * In case the brands_categories found by the `where` argument doesn't exist, create a new brands_categories with this data.
     */
    create: Prisma.XOR<Prisma.brands_categoriesCreateInput, Prisma.brands_categoriesUncheckedCreateInput>;
    /**
     * In case the brands_categories was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.brands_categoriesUpdateInput, Prisma.brands_categoriesUncheckedUpdateInput>;
};
/**
 * brands_categories delete
 */
export type brands_categoriesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
    /**
     * Filter which brands_categories to delete.
     */
    where: Prisma.brands_categoriesWhereUniqueInput;
};
/**
 * brands_categories deleteMany
 */
export type brands_categoriesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which brands_categories to delete
     */
    where?: Prisma.brands_categoriesWhereInput;
    /**
     * Limit how many brands_categories to delete.
     */
    limit?: number;
};
/**
 * brands_categories.brands
 */
export type brands_categories$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_categories.categories
 */
export type brands_categories$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the categories
     */
    select?: Prisma.categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the categories
     */
    omit?: Prisma.categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.categoriesInclude<ExtArgs> | null;
    where?: Prisma.categoriesWhereInput;
};
/**
 * brands_categories without action
 */
export type brands_categoriesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the brands_categories
     */
    select?: Prisma.brands_categoriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the brands_categories
     */
    omit?: Prisma.brands_categoriesOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.brands_categoriesInclude<ExtArgs> | null;
};
export {};
