
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `ProductCategory` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model ProductCategory
 * 
 */
export type ProductCategoryModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductCategoryPayload>

export type AggregateProductCategory = {
  _count: ProductCategoryCountAggregateOutputType | null
  _min: ProductCategoryMinAggregateOutputType | null
  _max: ProductCategoryMaxAggregateOutputType | null
}

export type ProductCategoryMinAggregateOutputType = {
  id: string | null
  tenantId: string | null
  name: string | null
  slug: string | null
  active: boolean | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
}

export type ProductCategoryMaxAggregateOutputType = {
  id: string | null
  tenantId: string | null
  name: string | null
  slug: string | null
  active: boolean | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
}

export type ProductCategoryCountAggregateOutputType = {
  id: number
  tenantId: number
  name: number
  slug: number
  active: number
  createdAt: number
  updatedAt: number
  deletedAt: number
  _all: number
}


export type ProductCategoryMinAggregateInputType = {
  id?: true
  tenantId?: true
  name?: true
  slug?: true
  active?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
}

export type ProductCategoryMaxAggregateInputType = {
  id?: true
  tenantId?: true
  name?: true
  slug?: true
  active?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
}

export type ProductCategoryCountAggregateInputType = {
  id?: true
  tenantId?: true
  name?: true
  slug?: true
  active?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
  _all?: true
}

