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

export type AggregateBox = {
  _count: BoxCountAggregateOutputType | null
  _min: BoxMinAggregateOutputType | null
  _max: BoxMaxAggregateOutputType | null
}

export type BoxMinAggregateOutputType = {
  id: string | null
  name: string | null
  description: string | null
  color: string | null
  houseId: string | null
  createrId: string | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
  isPrivate: boolean | null
}

export type BoxMaxAggregateOutputType = {
  id: string | null
  name: string | null
  description: string | null
  color: string | null
  houseId: string | null
  createrId: string | null
  createdAt: Date | null
  updatedAt: Date | null
  deletedAt: Date | null
  isPrivate: boolean | null
}

export type BoxCountAggregateOutputType = {
  id: number
  name: number
  description: number
  tags: number
  color: number
  houseId: number
  createrId: number
  createdAt: number
  updatedAt: number
  deletedAt: number
  isPrivate: number
  _all: number
}


export type BoxMinAggregateInputType = {
  id?: true
  name?: true
  description?: true
  color?: true
  houseId?: true
  createrId?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
  isPrivate?: true
}

export type BoxMaxAggregateInputType = {
  id?: true
  name?: true
  description?: true
  color?: true
  houseId?: true
  createrId?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
  isPrivate?: true
}

export type BoxCountAggregateInputType = {
  id?: true
  name?: true
  description?: true
  tags?: true
  color?: true
  houseId?: true
  createrId?: true
  createdAt?: true
  updatedAt?: true
  deletedAt?: true
  isPrivate?: true
  _all?: true
}

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

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




export type BoxGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.BoxWhereInput
  orderBy?: Prisma.BoxOrderByWithAggregationInput | Prisma.BoxOrderByWithAggregationInput[]
  by: Prisma.BoxScalarFieldEnum[] | Prisma.BoxScalarFieldEnum
  having?: Prisma.BoxScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: BoxCountAggregateInputType | true
  _min?: BoxMinAggregateInputType
  _max?: BoxMaxAggregateInputType
}

export type BoxGroupByOutputType = {
  id: string
  name: string
  description: string | null
  tags: string[]
  color: string | null
  houseId: string | null
  createrId: string
  createdAt: Date
  updatedAt: Date
  deletedAt: Date | null
  isPrivate: boolean
  _count: BoxCountAggregateOutputType | null
  _min: BoxMinAggregateOutputType | null
  _max: BoxMaxAggregateOutputType | null
}

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



export type BoxWhereInput = {
  AND?: Prisma.BoxWhereInput | Prisma.BoxWhereInput[]
  OR?: Prisma.BoxWhereInput[]
  NOT?: Prisma.BoxWhereInput | Prisma.BoxWhereInput[]
  id?: Prisma.StringFilter<"Box"> | string
  name?: Prisma.StringFilter<"Box"> | string
  description?: Prisma.StringNullableFilter<"Box"> | string | null
  tags?: Prisma.StringNullableListFilter<"Box">
  color?: Prisma.StringNullableFilter<"Box"> | string | null
  houseId?: Prisma.StringNullableFilter<"Box"> | string | null
  createrId?: Prisma.StringFilter<"Box"> | string
  createdAt?: Prisma.DateTimeFilter<"Box"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Box"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Box"> | Date | string | null
  isPrivate?: Prisma.BoolFilter<"Box"> | boolean
  items?: Prisma.ItemListRelationFilter
  house?: Prisma.XOR<Prisma.HouseNullableScalarRelationFilter, Prisma.HouseWhereInput> | null
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}

export type BoxOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  tags?: Prisma.SortOrder
  color?: Prisma.SortOrderInput | Prisma.SortOrder
  houseId?: Prisma.SortOrderInput | Prisma.SortOrder
  createrId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  isPrivate?: Prisma.SortOrder
  items?: Prisma.ItemOrderByRelationAggregateInput
  house?: Prisma.HouseOrderByWithRelationInput
  user?: Prisma.UserOrderByWithRelationInput
}

