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

/**
 * Model EventRoom
 * 
 */
export type EventRoomModel = runtime.Types.Result.DefaultSelection<Prisma.$EventRoomPayload>

export type AggregateEventRoom = {
  _count: EventRoomCountAggregateOutputType | null
  _avg: EventRoomAvgAggregateOutputType | null
  _sum: EventRoomSumAggregateOutputType | null
  _min: EventRoomMinAggregateOutputType | null
  _max: EventRoomMaxAggregateOutputType | null
}

export type EventRoomAvgAggregateOutputType = {
  id: number | null
  eventId: number | null
  roomId: number | null
}

export type EventRoomSumAggregateOutputType = {
  id: number | null
  eventId: number | null
  roomId: number | null
}

export type EventRoomMinAggregateOutputType = {
  id: number | null
  eventId: number | null
  roomId: number | null
  category: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type EventRoomMaxAggregateOutputType = {
  id: number | null
  eventId: number | null
  roomId: number | null
  category: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type EventRoomCountAggregateOutputType = {
  id: number
  eventId: number
  roomId: number
  category: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type EventRoomAvgAggregateInputType = {
  id?: true
  eventId?: true
  roomId?: true
}

export type EventRoomSumAggregateInputType = {
  id?: true
  eventId?: true
  roomId?: true
}

export type EventRoomMinAggregateInputType = {
  id?: true
  eventId?: true
  roomId?: true
  category?: true
  createdAt?: true
  updatedAt?: true
}

export type EventRoomMaxAggregateInputType = {
  id?: true
  eventId?: true
  roomId?: true
  category?: true
  createdAt?: true
  updatedAt?: true
}

export type EventRoomCountAggregateInputType = {
  id?: true
  eventId?: true
  roomId?: true
  category?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type EventRoomAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which EventRoom to aggregate.
   */
  where?: Prisma.EventRoomWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of EventRooms to fetch.
   */
  orderBy?: Prisma.EventRoomOrderByWithRelationInput | Prisma.EventRoomOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.EventRoomWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` EventRooms 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` EventRooms.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned EventRooms
  **/
  _count?: true | EventRoomCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: EventRoomAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: EventRoomSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: EventRoomMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: EventRoomMaxAggregateInputType
}

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




export type EventRoomGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.EventRoomWhereInput
  orderBy?: Prisma.EventRoomOrderByWithAggregationInput | Prisma.EventRoomOrderByWithAggregationInput[]
  by: Prisma.EventRoomScalarFieldEnum[] | Prisma.EventRoomScalarFieldEnum
  having?: Prisma.EventRoomScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: EventRoomCountAggregateInputType | true
  _avg?: EventRoomAvgAggregateInputType
  _sum?: EventRoomSumAggregateInputType
  _min?: EventRoomMinAggregateInputType
  _max?: EventRoomMaxAggregateInputType
}

export type EventRoomGroupByOutputType = {
  id: number
  eventId: number
  roomId: number
  category: string | null
  createdAt: Date
  updatedAt: Date
  _count: EventRoomCountAggregateOutputType | null
  _avg: EventRoomAvgAggregateOutputType | null
  _sum: EventRoomSumAggregateOutputType | null
  _min: EventRoomMinAggregateOutputType | null
  _max: EventRoomMaxAggregateOutputType | null
}

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



export type EventRoomWhereInput = {
  AND?: Prisma.EventRoomWhereInput | Prisma.EventRoomWhereInput[]
  OR?: Prisma.EventRoomWhereInput[]
  NOT?: Prisma.EventRoomWhereInput | Prisma.EventRoomWhereInput[]
  id?: Prisma.IntFilter<"EventRoom"> | number
  eventId?: Prisma.IntFilter<"EventRoom"> | number
  roomId?: Prisma.IntFilter<"EventRoom"> | number
  category?: Prisma.StringNullableFilter<"EventRoom"> | string | null
  createdAt?: Prisma.DateTimeFilter<"EventRoom"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"EventRoom"> | Date | string
  event?: Prisma.XOR<Prisma.EventScalarRelationFilter, Prisma.EventWhereInput>
  room?: Prisma.XOR<Prisma.RoomScalarRelationFilter, Prisma.RoomWhereInput>
  sessions?: Prisma.SessionListRelationFilter
}

export type EventRoomOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  eventId?: Prisma.SortOrder
  roomId?: Prisma.SortOrder
  category?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  event?: Prisma.EventOrderByWithRelationInput
  room?: Prisma.RoomOrderByWithRelationInput
  sessions?: Prisma.SessionOrderByRelationAggregateInput
  _relevance?: Prisma.EventRoomOrderByRelevanceInput
}

export type EventRoomWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  eventId_roomId?: Prisma.EventRoomEventIdRoomIdCompoundUniqueInput
  AND?: Prisma.EventRoomWhereInput | Prisma.EventRoomWhereInput[]
  OR?: Prisma.EventRoomWhereInput[]
  NOT?: Prisma.EventRoomWhereInput | Prisma.EventRoomWhereInput[]
  eventId?: Prisma.IntFilter<"EventRoom"> | number
  roomId?: Prisma.IntFilter<"EventRoom"> | number
  category?: Prisma.StringNullableFilter<"EventRoom"> | string | null
  createdAt?: Prisma.DateTimeFilter<"EventRoom"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"EventRoom"> | Date | string
  event?: Prisma.XOR<Prisma.EventScalarRelationFilter, Prisma.EventWhereInput>
  room?: Prisma.XOR<Prisma.RoomScalarRelationFilter, Prisma.RoomWhereInput>
  sessions?: Prisma.SessionListRelationFilter
}, "id" | "eventId_roomId">

