
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `Product` 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 Product
 * 
 */
export type ProductModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductPayload>

export type AggregateProduct = {
  _count: ProductCountAggregateOutputType | null
  _avg: ProductAvgAggregateOutputType | null
  _sum: ProductSumAggregateOutputType | null
  _min: ProductMinAggregateOutputType | null
  _max: ProductMaxAggregateOutputType | null
}

export type ProductAvgAggregateOutputType = {
  priceCents: number | null
  promoPriceCents: number | null
  stock: number | null
}

export type ProductSumAggregateOutputType = {
  priceCents: number | null
  promoPriceCents: number | null
  stock: number | null
}

export type ProductMinAggregateOutputType = {
  id: string | null
  tenantId: string | null
  name: string | null
  slug: string | null
  shortDescription: string | null
  description: string | null
  sku: string | null
  categoryId: string | null
  priceCents: number | null
  promoPriceCents: number | null
  stock: number | null
  trackStock: boolean | null
  active: boolean | null
  featured: boolean | null
  seoTitle: string | null
  metaDescription: string | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
}

export type ProductMaxAggregateOutputType = {
  id: string | null
  tenantId: string | null
  name: string | null
  slug: string | null
  shortDescription: string | null
  description: string | null
  sku: string | null
  categoryId: string | null
  priceCents: number | null
  promoPriceCents: number | null
  stock: number | null
  trackStock: boolean | null
  active: boolean | null
  featured: boolean | null
  seoTitle: string | null
  metaDescription: string | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
}

export type ProductCountAggregateOutputType = {
  id: number
  tenantId: number
  name: number
  slug: number
  shortDescription: number
  description: number
  sku: number
  categoryId: number
  priceCents: number
  promoPriceCents: number
  stock: number
  trackStock: number
  active: number
  featured: number
  seoTitle: number
  metaDescription: number
  createdAt: number
  updatedAt: number
  deletedAt: number
  _all: number
}


export type ProductAvgAggregateInputType = {
  priceCents?: true
  promoPriceCents?: true
  stock?: true
}

export type ProductSumAggregateInputType = {
  priceCents?: true
  promoPriceCents?: true
  stock?: true
}

export type ProductMinAggregateInputType = {
  id?: true
  tenantId?: true
  name?: true
  slug?: true
  shortDescription?: true
  description?: true
  sku?: true
  categoryId?: true
  priceCents?: true
  promoPriceCents?: true
  stock?: true
  trackStock?: true
  active?: true
  featured?: true
  seoTitle?: true
  metaDescription?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
}

export type ProductMaxAggregateInputType = {
  id?: true
  tenantId?: true
  name?: true
  slug?: true
  shortDescription?: true
  description?: true
  sku?: true
  categoryId?: true
  priceCents?: true
  promoPriceCents?: true
  stock?: true
  trackStock?: true
  active?: true
  featured?: true
  seoTitle?: true
  metaDescription?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
}

export type ProductCountAggregateInputType = {
  id?: true
  tenantId?: true
  name?: true
  slug?: true
  shortDescription?: true
  description?: true
  sku?: true
  categoryId?: true
  priceCents?: true
  promoPriceCents?: true
  stock?: true
  trackStock?: true
  active?: true
  featured?: true
  seoTitle?: true
  metaDescription?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
  _all?: true
}

export type ProductAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Product to aggregate.
   */
  where?: Prisma.ProductWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Products to fetch.
   */
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ProductWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Products from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Products.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned Products
  **/
  _count?: true | ProductCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ProductAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ProductSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ProductMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ProductMaxAggregateInputType
}

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




export type ProductGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ProductWhereInput
  orderBy?: Prisma.ProductOrderByWithAggregationInput | Prisma.ProductOrderByWithAggregationInput[]
  by: Prisma.ProductScalarFieldEnum[] | Prisma.ProductScalarFieldEnum
  having?: Prisma.ProductScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ProductCountAggregateInputType | true
  _avg?: ProductAvgAggregateInputType
  _sum?: ProductSumAggregateInputType
  _min?: ProductMinAggregateInputType
  _max?: ProductMaxAggregateInputType
}

export type ProductGroupByOutputType = {
  id: string
  tenantId: string
  name: string
  slug: string
  shortDescription: string | null
  description: string | null
  sku: string | null
  categoryId: string | null
  priceCents: number
  promoPriceCents: number | null
  stock: number
  trackStock: boolean
  active: boolean
  featured: boolean
  seoTitle: string | null
  metaDescription: string | null
  createdAt: Date
  updatedAt: Date
  deletedAt: Date | null
  _count: ProductCountAggregateOutputType | null
  _avg: ProductAvgAggregateOutputType | null
  _sum: ProductSumAggregateOutputType | null
  _min: ProductMinAggregateOutputType | null
  _max: ProductMaxAggregateOutputType | null
}

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



