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

export type AggregateHouse = {
  _count: HouseCountAggregateOutputType | null
  _min: HouseMinAggregateOutputType | null
  _max: HouseMaxAggregateOutputType | null
}

export type HouseMinAggregateOutputType = {
  id: string | null
  name: string | null
  slug: string | null
  logo: string | null
  createdAt: Date | null
  metadata: string | null
  color: string | null
}

export type HouseMaxAggregateOutputType = {
  id: string | null
  name: string | null
  slug: string | null
  logo: string | null
  createdAt: Date | null
  metadata: string | null
  color: string | null
}

export type HouseCountAggregateOutputType = {
  id: number
  name: number
  slug: number
  logo: number
  createdAt: number
  metadata: number
  color: number
  _all: number
}


export type HouseMinAggregateInputType = {
  id?: true
  name?: true
  slug?: true
  logo?: true
  createdAt?: true
  metadata?: true
  color?: true
}

export type HouseMaxAggregateInputType = {
  id?: true
  name?: true
  slug?: true
  logo?: true
  createdAt?: true
  metadata?: true
  color?: true
}

export type HouseCountAggregateInputType = {
  id?: true
  name?: true
  slug?: true
  logo?: true
  createdAt?: true
  metadata?: true
  color?: true
  _all?: true
}

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

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




export type HouseGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.HouseWhereInput
  orderBy?: Prisma.HouseOrderByWithAggregationInput | Prisma.HouseOrderByWithAggregationInput[]
  by: Prisma.HouseScalarFieldEnum[] | Prisma.HouseScalarFieldEnum
  having?: Prisma.HouseScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: HouseCountAggregateInputType | true
  _min?: HouseMinAggregateInputType
  _max?: HouseMaxAggregateInputType
}

export type HouseGroupByOutputType = {
  id: string
  name: string
  slug: string
  logo: string | null
  createdAt: Date
  metadata: string | null
  color: string | null
  _count: HouseCountAggregateOutputType | null
  _min: HouseMinAggregateOutputType | null
  _max: HouseMaxAggregateOutputType | null
}

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



export type HouseWhereInput = {
  AND?: Prisma.HouseWhereInput | Prisma.HouseWhereInput[]
  OR?: Prisma.HouseWhereInput[]
  NOT?: Prisma.HouseWhereInput | Prisma.HouseWhereInput[]
  id?: Prisma.StringFilter<"House"> | string
  name?: Prisma.StringFilter<"House"> | string
  slug?: Prisma.StringFilter<"House"> | string
  logo?: Prisma.StringNullableFilter<"House"> | string | null
  createdAt?: Prisma.DateTimeFilter<"House"> | Date | string
  metadata?: Prisma.StringNullableFilter<"House"> | string | null
  color?: Prisma.StringNullableFilter<"House"> | string | null
  members?: Prisma.MemberListRelationFilter
  invitations?: Prisma.InvitationListRelationFilter
  boxes?: Prisma.BoxListRelationFilter
}

export type HouseOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  logo?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
  color?: Prisma.SortOrderInput | Prisma.SortOrder
  members?: Prisma.MemberOrderByRelationAggregateInput
  invitations?: Prisma.InvitationOrderByRelationAggregateInput
  boxes?: Prisma.BoxOrderByRelationAggregateInput
}

export type HouseWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  slug?: string
  AND?: Prisma.HouseWhereInput | Prisma.HouseWhereInput[]
  OR?: Prisma.HouseWhereInput[]
  NOT?: Prisma.HouseWhereInput | Prisma.HouseWhereInput[]
  name?: Prisma.StringFilter<"House"> | string
  logo?: Prisma.StringNullableFilter<"House"> | string | null
  createdAt?: Prisma.DateTimeFilter<"House"> | Date | string
  metadata?: Prisma.StringNullableFilter<"House"> | string | null
  color?: Prisma.StringNullableFilter<"House"> | string | null
  members?: Prisma.MemberListRelationFilter
  invitations?: Prisma.InvitationListRelationFilter
  boxes?: Prisma.BoxListRelationFilter
}, "id" | "slug">