export type BoxWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.BoxWhereInput | Prisma.BoxWhereInput[]
  OR?: Prisma.BoxWhereInput[]
  NOT?: Prisma.BoxWhereInput | Prisma.BoxWhereInput[]
  name?: Prisma.StringFilter<"Box"> | string
  description?: Prisma.StringNullableFilter<"Box"> | string | null
  tags?: Prisma.StringNullableListFilter<"Box">
  color?: Prisma.StringNullableFilter<"Box"> | string | null
  houseId?: Prisma.StringNullableFilter<"Box"> | string | null
  createrId?: Prisma.StringFilter<"Box"> | string
  createdAt?: Prisma.DateTimeFilter<"Box"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Box"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Box"> | Date | string | null
  isPrivate?: Prisma.BoolFilter<"Box"> | boolean
  items?: Prisma.ItemListRelationFilter
  house?: Prisma.XOR<Prisma.HouseNullableScalarRelationFilter, Prisma.HouseWhereInput> | null
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id">

export type BoxOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  tags?: Prisma.SortOrder
  color?: Prisma.SortOrderInput | Prisma.SortOrder
  houseId?: Prisma.SortOrderInput | Prisma.SortOrder
  createrId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  isPrivate?: Prisma.SortOrder
  _count?: Prisma.BoxCountOrderByAggregateInput
  _max?: Prisma.BoxMaxOrderByAggregateInput
  _min?: Prisma.BoxMinOrderByAggregateInput
}

export type BoxScalarWhereWithAggregatesInput = {
  AND?: Prisma.BoxScalarWhereWithAggregatesInput | Prisma.BoxScalarWhereWithAggregatesInput[]
  OR?: Prisma.BoxScalarWhereWithAggregatesInput[]
  NOT?: Prisma.BoxScalarWhereWithAggregatesInput | Prisma.BoxScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"Box"> | string
  name?: Prisma.StringWithAggregatesFilter<"Box"> | string
  description?: Prisma.StringNullableWithAggregatesFilter<"Box"> | string | null
  tags?: Prisma.StringNullableListFilter<"Box">
  color?: Prisma.StringNullableWithAggregatesFilter<"Box"> | string | null
  houseId?: Prisma.StringNullableWithAggregatesFilter<"Box"> | string | null
  createrId?: Prisma.StringWithAggregatesFilter<"Box"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Box"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Box"> | Date | string
  deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Box"> | Date | string | null
  isPrivate?: Prisma.BoolWithAggregatesFilter<"Box"> | boolean
}

export type BoxCreateInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
  items?: Prisma.ItemCreateNestedManyWithoutBoxInput
  house?: Prisma.HouseCreateNestedOneWithoutBoxesInput
  user: Prisma.UserCreateNestedOneWithoutBoxesInput
}

export type BoxUncheckedCreateInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  houseId?: string | null
  createrId: string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
  items?: Prisma.ItemUncheckedCreateNestedManyWithoutBoxInput
}

export type BoxUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
  items?: Prisma.ItemUpdateManyWithoutBoxNestedInput
  house?: Prisma.HouseUpdateOneWithoutBoxesNestedInput
  user?: Prisma.UserUpdateOneRequiredWithoutBoxesNestedInput
}

export type BoxUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  houseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
  items?: Prisma.ItemUncheckedUpdateManyWithoutBoxNestedInput
}

export type BoxCreateManyInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  houseId?: string | null
  createrId: string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
}

export type BoxUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type BoxUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  houseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type BoxListRelationFilter = {
  every?: Prisma.BoxWhereInput
  some?: Prisma.BoxWhereInput
  none?: Prisma.BoxWhereInput
}

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

export type StringNullableListFilter<$PrismaModel = never> = {
  equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
  has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
  hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
  hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
  isEmpty?: boolean
}

export type BoxCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  tags?: Prisma.SortOrder
  color?: Prisma.SortOrder
  houseId?: Prisma.SortOrder
  createrId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
  isPrivate?: Prisma.SortOrder
}

export type BoxMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  color?: Prisma.SortOrder
  houseId?: Prisma.SortOrder
  createrId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
  isPrivate?: Prisma.SortOrder
}

export type BoxMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  color?: Prisma.SortOrder
  houseId?: Prisma.SortOrder
  createrId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  deletedAt?: Prisma.SortOrder
  isPrivate?: Prisma.SortOrder
}

export type BoxNullableScalarRelationFilter = {
  is?: Prisma.BoxWhereInput | null
  isNot?: Prisma.BoxWhereInput | null
}

export type BoxCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutUserInput, Prisma.BoxUncheckedCreateWithoutUserInput> | Prisma.BoxCreateWithoutUserInput[] | Prisma.BoxUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutUserInput | Prisma.BoxCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.BoxCreateManyUserInputEnvelope
  connect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
}