export type ProductWhereInput = {
  AND?: Prisma.ProductWhereInput | Prisma.ProductWhereInput[]
  OR?: Prisma.ProductWhereInput[]
  NOT?: Prisma.ProductWhereInput | Prisma.ProductWhereInput[]
  id?: Prisma.StringFilter<"Product"> | string
  tenantId?: Prisma.StringFilter<"Product"> | string
  name?: Prisma.StringFilter<"Product"> | string
  slug?: Prisma.StringFilter<"Product"> | string
  shortDescription?: Prisma.StringNullableFilter<"Product"> | string | null
  description?: Prisma.StringNullableFilter<"Product"> | string | null
  sku?: Prisma.StringNullableFilter<"Product"> | string | null
  categoryId?: Prisma.StringNullableFilter<"Product"> | string | null
  priceCents?: Prisma.IntFilter<"Product"> | number
  promoPriceCents?: Prisma.IntNullableFilter<"Product"> | number | null
  stock?: Prisma.IntFilter<"Product"> | number
  trackStock?: Prisma.BoolFilter<"Product"> | boolean
  active?: Prisma.BoolFilter<"Product"> | boolean
  featured?: Prisma.BoolFilter<"Product"> | boolean
  seoTitle?: Prisma.StringNullableFilter<"Product"> | string | null
  metaDescription?: Prisma.StringNullableFilter<"Product"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Product"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Product"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
  category?: Prisma.XOR<Prisma.ProductCategoryNullableScalarRelationFilter, Prisma.ProductCategoryWhereInput> | null
  images?: Prisma.MediaAssetListRelationFilter
  orderItems?: Prisma.OrderItemListRelationFilter
}

export type ProductOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  shortDescription?: Prisma.SortOrderInput | Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  sku?: Prisma.SortOrderInput | Prisma.SortOrder
  categoryId?: Prisma.SortOrderInput | Prisma.SortOrder
  priceCents?: Prisma.SortOrder
  promoPriceCents?: Prisma.SortOrderInput | Prisma.SortOrder
  stock?: Prisma.SortOrder
  trackStock?: Prisma.SortOrder
  active?: Prisma.SortOrder
  featured?: Prisma.SortOrder
  seoTitle?: Prisma.SortOrderInput | Prisma.SortOrder
  metaDescription?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  tenant?: Prisma.TenantOrderByWithRelationInput
  category?: Prisma.ProductCategoryOrderByWithRelationInput
  images?: Prisma.MediaAssetOrderByRelationAggregateInput
  orderItems?: Prisma.OrderItemOrderByRelationAggregateInput
}

export type ProductWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  tenantId_slug?: Prisma.ProductTenantIdSlugCompoundUniqueInput
  tenantId_sku?: Prisma.ProductTenantIdSkuCompoundUniqueInput
  AND?: Prisma.ProductWhereInput | Prisma.ProductWhereInput[]
  OR?: Prisma.ProductWhereInput[]
  NOT?: Prisma.ProductWhereInput | Prisma.ProductWhereInput[]
  tenantId?: Prisma.StringFilter<"Product"> | string
  name?: Prisma.StringFilter<"Product"> | string
  slug?: Prisma.StringFilter<"Product"> | string
  shortDescription?: Prisma.StringNullableFilter<"Product"> | string | null
  description?: Prisma.StringNullableFilter<"Product"> | string | null
  sku?: Prisma.StringNullableFilter<"Product"> | string | null
  categoryId?: Prisma.StringNullableFilter<"Product"> | string | null
  priceCents?: Prisma.IntFilter<"Product"> | number
  promoPriceCents?: Prisma.IntNullableFilter<"Product"> | number | null
  stock?: Prisma.IntFilter<"Product"> | number
  trackStock?: Prisma.BoolFilter<"Product"> | boolean
  active?: Prisma.BoolFilter<"Product"> | boolean
  featured?: Prisma.BoolFilter<"Product"> | boolean
  seoTitle?: Prisma.StringNullableFilter<"Product"> | string | null
  metaDescription?: Prisma.StringNullableFilter<"Product"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Product"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Product"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null
  tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
  category?: Prisma.XOR<Prisma.ProductCategoryNullableScalarRelationFilter, Prisma.ProductCategoryWhereInput> | null
  images?: Prisma.MediaAssetListRelationFilter
  orderItems?: Prisma.OrderItemListRelationFilter
}, "id" | "tenantId_slug" | "tenantId_sku">

export type ProductOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  shortDescription?: Prisma.SortOrderInput | Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  sku?: Prisma.SortOrderInput | Prisma.SortOrder
  categoryId?: Prisma.SortOrderInput | Prisma.SortOrder
  priceCents?: Prisma.SortOrder
  promoPriceCents?: Prisma.SortOrderInput | Prisma.SortOrder
  stock?: Prisma.SortOrder
  trackStock?: Prisma.SortOrder
  active?: Prisma.SortOrder
  featured?: Prisma.SortOrder
  seoTitle?: Prisma.SortOrderInput | Prisma.SortOrder
  metaDescription?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.ProductCountOrderByAggregateInput
  _avg?: Prisma.ProductAvgOrderByAggregateInput
  _max?: Prisma.ProductMaxOrderByAggregateInput
  _min?: Prisma.ProductMinOrderByAggregateInput
  _sum?: Prisma.ProductSumOrderByAggregateInput
}

export type ProductScalarWhereWithAggregatesInput = {
  AND?: Prisma.ProductScalarWhereWithAggregatesInput | Prisma.ProductScalarWhereWithAggregatesInput[]
  OR?: Prisma.ProductScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ProductScalarWhereWithAggregatesInput | Prisma.ProductScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"Product"> | string
  tenantId?: Prisma.StringWithAggregatesFilter<"Product"> | string
  name?: Prisma.StringWithAggregatesFilter<"Product"> | string
  slug?: Prisma.StringWithAggregatesFilter<"Product"> | string
  shortDescription?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null
  description?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null
  sku?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null
  categoryId?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null
  priceCents?: Prisma.IntWithAggregatesFilter<"Product"> | number
  promoPriceCents?: Prisma.IntNullableWithAggregatesFilter<"Product"> | number | null
  stock?: Prisma.IntWithAggregatesFilter<"Product"> | number
  trackStock?: Prisma.BoolWithAggregatesFilter<"Product"> | boolean
  active?: Prisma.BoolWithAggregatesFilter<"Product"> | boolean
  featured?: Prisma.BoolWithAggregatesFilter<"Product"> | boolean
  seoTitle?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null
  metaDescription?: Prisma.StringNullableWithAggregatesFilter<"Product"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Product"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Product"> | Date | string
  deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Product"> | Date | string | null
}