export type HouseOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  logo?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
  color?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.HouseCountOrderByAggregateInput
  _max?: Prisma.HouseMaxOrderByAggregateInput
  _min?: Prisma.HouseMinOrderByAggregateInput
}

export type HouseScalarWhereWithAggregatesInput = {
  AND?: Prisma.HouseScalarWhereWithAggregatesInput | Prisma.HouseScalarWhereWithAggregatesInput[]
  OR?: Prisma.HouseScalarWhereWithAggregatesInput[]
  NOT?: Prisma.HouseScalarWhereWithAggregatesInput | Prisma.HouseScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"House"> | string
  name?: Prisma.StringWithAggregatesFilter<"House"> | string
  slug?: Prisma.StringWithAggregatesFilter<"House"> | string
  logo?: Prisma.StringNullableWithAggregatesFilter<"House"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"House"> | Date | string
  metadata?: Prisma.StringNullableWithAggregatesFilter<"House"> | string | null
  color?: Prisma.StringNullableWithAggregatesFilter<"House"> | string | null
}

export type HouseCreateInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
  members?: Prisma.MemberCreateNestedManyWithoutHouseInput
  invitations?: Prisma.InvitationCreateNestedManyWithoutHouseInput
  boxes?: Prisma.BoxCreateNestedManyWithoutHouseInput
}

export type HouseUncheckedCreateInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
  members?: Prisma.MemberUncheckedCreateNestedManyWithoutHouseInput
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutHouseInput
  boxes?: Prisma.BoxUncheckedCreateNestedManyWithoutHouseInput
}

export type HouseUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  members?: Prisma.MemberUpdateManyWithoutHouseNestedInput
  invitations?: Prisma.InvitationUpdateManyWithoutHouseNestedInput
  boxes?: Prisma.BoxUpdateManyWithoutHouseNestedInput
}

export type HouseUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  members?: Prisma.MemberUncheckedUpdateManyWithoutHouseNestedInput
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutHouseNestedInput
  boxes?: Prisma.BoxUncheckedUpdateManyWithoutHouseNestedInput
}

export type HouseCreateManyInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
}

export type HouseUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type HouseUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type HouseCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  logo?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  metadata?: Prisma.SortOrder
  color?: Prisma.SortOrder
}

export type HouseMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  logo?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  metadata?: Prisma.SortOrder
  color?: Prisma.SortOrder
}

export type HouseMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  slug?: Prisma.SortOrder
  logo?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  metadata?: Prisma.SortOrder
  color?: Prisma.SortOrder
}

export type HouseScalarRelationFilter = {
  is?: Prisma.HouseWhereInput
  isNot?: Prisma.HouseWhereInput
}

export type HouseNullableScalarRelationFilter = {
  is?: Prisma.HouseWhereInput | null
  isNot?: Prisma.HouseWhereInput | null
}

export type HouseCreateNestedOneWithoutMembersInput = {
  create?: Prisma.XOR<Prisma.HouseCreateWithoutMembersInput, Prisma.HouseUncheckedCreateWithoutMembersInput>
  connectOrCreate?: Prisma.HouseCreateOrConnectWithoutMembersInput
  connect?: Prisma.HouseWhereUniqueInput
}

export type HouseUpdateOneRequiredWithoutMembersNestedInput = {
  create?: Prisma.XOR<Prisma.HouseCreateWithoutMembersInput, Prisma.HouseUncheckedCreateWithoutMembersInput>
  connectOrCreate?: Prisma.HouseCreateOrConnectWithoutMembersInput
  upsert?: Prisma.HouseUpsertWithoutMembersInput
  connect?: Prisma.HouseWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.HouseUpdateToOneWithWhereWithoutMembersInput, Prisma.HouseUpdateWithoutMembersInput>, Prisma.HouseUncheckedUpdateWithoutMembersInput>
}

