
/* !!! 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_format` 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_format
 * 
 */
export type product_formatModel = runtime.Types.Result.DefaultSelection<Prisma.$product_formatPayload>

export type AggregateProduct_format = {
  _count: Product_formatCountAggregateOutputType | null
  _avg: Product_formatAvgAggregateOutputType | null
  _sum: Product_formatSumAggregateOutputType | null
  _min: Product_formatMinAggregateOutputType | null
  _max: Product_formatMaxAggregateOutputType | null
}

export type Product_formatAvgAggregateOutputType = {
  id: number | null
  date_orig: number | null
  type: number | null
}

export type Product_formatSumAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  type: number | null
}

export type Product_formatMinAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  name: string | null
  type: number | null
  product_idx: string | null
  description: string | null
}

export type Product_formatMaxAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  name: string | null
  type: number | null
  product_idx: string | null
  description: string | null
}

export type Product_formatCountAggregateOutputType = {
  id: number
  date_orig: number
  name: number
  type: number
  product_idx: number
  description: number
  _all: number
}


export type Product_formatAvgAggregateInputType = {
  id?: true
  date_orig?: true
  type?: true
}

export type Product_formatSumAggregateInputType = {
  id?: true
  date_orig?: true
  type?: true
}

export type Product_formatMinAggregateInputType = {
  id?: true
  date_orig?: true
  name?: true
  type?: true
  product_idx?: true
  description?: true
}

export type Product_formatMaxAggregateInputType = {
  id?: true
  date_orig?: true
  name?: true
  type?: true
  product_idx?: true
  description?: true
}

export type Product_formatCountAggregateInputType = {
  id?: true
  date_orig?: true
  name?: true
  type?: true
  product_idx?: true
  description?: true
  _all?: true
}

export type Product_formatAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which product_format to aggregate.
   */
  where?: Prisma.product_formatWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of product_formats to fetch.
   */
  orderBy?: Prisma.product_formatOrderByWithRelationInput | Prisma.product_formatOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.product_formatWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` product_formats 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` product_formats.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned product_formats
  **/
  _count?: true | Product_formatCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Product_formatAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Product_formatSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Product_formatMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Product_formatMaxAggregateInputType
}

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




export type product_formatGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.product_formatWhereInput
  orderBy?: Prisma.product_formatOrderByWithAggregationInput | Prisma.product_formatOrderByWithAggregationInput[]
  by: Prisma.Product_formatScalarFieldEnum[] | Prisma.Product_formatScalarFieldEnum
  having?: Prisma.product_formatScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Product_formatCountAggregateInputType | true
  _avg?: Product_formatAvgAggregateInputType
  _sum?: Product_formatSumAggregateInputType
  _min?: Product_formatMinAggregateInputType
  _max?: Product_formatMaxAggregateInputType
}

export type Product_formatGroupByOutputType = {
  id: bigint
  date_orig: bigint | null
  name: string | null
  type: number | null
  product_idx: string | null
  description: string | null
  _count: Product_formatCountAggregateOutputType | null
  _avg: Product_formatAvgAggregateOutputType | null
  _sum: Product_formatSumAggregateOutputType | null
  _min: Product_formatMinAggregateOutputType | null
  _max: Product_formatMaxAggregateOutputType | null
}

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



export type product_formatWhereInput = {
  AND?: Prisma.product_formatWhereInput | Prisma.product_formatWhereInput[]
  OR?: Prisma.product_formatWhereInput[]
  NOT?: Prisma.product_formatWhereInput | Prisma.product_formatWhereInput[]
  id?: Prisma.BigIntFilter<"product_format"> | bigint | number
  date_orig?: Prisma.BigIntNullableFilter<"product_format"> | bigint | number | null
  name?: Prisma.StringNullableFilter<"product_format"> | string | null
  type?: Prisma.IntNullableFilter<"product_format"> | number | null
  product_idx?: Prisma.StringNullableFilter<"product_format"> | string | null
  description?: Prisma.StringNullableFilter<"product_format"> | string | null
}

export type product_formatOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  type?: Prisma.SortOrderInput | Prisma.SortOrder
  product_idx?: Prisma.SortOrderInput | Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  _relevance?: Prisma.product_formatOrderByRelevanceInput
}