export type ProductCreateInput = {
  id?: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  tenant: Prisma.TenantCreateNestedOneWithoutProductsInput
  category?: Prisma.ProductCategoryCreateNestedOneWithoutProductsInput
  images?: Prisma.MediaAssetCreateNestedManyWithoutProductInput
  orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}

export type ProductUncheckedCreateInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  categoryId?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  images?: Prisma.MediaAssetUncheckedCreateNestedManyWithoutProductInput
  orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}

export type ProductUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  tenant?: Prisma.TenantUpdateOneRequiredWithoutProductsNestedInput
  category?: Prisma.ProductCategoryUpdateOneWithoutProductsNestedInput
  images?: Prisma.MediaAssetUpdateManyWithoutProductNestedInput
  orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}

export type ProductUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  images?: Prisma.MediaAssetUncheckedUpdateManyWithoutProductNestedInput
  orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}

export type ProductCreateManyInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  categoryId?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ProductUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ProductUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ProductListRelationFilter = {
  every?: Prisma.ProductWhereInput
  some?: Prisma.ProductWhereInput
  none?: Prisma.ProductWhereInput
}

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

export type ProductNullableScalarRelationFilter = {
  is?: Prisma.ProductWhereInput | null
  isNot?: Prisma.ProductWhereInput | null
}

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

export type ProductTenantIdSkuCompoundUniqueInput = {
  tenantId: string
  sku: string
}

export type ProductCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  shortDescription?: Prisma.SortOrder
  description?: Prisma.SortOrder
  sku?: Prisma.SortOrder
  categoryId?: Prisma.SortOrder
  priceCents?: Prisma.SortOrder
  promoPriceCents?: Prisma.SortOrder
  stock?: Prisma.SortOrder
  trackStock?: Prisma.SortOrder
  active?: Prisma.SortOrder
  featured?: Prisma.SortOrder
  seoTitle?: Prisma.SortOrder
  metaDescription?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ProductAvgOrderByAggregateInput = {
  priceCents?: Prisma.SortOrder
  promoPriceCents?: Prisma.SortOrder
  stock?: Prisma.SortOrder
}

export type ProductMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  shortDescription?: Prisma.SortOrder
  description?: Prisma.SortOrder
  sku?: Prisma.SortOrder
  categoryId?: Prisma.SortOrder
  priceCents?: Prisma.SortOrder
  promoPriceCents?: Prisma.SortOrder
  stock?: Prisma.SortOrder
  trackStock?: Prisma.SortOrder
  active?: Prisma.SortOrder
  featured?: Prisma.SortOrder
  seoTitle?: Prisma.SortOrder
  metaDescription?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ProductMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  tenantId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  shortDescription?: Prisma.SortOrder
  description?: Prisma.SortOrder
  sku?: Prisma.SortOrder
  categoryId?: Prisma.SortOrder
  priceCents?: Prisma.SortOrder
  promoPriceCents?: Prisma.SortOrder
  stock?: Prisma.SortOrder
  trackStock?: Prisma.SortOrder
  active?: Prisma.SortOrder
  featured?: Prisma.SortOrder
  seoTitle?: Prisma.SortOrder
  metaDescription?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ProductSumOrderByAggregateInput = {
  priceCents?: Prisma.SortOrder
  promoPriceCents?: Prisma.SortOrder
  stock?: Prisma.SortOrder
}

export type ProductCreateNestedManyWithoutTenantInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutTenantInput, Prisma.ProductUncheckedCreateWithoutTenantInput> | Prisma.ProductCreateWithoutTenantInput[] | Prisma.ProductUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutTenantInput | Prisma.ProductCreateOrConnectWithoutTenantInput[]
  createMany?: Prisma.ProductCreateManyTenantInputEnvelope
  connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
}

export type ProductUncheckedCreateNestedManyWithoutTenantInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutTenantInput, Prisma.ProductUncheckedCreateWithoutTenantInput> | Prisma.ProductCreateWithoutTenantInput[] | Prisma.ProductUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutTenantInput | Prisma.ProductCreateOrConnectWithoutTenantInput[]
  createMany?: Prisma.ProductCreateManyTenantInputEnvelope
  connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
}

export type ProductUpdateManyWithoutTenantNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutTenantInput, Prisma.ProductUncheckedCreateWithoutTenantInput> | Prisma.ProductCreateWithoutTenantInput[] | Prisma.ProductUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutTenantInput | Prisma.ProductCreateOrConnectWithoutTenantInput[]
  upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutTenantInput | Prisma.ProductUpsertWithWhereUniqueWithoutTenantInput[]
  createMany?: Prisma.ProductCreateManyTenantInputEnvelope
  set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  update?: Prisma.ProductUpdateWithWhereUniqueWithoutTenantInput | Prisma.ProductUpdateWithWhereUniqueWithoutTenantInput[]
  updateMany?: Prisma.ProductUpdateManyWithWhereWithoutTenantInput | Prisma.ProductUpdateManyWithWhereWithoutTenantInput[]
  deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[]
}