export type ProductCategoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ProductCategory to aggregate.
   */
  where?: Prisma.ProductCategoryWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ProductCategories to fetch.
   */
  orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ProductCategoryWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ProductCategories 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` ProductCategories.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ProductCategories
  **/
  _count?: true | ProductCategoryCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ProductCategoryMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ProductCategoryMaxAggregateInputType
}

export type GetProductCategoryAggregateType<T extends ProductCategoryAggregateArgs> = {
      [P in keyof T & keyof AggregateProductCategory]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateProductCategory[P]>
    : Prisma.GetScalarType<T[P], AggregateProductCategory[P]>
}




export type ProductCategoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ProductCategoryWhereInput
  orderBy?: Prisma.ProductCategoryOrderByWithAggregationInput | Prisma.ProductCategoryOrderByWithAggregationInput[]
  by: Prisma.ProductCategoryScalarFieldEnum[] | Prisma.ProductCategoryScalarFieldEnum
  having?: Prisma.ProductCategoryScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ProductCategoryCountAggregateInputType | true
  _min?: ProductCategoryMinAggregateInputType
  _max?: ProductCategoryMaxAggregateInputType
}

export type ProductCategoryGroupByOutputType = {
  id: string
  tenantId: string
  name: string
  slug: string
  active: boolean
  createdAt: Date
  updatedAt: Date
  deletedAt: Date | null
  _count: ProductCategoryCountAggregateOutputType | null
  _min: ProductCategoryMinAggregateOutputType | null
  _max: ProductCategoryMaxAggregateOutputType | null
}

export type GetProductCategoryGroupByPayload<T extends ProductCategoryGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<ProductCategoryGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof ProductCategoryGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], ProductCategoryGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], ProductCategoryGroupByOutputType[P]>
      }
    >
  >



export type ProductCategoryWhereInput = {
  AND?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[]
  OR?: Prisma.ProductCategoryWhereInput[]
  NOT?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[]
  id?: Prisma.StringFilter<"ProductCategory"> | string
  tenantId?: Prisma.StringFilter<"ProductCategory"> | string
  name?: Prisma.StringFilter<"ProductCategory"> | string
  slug?: Prisma.StringFilter<"ProductCategory"> | string
  active?: Prisma.BoolFilter<"ProductCategory"> | boolean
  createdAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
  products?: Prisma.ProductListRelationFilter
}

export type ProductCategoryOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  tenant?: Prisma.TenantOrderByWithRelationInput
  products?: Prisma.ProductOrderByRelationAggregateInput
}

export type ProductCategoryWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  tenantId_slug?: Prisma.ProductCategoryTenantIdSlugCompoundUniqueInput
  AND?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[]
  OR?: Prisma.ProductCategoryWhereInput[]
  NOT?: Prisma.ProductCategoryWhereInput | Prisma.ProductCategoryWhereInput[]
  tenantId?: Prisma.StringFilter<"ProductCategory"> | string
  name?: Prisma.StringFilter<"ProductCategory"> | string
  slug?: Prisma.StringFilter<"ProductCategory"> | string
  active?: Prisma.BoolFilter<"ProductCategory"> | boolean
  createdAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
  products?: Prisma.ProductListRelationFilter
}, "id" | "tenantId_slug">

export type ProductCategoryOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.ProductCategoryCountOrderByAggregateInput
  _max?: Prisma.ProductCategoryMaxOrderByAggregateInput
  _min?: Prisma.ProductCategoryMinOrderByAggregateInput
}

export type ProductCategoryScalarWhereWithAggregatesInput = {
  AND?: Prisma.ProductCategoryScalarWhereWithAggregatesInput | Prisma.ProductCategoryScalarWhereWithAggregatesInput[]
  OR?: Prisma.ProductCategoryScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ProductCategoryScalarWhereWithAggregatesInput | Prisma.ProductCategoryScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ProductCategory"> | string
  tenantId?: Prisma.StringWithAggregatesFilter<"ProductCategory"> | string
  name?: Prisma.StringWithAggregatesFilter<"ProductCategory"> | string
  slug?: Prisma.StringWithAggregatesFilter<"ProductCategory"> | string
  active?: Prisma.BoolWithAggregatesFilter<"ProductCategory"> | boolean
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProductCategory"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ProductCategory"> | Date | string
  deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductCategory"> | Date | string | null
}

export type ProductCategoryCreateInput = {
  id?: string
  name: string
  slug: string
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  tenant: Prisma.TenantCreateNestedOneWithoutProductCategoriesInput
  products?: Prisma.ProductCreateNestedManyWithoutCategoryInput
}

export type ProductCategoryUncheckedCreateInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  products?: Prisma.ProductUncheckedCreateNestedManyWithoutCategoryInput
}

export type ProductCategoryUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  tenant?: Prisma.TenantUpdateOneRequiredWithoutProductCategoriesNestedInput
  products?: Prisma.ProductUpdateManyWithoutCategoryNestedInput
}

export type ProductCategoryUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  products?: Prisma.ProductUncheckedUpdateManyWithoutCategoryNestedInput
}

export type ProductCategoryCreateManyInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ProductCategoryUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ProductCategoryUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ProductCategoryListRelationFilter = {
  every?: Prisma.ProductCategoryWhereInput
  some?: Prisma.ProductCategoryWhereInput
  none?: Prisma.ProductCategoryWhereInput
}

export type ProductCategoryOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type ProductCategoryNullableScalarRelationFilter = {
  is?: Prisma.ProductCategoryWhereInput | null
  isNot?: Prisma.ProductCategoryWhereInput | null
}

export type ProductCategoryTenantIdSlugCompoundUniqueInput = {
  tenantId: string
  slug: string
}

export type ProductCategoryCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ProductCategoryMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ProductCategoryMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  active?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ProductCategoryCreateNestedManyWithoutTenantInput = {
  create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTenantInput, Prisma.ProductCategoryUncheckedCreateWithoutTenantInput> | Prisma.ProductCategoryCreateWithoutTenantInput[] | Prisma.ProductCategoryUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutTenantInput | Prisma.ProductCategoryCreateOrConnectWithoutTenantInput[]
  createMany?: Prisma.ProductCategoryCreateManyTenantInputEnvelope
  connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
}

export type ProductCategoryUncheckedCreateNestedManyWithoutTenantInput = {
  create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTenantInput, Prisma.ProductCategoryUncheckedCreateWithoutTenantInput> | Prisma.ProductCategoryCreateWithoutTenantInput[] | Prisma.ProductCategoryUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutTenantInput | Prisma.ProductCategoryCreateOrConnectWithoutTenantInput[]
  createMany?: Prisma.ProductCategoryCreateManyTenantInputEnvelope
  connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
}

export type ProductCategoryUpdateManyWithoutTenantNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTenantInput, Prisma.ProductCategoryUncheckedCreateWithoutTenantInput> | Prisma.ProductCategoryCreateWithoutTenantInput[] | Prisma.ProductCategoryUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutTenantInput | Prisma.ProductCategoryCreateOrConnectWithoutTenantInput[]
  upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutTenantInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutTenantInput[]
  createMany?: Prisma.ProductCategoryCreateManyTenantInputEnvelope
  set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
  disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
  delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
  connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
  update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutTenantInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutTenantInput[]
  updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutTenantInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutTenantInput[]
  deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[]
}

export type ProductCategoryUncheckedUpdateManyWithoutTenantNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTenantInput, Prisma.ProductCategoryUncheckedCreateWithoutTenantInput> | Prisma.ProductCategoryCreateWithoutTenantInput[] | Prisma.ProductCategoryUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutTenantInput | Prisma.ProductCategoryCreateOrConnectWithoutTenantInput[]
  upsert?: Prisma.ProductCategoryUpsertWithWhereUniqueWithoutTenantInput | Prisma.ProductCategoryUpsertWithWhereUniqueWithoutTenantInput[]
  createMany?: Prisma.ProductCategoryCreateManyTenantInputEnvelope
  set?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
  disconnect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
  delete?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
  connect?: Prisma.ProductCategoryWhereUniqueInput | Prisma.ProductCategoryWhereUniqueInput[]
  update?: Prisma.ProductCategoryUpdateWithWhereUniqueWithoutTenantInput | Prisma.ProductCategoryUpdateWithWhereUniqueWithoutTenantInput[]
  updateMany?: Prisma.ProductCategoryUpdateManyWithWhereWithoutTenantInput | Prisma.ProductCategoryUpdateManyWithWhereWithoutTenantInput[]
  deleteMany?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[]
}

export type ProductCategoryCreateNestedOneWithoutProductsInput = {
  create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>
  connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductsInput
  connect?: Prisma.ProductCategoryWhereUniqueInput
}

export type ProductCategoryUpdateOneWithoutProductsNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>
  connectOrCreate?: Prisma.ProductCategoryCreateOrConnectWithoutProductsInput
  upsert?: Prisma.ProductCategoryUpsertWithoutProductsInput
  disconnect?: Prisma.ProductCategoryWhereInput | boolean
  delete?: Prisma.ProductCategoryWhereInput | boolean
  connect?: Prisma.ProductCategoryWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ProductCategoryUpdateToOneWithWhereWithoutProductsInput, Prisma.ProductCategoryUpdateWithoutProductsInput>, Prisma.ProductCategoryUncheckedUpdateWithoutProductsInput>
}

export type ProductCategoryCreateWithoutTenantInput = {
  id?: string
  name: string
  slug: string
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  products?: Prisma.ProductCreateNestedManyWithoutCategoryInput
}

export type ProductCategoryUncheckedCreateWithoutTenantInput = {
  id?: string
  name: string
  slug: string
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  products?: Prisma.ProductUncheckedCreateNestedManyWithoutCategoryInput
}

export type ProductCategoryCreateOrConnectWithoutTenantInput = {
  where: Prisma.ProductCategoryWhereUniqueInput
  create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTenantInput, Prisma.ProductCategoryUncheckedCreateWithoutTenantInput>
}

export type ProductCategoryCreateManyTenantInputEnvelope = {
  data: Prisma.ProductCategoryCreateManyTenantInput | Prisma.ProductCategoryCreateManyTenantInput[]
  skipDuplicates?: boolean
}

export type ProductCategoryUpsertWithWhereUniqueWithoutTenantInput = {
  where: Prisma.ProductCategoryWhereUniqueInput
  update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutTenantInput, Prisma.ProductCategoryUncheckedUpdateWithoutTenantInput>
  create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutTenantInput, Prisma.ProductCategoryUncheckedCreateWithoutTenantInput>
}

export type ProductCategoryUpdateWithWhereUniqueWithoutTenantInput = {
  where: Prisma.ProductCategoryWhereUniqueInput
  data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutTenantInput, Prisma.ProductCategoryUncheckedUpdateWithoutTenantInput>
}

export type ProductCategoryUpdateManyWithWhereWithoutTenantInput = {
  where: Prisma.ProductCategoryScalarWhereInput
  data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyWithoutTenantInput>
}

export type ProductCategoryScalarWhereInput = {
  AND?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[]
  OR?: Prisma.ProductCategoryScalarWhereInput[]
  NOT?: Prisma.ProductCategoryScalarWhereInput | Prisma.ProductCategoryScalarWhereInput[]
  id?: Prisma.StringFilter<"ProductCategory"> | string
  tenantId?: Prisma.StringFilter<"ProductCategory"> | string
  name?: Prisma.StringFilter<"ProductCategory"> | string
  slug?: Prisma.StringFilter<"ProductCategory"> | string
  active?: Prisma.BoolFilter<"ProductCategory"> | boolean
  createdAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ProductCategory"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"ProductCategory"> | Date | string | null
}

export type ProductCategoryCreateWithoutProductsInput = {
  id?: string
  name: string
  slug: string
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  tenant: Prisma.TenantCreateNestedOneWithoutProductCategoriesInput
}

export type ProductCategoryUncheckedCreateWithoutProductsInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ProductCategoryCreateOrConnectWithoutProductsInput = {
  where: Prisma.ProductCategoryWhereUniqueInput
  create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>
}

export type ProductCategoryUpsertWithoutProductsInput = {
  update: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductsInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductsInput>
  create: Prisma.XOR<Prisma.ProductCategoryCreateWithoutProductsInput, Prisma.ProductCategoryUncheckedCreateWithoutProductsInput>
  where?: Prisma.ProductCategoryWhereInput
}

export type ProductCategoryUpdateToOneWithWhereWithoutProductsInput = {
  where?: Prisma.ProductCategoryWhereInput
  data: Prisma.XOR<Prisma.ProductCategoryUpdateWithoutProductsInput, Prisma.ProductCategoryUncheckedUpdateWithoutProductsInput>
}

export type ProductCategoryUpdateWithoutProductsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  tenant?: Prisma.TenantUpdateOneRequiredWithoutProductCategoriesNestedInput
}

export type ProductCategoryUncheckedUpdateWithoutProductsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ProductCategoryCreateManyTenantInput = {
  id?: string
  name: string
  slug: string
  active?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ProductCategoryUpdateWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  products?: Prisma.ProductUpdateManyWithoutCategoryNestedInput
}

export type ProductCategoryUncheckedUpdateWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  products?: Prisma.ProductUncheckedUpdateManyWithoutCategoryNestedInput
}

export type ProductCategoryUncheckedUpdateManyWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}


/**
 * Count Type ProductCategoryCountOutputType
 */

export type ProductCategoryCountOutputType = {
  products: number
}

export type ProductCategoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  products?: boolean | ProductCategoryCountOutputTypeCountProductsArgs
}

/**
 * ProductCategoryCountOutputType without action
 */
export type ProductCategoryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategoryCountOutputType
   */
  select?: Prisma.ProductCategoryCountOutputTypeSelect<ExtArgs> | null
}

/**
 * ProductCategoryCountOutputType without action
 */
export type ProductCategoryCountOutputTypeCountProductsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ProductWhereInput
}


export type ProductCategorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  name?: boolean
  slug?: boolean
  active?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
  products?: boolean | Prisma.ProductCategory$productsArgs<ExtArgs>
  _count?: boolean | Prisma.ProductCategoryCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["productCategory"]>

export type ProductCategorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  name?: boolean
  slug?: boolean
  active?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}, ExtArgs["result"]["productCategory"]>

export type ProductCategorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  name?: boolean
  slug?: boolean
  active?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}, ExtArgs["result"]["productCategory"]>

export type ProductCategorySelectScalar = {
  id?: boolean
  tenantId?: boolean
  name?: boolean
  slug?: boolean
  active?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
}

export type ProductCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "slug" | "active" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["productCategory"]>
export type ProductCategoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
  products?: boolean | Prisma.ProductCategory$productsArgs<ExtArgs>
  _count?: boolean | Prisma.ProductCategoryCountOutputTypeDefaultArgs<ExtArgs>
}
export type ProductCategoryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}
export type ProductCategoryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
}

export type $ProductCategoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ProductCategory"
  objects: {
    tenant: Prisma.$TenantPayload<ExtArgs>
    products: Prisma.$ProductPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    tenantId: string
    name: string
    slug: string
    active: boolean
    createdAt: Date
    updatedAt: Date
    deletedAt: Date | null
  }, ExtArgs["result"]["productCategory"]>
  composites: {}
}

export type ProductCategoryGetPayload<S extends boolean | null | undefined | ProductCategoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload, S>

export type ProductCategoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<ProductCategoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: ProductCategoryCountAggregateInputType | true
  }

export interface ProductCategoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ProductCategory'], meta: { name: 'ProductCategory' } }
  /**
   * Find zero or one ProductCategory that matches the filter.
   * @param {ProductCategoryFindUniqueArgs} args - Arguments to find a ProductCategory
   * @example
   * // Get one ProductCategory
   * const productCategory = await prisma.productCategory.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends ProductCategoryFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductCategoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one ProductCategory that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {ProductCategoryFindUniqueOrThrowArgs} args - Arguments to find a ProductCategory
   * @example
   * // Get one ProductCategory
   * const productCategory = await prisma.productCategory.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends ProductCategoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductCategoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first ProductCategory 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 {ProductCategoryFindFirstArgs} args - Arguments to find a ProductCategory
   * @example
   * // Get one ProductCategory
   * const productCategory = await prisma.productCategory.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends ProductCategoryFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first ProductCategory 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 {ProductCategoryFindFirstOrThrowArgs} args - Arguments to find a ProductCategory
   * @example
   * // Get one ProductCategory
   * const productCategory = await prisma.productCategory.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends ProductCategoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more ProductCategories 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 {ProductCategoryFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all ProductCategories
   * const productCategories = await prisma.productCategory.findMany()
   * 
   * // Get first 10 ProductCategories
   * const productCategories = await prisma.productCategory.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const productCategoryWithIdOnly = await prisma.productCategory.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends ProductCategoryFindManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a ProductCategory.
   * @param {ProductCategoryCreateArgs} args - Arguments to create a ProductCategory.
   * @example
   * // Create one ProductCategory
   * const ProductCategory = await prisma.productCategory.create({
   *   data: {
   *     // ... data to create a ProductCategory
   *   }
   * })
   * 
   */
  create<T extends ProductCategoryCreateArgs>(args: Prisma.SelectSubset<T, ProductCategoryCreateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many ProductCategories.
   * @param {ProductCategoryCreateManyArgs} args - Arguments to create many ProductCategories.
   * @example
   * // Create many ProductCategories
   * const productCategory = await prisma.productCategory.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends ProductCategoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many ProductCategories and returns the data saved in the database.
   * @param {ProductCategoryCreateManyAndReturnArgs} args - Arguments to create many ProductCategories.
   * @example
   * // Create many ProductCategories
   * const productCategory = await prisma.productCategory.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many ProductCategories and only return the `id`
   * const productCategoryWithIdOnly = await prisma.productCategory.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 ProductCategoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductCategoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a ProductCategory.
   * @param {ProductCategoryDeleteArgs} args - Arguments to delete one ProductCategory.
   * @example
   * // Delete one ProductCategory
   * const ProductCategory = await prisma.productCategory.delete({
   *   where: {
   *     // ... filter to delete one ProductCategory
   *   }
   * })
   * 
   */
  delete<T extends ProductCategoryDeleteArgs>(args: Prisma.SelectSubset<T, ProductCategoryDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one ProductCategory.
   * @param {ProductCategoryUpdateArgs} args - Arguments to update one ProductCategory.
   * @example
   * // Update one ProductCategory
   * const productCategory = await prisma.productCategory.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends ProductCategoryUpdateArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more ProductCategories.
   * @param {ProductCategoryDeleteManyArgs} args - Arguments to filter ProductCategories to delete.
   * @example
   * // Delete a few ProductCategories
   * const { count } = await prisma.productCategory.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends ProductCategoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductCategoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more ProductCategories.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ProductCategoryUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many ProductCategories
   * const productCategory = await prisma.productCategory.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends ProductCategoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more ProductCategories and returns the data updated in the database.
   * @param {ProductCategoryUpdateManyAndReturnArgs} args - Arguments to update many ProductCategories.
   * @example
   * // Update many ProductCategories
   * const productCategory = await prisma.productCategory.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more ProductCategories and only return the `id`
   * const productCategoryWithIdOnly = await prisma.productCategory.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 ProductCategoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one ProductCategory.
   * @param {ProductCategoryUpsertArgs} args - Arguments to update or create a ProductCategory.
   * @example
   * // Update or create a ProductCategory
   * const productCategory = await prisma.productCategory.upsert({
   *   create: {
   *     // ... data to create a ProductCategory
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the ProductCategory we want to update
   *   }
   * })
   */
  upsert<T extends ProductCategoryUpsertArgs>(args: Prisma.SelectSubset<T, ProductCategoryUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of ProductCategories.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ProductCategoryCountArgs} args - Arguments to filter ProductCategories to count.
   * @example
   * // Count the number of ProductCategories
   * const count = await prisma.productCategory.count({
   *   where: {
   *     // ... the filter for the ProductCategories we want to count
   *   }
   * })
  **/
  count<T extends ProductCategoryCountArgs>(
    args?: Prisma.Subset<T, ProductCategoryCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], ProductCategoryCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a ProductCategory.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ProductCategoryAggregateArgs} 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 ProductCategoryAggregateArgs>(args: Prisma.Subset<T, ProductCategoryAggregateArgs>): Prisma.PrismaPromise<GetProductCategoryAggregateType<T>>

  /**
   * Group by ProductCategory.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ProductCategoryGroupByArgs} 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 ProductCategoryGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: ProductCategoryGroupByArgs['orderBy'] }
      : { orderBy?: ProductCategoryGroupByArgs['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, ProductCategoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductCategoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the ProductCategory model
 */
readonly fields: ProductCategoryFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for ProductCategory.
 * 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__ProductCategoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  products<T extends Prisma.ProductCategory$productsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductCategory$productsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * 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 ProductCategory model
 */
export interface ProductCategoryFieldRefs {
  readonly id: Prisma.FieldRef<"ProductCategory", 'String'>
  readonly tenantId: Prisma.FieldRef<"ProductCategory", 'String'>
  readonly name: Prisma.FieldRef<"ProductCategory", 'String'>
  readonly slug: Prisma.FieldRef<"ProductCategory", 'String'>
  readonly active: Prisma.FieldRef<"ProductCategory", 'Boolean'>
  readonly createdAt: Prisma.FieldRef<"ProductCategory", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"ProductCategory", 'DateTime'>
  readonly deletedAt: Prisma.FieldRef<"ProductCategory", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ProductCategory findUnique
 */
export type ProductCategoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * Filter, which ProductCategory to fetch.
   */
  where: Prisma.ProductCategoryWhereUniqueInput
}

/**
 * ProductCategory findUniqueOrThrow
 */
export type ProductCategoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * Filter, which ProductCategory to fetch.
   */
  where: Prisma.ProductCategoryWhereUniqueInput
}

/**
 * ProductCategory findFirst
 */
export type ProductCategoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * Filter, which ProductCategory to fetch.
   */
  where?: Prisma.ProductCategoryWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ProductCategories to fetch.
   */
  orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ProductCategories.
   */
  cursor?: Prisma.ProductCategoryWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ProductCategories 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` ProductCategories.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ProductCategories.
   */
  distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[]
}