export type HouseCreateNestedOneWithoutInvitationsInput = {
  create?: Prisma.XOR<Prisma.HouseCreateWithoutInvitationsInput, Prisma.HouseUncheckedCreateWithoutInvitationsInput>
  connectOrCreate?: Prisma.HouseCreateOrConnectWithoutInvitationsInput
  connect?: Prisma.HouseWhereUniqueInput
}

export type HouseUpdateOneRequiredWithoutInvitationsNestedInput = {
  create?: Prisma.XOR<Prisma.HouseCreateWithoutInvitationsInput, Prisma.HouseUncheckedCreateWithoutInvitationsInput>
  connectOrCreate?: Prisma.HouseCreateOrConnectWithoutInvitationsInput
  upsert?: Prisma.HouseUpsertWithoutInvitationsInput
  connect?: Prisma.HouseWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.HouseUpdateToOneWithWhereWithoutInvitationsInput, Prisma.HouseUpdateWithoutInvitationsInput>, Prisma.HouseUncheckedUpdateWithoutInvitationsInput>
}

export type HouseCreateNestedOneWithoutBoxesInput = {
  create?: Prisma.XOR<Prisma.HouseCreateWithoutBoxesInput, Prisma.HouseUncheckedCreateWithoutBoxesInput>
  connectOrCreate?: Prisma.HouseCreateOrConnectWithoutBoxesInput
  connect?: Prisma.HouseWhereUniqueInput
}

export type HouseUpdateOneWithoutBoxesNestedInput = {
  create?: Prisma.XOR<Prisma.HouseCreateWithoutBoxesInput, Prisma.HouseUncheckedCreateWithoutBoxesInput>
  connectOrCreate?: Prisma.HouseCreateOrConnectWithoutBoxesInput
  upsert?: Prisma.HouseUpsertWithoutBoxesInput
  disconnect?: Prisma.HouseWhereInput | boolean
  delete?: Prisma.HouseWhereInput | boolean
  connect?: Prisma.HouseWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.HouseUpdateToOneWithWhereWithoutBoxesInput, Prisma.HouseUpdateWithoutBoxesInput>, Prisma.HouseUncheckedUpdateWithoutBoxesInput>
}

export type HouseCreateWithoutMembersInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
  invitations?: Prisma.InvitationCreateNestedManyWithoutHouseInput
  boxes?: Prisma.BoxCreateNestedManyWithoutHouseInput
}

export type HouseUncheckedCreateWithoutMembersInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutHouseInput
  boxes?: Prisma.BoxUncheckedCreateNestedManyWithoutHouseInput
}

export type HouseCreateOrConnectWithoutMembersInput = {
  where: Prisma.HouseWhereUniqueInput
  create: Prisma.XOR<Prisma.HouseCreateWithoutMembersInput, Prisma.HouseUncheckedCreateWithoutMembersInput>
}

export type HouseUpsertWithoutMembersInput = {
  update: Prisma.XOR<Prisma.HouseUpdateWithoutMembersInput, Prisma.HouseUncheckedUpdateWithoutMembersInput>
  create: Prisma.XOR<Prisma.HouseCreateWithoutMembersInput, Prisma.HouseUncheckedCreateWithoutMembersInput>
  where?: Prisma.HouseWhereInput
}

export type HouseUpdateToOneWithWhereWithoutMembersInput = {
  where?: Prisma.HouseWhereInput
  data: Prisma.XOR<Prisma.HouseUpdateWithoutMembersInput, Prisma.HouseUncheckedUpdateWithoutMembersInput>
}

export type HouseUpdateWithoutMembersInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  invitations?: Prisma.InvitationUpdateManyWithoutHouseNestedInput
  boxes?: Prisma.BoxUpdateManyWithoutHouseNestedInput
}

export type HouseUncheckedUpdateWithoutMembersInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutHouseNestedInput
  boxes?: Prisma.BoxUncheckedUpdateManyWithoutHouseNestedInput
}

export type HouseCreateWithoutInvitationsInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
  members?: Prisma.MemberCreateNestedManyWithoutHouseInput
  boxes?: Prisma.BoxCreateNestedManyWithoutHouseInput
}

export type HouseUncheckedCreateWithoutInvitationsInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
  members?: Prisma.MemberUncheckedCreateNestedManyWithoutHouseInput
  boxes?: Prisma.BoxUncheckedCreateNestedManyWithoutHouseInput
}

export type HouseCreateOrConnectWithoutInvitationsInput = {
  where: Prisma.HouseWhereUniqueInput
  create: Prisma.XOR<Prisma.HouseCreateWithoutInvitationsInput, Prisma.HouseUncheckedCreateWithoutInvitationsInput>
}

export type HouseUpsertWithoutInvitationsInput = {
  update: Prisma.XOR<Prisma.HouseUpdateWithoutInvitationsInput, Prisma.HouseUncheckedUpdateWithoutInvitationsInput>
  create: Prisma.XOR<Prisma.HouseCreateWithoutInvitationsInput, Prisma.HouseUncheckedCreateWithoutInvitationsInput>
  where?: Prisma.HouseWhereInput
}

export type HouseUpdateToOneWithWhereWithoutInvitationsInput = {
  where?: Prisma.HouseWhereInput
  data: Prisma.XOR<Prisma.HouseUpdateWithoutInvitationsInput, Prisma.HouseUncheckedUpdateWithoutInvitationsInput>
}

export type HouseUpdateWithoutInvitationsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  members?: Prisma.MemberUpdateManyWithoutHouseNestedInput
  boxes?: Prisma.BoxUpdateManyWithoutHouseNestedInput
}

export type HouseUncheckedUpdateWithoutInvitationsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  members?: Prisma.MemberUncheckedUpdateManyWithoutHouseNestedInput
  boxes?: Prisma.BoxUncheckedUpdateManyWithoutHouseNestedInput
}

export type HouseCreateWithoutBoxesInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
  members?: Prisma.MemberCreateNestedManyWithoutHouseInput
  invitations?: Prisma.InvitationCreateNestedManyWithoutHouseInput
}

export type HouseUncheckedCreateWithoutBoxesInput = {
  id?: string
  name: string
  slug: string
  logo?: string | null
  createdAt: Date | string
  metadata?: string | null
  color?: string | null
  members?: Prisma.MemberUncheckedCreateNestedManyWithoutHouseInput
  invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutHouseInput
}

export type HouseCreateOrConnectWithoutBoxesInput = {
  where: Prisma.HouseWhereUniqueInput
  create: Prisma.XOR<Prisma.HouseCreateWithoutBoxesInput, Prisma.HouseUncheckedCreateWithoutBoxesInput>
}

export type HouseUpsertWithoutBoxesInput = {
  update: Prisma.XOR<Prisma.HouseUpdateWithoutBoxesInput, Prisma.HouseUncheckedUpdateWithoutBoxesInput>
  create: Prisma.XOR<Prisma.HouseCreateWithoutBoxesInput, Prisma.HouseUncheckedCreateWithoutBoxesInput>
  where?: Prisma.HouseWhereInput
}

export type HouseUpdateToOneWithWhereWithoutBoxesInput = {
  where?: Prisma.HouseWhereInput
  data: Prisma.XOR<Prisma.HouseUpdateWithoutBoxesInput, Prisma.HouseUncheckedUpdateWithoutBoxesInput>
}

export type HouseUpdateWithoutBoxesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  members?: Prisma.MemberUpdateManyWithoutHouseNestedInput
  invitations?: Prisma.InvitationUpdateManyWithoutHouseNestedInput
}