export type ProductUncheckedUpdateManyWithoutTenantNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutTenantInput, Prisma.ProductUncheckedCreateWithoutTenantInput> | Prisma.ProductCreateWithoutTenantInput[] | Prisma.ProductUncheckedCreateWithoutTenantInput[]
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutTenantInput | Prisma.ProductCreateOrConnectWithoutTenantInput[]
  upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutTenantInput | Prisma.ProductUpsertWithWhereUniqueWithoutTenantInput[]
  createMany?: Prisma.ProductCreateManyTenantInputEnvelope
  set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  update?: Prisma.ProductUpdateWithWhereUniqueWithoutTenantInput | Prisma.ProductUpdateWithWhereUniqueWithoutTenantInput[]
  updateMany?: Prisma.ProductUpdateManyWithWhereWithoutTenantInput | Prisma.ProductUpdateManyWithWhereWithoutTenantInput[]
  deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[]
}

export type ProductCreateNestedOneWithoutImagesInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput>
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutImagesInput
  connect?: Prisma.ProductWhereUniqueInput
}

export type ProductUpdateOneWithoutImagesNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput>
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutImagesInput
  upsert?: Prisma.ProductUpsertWithoutImagesInput
  disconnect?: Prisma.ProductWhereInput | boolean
  delete?: Prisma.ProductWhereInput | boolean
  connect?: Prisma.ProductWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutImagesInput, Prisma.ProductUpdateWithoutImagesInput>, Prisma.ProductUncheckedUpdateWithoutImagesInput>
}

export type ProductCreateNestedManyWithoutCategoryInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutCategoryInput, Prisma.ProductUncheckedCreateWithoutCategoryInput> | Prisma.ProductCreateWithoutCategoryInput[] | Prisma.ProductUncheckedCreateWithoutCategoryInput[]
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutCategoryInput | Prisma.ProductCreateOrConnectWithoutCategoryInput[]
  createMany?: Prisma.ProductCreateManyCategoryInputEnvelope
  connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
}

export type ProductUncheckedCreateNestedManyWithoutCategoryInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutCategoryInput, Prisma.ProductUncheckedCreateWithoutCategoryInput> | Prisma.ProductCreateWithoutCategoryInput[] | Prisma.ProductUncheckedCreateWithoutCategoryInput[]
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutCategoryInput | Prisma.ProductCreateOrConnectWithoutCategoryInput[]
  createMany?: Prisma.ProductCreateManyCategoryInputEnvelope
  connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
}

export type ProductUpdateManyWithoutCategoryNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutCategoryInput, Prisma.ProductUncheckedCreateWithoutCategoryInput> | Prisma.ProductCreateWithoutCategoryInput[] | Prisma.ProductUncheckedCreateWithoutCategoryInput[]
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutCategoryInput | Prisma.ProductCreateOrConnectWithoutCategoryInput[]
  upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ProductUpsertWithWhereUniqueWithoutCategoryInput[]
  createMany?: Prisma.ProductCreateManyCategoryInputEnvelope
  set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  update?: Prisma.ProductUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ProductUpdateWithWhereUniqueWithoutCategoryInput[]
  updateMany?: Prisma.ProductUpdateManyWithWhereWithoutCategoryInput | Prisma.ProductUpdateManyWithWhereWithoutCategoryInput[]
  deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[]
}

export type ProductUncheckedUpdateManyWithoutCategoryNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutCategoryInput, Prisma.ProductUncheckedCreateWithoutCategoryInput> | Prisma.ProductCreateWithoutCategoryInput[] | Prisma.ProductUncheckedCreateWithoutCategoryInput[]
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutCategoryInput | Prisma.ProductCreateOrConnectWithoutCategoryInput[]
  upsert?: Prisma.ProductUpsertWithWhereUniqueWithoutCategoryInput | Prisma.ProductUpsertWithWhereUniqueWithoutCategoryInput[]
  createMany?: Prisma.ProductCreateManyCategoryInputEnvelope
  set?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  disconnect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  delete?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  connect?: Prisma.ProductWhereUniqueInput | Prisma.ProductWhereUniqueInput[]
  update?: Prisma.ProductUpdateWithWhereUniqueWithoutCategoryInput | Prisma.ProductUpdateWithWhereUniqueWithoutCategoryInput[]
  updateMany?: Prisma.ProductUpdateManyWithWhereWithoutCategoryInput | Prisma.ProductUpdateManyWithWhereWithoutCategoryInput[]
  deleteMany?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[]
}

export type ProductCreateNestedOneWithoutOrderItemsInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutOrderItemsInput, Prisma.ProductUncheckedCreateWithoutOrderItemsInput>
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutOrderItemsInput
  connect?: Prisma.ProductWhereUniqueInput
}

export type ProductUpdateOneWithoutOrderItemsNestedInput = {
  create?: Prisma.XOR<Prisma.ProductCreateWithoutOrderItemsInput, Prisma.ProductUncheckedCreateWithoutOrderItemsInput>
  connectOrCreate?: Prisma.ProductCreateOrConnectWithoutOrderItemsInput
  upsert?: Prisma.ProductUpsertWithoutOrderItemsInput
  disconnect?: Prisma.ProductWhereInput | boolean
  delete?: Prisma.ProductWhereInput | boolean
  connect?: Prisma.ProductWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutOrderItemsInput, Prisma.ProductUpdateWithoutOrderItemsInput>, Prisma.ProductUncheckedUpdateWithoutOrderItemsInput>
}