export type BoxUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutUserInput, Prisma.BoxUncheckedCreateWithoutUserInput> | Prisma.BoxCreateWithoutUserInput[] | Prisma.BoxUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutUserInput | Prisma.BoxCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.BoxCreateManyUserInputEnvelope
  connect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
}

export type BoxUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutUserInput, Prisma.BoxUncheckedCreateWithoutUserInput> | Prisma.BoxCreateWithoutUserInput[] | Prisma.BoxUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutUserInput | Prisma.BoxCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.BoxUpsertWithWhereUniqueWithoutUserInput | Prisma.BoxUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.BoxCreateManyUserInputEnvelope
  set?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  disconnect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  delete?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  connect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  update?: Prisma.BoxUpdateWithWhereUniqueWithoutUserInput | Prisma.BoxUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.BoxUpdateManyWithWhereWithoutUserInput | Prisma.BoxUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.BoxScalarWhereInput | Prisma.BoxScalarWhereInput[]
}

export type BoxUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutUserInput, Prisma.BoxUncheckedCreateWithoutUserInput> | Prisma.BoxCreateWithoutUserInput[] | Prisma.BoxUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutUserInput | Prisma.BoxCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.BoxUpsertWithWhereUniqueWithoutUserInput | Prisma.BoxUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.BoxCreateManyUserInputEnvelope
  set?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  disconnect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  delete?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  connect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  update?: Prisma.BoxUpdateWithWhereUniqueWithoutUserInput | Prisma.BoxUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.BoxUpdateManyWithWhereWithoutUserInput | Prisma.BoxUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.BoxScalarWhereInput | Prisma.BoxScalarWhereInput[]
}

export type BoxCreateNestedManyWithoutHouseInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutHouseInput, Prisma.BoxUncheckedCreateWithoutHouseInput> | Prisma.BoxCreateWithoutHouseInput[] | Prisma.BoxUncheckedCreateWithoutHouseInput[]
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutHouseInput | Prisma.BoxCreateOrConnectWithoutHouseInput[]
  createMany?: Prisma.BoxCreateManyHouseInputEnvelope
  connect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
}

export type BoxUncheckedCreateNestedManyWithoutHouseInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutHouseInput, Prisma.BoxUncheckedCreateWithoutHouseInput> | Prisma.BoxCreateWithoutHouseInput[] | Prisma.BoxUncheckedCreateWithoutHouseInput[]
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutHouseInput | Prisma.BoxCreateOrConnectWithoutHouseInput[]
  createMany?: Prisma.BoxCreateManyHouseInputEnvelope
  connect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
}

export type BoxUpdateManyWithoutHouseNestedInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutHouseInput, Prisma.BoxUncheckedCreateWithoutHouseInput> | Prisma.BoxCreateWithoutHouseInput[] | Prisma.BoxUncheckedCreateWithoutHouseInput[]
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutHouseInput | Prisma.BoxCreateOrConnectWithoutHouseInput[]
  upsert?: Prisma.BoxUpsertWithWhereUniqueWithoutHouseInput | Prisma.BoxUpsertWithWhereUniqueWithoutHouseInput[]
  createMany?: Prisma.BoxCreateManyHouseInputEnvelope
  set?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  disconnect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  delete?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  connect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  update?: Prisma.BoxUpdateWithWhereUniqueWithoutHouseInput | Prisma.BoxUpdateWithWhereUniqueWithoutHouseInput[]
  updateMany?: Prisma.BoxUpdateManyWithWhereWithoutHouseInput | Prisma.BoxUpdateManyWithWhereWithoutHouseInput[]
  deleteMany?: Prisma.BoxScalarWhereInput | Prisma.BoxScalarWhereInput[]
}

export type BoxUncheckedUpdateManyWithoutHouseNestedInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutHouseInput, Prisma.BoxUncheckedCreateWithoutHouseInput> | Prisma.BoxCreateWithoutHouseInput[] | Prisma.BoxUncheckedCreateWithoutHouseInput[]
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutHouseInput | Prisma.BoxCreateOrConnectWithoutHouseInput[]
  upsert?: Prisma.BoxUpsertWithWhereUniqueWithoutHouseInput | Prisma.BoxUpsertWithWhereUniqueWithoutHouseInput[]
  createMany?: Prisma.BoxCreateManyHouseInputEnvelope
  set?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  disconnect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  delete?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  connect?: Prisma.BoxWhereUniqueInput | Prisma.BoxWhereUniqueInput[]
  update?: Prisma.BoxUpdateWithWhereUniqueWithoutHouseInput | Prisma.BoxUpdateWithWhereUniqueWithoutHouseInput[]
  updateMany?: Prisma.BoxUpdateManyWithWhereWithoutHouseInput | Prisma.BoxUpdateManyWithWhereWithoutHouseInput[]
  deleteMany?: Prisma.BoxScalarWhereInput | Prisma.BoxScalarWhereInput[]
}