export type HouseUncheckedUpdateWithoutBoxesInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  slug?: Prisma.StringFieldUpdateOperationsInput | string
  logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  members?: Prisma.MemberUncheckedUpdateManyWithoutHouseNestedInput
  invitations?: Prisma.InvitationUncheckedUpdateManyWithoutHouseNestedInput
}


/**
 * Count Type HouseCountOutputType
 */

export type HouseCountOutputType = {
  members: number
  invitations: number
  boxes: number
}

export type HouseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  members?: boolean | HouseCountOutputTypeCountMembersArgs
  invitations?: boolean | HouseCountOutputTypeCountInvitationsArgs
  boxes?: boolean | HouseCountOutputTypeCountBoxesArgs
}

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

/**
 * HouseCountOutputType without action
 */
export type HouseCountOutputTypeCountMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.MemberWhereInput
}

/**
 * HouseCountOutputType without action
 */
export type HouseCountOutputTypeCountInvitationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.InvitationWhereInput
}

/**
 * HouseCountOutputType without action
 */
export type HouseCountOutputTypeCountBoxesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.BoxWhereInput
}


export type HouseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  slug?: boolean
  logo?: boolean
  createdAt?: boolean
  metadata?: boolean
  color?: boolean
  members?: boolean | Prisma.House$membersArgs<ExtArgs>
  invitations?: boolean | Prisma.House$invitationsArgs<ExtArgs>
  boxes?: boolean | Prisma.House$boxesArgs<ExtArgs>
  _count?: boolean | Prisma.HouseCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["house"]>

export type HouseSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  slug?: boolean
  logo?: boolean
  createdAt?: boolean
  metadata?: boolean
  color?: boolean
}, ExtArgs["result"]["house"]>

export type HouseSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  slug?: boolean
  logo?: boolean
  createdAt?: boolean
  metadata?: boolean
  color?: boolean
}, ExtArgs["result"]["house"]>

export type HouseSelectScalar = {
  id?: boolean
  name?: boolean
  slug?: boolean
  logo?: boolean
  createdAt?: boolean
  metadata?: boolean
  color?: boolean
}

export type HouseOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "slug" | "logo" | "createdAt" | "metadata" | "color", ExtArgs["result"]["house"]>
export type HouseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  members?: boolean | Prisma.House$membersArgs<ExtArgs>
  invitations?: boolean | Prisma.House$invitationsArgs<ExtArgs>
  boxes?: boolean | Prisma.House$boxesArgs<ExtArgs>
  _count?: boolean | Prisma.HouseCountOutputTypeDefaultArgs<ExtArgs>
}
export type HouseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type HouseIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}

export type $HousePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "House"
  objects: {
    members: Prisma.$MemberPayload<ExtArgs>[]
    invitations: Prisma.$InvitationPayload<ExtArgs>[]
    boxes: Prisma.$BoxPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    name: string
    slug: string
    logo: string | null
    createdAt: Date
    metadata: string | null
    color: string | null
  }, ExtArgs["result"]["house"]>
  composites: {}
}

export type HouseGetPayload<S extends boolean | null | undefined | HouseDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HousePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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




/**
 * Fields of the House model
 */
export interface HouseFieldRefs {
  readonly id: Prisma.FieldRef<"House", 'String'>
  readonly name: Prisma.FieldRef<"House", 'String'>
  readonly slug: Prisma.FieldRef<"House", 'String'>
  readonly logo: Prisma.FieldRef<"House", 'String'>
  readonly createdAt: Prisma.FieldRef<"House", 'DateTime'>
  readonly metadata: Prisma.FieldRef<"House", 'String'>
  readonly color: Prisma.FieldRef<"House", 'String'>
}
    

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

/**
 * House findUniqueOrThrow
 */
export type HouseFindUniqueOrThrowArgs<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
  /**
   * Filter, which House to fetch.
   */
  where: Prisma.HouseWhereUniqueInput
}

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

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

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

/**
 * House create
 */
