
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `Item` 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.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"

/**
 * Model Item
 * 
 */
export type ItemModel = runtime.Types.Result.DefaultSelection<Prisma.$ItemPayload>

export type AggregateItem = {
  _count: ItemCountAggregateOutputType | null
  _avg: ItemAvgAggregateOutputType | null
  _sum: ItemSumAggregateOutputType | null
  _min: ItemMinAggregateOutputType | null
  _max: ItemMaxAggregateOutputType | null
}

export type ItemAvgAggregateOutputType = {
  quantity: number | null
}

export type ItemSumAggregateOutputType = {
  quantity: number | null
}

export type ItemMinAggregateOutputType = {
  id: string | null
  createrId: string | null
  boxId: string | null
  image: string | null
  name: string | null
  description: string | null
  price: string | null
  quantity: number | null
  expiresAt: Date | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
}

export type ItemMaxAggregateOutputType = {
  id: string | null
  createrId: string | null
  boxId: string | null
  image: string | null
  name: string | null
  description: string | null
  price: string | null
  quantity: number | null
  expiresAt: Date | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
}

export type ItemCountAggregateOutputType = {
  id: number
  createrId: number
  boxId: number
  image: number
  name: number
  description: number
  price: number
  tags: number
  quantity: number
  expiresAt: number
  createdAt: number
  updatedAt: number
  deletedAt: number
  _all: number
}


export type ItemAvgAggregateInputType = {
  quantity?: true
}

export type ItemSumAggregateInputType = {
  quantity?: true
}

export type ItemMinAggregateInputType = {
  id?: true
  createrId?: true
  boxId?: true
  image?: true
  name?: true
  description?: true
  price?: true
  quantity?: true
  expiresAt?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
}

export type ItemMaxAggregateInputType = {
  id?: true
  createrId?: true
  boxId?: true
  image?: true
  name?: true
  description?: true
  price?: true
  quantity?: true
  expiresAt?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
}

export type ItemCountAggregateInputType = {
  id?: true
  createrId?: true
  boxId?: true
  image?: true
  name?: true
  description?: true
  price?: true
  tags?: true
  quantity?: true
  expiresAt?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
  _all?: true
}