export type EventRoomOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  eventId?: Prisma.SortOrder
  roomId?: Prisma.SortOrder
  category?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.EventRoomCountOrderByAggregateInput
  _avg?: Prisma.EventRoomAvgOrderByAggregateInput
  _max?: Prisma.EventRoomMaxOrderByAggregateInput
  _min?: Prisma.EventRoomMinOrderByAggregateInput
  _sum?: Prisma.EventRoomSumOrderByAggregateInput
}

export type EventRoomScalarWhereWithAggregatesInput = {
  AND?: Prisma.EventRoomScalarWhereWithAggregatesInput | Prisma.EventRoomScalarWhereWithAggregatesInput[]
  OR?: Prisma.EventRoomScalarWhereWithAggregatesInput[]
  NOT?: Prisma.EventRoomScalarWhereWithAggregatesInput | Prisma.EventRoomScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"EventRoom"> | number
  eventId?: Prisma.IntWithAggregatesFilter<"EventRoom"> | number
  roomId?: Prisma.IntWithAggregatesFilter<"EventRoom"> | number
  category?: Prisma.StringNullableWithAggregatesFilter<"EventRoom"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"EventRoom"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"EventRoom"> | Date | string
}

export type EventRoomCreateInput = {
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  event: Prisma.EventCreateNestedOneWithoutEventRoomsInput
  room: Prisma.RoomCreateNestedOneWithoutEventRoomsInput
  sessions?: Prisma.SessionCreateNestedManyWithoutEventRoomInput
}

export type EventRoomUncheckedCreateInput = {
  id?: number
  eventId: number
  roomId: number
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutEventRoomInput
}

export type EventRoomUpdateInput = {
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  event?: Prisma.EventUpdateOneRequiredWithoutEventRoomsNestedInput
  room?: Prisma.RoomUpdateOneRequiredWithoutEventRoomsNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutEventRoomNestedInput
}

export type EventRoomUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  eventId?: Prisma.IntFieldUpdateOperationsInput | number
  roomId?: Prisma.IntFieldUpdateOperationsInput | number
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutEventRoomNestedInput
}