export type BoxCreatetagsInput = {
  set: string[]
}

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

export type BoxCreateNestedOneWithoutItemsInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutItemsInput, Prisma.BoxUncheckedCreateWithoutItemsInput>
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutItemsInput
  connect?: Prisma.BoxWhereUniqueInput
}

export type BoxUpdateOneWithoutItemsNestedInput = {
  create?: Prisma.XOR<Prisma.BoxCreateWithoutItemsInput, Prisma.BoxUncheckedCreateWithoutItemsInput>
  connectOrCreate?: Prisma.BoxCreateOrConnectWithoutItemsInput
  upsert?: Prisma.BoxUpsertWithoutItemsInput
  disconnect?: Prisma.BoxWhereInput | boolean
  delete?: Prisma.BoxWhereInput | boolean
  connect?: Prisma.BoxWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.BoxUpdateToOneWithWhereWithoutItemsInput, Prisma.BoxUpdateWithoutItemsInput>, Prisma.BoxUncheckedUpdateWithoutItemsInput>
}

export type BoxCreateWithoutUserInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
  items?: Prisma.ItemCreateNestedManyWithoutBoxInput
  house?: Prisma.HouseCreateNestedOneWithoutBoxesInput
}

export type BoxUncheckedCreateWithoutUserInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  houseId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
  items?: Prisma.ItemUncheckedCreateNestedManyWithoutBoxInput
}

export type BoxCreateOrConnectWithoutUserInput = {
  where: Prisma.BoxWhereUniqueInput
  create: Prisma.XOR<Prisma.BoxCreateWithoutUserInput, Prisma.BoxUncheckedCreateWithoutUserInput>
}

export type BoxCreateManyUserInputEnvelope = {
  data: Prisma.BoxCreateManyUserInput | Prisma.BoxCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type BoxUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.BoxWhereUniqueInput
  update: Prisma.XOR<Prisma.BoxUpdateWithoutUserInput, Prisma.BoxUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.BoxCreateWithoutUserInput, Prisma.BoxUncheckedCreateWithoutUserInput>
}

export type BoxUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.BoxWhereUniqueInput
  data: Prisma.XOR<Prisma.BoxUpdateWithoutUserInput, Prisma.BoxUncheckedUpdateWithoutUserInput>
}

export type BoxUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.BoxScalarWhereInput
  data: Prisma.XOR<Prisma.BoxUpdateManyMutationInput, Prisma.BoxUncheckedUpdateManyWithoutUserInput>
}

export type BoxScalarWhereInput = {
  AND?: Prisma.BoxScalarWhereInput | Prisma.BoxScalarWhereInput[]
  OR?: Prisma.BoxScalarWhereInput[]
  NOT?: Prisma.BoxScalarWhereInput | Prisma.BoxScalarWhereInput[]
  id?: Prisma.StringFilter<"Box"> | string
  name?: Prisma.StringFilter<"Box"> | string
  description?: Prisma.StringNullableFilter<"Box"> | string | null
  tags?: Prisma.StringNullableListFilter<"Box">
  color?: Prisma.StringNullableFilter<"Box"> | string | null
  houseId?: Prisma.StringNullableFilter<"Box"> | string | null
  createrId?: Prisma.StringFilter<"Box"> | string
  createdAt?: Prisma.DateTimeFilter<"Box"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Box"> | Date | string
  deletedAt?: Prisma.DateTimeNullableFilter<"Box"> | Date | string | null
  isPrivate?: Prisma.BoolFilter<"Box"> | boolean
}

export type BoxCreateWithoutHouseInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
  items?: Prisma.ItemCreateNestedManyWithoutBoxInput
  user: Prisma.UserCreateNestedOneWithoutBoxesInput
}

export type BoxUncheckedCreateWithoutHouseInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  createrId: string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
  items?: Prisma.ItemUncheckedCreateNestedManyWithoutBoxInput
}