export type HouseCreateArgs<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
  /**
   * The data needed to create a House.
   */
  data: Prisma.XOR<Prisma.HouseCreateInput, Prisma.HouseUncheckedCreateInput>
}

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

/**
 * House createManyAndReturn
 */
export type HouseCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the House
   */
  select?: Prisma.HouseSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the House
   */
  omit?: Prisma.HouseOmit<ExtArgs> | null
  /**
   * The data used to create many Houses.
   */
  data: Prisma.HouseCreateManyInput | Prisma.HouseCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * House update
 */
export type HouseUpdateArgs<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
  /**
   * The data needed to update a House.
   */
  data: Prisma.XOR<Prisma.HouseUpdateInput, Prisma.HouseUncheckedUpdateInput>
  /**
   * Choose, which House to update.
   */
  where: Prisma.HouseWhereUniqueInput
}

/**
 * House updateMany
 */
export type HouseUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Houses.
   */
  data: Prisma.XOR<Prisma.HouseUpdateManyMutationInput, Prisma.HouseUncheckedUpdateManyInput>
  /**
   * Filter which Houses to update
   */
  where?: Prisma.HouseWhereInput
  /**
   * Limit how many Houses to update.
   */
  limit?: number
}

/**
 * House updateManyAndReturn
 */
export type HouseUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the House
   */
  select?: Prisma.HouseSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the House
   */
  omit?: Prisma.HouseOmit<ExtArgs> | null
  /**
   * The data used to update Houses.
   */
  data: Prisma.XOR<Prisma.HouseUpdateManyMutationInput, Prisma.HouseUncheckedUpdateManyInput>
  /**
   * Filter which Houses to update
   */
  where?: Prisma.HouseWhereInput
  /**
   * Limit how many Houses to update.
   */
  limit?: number
}

/**
 * House upsert
 */
export type HouseUpsertArgs<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
  /**
   * The filter to search for the House to update in case it exists.
   */
  where: Prisma.HouseWhereUniqueInput
  /**
   * In case the House found by the `where` argument doesn't exist, create a new House with this data.
   */
  create: Prisma.XOR<Prisma.HouseCreateInput, Prisma.HouseUncheckedCreateInput>
  /**
   * In case the House was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.HouseUpdateInput, Prisma.HouseUncheckedUpdateInput>
}

/**
 * House delete
 */
export type HouseDeleteArgs<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
  /**
   * Filter which House to delete.
   */
  where: Prisma.HouseWhereUniqueInput
}

/**
 * House deleteMany
 */
export type HouseDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Houses to delete
   */
  where?: Prisma.HouseWhereInput
  /**
   * Limit how many Houses to delete.
   */
  limit?: number
}

/**
 * House.members
 */
export type House$membersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Member
   */
  select?: Prisma.MemberSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Member
   */
  omit?: Prisma.MemberOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.MemberInclude<ExtArgs> | null
  where?: Prisma.MemberWhereInput
  orderBy?: Prisma.MemberOrderByWithRelationInput | Prisma.MemberOrderByWithRelationInput[]
  cursor?: Prisma.MemberWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.MemberScalarFieldEnum | Prisma.MemberScalarFieldEnum[]
}

/**
 * House.invitations
 */
export type House$invitationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Invitation
   */
  select?: Prisma.InvitationSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Invitation
   */
  omit?: Prisma.InvitationOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.InvitationInclude<ExtArgs> | null
  where?: Prisma.InvitationWhereInput
  orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[]
  cursor?: Prisma.InvitationWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[]
}

/**
 * House.boxes
 */
export type House$boxesArgs<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
  orderBy?: Prisma.BoxOrderByWithRelationInput | Prisma.BoxOrderByWithRelationInput[]
  cursor?: Prisma.BoxWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.BoxScalarFieldEnum | Prisma.BoxScalarFieldEnum[]
}

/**
 * House without action
 */
export type HouseDefaultArgs<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
}