export type EventRoomCreateManyInput = {
  id?: number
  eventId: number
  roomId: number
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type EventRoomUpdateManyMutationInput = {
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type EventRoomUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  eventId?: Prisma.IntFieldUpdateOperationsInput | number
  roomId?: Prisma.IntFieldUpdateOperationsInput | number
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type EventRoomListRelationFilter = {
  every?: Prisma.EventRoomWhereInput
  some?: Prisma.EventRoomWhereInput
  none?: Prisma.EventRoomWhereInput
}

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

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

export type EventRoomEventIdRoomIdCompoundUniqueInput = {
  eventId: number
  roomId: number
}

export type EventRoomCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  eventId?: Prisma.SortOrder
  roomId?: Prisma.SortOrder
  category?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type EventRoomAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  eventId?: Prisma.SortOrder
  roomId?: Prisma.SortOrder
}

export type EventRoomMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  eventId?: Prisma.SortOrder
  roomId?: Prisma.SortOrder
  category?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type EventRoomMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  eventId?: Prisma.SortOrder
  roomId?: Prisma.SortOrder
  category?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type EventRoomSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  eventId?: Prisma.SortOrder
  roomId?: Prisma.SortOrder
}

export type EventRoomScalarRelationFilter = {
  is?: Prisma.EventRoomWhereInput
  isNot?: Prisma.EventRoomWhereInput
}

export type EventRoomCreateNestedManyWithoutEventInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutEventInput, Prisma.EventRoomUncheckedCreateWithoutEventInput> | Prisma.EventRoomCreateWithoutEventInput[] | Prisma.EventRoomUncheckedCreateWithoutEventInput[]
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutEventInput | Prisma.EventRoomCreateOrConnectWithoutEventInput[]
  createMany?: Prisma.EventRoomCreateManyEventInputEnvelope
  connect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
}

export type EventRoomUncheckedCreateNestedManyWithoutEventInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutEventInput, Prisma.EventRoomUncheckedCreateWithoutEventInput> | Prisma.EventRoomCreateWithoutEventInput[] | Prisma.EventRoomUncheckedCreateWithoutEventInput[]
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutEventInput | Prisma.EventRoomCreateOrConnectWithoutEventInput[]
  createMany?: Prisma.EventRoomCreateManyEventInputEnvelope
  connect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
}

export type EventRoomUpdateManyWithoutEventNestedInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutEventInput, Prisma.EventRoomUncheckedCreateWithoutEventInput> | Prisma.EventRoomCreateWithoutEventInput[] | Prisma.EventRoomUncheckedCreateWithoutEventInput[]
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutEventInput | Prisma.EventRoomCreateOrConnectWithoutEventInput[]
  upsert?: Prisma.EventRoomUpsertWithWhereUniqueWithoutEventInput | Prisma.EventRoomUpsertWithWhereUniqueWithoutEventInput[]
  createMany?: Prisma.EventRoomCreateManyEventInputEnvelope
  set?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  disconnect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  delete?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  connect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  update?: Prisma.EventRoomUpdateWithWhereUniqueWithoutEventInput | Prisma.EventRoomUpdateWithWhereUniqueWithoutEventInput[]
  updateMany?: Prisma.EventRoomUpdateManyWithWhereWithoutEventInput | Prisma.EventRoomUpdateManyWithWhereWithoutEventInput[]
  deleteMany?: Prisma.EventRoomScalarWhereInput | Prisma.EventRoomScalarWhereInput[]
}

export type EventRoomUncheckedUpdateManyWithoutEventNestedInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutEventInput, Prisma.EventRoomUncheckedCreateWithoutEventInput> | Prisma.EventRoomCreateWithoutEventInput[] | Prisma.EventRoomUncheckedCreateWithoutEventInput[]
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutEventInput | Prisma.EventRoomCreateOrConnectWithoutEventInput[]
  upsert?: Prisma.EventRoomUpsertWithWhereUniqueWithoutEventInput | Prisma.EventRoomUpsertWithWhereUniqueWithoutEventInput[]
  createMany?: Prisma.EventRoomCreateManyEventInputEnvelope
  set?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  disconnect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  delete?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  connect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  update?: Prisma.EventRoomUpdateWithWhereUniqueWithoutEventInput | Prisma.EventRoomUpdateWithWhereUniqueWithoutEventInput[]
  updateMany?: Prisma.EventRoomUpdateManyWithWhereWithoutEventInput | Prisma.EventRoomUpdateManyWithWhereWithoutEventInput[]
  deleteMany?: Prisma.EventRoomScalarWhereInput | Prisma.EventRoomScalarWhereInput[]
}