export type BoxCreateOrConnectWithoutHouseInput = {
  where: Prisma.BoxWhereUniqueInput
  create: Prisma.XOR<Prisma.BoxCreateWithoutHouseInput, Prisma.BoxUncheckedCreateWithoutHouseInput>
}

export type BoxCreateManyHouseInputEnvelope = {
  data: Prisma.BoxCreateManyHouseInput | Prisma.BoxCreateManyHouseInput[]
  skipDuplicates?: boolean
}

export type BoxUpsertWithWhereUniqueWithoutHouseInput = {
  where: Prisma.BoxWhereUniqueInput
  update: Prisma.XOR<Prisma.BoxUpdateWithoutHouseInput, Prisma.BoxUncheckedUpdateWithoutHouseInput>
  create: Prisma.XOR<Prisma.BoxCreateWithoutHouseInput, Prisma.BoxUncheckedCreateWithoutHouseInput>
}

export type BoxUpdateWithWhereUniqueWithoutHouseInput = {
  where: Prisma.BoxWhereUniqueInput
  data: Prisma.XOR<Prisma.BoxUpdateWithoutHouseInput, Prisma.BoxUncheckedUpdateWithoutHouseInput>
}

export type BoxUpdateManyWithWhereWithoutHouseInput = {
  where: Prisma.BoxScalarWhereInput
  data: Prisma.XOR<Prisma.BoxUpdateManyMutationInput, Prisma.BoxUncheckedUpdateManyWithoutHouseInput>
}

export type BoxCreateWithoutItemsInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
  house?: Prisma.HouseCreateNestedOneWithoutBoxesInput
  user: Prisma.UserCreateNestedOneWithoutBoxesInput
}

export type BoxUncheckedCreateWithoutItemsInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  houseId?: string | null
  createrId: string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
}

export type BoxCreateOrConnectWithoutItemsInput = {
  where: Prisma.BoxWhereUniqueInput
  create: Prisma.XOR<Prisma.BoxCreateWithoutItemsInput, Prisma.BoxUncheckedCreateWithoutItemsInput>
}

export type BoxUpsertWithoutItemsInput = {
  update: Prisma.XOR<Prisma.BoxUpdateWithoutItemsInput, Prisma.BoxUncheckedUpdateWithoutItemsInput>
  create: Prisma.XOR<Prisma.BoxCreateWithoutItemsInput, Prisma.BoxUncheckedCreateWithoutItemsInput>
  where?: Prisma.BoxWhereInput
}

export type BoxUpdateToOneWithWhereWithoutItemsInput = {
  where?: Prisma.BoxWhereInput
  data: Prisma.XOR<Prisma.BoxUpdateWithoutItemsInput, Prisma.BoxUncheckedUpdateWithoutItemsInput>
}

export type BoxUpdateWithoutItemsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
  house?: Prisma.HouseUpdateOneWithoutBoxesNestedInput
  user?: Prisma.UserUpdateOneRequiredWithoutBoxesNestedInput
}

export type BoxUncheckedUpdateWithoutItemsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  houseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type BoxCreateManyUserInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  houseId?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
}

export type BoxUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
  items?: Prisma.ItemUpdateManyWithoutBoxNestedInput
  house?: Prisma.HouseUpdateOneWithoutBoxesNestedInput
}

export type BoxUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  houseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
  items?: Prisma.ItemUncheckedUpdateManyWithoutBoxNestedInput
}

export type BoxUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  houseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
}

export type BoxCreateManyHouseInput = {
  id?: string
  name: string
  description?: string | null
  tags?: Prisma.BoxCreatetagsInput | string[]
  color?: string | null
  createrId: string
  createdAt?: Date | string
  updatedAt?: Date | string
  deletedAt?: Date | string | null
  isPrivate?: boolean
}

export type BoxUpdateWithoutHouseInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
  items?: Prisma.ItemUpdateManyWithoutBoxNestedInput
  user?: Prisma.UserUpdateOneRequiredWithoutBoxesNestedInput
}

export type BoxUncheckedUpdateWithoutHouseInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
  items?: Prisma.ItemUncheckedUpdateManyWithoutBoxNestedInput
}

export type BoxUncheckedUpdateManyWithoutHouseInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  tags?: Prisma.BoxUpdatetagsInput | string[]
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createrId?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
}


/**
 * Count Type BoxCountOutputType
 */