export type ProductCreateWithoutTenantInput = {
  id?: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  category?: Prisma.ProductCategoryCreateNestedOneWithoutProductsInput
  images?: Prisma.MediaAssetCreateNestedManyWithoutProductInput
  orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}

export type ProductUncheckedCreateWithoutTenantInput = {
  id?: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  categoryId?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  images?: Prisma.MediaAssetUncheckedCreateNestedManyWithoutProductInput
  orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}

export type ProductCreateOrConnectWithoutTenantInput = {
  where: Prisma.ProductWhereUniqueInput
  create: Prisma.XOR<Prisma.ProductCreateWithoutTenantInput, Prisma.ProductUncheckedCreateWithoutTenantInput>
}

export type ProductCreateManyTenantInputEnvelope = {
  data: Prisma.ProductCreateManyTenantInput | Prisma.ProductCreateManyTenantInput[]
  skipDuplicates?: boolean
}

export type ProductUpsertWithWhereUniqueWithoutTenantInput = {
  where: Prisma.ProductWhereUniqueInput
  update: Prisma.XOR<Prisma.ProductUpdateWithoutTenantInput, Prisma.ProductUncheckedUpdateWithoutTenantInput>
  create: Prisma.XOR<Prisma.ProductCreateWithoutTenantInput, Prisma.ProductUncheckedCreateWithoutTenantInput>
}

export type ProductUpdateWithWhereUniqueWithoutTenantInput = {
  where: Prisma.ProductWhereUniqueInput
  data: Prisma.XOR<Prisma.ProductUpdateWithoutTenantInput, Prisma.ProductUncheckedUpdateWithoutTenantInput>
}

export type ProductUpdateManyWithWhereWithoutTenantInput = {
  where: Prisma.ProductScalarWhereInput
  data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyWithoutTenantInput>
}

export type ProductScalarWhereInput = {
  AND?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[]
  OR?: Prisma.ProductScalarWhereInput[]
  NOT?: Prisma.ProductScalarWhereInput | Prisma.ProductScalarWhereInput[]
  id?: Prisma.StringFilter<"Product"> | string
  tenantId?: Prisma.StringFilter<"Product"> | string
  name?: Prisma.StringFilter<"Product"> | string
  slug?: Prisma.StringFilter<"Product"> | string
  shortDescription?: Prisma.StringNullableFilter<"Product"> | string | null
  description?: Prisma.StringNullableFilter<"Product"> | string | null
  sku?: Prisma.StringNullableFilter<"Product"> | string | null
  categoryId?: Prisma.StringNullableFilter<"Product"> | string | null
  priceCents?: Prisma.IntFilter<"Product"> | number
  promoPriceCents?: Prisma.IntNullableFilter<"Product"> | number | null
  stock?: Prisma.IntFilter<"Product"> | number
  trackStock?: Prisma.BoolFilter<"Product"> | boolean
  active?: Prisma.BoolFilter<"Product"> | boolean
  featured?: Prisma.BoolFilter<"Product"> | boolean
  seoTitle?: Prisma.StringNullableFilter<"Product"> | string | null
  metaDescription?: Prisma.StringNullableFilter<"Product"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Product"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Product"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Product"> | Date | string | null
}

export type ProductCreateWithoutImagesInput = {
  id?: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  tenant: Prisma.TenantCreateNestedOneWithoutProductsInput
  category?: Prisma.ProductCategoryCreateNestedOneWithoutProductsInput
  orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}

export type ProductUncheckedCreateWithoutImagesInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  categoryId?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}

export type ProductCreateOrConnectWithoutImagesInput = {
  where: Prisma.ProductWhereUniqueInput
  create: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput>
}

export type ProductUpsertWithoutImagesInput = {
  update: Prisma.XOR<Prisma.ProductUpdateWithoutImagesInput, Prisma.ProductUncheckedUpdateWithoutImagesInput>
  create: Prisma.XOR<Prisma.ProductCreateWithoutImagesInput, Prisma.ProductUncheckedCreateWithoutImagesInput>
  where?: Prisma.ProductWhereInput
}

export type ProductUpdateToOneWithWhereWithoutImagesInput = {
  where?: Prisma.ProductWhereInput
  data: Prisma.XOR<Prisma.ProductUpdateWithoutImagesInput, Prisma.ProductUncheckedUpdateWithoutImagesInput>
}

export type ProductUpdateWithoutImagesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  tenant?: Prisma.TenantUpdateOneRequiredWithoutProductsNestedInput
  category?: Prisma.ProductCategoryUpdateOneWithoutProductsNestedInput
  orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}

export type ProductUncheckedUpdateWithoutImagesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}

export type ProductCreateWithoutCategoryInput = {
  id?: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  tenant: Prisma.TenantCreateNestedOneWithoutProductsInput
  images?: Prisma.MediaAssetCreateNestedManyWithoutProductInput
  orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}

export type ProductUncheckedCreateWithoutCategoryInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  images?: Prisma.MediaAssetUncheckedCreateNestedManyWithoutProductInput
  orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}

export type ProductCreateOrConnectWithoutCategoryInput = {
  where: Prisma.ProductWhereUniqueInput
  create: Prisma.XOR<Prisma.ProductCreateWithoutCategoryInput, Prisma.ProductUncheckedCreateWithoutCategoryInput>
}

export type ProductCreateManyCategoryInputEnvelope = {
  data: Prisma.ProductCreateManyCategoryInput | Prisma.ProductCreateManyCategoryInput[]
  skipDuplicates?: boolean
}