export type EventRoomCreateNestedManyWithoutRoomInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutRoomInput, Prisma.EventRoomUncheckedCreateWithoutRoomInput> | Prisma.EventRoomCreateWithoutRoomInput[] | Prisma.EventRoomUncheckedCreateWithoutRoomInput[]
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutRoomInput | Prisma.EventRoomCreateOrConnectWithoutRoomInput[]
  createMany?: Prisma.EventRoomCreateManyRoomInputEnvelope
  connect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
}

export type EventRoomUncheckedCreateNestedManyWithoutRoomInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutRoomInput, Prisma.EventRoomUncheckedCreateWithoutRoomInput> | Prisma.EventRoomCreateWithoutRoomInput[] | Prisma.EventRoomUncheckedCreateWithoutRoomInput[]
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutRoomInput | Prisma.EventRoomCreateOrConnectWithoutRoomInput[]
  createMany?: Prisma.EventRoomCreateManyRoomInputEnvelope
  connect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
}

export type EventRoomUpdateManyWithoutRoomNestedInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutRoomInput, Prisma.EventRoomUncheckedCreateWithoutRoomInput> | Prisma.EventRoomCreateWithoutRoomInput[] | Prisma.EventRoomUncheckedCreateWithoutRoomInput[]
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutRoomInput | Prisma.EventRoomCreateOrConnectWithoutRoomInput[]
  upsert?: Prisma.EventRoomUpsertWithWhereUniqueWithoutRoomInput | Prisma.EventRoomUpsertWithWhereUniqueWithoutRoomInput[]
  createMany?: Prisma.EventRoomCreateManyRoomInputEnvelope
  set?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  disconnect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  delete?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  connect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  update?: Prisma.EventRoomUpdateWithWhereUniqueWithoutRoomInput | Prisma.EventRoomUpdateWithWhereUniqueWithoutRoomInput[]
  updateMany?: Prisma.EventRoomUpdateManyWithWhereWithoutRoomInput | Prisma.EventRoomUpdateManyWithWhereWithoutRoomInput[]
  deleteMany?: Prisma.EventRoomScalarWhereInput | Prisma.EventRoomScalarWhereInput[]
}

export type EventRoomUncheckedUpdateManyWithoutRoomNestedInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutRoomInput, Prisma.EventRoomUncheckedCreateWithoutRoomInput> | Prisma.EventRoomCreateWithoutRoomInput[] | Prisma.EventRoomUncheckedCreateWithoutRoomInput[]
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutRoomInput | Prisma.EventRoomCreateOrConnectWithoutRoomInput[]
  upsert?: Prisma.EventRoomUpsertWithWhereUniqueWithoutRoomInput | Prisma.EventRoomUpsertWithWhereUniqueWithoutRoomInput[]
  createMany?: Prisma.EventRoomCreateManyRoomInputEnvelope
  set?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  disconnect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  delete?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  connect?: Prisma.EventRoomWhereUniqueInput | Prisma.EventRoomWhereUniqueInput[]
  update?: Prisma.EventRoomUpdateWithWhereUniqueWithoutRoomInput | Prisma.EventRoomUpdateWithWhereUniqueWithoutRoomInput[]
  updateMany?: Prisma.EventRoomUpdateManyWithWhereWithoutRoomInput | Prisma.EventRoomUpdateManyWithWhereWithoutRoomInput[]
  deleteMany?: Prisma.EventRoomScalarWhereInput | Prisma.EventRoomScalarWhereInput[]
}

export type EventRoomCreateNestedOneWithoutSessionsInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutSessionsInput, Prisma.EventRoomUncheckedCreateWithoutSessionsInput>
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutSessionsInput
  connect?: Prisma.EventRoomWhereUniqueInput
}