export type BoxCountOutputType = {
  items: number
}

export type BoxCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  items?: boolean | BoxCountOutputTypeCountItemsArgs
}

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

/**
 * BoxCountOutputType without action
 */
export type BoxCountOutputTypeCountItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ItemWhereInput
}


export type BoxSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  description?: boolean
  tags?: boolean
  color?: boolean
  houseId?: boolean
  createrId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  isPrivate?: boolean
  items?: boolean | Prisma.Box$itemsArgs<ExtArgs>
  house?: boolean | Prisma.Box$houseArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  _count?: boolean | Prisma.BoxCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["box"]>

export type BoxSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  description?: boolean
  tags?: boolean
  color?: boolean
  houseId?: boolean
  createrId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  isPrivate?: boolean
  house?: boolean | Prisma.Box$houseArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["box"]>

export type BoxSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  description?: boolean
  tags?: boolean
  color?: boolean
  houseId?: boolean
  createrId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  isPrivate?: boolean
  house?: boolean | Prisma.Box$houseArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}, ExtArgs["result"]["box"]>

export type BoxSelectScalar = {
  id?: boolean
  name?: boolean
  description?: boolean
  tags?: boolean
  color?: boolean
  houseId?: boolean
  createrId?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  deletedAt?: boolean
  isPrivate?: boolean
}

export type BoxOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "tags" | "color" | "houseId" | "createrId" | "createdAt" | "updatedAt" | "deletedAt" | "isPrivate", ExtArgs["result"]["box"]>
export type BoxInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  items?: boolean | Prisma.Box$itemsArgs<ExtArgs>
  house?: boolean | Prisma.Box$houseArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
  _count?: boolean | Prisma.BoxCountOutputTypeDefaultArgs<ExtArgs>
}
export type BoxIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  house?: boolean | Prisma.Box$houseArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}
export type BoxIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  house?: boolean | Prisma.Box$houseArgs<ExtArgs>
  user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
}

export type $BoxPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Box"
  objects: {
    items: Prisma.$ItemPayload<ExtArgs>[]
    house: Prisma.$HousePayload<ExtArgs> | null
    user: Prisma.$UserPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    name: string
    description: string | null
    tags: string[]
    color: string | null
    houseId: string | null
    createrId: string
    createdAt: Date
    updatedAt: Date
    deletedAt: Date | null
    isPrivate: boolean
  }, ExtArgs["result"]["box"]>
  composites: {}
}

export type BoxGetPayload<S extends boolean | null | undefined | BoxDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BoxPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Box.
 * 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__BoxClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  items<T extends Prisma.Box$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Box$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  house<T extends Prisma.Box$houseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Box$houseArgs<ExtArgs>>): Prisma.Prisma__HouseClient<runtime.Types.Result.GetResult<Prisma.$HousePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  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>
  /**
   * 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 Box model
 */
export interface BoxFieldRefs {
  readonly id: Prisma.FieldRef<"Box", 'String'>
  readonly name: Prisma.FieldRef<"Box", 'String'>
  readonly description: Prisma.FieldRef<"Box", 'String'>
  readonly tags: Prisma.FieldRef<"Box", 'String[]'>
  readonly color: Prisma.FieldRef<"Box", 'String'>
  readonly houseId: Prisma.FieldRef<"Box", 'String'>
  readonly createrId: Prisma.FieldRef<"Box", 'String'>
  readonly createdAt: Prisma.FieldRef<"Box", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Box", 'DateTime'>
  readonly deletedAt: Prisma.FieldRef<"Box", 'DateTime'>
  readonly isPrivate: Prisma.FieldRef<"Box", 'Boolean'>
}
    

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

/**
 * Box findUniqueOrThrow
 */
export type BoxFindUniqueOrThrowArgs<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
  /**
   * Filter, which Box to fetch.
   */
  where: Prisma.BoxWhereUniqueInput
}

/**
 * Box findFirst
 */