export type ProductUpsertWithWhereUniqueWithoutCategoryInput = {
  where: Prisma.ProductWhereUniqueInput
  update: Prisma.XOR<Prisma.ProductUpdateWithoutCategoryInput, Prisma.ProductUncheckedUpdateWithoutCategoryInput>
  create: Prisma.XOR<Prisma.ProductCreateWithoutCategoryInput, Prisma.ProductUncheckedCreateWithoutCategoryInput>
}

export type ProductUpdateWithWhereUniqueWithoutCategoryInput = {
  where: Prisma.ProductWhereUniqueInput
  data: Prisma.XOR<Prisma.ProductUpdateWithoutCategoryInput, Prisma.ProductUncheckedUpdateWithoutCategoryInput>
}

export type ProductUpdateManyWithWhereWithoutCategoryInput = {
  where: Prisma.ProductScalarWhereInput
  data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyWithoutCategoryInput>
}

export type ProductCreateWithoutOrderItemsInput = {
  id?: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  tenant: Prisma.TenantCreateNestedOneWithoutProductsInput
  category?: Prisma.ProductCategoryCreateNestedOneWithoutProductsInput
  images?: Prisma.MediaAssetCreateNestedManyWithoutProductInput
}

export type ProductUncheckedCreateWithoutOrderItemsInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  categoryId?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  images?: Prisma.MediaAssetUncheckedCreateNestedManyWithoutProductInput
}

export type ProductCreateOrConnectWithoutOrderItemsInput = {
  where: Prisma.ProductWhereUniqueInput
  create: Prisma.XOR<Prisma.ProductCreateWithoutOrderItemsInput, Prisma.ProductUncheckedCreateWithoutOrderItemsInput>
}

export type ProductUpsertWithoutOrderItemsInput = {
  update: Prisma.XOR<Prisma.ProductUpdateWithoutOrderItemsInput, Prisma.ProductUncheckedUpdateWithoutOrderItemsInput>
  create: Prisma.XOR<Prisma.ProductCreateWithoutOrderItemsInput, Prisma.ProductUncheckedCreateWithoutOrderItemsInput>
  where?: Prisma.ProductWhereInput
}

export type ProductUpdateToOneWithWhereWithoutOrderItemsInput = {
  where?: Prisma.ProductWhereInput
  data: Prisma.XOR<Prisma.ProductUpdateWithoutOrderItemsInput, Prisma.ProductUncheckedUpdateWithoutOrderItemsInput>
}

export type ProductUpdateWithoutOrderItemsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  tenant?: Prisma.TenantUpdateOneRequiredWithoutProductsNestedInput
  category?: Prisma.ProductCategoryUpdateOneWithoutProductsNestedInput
  images?: Prisma.MediaAssetUpdateManyWithoutProductNestedInput
}

export type ProductUncheckedUpdateWithoutOrderItemsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  images?: Prisma.MediaAssetUncheckedUpdateManyWithoutProductNestedInput
}

export type ProductCreateManyTenantInput = {
  id?: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  categoryId?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ProductUpdateWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  category?: Prisma.ProductCategoryUpdateOneWithoutProductsNestedInput
  images?: Prisma.MediaAssetUpdateManyWithoutProductNestedInput
  orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}

export type ProductUncheckedUpdateWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  images?: Prisma.MediaAssetUncheckedUpdateManyWithoutProductNestedInput
  orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}

export type ProductUncheckedUpdateManyWithoutTenantInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ProductCreateManyCategoryInput = {
  id?: string
  tenantId: string
  name: string
  slug: string
  shortDescription?: string | null
  description?: string | null
  sku?: string | null
  priceCents: number
  promoPriceCents?: number | null
  stock?: number
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: string | null
  metaDescription?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ProductUpdateWithoutCategoryInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  tenant?: Prisma.TenantUpdateOneRequiredWithoutProductsNestedInput
  images?: Prisma.MediaAssetUpdateManyWithoutProductNestedInput
  orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}

export type ProductUncheckedUpdateWithoutCategoryInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  images?: Prisma.MediaAssetUncheckedUpdateManyWithoutProductNestedInput
  orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}

export type ProductUncheckedUpdateManyWithoutCategoryInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  tenantId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  shortDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  priceCents?: Prisma.IntFieldUpdateOperationsInput | number
  promoPriceCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  stock?: Prisma.IntFieldUpdateOperationsInput | number
  trackStock?: Prisma.BoolFieldUpdateOperationsInput | boolean
  active?: Prisma.BoolFieldUpdateOperationsInput | boolean
  featured?: Prisma.BoolFieldUpdateOperationsInput | boolean
  seoTitle?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metaDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}


/**
 * Count Type ProductCountOutputType
 */

export type ProductCountOutputType = {
  images: number
  orderItems: number
}

export type ProductCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  images?: boolean | ProductCountOutputTypeCountImagesArgs
  orderItems?: boolean | ProductCountOutputTypeCountOrderItemsArgs
}

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

/**
 * ProductCountOutputType without action
 */
export type ProductCountOutputTypeCountImagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.MediaAssetWhereInput
}

/**
 * ProductCountOutputType without action
 */
export type ProductCountOutputTypeCountOrderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.OrderItemWhereInput
}