export type EventRoomUpdateOneRequiredWithoutSessionsNestedInput = {
  create?: Prisma.XOR<Prisma.EventRoomCreateWithoutSessionsInput, Prisma.EventRoomUncheckedCreateWithoutSessionsInput>
  connectOrCreate?: Prisma.EventRoomCreateOrConnectWithoutSessionsInput
  upsert?: Prisma.EventRoomUpsertWithoutSessionsInput
  connect?: Prisma.EventRoomWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.EventRoomUpdateToOneWithWhereWithoutSessionsInput, Prisma.EventRoomUpdateWithoutSessionsInput>, Prisma.EventRoomUncheckedUpdateWithoutSessionsInput>
}

export type EventRoomCreateWithoutEventInput = {
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  room: Prisma.RoomCreateNestedOneWithoutEventRoomsInput
  sessions?: Prisma.SessionCreateNestedManyWithoutEventRoomInput
}

export type EventRoomUncheckedCreateWithoutEventInput = {
  id?: number
  roomId: number
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutEventRoomInput
}

export type EventRoomCreateOrConnectWithoutEventInput = {
  where: Prisma.EventRoomWhereUniqueInput
  create: Prisma.XOR<Prisma.EventRoomCreateWithoutEventInput, Prisma.EventRoomUncheckedCreateWithoutEventInput>
}

export type EventRoomCreateManyEventInputEnvelope = {
  data: Prisma.EventRoomCreateManyEventInput | Prisma.EventRoomCreateManyEventInput[]
  skipDuplicates?: boolean
}

export type EventRoomUpsertWithWhereUniqueWithoutEventInput = {
  where: Prisma.EventRoomWhereUniqueInput
  update: Prisma.XOR<Prisma.EventRoomUpdateWithoutEventInput, Prisma.EventRoomUncheckedUpdateWithoutEventInput>
  create: Prisma.XOR<Prisma.EventRoomCreateWithoutEventInput, Prisma.EventRoomUncheckedCreateWithoutEventInput>
}

export type EventRoomUpdateWithWhereUniqueWithoutEventInput = {
  where: Prisma.EventRoomWhereUniqueInput
  data: Prisma.XOR<Prisma.EventRoomUpdateWithoutEventInput, Prisma.EventRoomUncheckedUpdateWithoutEventInput>
}

export type EventRoomUpdateManyWithWhereWithoutEventInput = {
  where: Prisma.EventRoomScalarWhereInput
  data: Prisma.XOR<Prisma.EventRoomUpdateManyMutationInput, Prisma.EventRoomUncheckedUpdateManyWithoutEventInput>
}

export type EventRoomScalarWhereInput = {
  AND?: Prisma.EventRoomScalarWhereInput | Prisma.EventRoomScalarWhereInput[]
  OR?: Prisma.EventRoomScalarWhereInput[]
  NOT?: Prisma.EventRoomScalarWhereInput | Prisma.EventRoomScalarWhereInput[]
  id?: Prisma.IntFilter<"EventRoom"> | number
  eventId?: Prisma.IntFilter<"EventRoom"> | number
  roomId?: Prisma.IntFilter<"EventRoom"> | number
  category?: Prisma.StringNullableFilter<"EventRoom"> | string | null
  createdAt?: Prisma.DateTimeFilter<"EventRoom"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"EventRoom"> | Date | string
}

export type EventRoomCreateWithoutRoomInput = {
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  event: Prisma.EventCreateNestedOneWithoutEventRoomsInput
  sessions?: Prisma.SessionCreateNestedManyWithoutEventRoomInput
}

export type EventRoomUncheckedCreateWithoutRoomInput = {
  id?: number
  eventId: number
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutEventRoomInput
}

export type EventRoomCreateOrConnectWithoutRoomInput = {
  where: Prisma.EventRoomWhereUniqueInput
  create: Prisma.XOR<Prisma.EventRoomCreateWithoutRoomInput, Prisma.EventRoomUncheckedCreateWithoutRoomInput>
}