export type BoxFindFirstArgs<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
  /**
   * Filter, which Box to fetch.
   */
  where?: Prisma.BoxWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Boxes to fetch.
   */
  orderBy?: Prisma.BoxOrderByWithRelationInput | Prisma.BoxOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for Boxes.
   */
  cursor?: Prisma.BoxWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Boxes 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` Boxes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Boxes.
   */
  distinct?: Prisma.BoxScalarFieldEnum | Prisma.BoxScalarFieldEnum[]
}

/**
 * Box findFirstOrThrow
 */
export type BoxFindFirstOrThrowArgs<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
  /**
   * Filter, which Box to fetch.
   */
  where?: Prisma.BoxWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Boxes to fetch.
   */
  orderBy?: Prisma.BoxOrderByWithRelationInput | Prisma.BoxOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for Boxes.
   */
  cursor?: Prisma.BoxWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Boxes 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` Boxes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of Boxes.
   */
  distinct?: Prisma.BoxScalarFieldEnum | Prisma.BoxScalarFieldEnum[]
}

/**
 * Box findMany
 */
export type BoxFindManyArgs<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
  /**
   * Filter, which Boxes to fetch.
   */
  where?: Prisma.BoxWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Boxes to fetch.
   */
  orderBy?: Prisma.BoxOrderByWithRelationInput | Prisma.BoxOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing Boxes.
   */
  cursor?: Prisma.BoxWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Boxes 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` Boxes.
   */
  skip?: number
  distinct?: Prisma.BoxScalarFieldEnum | Prisma.BoxScalarFieldEnum[]
}

/**
 * Box create
 */
export type BoxCreateArgs<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
  /**
   * The data needed to create a Box.
   */
  data: Prisma.XOR<Prisma.BoxCreateInput, Prisma.BoxUncheckedCreateInput>
}

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

/**
 * Box createManyAndReturn
 */
export type BoxCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Box
   */
  select?: Prisma.BoxSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Box
   */
  omit?: Prisma.BoxOmit<ExtArgs> | null
  /**
   * The data used to create many Boxes.
   */
  data: Prisma.BoxCreateManyInput | Prisma.BoxCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoxIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Box update
 */
export type BoxUpdateArgs<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
  /**
   * The data needed to update a Box.
   */
  data: Prisma.XOR<Prisma.BoxUpdateInput, Prisma.BoxUncheckedUpdateInput>
  /**
   * Choose, which Box to update.
   */
  where: Prisma.BoxWhereUniqueInput
}

/**
 * Box updateMany
 */
export type BoxUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Boxes.
   */
  data: Prisma.XOR<Prisma.BoxUpdateManyMutationInput, Prisma.BoxUncheckedUpdateManyInput>
  /**
   * Filter which Boxes to update
   */
  where?: Prisma.BoxWhereInput
  /**
   * Limit how many Boxes to update.
   */
  limit?: number
}

/**
 * Box updateManyAndReturn
 */
export type BoxUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Box
   */
  select?: Prisma.BoxSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Box
   */
  omit?: Prisma.BoxOmit<ExtArgs> | null
  /**
   * The data used to update Boxes.
   */
  data: Prisma.XOR<Prisma.BoxUpdateManyMutationInput, Prisma.BoxUncheckedUpdateManyInput>
  /**
   * Filter which Boxes to update
   */
  where?: Prisma.BoxWhereInput
  /**
   * Limit how many Boxes to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BoxIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Box upsert
 */
export type BoxUpsertArgs<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
  /**
   * The filter to search for the Box to update in case it exists.
   */
  where: Prisma.BoxWhereUniqueInput
  /**
   * In case the Box found by the `where` argument doesn't exist, create a new Box with this data.
   */
  create: Prisma.XOR<Prisma.BoxCreateInput, Prisma.BoxUncheckedCreateInput>
  /**
   * In case the Box was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.BoxUpdateInput, Prisma.BoxUncheckedUpdateInput>
}

/**
 * Box delete
 */
export type BoxDeleteArgs<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
  /**
   * Filter which Box to delete.
   */
  where: Prisma.BoxWhereUniqueInput
}

/**
 * Box deleteMany
 */
export type BoxDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Boxes to delete
   */
  where?: Prisma.BoxWhereInput
  /**
   * Limit how many Boxes to delete.
   */
  limit?: number
}

/**
 * Box.items
 */
export type Box$itemsArgs<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
  where?: Prisma.ItemWhereInput
  orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[]
  cursor?: Prisma.ItemWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[]
}

/**
 * Box.house
 */
export type Box$houseArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the House
   */
  select?: Prisma.HouseSelect<ExtArgs> | null
  /**
   * Omit specific fields from the House
   */
  omit?: Prisma.HouseOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.HouseInclude<ExtArgs> | null
  where?: Prisma.HouseWhereInput
}

/**
 * Box without action
 */
export type BoxDefaultArgs<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
}