/**
 * ProductCategory findFirstOrThrow
 */
export type ProductCategoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * Filter, which ProductCategory to fetch.
   */
  where?: Prisma.ProductCategoryWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ProductCategories to fetch.
   */
  orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for ProductCategories.
   */
  cursor?: Prisma.ProductCategoryWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ProductCategories 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` ProductCategories.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ProductCategories.
   */
  distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[]
}

/**
 * ProductCategory findMany
 */
export type ProductCategoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * Filter, which ProductCategories to fetch.
   */
  where?: Prisma.ProductCategoryWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ProductCategories to fetch.
   */
  orderBy?: Prisma.ProductCategoryOrderByWithRelationInput | Prisma.ProductCategoryOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing ProductCategories.
   */
  cursor?: Prisma.ProductCategoryWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ProductCategories 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` ProductCategories.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of ProductCategories.
   */
  distinct?: Prisma.ProductCategoryScalarFieldEnum | Prisma.ProductCategoryScalarFieldEnum[]
}

/**
 * ProductCategory create
 */
export type ProductCategoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * The data needed to create a ProductCategory.
   */
  data: Prisma.XOR<Prisma.ProductCategoryCreateInput, Prisma.ProductCategoryUncheckedCreateInput>
}

/**
 * ProductCategory createMany
 */