export type EventRoomCreateManyRoomInputEnvelope = {
  data: Prisma.EventRoomCreateManyRoomInput | Prisma.EventRoomCreateManyRoomInput[]
  skipDuplicates?: boolean
}

export type EventRoomUpsertWithWhereUniqueWithoutRoomInput = {
  where: Prisma.EventRoomWhereUniqueInput
  update: Prisma.XOR<Prisma.EventRoomUpdateWithoutRoomInput, Prisma.EventRoomUncheckedUpdateWithoutRoomInput>
  create: Prisma.XOR<Prisma.EventRoomCreateWithoutRoomInput, Prisma.EventRoomUncheckedCreateWithoutRoomInput>
}

export type EventRoomUpdateWithWhereUniqueWithoutRoomInput = {
  where: Prisma.EventRoomWhereUniqueInput
  data: Prisma.XOR<Prisma.EventRoomUpdateWithoutRoomInput, Prisma.EventRoomUncheckedUpdateWithoutRoomInput>
}

export type EventRoomUpdateManyWithWhereWithoutRoomInput = {
  where: Prisma.EventRoomScalarWhereInput
  data: Prisma.XOR<Prisma.EventRoomUpdateManyMutationInput, Prisma.EventRoomUncheckedUpdateManyWithoutRoomInput>
}

export type EventRoomCreateWithoutSessionsInput = {
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  event: Prisma.EventCreateNestedOneWithoutEventRoomsInput
  room: Prisma.RoomCreateNestedOneWithoutEventRoomsInput
}

export type EventRoomUncheckedCreateWithoutSessionsInput = {
  id?: number
  eventId: number
  roomId: number
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type EventRoomCreateOrConnectWithoutSessionsInput = {
  where: Prisma.EventRoomWhereUniqueInput
  create: Prisma.XOR<Prisma.EventRoomCreateWithoutSessionsInput, Prisma.EventRoomUncheckedCreateWithoutSessionsInput>
}

export type EventRoomUpsertWithoutSessionsInput = {
  update: Prisma.XOR<Prisma.EventRoomUpdateWithoutSessionsInput, Prisma.EventRoomUncheckedUpdateWithoutSessionsInput>
  create: Prisma.XOR<Prisma.EventRoomCreateWithoutSessionsInput, Prisma.EventRoomUncheckedCreateWithoutSessionsInput>
  where?: Prisma.EventRoomWhereInput
}

export type EventRoomUpdateToOneWithWhereWithoutSessionsInput = {
  where?: Prisma.EventRoomWhereInput
  data: Prisma.XOR<Prisma.EventRoomUpdateWithoutSessionsInput, Prisma.EventRoomUncheckedUpdateWithoutSessionsInput>
}

export type EventRoomUpdateWithoutSessionsInput = {
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  event?: Prisma.EventUpdateOneRequiredWithoutEventRoomsNestedInput
  room?: Prisma.RoomUpdateOneRequiredWithoutEventRoomsNestedInput
}

export type EventRoomUncheckedUpdateWithoutSessionsInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  eventId?: Prisma.IntFieldUpdateOperationsInput | number
  roomId?: Prisma.IntFieldUpdateOperationsInput | number
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type EventRoomCreateManyEventInput = {
  id?: number
  roomId: number
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type EventRoomUpdateWithoutEventInput = {
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  room?: Prisma.RoomUpdateOneRequiredWithoutEventRoomsNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutEventRoomNestedInput
}

export type EventRoomUncheckedUpdateWithoutEventInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  roomId?: Prisma.IntFieldUpdateOperationsInput | number
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutEventRoomNestedInput
}

export type EventRoomUncheckedUpdateManyWithoutEventInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  roomId?: Prisma.IntFieldUpdateOperationsInput | number
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type EventRoomCreateManyRoomInput = {
  id?: number
  eventId: number
  category?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type EventRoomUpdateWithoutRoomInput = {
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  event?: Prisma.EventUpdateOneRequiredWithoutEventRoomsNestedInput
  sessions?: Prisma.SessionUpdateManyWithoutEventRoomNestedInput
}

export type EventRoomUncheckedUpdateWithoutRoomInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  eventId?: Prisma.IntFieldUpdateOperationsInput | number
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  sessions?: Prisma.SessionUncheckedUpdateManyWithoutEventRoomNestedInput
}

export type EventRoomUncheckedUpdateManyWithoutRoomInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  eventId?: Prisma.IntFieldUpdateOperationsInput | number
  category?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type EventRoomCountOutputType
 */

export type EventRoomCountOutputType = {
  sessions: number
}

export type EventRoomCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  sessions?: boolean | EventRoomCountOutputTypeCountSessionsArgs
}

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