export type ItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Item to aggregate.
   */
  where?: Prisma.ItemWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Items to fetch.
   */
  orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ItemWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Items 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` Items.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned Items
  **/
  _count?: true | ItemCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ItemAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ItemSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ItemMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ItemMaxAggregateInputType
}

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




export type ItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ItemWhereInput
  orderBy?: Prisma.ItemOrderByWithAggregationInput | Prisma.ItemOrderByWithAggregationInput[]
  by: Prisma.ItemScalarFieldEnum[] | Prisma.ItemScalarFieldEnum
  having?: Prisma.ItemScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ItemCountAggregateInputType | true
  _avg?: ItemAvgAggregateInputType
  _sum?: ItemSumAggregateInputType
  _min?: ItemMinAggregateInputType
  _max?: ItemMaxAggregateInputType
}

export type ItemGroupByOutputType = {
  id: string
  createrId: string
  boxId: string | null
  image: string
  name: string
  description: string | null
  price: string | null
  tags: string[]
  quantity: number
  expiresAt: Date
  createdAt: Date
  updatedAt: Date
  deletedAt: Date | null
  _count: ItemCountAggregateOutputType | null
  _avg: ItemAvgAggregateOutputType | null
  _sum: ItemSumAggregateOutputType | null
  _min: ItemMinAggregateOutputType | null
  _max: ItemMaxAggregateOutputType | null
}

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



export type ItemWhereInput = {
  AND?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[]
  OR?: Prisma.ItemWhereInput[]
  NOT?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[]
  id?: Prisma.StringFilter<"Item"> | string
  createrId?: Prisma.StringFilter<"Item"> | string
  boxId?: Prisma.StringNullableFilter<"Item"> | string | null
  image?: Prisma.StringFilter<"Item"> | string
  name?: Prisma.StringFilter<"Item"> | string
  description?: Prisma.StringNullableFilter<"Item"> | string | null
  price?: Prisma.StringNullableFilter<"Item"> | string | null
  tags?: Prisma.StringNullableListFilter<"Item">
  quantity?: Prisma.IntFilter<"Item"> | number
  expiresAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Item"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  box?: Prisma.XOR<Prisma.BoxNullableScalarRelationFilter, Prisma.BoxWhereInput> | null
}

export type ItemOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  createrId?: Prisma.SortOrder
  boxId?: Prisma.SortOrderInput | Prisma.SortOrder
  image?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  price?: Prisma.SortOrderInput | Prisma.SortOrder
  tags?: Prisma.SortOrder
  quantity?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  user?: Prisma.UserOrderByWithRelationInput
  box?: Prisma.BoxOrderByWithRelationInput
}

export type ItemWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[]
  OR?: Prisma.ItemWhereInput[]
  NOT?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[]
  createrId?: Prisma.StringFilter<"Item"> | string
  boxId?: Prisma.StringNullableFilter<"Item"> | string | null
  image?: Prisma.StringFilter<"Item"> | string
  name?: Prisma.StringFilter<"Item"> | string
  description?: Prisma.StringNullableFilter<"Item"> | string | null
  price?: Prisma.StringNullableFilter<"Item"> | string | null
  tags?: Prisma.StringNullableListFilter<"Item">
  quantity?: Prisma.IntFilter<"Item"> | number
  expiresAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Item"> | Date | string | null
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
  box?: Prisma.XOR<Prisma.BoxNullableScalarRelationFilter, Prisma.BoxWhereInput> | null
}, "id">

export type ItemOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  createrId?: Prisma.SortOrder
  boxId?: Prisma.SortOrderInput | Prisma.SortOrder
  image?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  price?: Prisma.SortOrderInput | Prisma.SortOrder
  tags?: Prisma.SortOrder
  quantity?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.ItemCountOrderByAggregateInput
  _avg?: Prisma.ItemAvgOrderByAggregateInput
  _max?: Prisma.ItemMaxOrderByAggregateInput
  _min?: Prisma.ItemMinOrderByAggregateInput
  _sum?: Prisma.ItemSumOrderByAggregateInput
}

export type ItemScalarWhereWithAggregatesInput = {
  AND?: Prisma.ItemScalarWhereWithAggregatesInput | Prisma.ItemScalarWhereWithAggregatesInput[]
  OR?: Prisma.ItemScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ItemScalarWhereWithAggregatesInput | Prisma.ItemScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"Item"> | string
  createrId?: Prisma.StringWithAggregatesFilter<"Item"> | string
  boxId?: Prisma.StringNullableWithAggregatesFilter<"Item"> | string | null
  image?: Prisma.StringWithAggregatesFilter<"Item"> | string
  name?: Prisma.StringWithAggregatesFilter<"Item"> | string
  description?: Prisma.StringNullableWithAggregatesFilter<"Item"> | string | null
  price?: Prisma.StringNullableWithAggregatesFilter<"Item"> | string | null
  tags?: Prisma.StringNullableListFilter<"Item">
  quantity?: Prisma.IntWithAggregatesFilter<"Item"> | number
  expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Item"> | Date | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Item"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Item"> | Date | string
  deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Item"> | Date | string | null
}

export type ItemCreateInput = {
  id?: string
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  user: Prisma.UserCreateNestedOneWithoutItemsInput
  box?: Prisma.BoxCreateNestedOneWithoutItemsInput
}

export type ItemUncheckedCreateInput = {
  id?: string
  createrId: string
  boxId?: string | null
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ItemUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  user?: Prisma.UserUpdateOneRequiredWithoutItemsNestedInput
  box?: Prisma.BoxUpdateOneWithoutItemsNestedInput
}

export type ItemUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  boxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ItemCreateManyInput = {
  id?: string
  createrId: string
  boxId?: string | null
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ItemUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ItemUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  boxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ItemListRelationFilter = {
  every?: Prisma.ItemWhereInput
  some?: Prisma.ItemWhereInput
  none?: Prisma.ItemWhereInput
}

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

export type ItemCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  createrId?: Prisma.SortOrder
  boxId?: Prisma.SortOrder
  image?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  price?: Prisma.SortOrder
  tags?: Prisma.SortOrder
  quantity?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ItemAvgOrderByAggregateInput = {
  quantity?: Prisma.SortOrder
}

export type ItemMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  createrId?: Prisma.SortOrder
  boxId?: Prisma.SortOrder
  image?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  price?: Prisma.SortOrder
  quantity?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ItemMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  createrId?: Prisma.SortOrder
  boxId?: Prisma.SortOrder
  image?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  price?: Prisma.SortOrder
  quantity?: Prisma.SortOrder
  expiresAt?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
}

export type ItemSumOrderByAggregateInput = {
  quantity?: Prisma.SortOrder
}

export type ItemCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.ItemCreateWithoutUserInput, Prisma.ItemUncheckedCreateWithoutUserInput> | Prisma.ItemCreateWithoutUserInput[] | Prisma.ItemUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUserInput | Prisma.ItemCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.ItemCreateManyUserInputEnvelope
  connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
}

export type ItemUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.ItemCreateWithoutUserInput, Prisma.ItemUncheckedCreateWithoutUserInput> | Prisma.ItemCreateWithoutUserInput[] | Prisma.ItemUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUserInput | Prisma.ItemCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.ItemCreateManyUserInputEnvelope
  connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
}

export type ItemUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.ItemCreateWithoutUserInput, Prisma.ItemUncheckedCreateWithoutUserInput> | Prisma.ItemCreateWithoutUserInput[] | Prisma.ItemUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUserInput | Prisma.ItemCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutUserInput | Prisma.ItemUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.ItemCreateManyUserInputEnvelope
  set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  update?: Prisma.ItemUpdateWithWhereUniqueWithoutUserInput | Prisma.ItemUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.ItemUpdateManyWithWhereWithoutUserInput | Prisma.ItemUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[]
}

export type ItemUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.ItemCreateWithoutUserInput, Prisma.ItemUncheckedCreateWithoutUserInput> | Prisma.ItemCreateWithoutUserInput[] | Prisma.ItemUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUserInput | Prisma.ItemCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutUserInput | Prisma.ItemUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.ItemCreateManyUserInputEnvelope
  set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  update?: Prisma.ItemUpdateWithWhereUniqueWithoutUserInput | Prisma.ItemUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.ItemUpdateManyWithWhereWithoutUserInput | Prisma.ItemUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[]
}

export type ItemCreateNestedManyWithoutBoxInput = {
  create?: Prisma.XOR<Prisma.ItemCreateWithoutBoxInput, Prisma.ItemUncheckedCreateWithoutBoxInput> | Prisma.ItemCreateWithoutBoxInput[] | Prisma.ItemUncheckedCreateWithoutBoxInput[]
  connectOrCreate?: Prisma.ItemCreateOrConnectWithoutBoxInput | Prisma.ItemCreateOrConnectWithoutBoxInput[]
  createMany?: Prisma.ItemCreateManyBoxInputEnvelope
  connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
}

export type ItemUncheckedCreateNestedManyWithoutBoxInput = {
  create?: Prisma.XOR<Prisma.ItemCreateWithoutBoxInput, Prisma.ItemUncheckedCreateWithoutBoxInput> | Prisma.ItemCreateWithoutBoxInput[] | Prisma.ItemUncheckedCreateWithoutBoxInput[]
  connectOrCreate?: Prisma.ItemCreateOrConnectWithoutBoxInput | Prisma.ItemCreateOrConnectWithoutBoxInput[]
  createMany?: Prisma.ItemCreateManyBoxInputEnvelope
  connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
}

export type ItemUpdateManyWithoutBoxNestedInput = {
  create?: Prisma.XOR<Prisma.ItemCreateWithoutBoxInput, Prisma.ItemUncheckedCreateWithoutBoxInput> | Prisma.ItemCreateWithoutBoxInput[] | Prisma.ItemUncheckedCreateWithoutBoxInput[]
  connectOrCreate?: Prisma.ItemCreateOrConnectWithoutBoxInput | Prisma.ItemCreateOrConnectWithoutBoxInput[]
  upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutBoxInput | Prisma.ItemUpsertWithWhereUniqueWithoutBoxInput[]
  createMany?: Prisma.ItemCreateManyBoxInputEnvelope
  set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  update?: Prisma.ItemUpdateWithWhereUniqueWithoutBoxInput | Prisma.ItemUpdateWithWhereUniqueWithoutBoxInput[]
  updateMany?: Prisma.ItemUpdateManyWithWhereWithoutBoxInput | Prisma.ItemUpdateManyWithWhereWithoutBoxInput[]
  deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[]
}

export type ItemUncheckedUpdateManyWithoutBoxNestedInput = {
  create?: Prisma.XOR<Prisma.ItemCreateWithoutBoxInput, Prisma.ItemUncheckedCreateWithoutBoxInput> | Prisma.ItemCreateWithoutBoxInput[] | Prisma.ItemUncheckedCreateWithoutBoxInput[]
  connectOrCreate?: Prisma.ItemCreateOrConnectWithoutBoxInput | Prisma.ItemCreateOrConnectWithoutBoxInput[]
  upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutBoxInput | Prisma.ItemUpsertWithWhereUniqueWithoutBoxInput[]
  createMany?: Prisma.ItemCreateManyBoxInputEnvelope
  set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[]
  update?: Prisma.ItemUpdateWithWhereUniqueWithoutBoxInput | Prisma.ItemUpdateWithWhereUniqueWithoutBoxInput[]
  updateMany?: Prisma.ItemUpdateManyWithWhereWithoutBoxInput | Prisma.ItemUpdateManyWithWhereWithoutBoxInput[]
  deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[]
}

export type ItemCreatetagsInput = {
  set: string[]
}

export type ItemUpdatetagsInput = {
  set?: string[]
  push?: string | string[]
}

export type IntFieldUpdateOperationsInput = {
  set?: number
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type ItemCreateWithoutUserInput = {
  id?: string
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  box?: Prisma.BoxCreateNestedOneWithoutItemsInput
}

export type ItemUncheckedCreateWithoutUserInput = {
  id?: string
  boxId?: string | null
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ItemCreateOrConnectWithoutUserInput = {
  where: Prisma.ItemWhereUniqueInput
  create: Prisma.XOR<Prisma.ItemCreateWithoutUserInput, Prisma.ItemUncheckedCreateWithoutUserInput>
}

export type ItemCreateManyUserInputEnvelope = {
  data: Prisma.ItemCreateManyUserInput | Prisma.ItemCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type ItemUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.ItemWhereUniqueInput
  update: Prisma.XOR<Prisma.ItemUpdateWithoutUserInput, Prisma.ItemUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.ItemCreateWithoutUserInput, Prisma.ItemUncheckedCreateWithoutUserInput>
}

export type ItemUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.ItemWhereUniqueInput
  data: Prisma.XOR<Prisma.ItemUpdateWithoutUserInput, Prisma.ItemUncheckedUpdateWithoutUserInput>
}

export type ItemUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.ItemScalarWhereInput
  data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyWithoutUserInput>
}

export type ItemScalarWhereInput = {
  AND?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[]
  OR?: Prisma.ItemScalarWhereInput[]
  NOT?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[]
  id?: Prisma.StringFilter<"Item"> | string
  createrId?: Prisma.StringFilter<"Item"> | string
  boxId?: Prisma.StringNullableFilter<"Item"> | string | null
  image?: Prisma.StringFilter<"Item"> | string
  name?: Prisma.StringFilter<"Item"> | string
  description?: Prisma.StringNullableFilter<"Item"> | string | null
  price?: Prisma.StringNullableFilter<"Item"> | string | null
  tags?: Prisma.StringNullableListFilter<"Item">
  quantity?: Prisma.IntFilter<"Item"> | number
  expiresAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Item"> | Date | string | null
}

export type ItemCreateWithoutBoxInput = {
  id?: string
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  user: Prisma.UserCreateNestedOneWithoutItemsInput
}

export type ItemUncheckedCreateWithoutBoxInput = {
  id?: string
  createrId: string
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ItemCreateOrConnectWithoutBoxInput = {
  where: Prisma.ItemWhereUniqueInput
  create: Prisma.XOR<Prisma.ItemCreateWithoutBoxInput, Prisma.ItemUncheckedCreateWithoutBoxInput>
}

export type ItemCreateManyBoxInputEnvelope = {
  data: Prisma.ItemCreateManyBoxInput | Prisma.ItemCreateManyBoxInput[]
  skipDuplicates?: boolean
}

export type ItemUpsertWithWhereUniqueWithoutBoxInput = {
  where: Prisma.ItemWhereUniqueInput
  update: Prisma.XOR<Prisma.ItemUpdateWithoutBoxInput, Prisma.ItemUncheckedUpdateWithoutBoxInput>
  create: Prisma.XOR<Prisma.ItemCreateWithoutBoxInput, Prisma.ItemUncheckedCreateWithoutBoxInput>
}

export type ItemUpdateWithWhereUniqueWithoutBoxInput = {
  where: Prisma.ItemWhereUniqueInput
  data: Prisma.XOR<Prisma.ItemUpdateWithoutBoxInput, Prisma.ItemUncheckedUpdateWithoutBoxInput>
}

export type ItemUpdateManyWithWhereWithoutBoxInput = {
  where: Prisma.ItemScalarWhereInput
  data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyWithoutBoxInput>
}

export type ItemCreateManyUserInput = {
  id?: string
  boxId?: string | null
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ItemUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  box?: Prisma.BoxUpdateOneWithoutItemsNestedInput
}

export type ItemUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  boxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ItemUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  boxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ItemCreateManyBoxInput = {
  id?: string
  createrId: string
  image: string
  name: string
  description?: string | null
  price?: string | null
  tags?: Prisma.ItemCreatetagsInput | string[]
  quantity: number
  expiresAt?: Date | string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
}

export type ItemUpdateWithoutBoxInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  user?: Prisma.UserUpdateOneRequiredWithoutItemsNestedInput
}

export type ItemUncheckedUpdateWithoutBoxInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type ItemUncheckedUpdateManyWithoutBoxInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  image?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  price?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.ItemUpdatetagsInput | string[]
  quantity?: Prisma.IntFieldUpdateOperationsInput | number
  expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type ItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  createrId?: boolean
  boxId?: boolean
  image?: boolean
  name?: boolean
  description?: boolean
  price?: boolean
  tags?: boolean
  quantity?: boolean
  expiresAt?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  box?: boolean | Prisma.Item$boxArgs<ExtArgs>
}, ExtArgs["result"]["item"]>

export type ItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  createrId?: boolean
  boxId?: boolean
  image?: boolean
  name?: boolean
  description?: boolean
  price?: boolean
  tags?: boolean
  quantity?: boolean
  expiresAt?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  box?: boolean | Prisma.Item$boxArgs<ExtArgs>
}, ExtArgs["result"]["item"]>

export type ItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  createrId?: boolean
  boxId?: boolean
  image?: boolean
  name?: boolean
  description?: boolean
  price?: boolean
  tags?: boolean
  quantity?: boolean
  expiresAt?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  box?: boolean | Prisma.Item$boxArgs<ExtArgs>
}, ExtArgs["result"]["item"]>

export type ItemSelectScalar = {
  id?: boolean
  createrId?: boolean
  boxId?: boolean
  image?: boolean
  name?: boolean
  description?: boolean
  price?: boolean
  tags?: boolean
  quantity?: boolean
  expiresAt?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
}

export type ItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createrId" | "boxId" | "image" | "name" | "description" | "price" | "tags" | "quantity" | "expiresAt" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["item"]>
export type ItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  box?: boolean | Prisma.Item$boxArgs<ExtArgs>
}
export type ItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  box?: boolean | Prisma.Item$boxArgs<ExtArgs>
}
export type ItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  box?: boolean | Prisma.Item$boxArgs<ExtArgs>
}

export type $ItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Item"
  objects: {
    user: Prisma.$UserPayload<ExtArgs>
    box: Prisma.$BoxPayload<ExtArgs> | null
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    createrId: string
    boxId: string | null
    image: string
    name: string
    description: string | null
    price: string | null
    tags: string[]
    quantity: number
    expiresAt: Date
    createdAt: Date
    updatedAt: Date
    deletedAt: Date | null
  }, ExtArgs["result"]["item"]>
  composites: {}
}

export type ItemGetPayload<S extends boolean | null | undefined | ItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ItemPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Item.
 * 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__ItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  box<T extends Prisma.Item$boxArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Item$boxArgs<ExtArgs>>): Prisma.Prisma__BoxClient<runtime.Types.Result.GetResult<Prisma.$BoxPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the Item model
 */
export interface ItemFieldRefs {
  readonly id: Prisma.FieldRef<"Item", 'String'>
  readonly createrId: Prisma.FieldRef<"Item", 'String'>
  readonly boxId: Prisma.FieldRef<"Item", 'String'>
  readonly image: Prisma.FieldRef<"Item", 'String'>
  readonly name: Prisma.FieldRef<"Item", 'String'>
  readonly description: Prisma.FieldRef<"Item", 'String'>
  readonly price: Prisma.FieldRef<"Item", 'String'>
  readonly tags: Prisma.FieldRef<"Item", 'String[]'>
  readonly quantity: Prisma.FieldRef<"Item", 'Int'>
  readonly expiresAt: Prisma.FieldRef<"Item", 'DateTime'>
  readonly createdAt: Prisma.FieldRef<"Item", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Item", 'DateTime'>
  readonly deletedAt: Prisma.FieldRef<"Item", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Item findUnique
 */
export type ItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemInclude<ExtArgs> | null
  /**
   * Filter, which Item to fetch.
   */
  where: Prisma.ItemWhereUniqueInput
}

/**
 * Item findUniqueOrThrow
 */
export type ItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemInclude<ExtArgs> | null
  /**
   * Filter, which Item to fetch.
   */
  where: Prisma.ItemWhereUniqueInput
}

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

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

/**
 * Item findMany
 */
export type ItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemInclude<ExtArgs> | null
  /**
   * Filter, which Items to fetch.
   */
  where?: Prisma.ItemWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Items to fetch.
   */
  orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing Items.
   */
  cursor?: Prisma.ItemWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Items 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` Items.
   */
  skip?: number
  distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[]
}