export type ProductCategoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many ProductCategories.
   */
  data: Prisma.ProductCategoryCreateManyInput | Prisma.ProductCategoryCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * ProductCategory createManyAndReturn
 */
export type ProductCategoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * The data used to create many ProductCategories.
   */
  data: Prisma.ProductCategoryCreateManyInput | Prisma.ProductCategoryCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * ProductCategory update
 */
export type ProductCategoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * The data needed to update a ProductCategory.
   */
  data: Prisma.XOR<Prisma.ProductCategoryUpdateInput, Prisma.ProductCategoryUncheckedUpdateInput>
  /**
   * Choose, which ProductCategory to update.
   */
  where: Prisma.ProductCategoryWhereUniqueInput
}

/**
 * ProductCategory updateMany
 */
export type ProductCategoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ProductCategories.
   */
  data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyInput>
  /**
   * Filter which ProductCategories to update
   */
  where?: Prisma.ProductCategoryWhereInput
  /**
   * Limit how many ProductCategories to update.
   */
  limit?: number
}

/**
 * ProductCategory updateManyAndReturn
 */
export type ProductCategoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * The data used to update ProductCategories.
   */
  data: Prisma.XOR<Prisma.ProductCategoryUpdateManyMutationInput, Prisma.ProductCategoryUncheckedUpdateManyInput>
  /**
   * Filter which ProductCategories to update
   */
  where?: Prisma.ProductCategoryWhereInput
  /**
   * Limit how many ProductCategories to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * ProductCategory upsert
 */