/**
 * EventRoomCountOutputType without action
 */
export type EventRoomCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.SessionWhereInput
}


export type EventRoomSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  eventId?: boolean
  roomId?: boolean
  category?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
  room?: boolean | Prisma.RoomDefaultArgs<ExtArgs>
  sessions?: boolean | Prisma.EventRoom$sessionsArgs<ExtArgs>
  _count?: boolean | Prisma.EventRoomCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["eventRoom"]>



export type EventRoomSelectScalar = {
  id?: boolean
  eventId?: boolean
  roomId?: boolean
  category?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type EventRoomOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "eventId" | "roomId" | "category" | "createdAt" | "updatedAt", ExtArgs["result"]["eventRoom"]>
export type EventRoomInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
  room?: boolean | Prisma.RoomDefaultArgs<ExtArgs>
  sessions?: boolean | Prisma.EventRoom$sessionsArgs<ExtArgs>
  _count?: boolean | Prisma.EventRoomCountOutputTypeDefaultArgs<ExtArgs>
}

export type $EventRoomPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "EventRoom"
  objects: {
    event: Prisma.$EventPayload<ExtArgs>
    room: Prisma.$RoomPayload<ExtArgs>
    sessions: Prisma.$SessionPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    eventId: number
    roomId: number
    category: string | null
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["eventRoom"]>
  composites: {}
}

export type EventRoomGetPayload<S extends boolean | null | undefined | EventRoomDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EventRoomPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for EventRoom.
 * 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__EventRoomClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  event<T extends Prisma.EventDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventDefaultArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  room<T extends Prisma.RoomDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RoomDefaultArgs<ExtArgs>>): Prisma.Prisma__RoomClient<runtime.Types.Result.GetResult<Prisma.$RoomPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  sessions<T extends Prisma.EventRoom$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventRoom$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<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 EventRoom model
 */
export interface EventRoomFieldRefs {
  readonly id: Prisma.FieldRef<"EventRoom", 'Int'>
  readonly eventId: Prisma.FieldRef<"EventRoom", 'Int'>
  readonly roomId: Prisma.FieldRef<"EventRoom", 'Int'>
  readonly category: Prisma.FieldRef<"EventRoom", 'String'>
  readonly createdAt: Prisma.FieldRef<"EventRoom", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"EventRoom", 'DateTime'>
}
    

// Custom InputTypes
/**
 * EventRoom findUnique
 */
export type EventRoomFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the EventRoom
   */
  select?: Prisma.EventRoomSelect<ExtArgs> | null
  /**
   * Omit specific fields from the EventRoom
   */
  omit?: Prisma.EventRoomOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EventRoomInclude<ExtArgs> | null
  /**
   * Filter, which EventRoom to fetch.
   */
  where: Prisma.EventRoomWhereUniqueInput
}

/**
 * EventRoom findUniqueOrThrow
 */
export type EventRoomFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the EventRoom
   */
  select?: Prisma.EventRoomSelect<ExtArgs> | null
  /**
   * Omit specific fields from the EventRoom
   */
  omit?: Prisma.EventRoomOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EventRoomInclude<ExtArgs> | null
  /**
   * Filter, which EventRoom to fetch.
   */
  where: Prisma.EventRoomWhereUniqueInput
}

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

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

/**
 * EventRoom findMany
 */