export type product_formatWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.product_formatWhereInput | Prisma.product_formatWhereInput[]
  OR?: Prisma.product_formatWhereInput[]
  NOT?: Prisma.product_formatWhereInput | Prisma.product_formatWhereInput[]
  date_orig?: Prisma.BigIntNullableFilter<"product_format"> | bigint | number | null
  name?: Prisma.StringNullableFilter<"product_format"> | string | null
  type?: Prisma.IntNullableFilter<"product_format"> | number | null
  product_idx?: Prisma.StringNullableFilter<"product_format"> | string | null
  description?: Prisma.StringNullableFilter<"product_format"> | string | null
}, "id">

export type product_formatOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
  name?: Prisma.SortOrderInput | Prisma.SortOrder
  type?: Prisma.SortOrderInput | Prisma.SortOrder
  product_idx?: Prisma.SortOrderInput | Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.product_formatCountOrderByAggregateInput
  _avg?: Prisma.product_formatAvgOrderByAggregateInput
  _max?: Prisma.product_formatMaxOrderByAggregateInput
  _min?: Prisma.product_formatMinOrderByAggregateInput
  _sum?: Prisma.product_formatSumOrderByAggregateInput
}

export type product_formatScalarWhereWithAggregatesInput = {
  AND?: Prisma.product_formatScalarWhereWithAggregatesInput | Prisma.product_formatScalarWhereWithAggregatesInput[]
  OR?: Prisma.product_formatScalarWhereWithAggregatesInput[]
  NOT?: Prisma.product_formatScalarWhereWithAggregatesInput | Prisma.product_formatScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"product_format"> | bigint | number
  date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"product_format"> | bigint | number | null
  name?: Prisma.StringNullableWithAggregatesFilter<"product_format"> | string | null
  type?: Prisma.IntNullableWithAggregatesFilter<"product_format"> | number | null
  product_idx?: Prisma.StringNullableWithAggregatesFilter<"product_format"> | string | null
  description?: Prisma.StringNullableWithAggregatesFilter<"product_format"> | string | null
}

export type product_formatCreateInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  name?: string | null
  type?: number | null
  product_idx?: string | null
  description?: string | null
}

export type product_formatUncheckedCreateInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  name?: string | null
  type?: number | null
  product_idx?: string | null
  description?: string | null
}

export type product_formatUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  product_idx?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type product_formatUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  product_idx?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type product_formatCreateManyInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  name?: string | null
  type?: number | null
  product_idx?: string | null
  description?: string | null
}

export type product_formatUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  product_idx?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type product_formatUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  type?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  product_idx?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type product_formatOrderByRelevanceInput = {
  fields: Prisma.product_formatOrderByRelevanceFieldEnum | Prisma.product_formatOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type product_formatCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  name?: Prisma.SortOrder
  type?: Prisma.SortOrder
  product_idx?: Prisma.SortOrder
  description?: Prisma.SortOrder
}

export type product_formatAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  type?: Prisma.SortOrder
}

export type product_formatMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  name?: Prisma.SortOrder
  type?: Prisma.SortOrder
  product_idx?: Prisma.SortOrder
  description?: Prisma.SortOrder
}

export type product_formatMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  name?: Prisma.SortOrder
  type?: Prisma.SortOrder
  product_idx?: Prisma.SortOrder
  description?: Prisma.SortOrder
}

export type product_formatSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  type?: Prisma.SortOrder
}



export type product_formatSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  date_orig?: boolean
  name?: boolean
  type?: boolean
  product_idx?: boolean
  description?: boolean
}, ExtArgs["result"]["product_format"]>



export type product_formatSelectScalar = {
  id?: boolean
  date_orig?: boolean
  name?: boolean
  type?: boolean
  product_idx?: boolean
  description?: boolean
}

export type product_formatOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "name" | "type" | "product_idx" | "description", ExtArgs["result"]["product_format"]>

export type $product_formatPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "product_format"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    date_orig: bigint | null
    name: string | null
    type: number | null
    product_idx: string | null
    description: string | null
  }, ExtArgs["result"]["product_format"]>
  composites: {}
}

export type product_formatGetPayload<S extends boolean | null | undefined | product_formatDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$product_formatPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for product_format.
 * 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__product_formatClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  /**
   * 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_format model
 */