export type ProductCategoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * The filter to search for the ProductCategory to update in case it exists.
   */
  where: Prisma.ProductCategoryWhereUniqueInput
  /**
   * In case the ProductCategory found by the `where` argument doesn't exist, create a new ProductCategory with this data.
   */
  create: Prisma.XOR<Prisma.ProductCategoryCreateInput, Prisma.ProductCategoryUncheckedCreateInput>
  /**
   * In case the ProductCategory was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ProductCategoryUpdateInput, Prisma.ProductCategoryUncheckedUpdateInput>
}

/**
 * ProductCategory delete
 */
export type ProductCategoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
  /**
   * Filter which ProductCategory to delete.
   */
  where: Prisma.ProductCategoryWhereUniqueInput
}

/**
 * ProductCategory deleteMany
 */
export type ProductCategoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ProductCategories to delete
   */
  where?: Prisma.ProductCategoryWhereInput
  /**
   * Limit how many ProductCategories to delete.
   */
  limit?: number
}

/**
 * ProductCategory.products
 */
export type ProductCategory$productsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Product
   */
  select?: Prisma.ProductSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Product
   */
  omit?: Prisma.ProductOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductInclude<ExtArgs> | null
  where?: Prisma.ProductWhereInput
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[]
  cursor?: Prisma.ProductWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
}

/**
 * ProductCategory without action
 */
export type ProductCategoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ProductCategory
   */
  select?: Prisma.ProductCategorySelect<ExtArgs> | null
  /**
   * Omit specific fields from the ProductCategory
   */
  omit?: Prisma.ProductCategoryOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductCategoryInclude<ExtArgs> | null
}