export type ProductSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  name?: boolean
  slug?: boolean
  shortDescription?: boolean
  description?: boolean
  sku?: boolean
  categoryId?: boolean
  priceCents?: boolean
  promoPriceCents?: boolean
  stock?: boolean
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: boolean
  metaDescription?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
  category?: boolean | Prisma.Product$categoryArgs<ExtArgs>
  images?: boolean | Prisma.Product$imagesArgs<ExtArgs>
  orderItems?: boolean | Prisma.Product$orderItemsArgs<ExtArgs>
  _count?: boolean | Prisma.ProductCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["product"]>

export type ProductSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  name?: boolean
  slug?: boolean
  shortDescription?: boolean
  description?: boolean
  sku?: boolean
  categoryId?: boolean
  priceCents?: boolean
  promoPriceCents?: boolean
  stock?: boolean
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: boolean
  metaDescription?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
  category?: boolean | Prisma.Product$categoryArgs<ExtArgs>
}, ExtArgs["result"]["product"]>

export type ProductSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  tenantId?: boolean
  name?: boolean
  slug?: boolean
  shortDescription?: boolean
  description?: boolean
  sku?: boolean
  categoryId?: boolean
  priceCents?: boolean
  promoPriceCents?: boolean
  stock?: boolean
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: boolean
  metaDescription?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
  category?: boolean | Prisma.Product$categoryArgs<ExtArgs>
}, ExtArgs["result"]["product"]>

export type ProductSelectScalar = {
  id?: boolean
  tenantId?: boolean
  name?: boolean
  slug?: boolean
  shortDescription?: boolean
  description?: boolean
  sku?: boolean
  categoryId?: boolean
  priceCents?: boolean
  promoPriceCents?: boolean
  stock?: boolean
  trackStock?: boolean
  active?: boolean
  featured?: boolean
  seoTitle?: boolean
  metaDescription?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
}

export type ProductOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "name" | "slug" | "shortDescription" | "description" | "sku" | "categoryId" | "priceCents" | "promoPriceCents" | "stock" | "trackStock" | "active" | "featured" | "seoTitle" | "metaDescription" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["product"]>
export type ProductInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
  category?: boolean | Prisma.Product$categoryArgs<ExtArgs>
  images?: boolean | Prisma.Product$imagesArgs<ExtArgs>
  orderItems?: boolean | Prisma.Product$orderItemsArgs<ExtArgs>
  _count?: boolean | Prisma.ProductCountOutputTypeDefaultArgs<ExtArgs>
}
export type ProductIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
  category?: boolean | Prisma.Product$categoryArgs<ExtArgs>
}
export type ProductIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
  category?: boolean | Prisma.Product$categoryArgs<ExtArgs>
}

export type $ProductPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Product"
  objects: {
    tenant: Prisma.$TenantPayload<ExtArgs>
    category: Prisma.$ProductCategoryPayload<ExtArgs> | null
    images: Prisma.$MediaAssetPayload<ExtArgs>[]
    orderItems: Prisma.$OrderItemPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    tenantId: string
    name: string
    slug: string
    shortDescription: string | null
    description: string | null
    sku: string | null
    categoryId: string | null
    priceCents: number
    promoPriceCents: number | null
    stock: number
    trackStock: boolean
    active: boolean
    featured: boolean
    seoTitle: string | null
    metaDescription: string | null
    createdAt: Date
    updatedAt: Date
    deletedAt: Date | null
  }, ExtArgs["result"]["product"]>
  composites: {}
}

export type ProductGetPayload<S extends boolean | null | undefined | ProductDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductPayload, S>

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

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

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

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

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

  /**
   * Find zero or more Products that matches the filter.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {ProductFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Products
   * const products = await prisma.product.findMany()
   * 
   * // Get first 10 Products
   * const products = await prisma.product.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const productWithIdOnly = await prisma.product.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends ProductFindManyArgs>(args?: Prisma.SelectSubset<T, ProductFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Product.
 * 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__ProductClient<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>
  category<T extends Prisma.Product$categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$categoryArgs<ExtArgs>>): Prisma.Prisma__ProductCategoryClient<runtime.Types.Result.GetResult<Prisma.$ProductCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  images<T extends Prisma.Product$imagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$imagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaAssetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  orderItems<T extends Prisma.Product$orderItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$orderItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemPayload<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 Product model
 */
export interface ProductFieldRefs {
  readonly id: Prisma.FieldRef<"Product", 'String'>
  readonly tenantId: Prisma.FieldRef<"Product", 'String'>
  readonly name: Prisma.FieldRef<"Product", 'String'>
  readonly slug: Prisma.FieldRef<"Product", 'String'>
  readonly shortDescription: Prisma.FieldRef<"Product", 'String'>
  readonly description: Prisma.FieldRef<"Product", 'String'>
  readonly sku: Prisma.FieldRef<"Product", 'String'>
  readonly categoryId: Prisma.FieldRef<"Product", 'String'>
  readonly priceCents: Prisma.FieldRef<"Product", 'Int'>
  readonly promoPriceCents: Prisma.FieldRef<"Product", 'Int'>
  readonly stock: Prisma.FieldRef<"Product", 'Int'>
  readonly trackStock: Prisma.FieldRef<"Product", 'Boolean'>
  readonly active: Prisma.FieldRef<"Product", 'Boolean'>
  readonly featured: Prisma.FieldRef<"Product", 'Boolean'>
  readonly seoTitle: Prisma.FieldRef<"Product", 'String'>
  readonly metaDescription: Prisma.FieldRef<"Product", 'String'>
  readonly createdAt: Prisma.FieldRef<"Product", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Product", 'DateTime'>
  readonly deletedAt: Prisma.FieldRef<"Product", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Product findUnique
 */
export type ProductFindUniqueArgs<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
  /**
   * Filter, which Product to fetch.
   */
  where: Prisma.ProductWhereUniqueInput
}