export interface product_formatFieldRefs {
  readonly id: Prisma.FieldRef<"product_format", 'BigInt'>
  readonly date_orig: Prisma.FieldRef<"product_format", 'BigInt'>
  readonly name: Prisma.FieldRef<"product_format", 'String'>
  readonly type: Prisma.FieldRef<"product_format", 'Int'>
  readonly product_idx: Prisma.FieldRef<"product_format", 'String'>
  readonly description: Prisma.FieldRef<"product_format", 'String'>
}
    

// Custom InputTypes
/**
 * product_format findUnique
 */
export type product_formatFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * Filter, which product_format to fetch.
   */
  where: Prisma.product_formatWhereUniqueInput
}

/**
 * product_format findUniqueOrThrow
 */
export type product_formatFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * Filter, which product_format to fetch.
   */
  where: Prisma.product_formatWhereUniqueInput
}

/**
 * product_format findFirst
 */
export type product_formatFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * Filter, which product_format to fetch.
   */
  where?: Prisma.product_formatWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of product_formats to fetch.
   */
  orderBy?: Prisma.product_formatOrderByWithRelationInput | Prisma.product_formatOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for product_formats.
   */
  cursor?: Prisma.product_formatWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` product_formats 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` product_formats.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of product_formats.
   */
  distinct?: Prisma.Product_formatScalarFieldEnum | Prisma.Product_formatScalarFieldEnum[]
}

/**
 * product_format findFirstOrThrow
 */
export type product_formatFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * Filter, which product_format to fetch.
   */
  where?: Prisma.product_formatWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of product_formats to fetch.
   */
  orderBy?: Prisma.product_formatOrderByWithRelationInput | Prisma.product_formatOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for product_formats.
   */
  cursor?: Prisma.product_formatWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` product_formats 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` product_formats.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of product_formats.
   */
  distinct?: Prisma.Product_formatScalarFieldEnum | Prisma.Product_formatScalarFieldEnum[]
}

/**
 * product_format findMany
 */
export type product_formatFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * Filter, which product_formats to fetch.
   */
  where?: Prisma.product_formatWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of product_formats to fetch.
   */
  orderBy?: Prisma.product_formatOrderByWithRelationInput | Prisma.product_formatOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing product_formats.
   */
  cursor?: Prisma.product_formatWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` product_formats 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` product_formats.
   */
  skip?: number
  distinct?: Prisma.Product_formatScalarFieldEnum | Prisma.Product_formatScalarFieldEnum[]
}

/**
 * product_format create
 */
export type product_formatCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * The data needed to create a product_format.
   */
  data?: Prisma.XOR<Prisma.product_formatCreateInput, Prisma.product_formatUncheckedCreateInput>
}

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

/**
 * product_format update
 */
export type product_formatUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * The data needed to update a product_format.
   */
  data: Prisma.XOR<Prisma.product_formatUpdateInput, Prisma.product_formatUncheckedUpdateInput>
  /**
   * Choose, which product_format to update.
   */
  where: Prisma.product_formatWhereUniqueInput
}

/**
 * product_format updateMany
 */
export type product_formatUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update product_formats.
   */
  data: Prisma.XOR<Prisma.product_formatUpdateManyMutationInput, Prisma.product_formatUncheckedUpdateManyInput>
  /**
   * Filter which product_formats to update
   */
  where?: Prisma.product_formatWhereInput
  /**
   * Limit how many product_formats to update.
   */
  limit?: number
}

/**
 * product_format upsert
 */
export type product_formatUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * The filter to search for the product_format to update in case it exists.
   */
  where: Prisma.product_formatWhereUniqueInput
  /**
   * In case the product_format found by the `where` argument doesn't exist, create a new product_format with this data.
   */
  create: Prisma.XOR<Prisma.product_formatCreateInput, Prisma.product_formatUncheckedCreateInput>
  /**
   * In case the product_format was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.product_formatUpdateInput, Prisma.product_formatUncheckedUpdateInput>
}

/**
 * product_format delete
 */
export type product_formatDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
  /**
   * Filter which product_format to delete.
   */
  where: Prisma.product_formatWhereUniqueInput
}

/**
 * product_format deleteMany
 */
export type product_formatDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which product_formats to delete
   */
  where?: Prisma.product_formatWhereInput
  /**
   * Limit how many product_formats to delete.
   */
  limit?: number
}

/**
 * product_format without action
 */
export type product_formatDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the product_format
   */
  select?: Prisma.product_formatSelect<ExtArgs> | null
  /**
   * Omit specific fields from the product_format
   */
  omit?: Prisma.product_formatOmit<ExtArgs> | null
}