/**
 * Item create
 */
export type ItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemInclude<ExtArgs> | null
  /**
   * The data needed to create a Item.
   */
  data: Prisma.XOR<Prisma.ItemCreateInput, Prisma.ItemUncheckedCreateInput>
}

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

/**
 * Item createManyAndReturn
 */
export type ItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * The data used to create many Items.
   */
  data: Prisma.ItemCreateManyInput | Prisma.ItemCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Item update
 */
export type ItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemInclude<ExtArgs> | null
  /**
   * The data needed to update a Item.
   */
  data: Prisma.XOR<Prisma.ItemUpdateInput, Prisma.ItemUncheckedUpdateInput>
  /**
   * Choose, which Item to update.
   */
  where: Prisma.ItemWhereUniqueInput
}

/**
 * Item updateMany
 */
export type ItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Items.
   */
  data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyInput>
  /**
   * Filter which Items to update
   */
  where?: Prisma.ItemWhereInput
  /**
   * Limit how many Items to update.
   */
  limit?: number
}

/**
 * Item updateManyAndReturn
 */
export type ItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * The data used to update Items.
   */
  data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyInput>
  /**
   * Filter which Items to update
   */
  where?: Prisma.ItemWhereInput
  /**
   * Limit how many Items to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Item upsert
 */
export type ItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemInclude<ExtArgs> | null
  /**
   * The filter to search for the Item to update in case it exists.
   */
  where: Prisma.ItemWhereUniqueInput
  /**
   * In case the Item found by the `where` argument doesn't exist, create a new Item with this data.
   */
  create: Prisma.XOR<Prisma.ItemCreateInput, Prisma.ItemUncheckedCreateInput>
  /**
   * In case the Item was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ItemUpdateInput, Prisma.ItemUncheckedUpdateInput>
}

/**
 * Item delete
 */
export type ItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Item
   */
  select?: Prisma.ItemSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Item
   */
  omit?: Prisma.ItemOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ItemInclude<ExtArgs> | null
  /**
   * Filter which Item to delete.
   */
  where: Prisma.ItemWhereUniqueInput
}

/**
 * Item deleteMany
 */
export type ItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Items to delete
   */
  where?: Prisma.ItemWhereInput
  /**
   * Limit how many Items to delete.
   */
  limit?: number
}

/**
 * Item.box
 */
export type Item$boxArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Box
   */
  select?: Prisma.BoxSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Box
   */
  omit?: Prisma.BoxOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoxInclude<ExtArgs> | null
  where?: Prisma.BoxWhereInput
}

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