/**
 * Product findUniqueOrThrow
 */
export type ProductFindUniqueOrThrowArgs<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
  /**
   * Filter, which Product to fetch.
   */
  where: Prisma.ProductWhereUniqueInput
}

/**
 * Product findFirst
 */
export type ProductFindFirstArgs<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
  /**
   * Filter, which Product to fetch.
   */
  where?: Prisma.ProductWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Products to fetch.
   */
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for Products.
   */
  cursor?: Prisma.ProductWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Products from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Products.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Products.
   */
  distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
}

/**
 * Product findFirstOrThrow
 */
export type ProductFindFirstOrThrowArgs<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
  /**
   * Filter, which Product to fetch.
   */
  where?: Prisma.ProductWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Products to fetch.
   */
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for Products.
   */
  cursor?: Prisma.ProductWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Products from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Products.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Products.
   */
  distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
}

/**
 * Product findMany
 */
export type ProductFindManyArgs<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
  /**
   * Filter, which Products to fetch.
   */
  where?: Prisma.ProductWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Products to fetch.
   */
  orderBy?: Prisma.ProductOrderByWithRelationInput | Prisma.ProductOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing Products.
   */
  cursor?: Prisma.ProductWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Products from the position of the cursor.
   */
  take?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Skip the first `n` Products.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Products.
   */
  distinct?: Prisma.ProductScalarFieldEnum | Prisma.ProductScalarFieldEnum[]
}

/**
 * Product create
 */
export type ProductCreateArgs<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
  /**
   * The data needed to create a Product.
   */
  data: Prisma.XOR<Prisma.ProductCreateInput, Prisma.ProductUncheckedCreateInput>
}

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

/**
 * Product createManyAndReturn
 */
export type ProductCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Product
   */
  select?: Prisma.ProductSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Product
   */
  omit?: Prisma.ProductOmit<ExtArgs> | null
  /**
   * The data used to create many Products.
   */
  data: Prisma.ProductCreateManyInput | Prisma.ProductCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Product update
 */
export type ProductUpdateArgs<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
  /**
   * The data needed to update a Product.
   */
  data: Prisma.XOR<Prisma.ProductUpdateInput, Prisma.ProductUncheckedUpdateInput>
  /**
   * Choose, which Product to update.
   */
  where: Prisma.ProductWhereUniqueInput
}

/**
 * Product updateMany
 */
export type ProductUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Products.
   */
  data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyInput>
  /**
   * Filter which Products to update
   */
  where?: Prisma.ProductWhereInput
  /**
   * Limit how many Products to update.
   */
  limit?: number
}

/**
 * Product updateManyAndReturn
 */
export type ProductUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Product
   */
  select?: Prisma.ProductSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Product
   */
  omit?: Prisma.ProductOmit<ExtArgs> | null
  /**
   * The data used to update Products.
   */
  data: Prisma.XOR<Prisma.ProductUpdateManyMutationInput, Prisma.ProductUncheckedUpdateManyInput>
  /**
   * Filter which Products to update
   */
  where?: Prisma.ProductWhereInput
  /**
   * Limit how many Products to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ProductIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Product upsert
 */
export type ProductUpsertArgs<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
  /**
   * The filter to search for the Product to update in case it exists.
   */
  where: Prisma.ProductWhereUniqueInput
  /**
   * In case the Product found by the `where` argument doesn't exist, create a new Product with this data.
   */
  create: Prisma.XOR<Prisma.ProductCreateInput, Prisma.ProductUncheckedCreateInput>
  /**
   * In case the Product was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ProductUpdateInput, Prisma.ProductUncheckedUpdateInput>
}

/**
 * Product delete
 */
export type ProductDeleteArgs<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
  /**
   * Filter which Product to delete.
   */
  where: Prisma.ProductWhereUniqueInput
}

/**
 * Product deleteMany
 */
export type ProductDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Products to delete
   */
  where?: Prisma.ProductWhereInput
  /**
   * Limit how many Products to delete.
   */
  limit?: number
}

/**
 * Product.category
 */
export type Product$categoryArgs<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
  where?: Prisma.ProductCategoryWhereInput
}

/**
 * Product.images
 */
export type Product$imagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the MediaAsset
   */
  select?: Prisma.MediaAssetSelect<ExtArgs> | null
  /**
   * Omit specific fields from the MediaAsset
   */
  omit?: Prisma.MediaAssetOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MediaAssetInclude<ExtArgs> | null
  where?: Prisma.MediaAssetWhereInput
  orderBy?: Prisma.MediaAssetOrderByWithRelationInput | Prisma.MediaAssetOrderByWithRelationInput[]
  cursor?: Prisma.MediaAssetWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.MediaAssetScalarFieldEnum | Prisma.MediaAssetScalarFieldEnum[]
}

/**
 * Product.orderItems
 */
export type Product$orderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OrderItem
   */
  select?: Prisma.OrderItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OrderItem
   */
  omit?: Prisma.OrderItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OrderItemInclude<ExtArgs> | null
  where?: Prisma.OrderItemWhereInput
  orderBy?: Prisma.OrderItemOrderByWithRelationInput | Prisma.OrderItemOrderByWithRelationInput[]
  cursor?: Prisma.OrderItemWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.OrderItemScalarFieldEnum | Prisma.OrderItemScalarFieldEnum[]
}

/**
 * Product without action
 */
export type ProductDefaultArgs<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
}