export type EventRoomFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the EventRoom
   */
  select?: Prisma.EventRoomSelect<ExtArgs> | null
  /**
   * Omit specific fields from the EventRoom
   */
  omit?: Prisma.EventRoomOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EventRoomInclude<ExtArgs> | null
  /**
   * Filter, which EventRooms to fetch.
   */
  where?: Prisma.EventRoomWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of EventRooms to fetch.
   */
  orderBy?: Prisma.EventRoomOrderByWithRelationInput | Prisma.EventRoomOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing EventRooms.
   */
  cursor?: Prisma.EventRoomWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` EventRooms 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` EventRooms.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of EventRooms.
   */
  distinct?: Prisma.EventRoomScalarFieldEnum | Prisma.EventRoomScalarFieldEnum[]
}

/**
 * EventRoom create
 */
export type EventRoomCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the EventRoom
   */
  select?: Prisma.EventRoomSelect<ExtArgs> | null
  /**
   * Omit specific fields from the EventRoom
   */
  omit?: Prisma.EventRoomOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EventRoomInclude<ExtArgs> | null
  /**
   * The data needed to create a EventRoom.
   */
  data: Prisma.XOR<Prisma.EventRoomCreateInput, Prisma.EventRoomUncheckedCreateInput>
}

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

/**
 * EventRoom update
 */
export type EventRoomUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the EventRoom
   */
  select?: Prisma.EventRoomSelect<ExtArgs> | null
  /**
   * Omit specific fields from the EventRoom
   */
  omit?: Prisma.EventRoomOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EventRoomInclude<ExtArgs> | null
  /**
   * The data needed to update a EventRoom.
   */
  data: Prisma.XOR<Prisma.EventRoomUpdateInput, Prisma.EventRoomUncheckedUpdateInput>
  /**
   * Choose, which EventRoom to update.
   */
  where: Prisma.EventRoomWhereUniqueInput
}

/**
 * EventRoom updateMany
 */
export type EventRoomUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update EventRooms.
   */
  data: Prisma.XOR<Prisma.EventRoomUpdateManyMutationInput, Prisma.EventRoomUncheckedUpdateManyInput>
  /**
   * Filter which EventRooms to update
   */
  where?: Prisma.EventRoomWhereInput
  /**
   * Limit how many EventRooms to update.
   */
  limit?: number
}

/**
 * EventRoom upsert
 */
export type EventRoomUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the EventRoom
   */
  select?: Prisma.EventRoomSelect<ExtArgs> | null
  /**
   * Omit specific fields from the EventRoom
   */
  omit?: Prisma.EventRoomOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EventRoomInclude<ExtArgs> | null
  /**
   * The filter to search for the EventRoom to update in case it exists.
   */
  where: Prisma.EventRoomWhereUniqueInput
  /**
   * In case the EventRoom found by the `where` argument doesn't exist, create a new EventRoom with this data.
   */
  create: Prisma.XOR<Prisma.EventRoomCreateInput, Prisma.EventRoomUncheckedCreateInput>
  /**
   * In case the EventRoom was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.EventRoomUpdateInput, Prisma.EventRoomUncheckedUpdateInput>
}

/**
 * EventRoom delete
 */
export type EventRoomDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the EventRoom
   */
  select?: Prisma.EventRoomSelect<ExtArgs> | null
  /**
   * Omit specific fields from the EventRoom
   */
  omit?: Prisma.EventRoomOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.EventRoomInclude<ExtArgs> | null
  /**
   * Filter which EventRoom to delete.
   */
  where: Prisma.EventRoomWhereUniqueInput
}

/**
 * EventRoom deleteMany
 */
export type EventRoomDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which EventRooms to delete
   */
  where?: Prisma.EventRoomWhereInput
  /**
   * Limit how many EventRooms to delete.
   */
  limit?: number
}

/**
 * EventRoom.sessions
 */
export type EventRoom$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Session
   */
  select?: Prisma.SessionSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Session
   */
  omit?: Prisma.SessionOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.SessionInclude<ExtArgs> | null
  where?: Prisma.SessionWhereInput
  orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
  cursor?: Prisma.SessionWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
}

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