
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `Booking` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model Booking
 * 
 */
export type BookingModel = runtime.Types.Result.DefaultSelection<Prisma.$BookingPayload>

export type AggregateBooking = {
  _count: BookingCountAggregateOutputType | null
  _avg: BookingAvgAggregateOutputType | null
  _sum: BookingSumAggregateOutputType | null
  _min: BookingMinAggregateOutputType | null
  _max: BookingMaxAggregateOutputType | null
}

export type BookingAvgAggregateOutputType = {
  amountPaidCents: number | null
}

export type BookingSumAggregateOutputType = {
  amountPaidCents: number | null
}

export type BookingMinAggregateOutputType = {
  id: string | null
  serviceId: string | null
  customerName: string | null
  customerEmail: string | null
  customerPhone: string | null
  date: string | null
  startTime: string | null
  status: $Enums.BookingStatus | null
  stripeSessionId: string | null
  stripePaymentIntentId: string | null
  amountPaidCents: number | null
  notes: string | null
  createdAt: Date | null
}

export type BookingMaxAggregateOutputType = {
  id: string | null
  serviceId: string | null
  customerName: string | null
  customerEmail: string | null
  customerPhone: string | null
  date: string | null
  startTime: string | null
  status: $Enums.BookingStatus | null
  stripeSessionId: string | null
  stripePaymentIntentId: string | null
  amountPaidCents: number | null
  notes: string | null
  createdAt: Date | null
}

export type BookingCountAggregateOutputType = {
  id: number
  serviceId: number
  customerName: number
  customerEmail: number
  customerPhone: number
  date: number
  startTime: number
  status: number
  stripeSessionId: number
  stripePaymentIntentId: number
  amountPaidCents: number
  notes: number
  createdAt: number
  _all: number
}


export type BookingAvgAggregateInputType = {
  amountPaidCents?: true
}

export type BookingSumAggregateInputType = {
  amountPaidCents?: true
}

export type BookingMinAggregateInputType = {
  id?: true
  serviceId?: true
  customerName?: true
  customerEmail?: true
  customerPhone?: true
  date?: true
  startTime?: true
  status?: true
  stripeSessionId?: true
  stripePaymentIntentId?: true
  amountPaidCents?: true
  notes?: true
  createdAt?: true
}

export type BookingMaxAggregateInputType = {
  id?: true
  serviceId?: true
  customerName?: true
  customerEmail?: true
  customerPhone?: true
  date?: true
  startTime?: true
  status?: true
  stripeSessionId?: true
  stripePaymentIntentId?: true
  amountPaidCents?: true
  notes?: true
  createdAt?: true
}

export type BookingCountAggregateInputType = {
  id?: true
  serviceId?: true
  customerName?: true
  customerEmail?: true
  customerPhone?: true
  date?: true
  startTime?: true
  status?: true
  stripeSessionId?: true
  stripePaymentIntentId?: true
  amountPaidCents?: true
  notes?: true
  createdAt?: true
  _all?: true
}

export type BookingAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Booking to aggregate.
   */
  where?: Prisma.BookingWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of Bookings to fetch.
   */
  orderBy?: Prisma.BookingOrderByWithRelationInput | Prisma.BookingOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.BookingWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` Bookings 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` Bookings.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned Bookings
  **/
  _count?: true | BookingCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: BookingAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: BookingSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: BookingMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: BookingMaxAggregateInputType
}

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




export type BookingGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.BookingWhereInput
  orderBy?: Prisma.BookingOrderByWithAggregationInput | Prisma.BookingOrderByWithAggregationInput[]
  by: Prisma.BookingScalarFieldEnum[] | Prisma.BookingScalarFieldEnum
  having?: Prisma.BookingScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: BookingCountAggregateInputType | true
  _avg?: BookingAvgAggregateInputType
  _sum?: BookingSumAggregateInputType
  _min?: BookingMinAggregateInputType
  _max?: BookingMaxAggregateInputType
}

export type BookingGroupByOutputType = {
  id: string
  serviceId: string
  customerName: string
  customerEmail: string
  customerPhone: string
  date: string
  startTime: string
  status: $Enums.BookingStatus
  stripeSessionId: string | null
  stripePaymentIntentId: string | null
  amountPaidCents: number | null
  notes: string | null
  createdAt: Date
  _count: BookingCountAggregateOutputType | null
  _avg: BookingAvgAggregateOutputType | null
  _sum: BookingSumAggregateOutputType | null
  _min: BookingMinAggregateOutputType | null
  _max: BookingMaxAggregateOutputType | null
}

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



export type BookingWhereInput = {
  AND?: Prisma.BookingWhereInput | Prisma.BookingWhereInput[]
  OR?: Prisma.BookingWhereInput[]
  NOT?: Prisma.BookingWhereInput | Prisma.BookingWhereInput[]
  id?: Prisma.StringFilter<"Booking"> | string
  serviceId?: Prisma.StringFilter<"Booking"> | string
  customerName?: Prisma.StringFilter<"Booking"> | string
  customerEmail?: Prisma.StringFilter<"Booking"> | string
  customerPhone?: Prisma.StringFilter<"Booking"> | string
  date?: Prisma.StringFilter<"Booking"> | string
  startTime?: Prisma.StringFilter<"Booking"> | string
  status?: Prisma.EnumBookingStatusFilter<"Booking"> | $Enums.BookingStatus
  stripeSessionId?: Prisma.StringNullableFilter<"Booking"> | string | null
  stripePaymentIntentId?: Prisma.StringNullableFilter<"Booking"> | string | null
  amountPaidCents?: Prisma.IntNullableFilter<"Booking"> | number | null
  notes?: Prisma.StringNullableFilter<"Booking"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Booking"> | Date | string
  service?: Prisma.XOR<Prisma.ServiceScalarRelationFilter, Prisma.ServiceWhereInput>
}

export type BookingOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  serviceId?: Prisma.SortOrder
  customerName?: Prisma.SortOrder
  customerEmail?: Prisma.SortOrder
  customerPhone?: Prisma.SortOrder
  date?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  status?: Prisma.SortOrder
  stripeSessionId?: Prisma.SortOrderInput | Prisma.SortOrder
  stripePaymentIntentId?: Prisma.SortOrderInput | Prisma.SortOrder
  amountPaidCents?: Prisma.SortOrderInput | Prisma.SortOrder
  notes?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  service?: Prisma.ServiceOrderByWithRelationInput
  _relevance?: Prisma.BookingOrderByRelevanceInput
}

export type BookingWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  stripeSessionId?: string
  AND?: Prisma.BookingWhereInput | Prisma.BookingWhereInput[]
  OR?: Prisma.BookingWhereInput[]
  NOT?: Prisma.BookingWhereInput | Prisma.BookingWhereInput[]
  serviceId?: Prisma.StringFilter<"Booking"> | string
  customerName?: Prisma.StringFilter<"Booking"> | string
  customerEmail?: Prisma.StringFilter<"Booking"> | string
  customerPhone?: Prisma.StringFilter<"Booking"> | string
  date?: Prisma.StringFilter<"Booking"> | string
  startTime?: Prisma.StringFilter<"Booking"> | string
  status?: Prisma.EnumBookingStatusFilter<"Booking"> | $Enums.BookingStatus
  stripePaymentIntentId?: Prisma.StringNullableFilter<"Booking"> | string | null
  amountPaidCents?: Prisma.IntNullableFilter<"Booking"> | number | null
  notes?: Prisma.StringNullableFilter<"Booking"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Booking"> | Date | string
  service?: Prisma.XOR<Prisma.ServiceScalarRelationFilter, Prisma.ServiceWhereInput>
}, "id" | "stripeSessionId">

export type BookingOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  serviceId?: Prisma.SortOrder
  customerName?: Prisma.SortOrder
  customerEmail?: Prisma.SortOrder
  customerPhone?: Prisma.SortOrder
  date?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  status?: Prisma.SortOrder
  stripeSessionId?: Prisma.SortOrderInput | Prisma.SortOrder
  stripePaymentIntentId?: Prisma.SortOrderInput | Prisma.SortOrder
  amountPaidCents?: Prisma.SortOrderInput | Prisma.SortOrder
  notes?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.BookingCountOrderByAggregateInput
  _avg?: Prisma.BookingAvgOrderByAggregateInput
  _max?: Prisma.BookingMaxOrderByAggregateInput
  _min?: Prisma.BookingMinOrderByAggregateInput
  _sum?: Prisma.BookingSumOrderByAggregateInput
}

export type BookingScalarWhereWithAggregatesInput = {
  AND?: Prisma.BookingScalarWhereWithAggregatesInput | Prisma.BookingScalarWhereWithAggregatesInput[]
  OR?: Prisma.BookingScalarWhereWithAggregatesInput[]
  NOT?: Prisma.BookingScalarWhereWithAggregatesInput | Prisma.BookingScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"Booking"> | string
  serviceId?: Prisma.StringWithAggregatesFilter<"Booking"> | string
  customerName?: Prisma.StringWithAggregatesFilter<"Booking"> | string
  customerEmail?: Prisma.StringWithAggregatesFilter<"Booking"> | string
  customerPhone?: Prisma.StringWithAggregatesFilter<"Booking"> | string
  date?: Prisma.StringWithAggregatesFilter<"Booking"> | string
  startTime?: Prisma.StringWithAggregatesFilter<"Booking"> | string
  status?: Prisma.EnumBookingStatusWithAggregatesFilter<"Booking"> | $Enums.BookingStatus
  stripeSessionId?: Prisma.StringNullableWithAggregatesFilter<"Booking"> | string | null
  stripePaymentIntentId?: Prisma.StringNullableWithAggregatesFilter<"Booking"> | string | null
  amountPaidCents?: Prisma.IntNullableWithAggregatesFilter<"Booking"> | number | null
  notes?: Prisma.StringNullableWithAggregatesFilter<"Booking"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Booking"> | Date | string
}

export type BookingCreateInput = {
  id?: string
  customerName: string
  customerEmail: string
  customerPhone: string
  date: string
  startTime: string
  status?: $Enums.BookingStatus
  stripeSessionId?: string | null
  stripePaymentIntentId?: string | null
  amountPaidCents?: number | null
  notes?: string | null
  createdAt?: Date | string
  service: Prisma.ServiceCreateNestedOneWithoutBookingsInput
}

export type BookingUncheckedCreateInput = {
  id?: string
  serviceId: string
  customerName: string
  customerEmail: string
  customerPhone: string
  date: string
  startTime: string
  status?: $Enums.BookingStatus
  stripeSessionId?: string | null
  stripePaymentIntentId?: string | null
  amountPaidCents?: number | null
  notes?: string | null
  createdAt?: Date | string
}

export type BookingUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  customerName?: Prisma.StringFieldUpdateOperationsInput | string
  customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
  customerPhone?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
  stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  stripePaymentIntentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  amountPaidCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  service?: Prisma.ServiceUpdateOneRequiredWithoutBookingsNestedInput
}

export type BookingUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  serviceId?: Prisma.StringFieldUpdateOperationsInput | string
  customerName?: Prisma.StringFieldUpdateOperationsInput | string
  customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
  customerPhone?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
  stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  stripePaymentIntentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  amountPaidCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BookingCreateManyInput = {
  id?: string
  serviceId: string
  customerName: string
  customerEmail: string
  customerPhone: string
  date: string
  startTime: string
  status?: $Enums.BookingStatus
  stripeSessionId?: string | null
  stripePaymentIntentId?: string | null
  amountPaidCents?: number | null
  notes?: string | null
  createdAt?: Date | string
}

export type BookingUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  customerName?: Prisma.StringFieldUpdateOperationsInput | string
  customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
  customerPhone?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
  stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  stripePaymentIntentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  amountPaidCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BookingUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  serviceId?: Prisma.StringFieldUpdateOperationsInput | string
  customerName?: Prisma.StringFieldUpdateOperationsInput | string
  customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
  customerPhone?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
  stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  stripePaymentIntentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  amountPaidCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BookingListRelationFilter = {
  every?: Prisma.BookingWhereInput
  some?: Prisma.BookingWhereInput
  none?: Prisma.BookingWhereInput
}

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

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

export type BookingCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  serviceId?: Prisma.SortOrder
  customerName?: Prisma.SortOrder
  customerEmail?: Prisma.SortOrder
  customerPhone?: Prisma.SortOrder
  date?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  status?: Prisma.SortOrder
  stripeSessionId?: Prisma.SortOrder
  stripePaymentIntentId?: Prisma.SortOrder
  amountPaidCents?: Prisma.SortOrder
  notes?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type BookingAvgOrderByAggregateInput = {
  amountPaidCents?: Prisma.SortOrder
}

export type BookingMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  serviceId?: Prisma.SortOrder
  customerName?: Prisma.SortOrder
  customerEmail?: Prisma.SortOrder
  customerPhone?: Prisma.SortOrder
  date?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  status?: Prisma.SortOrder
  stripeSessionId?: Prisma.SortOrder
  stripePaymentIntentId?: Prisma.SortOrder
  amountPaidCents?: Prisma.SortOrder
  notes?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type BookingMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  serviceId?: Prisma.SortOrder
  customerName?: Prisma.SortOrder
  customerEmail?: Prisma.SortOrder
  customerPhone?: Prisma.SortOrder
  date?: Prisma.SortOrder
  startTime?: Prisma.SortOrder
  status?: Prisma.SortOrder
  stripeSessionId?: Prisma.SortOrder
  stripePaymentIntentId?: Prisma.SortOrder
  amountPaidCents?: Prisma.SortOrder
  notes?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type BookingSumOrderByAggregateInput = {
  amountPaidCents?: Prisma.SortOrder
}

export type BookingCreateNestedManyWithoutServiceInput = {
  create?: Prisma.XOR<Prisma.BookingCreateWithoutServiceInput, Prisma.BookingUncheckedCreateWithoutServiceInput> | Prisma.BookingCreateWithoutServiceInput[] | Prisma.BookingUncheckedCreateWithoutServiceInput[]
  connectOrCreate?: Prisma.BookingCreateOrConnectWithoutServiceInput | Prisma.BookingCreateOrConnectWithoutServiceInput[]
  createMany?: Prisma.BookingCreateManyServiceInputEnvelope
  connect?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
}

export type BookingUncheckedCreateNestedManyWithoutServiceInput = {
  create?: Prisma.XOR<Prisma.BookingCreateWithoutServiceInput, Prisma.BookingUncheckedCreateWithoutServiceInput> | Prisma.BookingCreateWithoutServiceInput[] | Prisma.BookingUncheckedCreateWithoutServiceInput[]
  connectOrCreate?: Prisma.BookingCreateOrConnectWithoutServiceInput | Prisma.BookingCreateOrConnectWithoutServiceInput[]
  createMany?: Prisma.BookingCreateManyServiceInputEnvelope
  connect?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
}

export type BookingUpdateManyWithoutServiceNestedInput = {
  create?: Prisma.XOR<Prisma.BookingCreateWithoutServiceInput, Prisma.BookingUncheckedCreateWithoutServiceInput> | Prisma.BookingCreateWithoutServiceInput[] | Prisma.BookingUncheckedCreateWithoutServiceInput[]
  connectOrCreate?: Prisma.BookingCreateOrConnectWithoutServiceInput | Prisma.BookingCreateOrConnectWithoutServiceInput[]
  upsert?: Prisma.BookingUpsertWithWhereUniqueWithoutServiceInput | Prisma.BookingUpsertWithWhereUniqueWithoutServiceInput[]
  createMany?: Prisma.BookingCreateManyServiceInputEnvelope
  set?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
  disconnect?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
  delete?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
  connect?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
  update?: Prisma.BookingUpdateWithWhereUniqueWithoutServiceInput | Prisma.BookingUpdateWithWhereUniqueWithoutServiceInput[]
  updateMany?: Prisma.BookingUpdateManyWithWhereWithoutServiceInput | Prisma.BookingUpdateManyWithWhereWithoutServiceInput[]
  deleteMany?: Prisma.BookingScalarWhereInput | Prisma.BookingScalarWhereInput[]
}

export type BookingUncheckedUpdateManyWithoutServiceNestedInput = {
  create?: Prisma.XOR<Prisma.BookingCreateWithoutServiceInput, Prisma.BookingUncheckedCreateWithoutServiceInput> | Prisma.BookingCreateWithoutServiceInput[] | Prisma.BookingUncheckedCreateWithoutServiceInput[]
  connectOrCreate?: Prisma.BookingCreateOrConnectWithoutServiceInput | Prisma.BookingCreateOrConnectWithoutServiceInput[]
  upsert?: Prisma.BookingUpsertWithWhereUniqueWithoutServiceInput | Prisma.BookingUpsertWithWhereUniqueWithoutServiceInput[]
  createMany?: Prisma.BookingCreateManyServiceInputEnvelope
  set?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
  disconnect?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
  delete?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
  connect?: Prisma.BookingWhereUniqueInput | Prisma.BookingWhereUniqueInput[]
  update?: Prisma.BookingUpdateWithWhereUniqueWithoutServiceInput | Prisma.BookingUpdateWithWhereUniqueWithoutServiceInput[]
  updateMany?: Prisma.BookingUpdateManyWithWhereWithoutServiceInput | Prisma.BookingUpdateManyWithWhereWithoutServiceInput[]
  deleteMany?: Prisma.BookingScalarWhereInput | Prisma.BookingScalarWhereInput[]
}

export type EnumBookingStatusFieldUpdateOperationsInput = {
  set?: $Enums.BookingStatus
}

export type NullableIntFieldUpdateOperationsInput = {
  set?: number | null
  increment?: number
  decrement?: number
  multiply?: number
  divide?: number
}

export type BookingCreateWithoutServiceInput = {
  id?: string
  customerName: string
  customerEmail: string
  customerPhone: string
  date: string
  startTime: string
  status?: $Enums.BookingStatus
  stripeSessionId?: string | null
  stripePaymentIntentId?: string | null
  amountPaidCents?: number | null
  notes?: string | null
  createdAt?: Date | string
}

export type BookingUncheckedCreateWithoutServiceInput = {
  id?: string
  customerName: string
  customerEmail: string
  customerPhone: string
  date: string
  startTime: string
  status?: $Enums.BookingStatus
  stripeSessionId?: string | null
  stripePaymentIntentId?: string | null
  amountPaidCents?: number | null
  notes?: string | null
  createdAt?: Date | string
}

export type BookingCreateOrConnectWithoutServiceInput = {
  where: Prisma.BookingWhereUniqueInput
  create: Prisma.XOR<Prisma.BookingCreateWithoutServiceInput, Prisma.BookingUncheckedCreateWithoutServiceInput>
}

export type BookingCreateManyServiceInputEnvelope = {
  data: Prisma.BookingCreateManyServiceInput | Prisma.BookingCreateManyServiceInput[]
  skipDuplicates?: boolean
}

export type BookingUpsertWithWhereUniqueWithoutServiceInput = {
  where: Prisma.BookingWhereUniqueInput
  update: Prisma.XOR<Prisma.BookingUpdateWithoutServiceInput, Prisma.BookingUncheckedUpdateWithoutServiceInput>
  create: Prisma.XOR<Prisma.BookingCreateWithoutServiceInput, Prisma.BookingUncheckedCreateWithoutServiceInput>
}

export type BookingUpdateWithWhereUniqueWithoutServiceInput = {
  where: Prisma.BookingWhereUniqueInput
  data: Prisma.XOR<Prisma.BookingUpdateWithoutServiceInput, Prisma.BookingUncheckedUpdateWithoutServiceInput>
}

export type BookingUpdateManyWithWhereWithoutServiceInput = {
  where: Prisma.BookingScalarWhereInput
  data: Prisma.XOR<Prisma.BookingUpdateManyMutationInput, Prisma.BookingUncheckedUpdateManyWithoutServiceInput>
}

export type BookingScalarWhereInput = {
  AND?: Prisma.BookingScalarWhereInput | Prisma.BookingScalarWhereInput[]
  OR?: Prisma.BookingScalarWhereInput[]
  NOT?: Prisma.BookingScalarWhereInput | Prisma.BookingScalarWhereInput[]
  id?: Prisma.StringFilter<"Booking"> | string
  serviceId?: Prisma.StringFilter<"Booking"> | string
  customerName?: Prisma.StringFilter<"Booking"> | string
  customerEmail?: Prisma.StringFilter<"Booking"> | string
  customerPhone?: Prisma.StringFilter<"Booking"> | string
  date?: Prisma.StringFilter<"Booking"> | string
  startTime?: Prisma.StringFilter<"Booking"> | string
  status?: Prisma.EnumBookingStatusFilter<"Booking"> | $Enums.BookingStatus
  stripeSessionId?: Prisma.StringNullableFilter<"Booking"> | string | null
  stripePaymentIntentId?: Prisma.StringNullableFilter<"Booking"> | string | null
  amountPaidCents?: Prisma.IntNullableFilter<"Booking"> | number | null
  notes?: Prisma.StringNullableFilter<"Booking"> | string | null
  createdAt?: Prisma.DateTimeFilter<"Booking"> | Date | string
}

export type BookingCreateManyServiceInput = {
  id?: string
  customerName: string
  customerEmail: string
  customerPhone: string
  date: string
  startTime: string
  status?: $Enums.BookingStatus
  stripeSessionId?: string | null
  stripePaymentIntentId?: string | null
  amountPaidCents?: number | null
  notes?: string | null
  createdAt?: Date | string
}

export type BookingUpdateWithoutServiceInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  customerName?: Prisma.StringFieldUpdateOperationsInput | string
  customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
  customerPhone?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
  stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  stripePaymentIntentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  amountPaidCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BookingUncheckedUpdateWithoutServiceInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  customerName?: Prisma.StringFieldUpdateOperationsInput | string
  customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
  customerPhone?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
  stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  stripePaymentIntentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  amountPaidCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BookingUncheckedUpdateManyWithoutServiceInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  customerName?: Prisma.StringFieldUpdateOperationsInput | string
  customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
  customerPhone?: Prisma.StringFieldUpdateOperationsInput | string
  date?: Prisma.StringFieldUpdateOperationsInput | string
  startTime?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
  stripeSessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  stripePaymentIntentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  amountPaidCents?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type BookingSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  serviceId?: boolean
  customerName?: boolean
  customerEmail?: boolean
  customerPhone?: boolean
  date?: boolean
  startTime?: boolean
  status?: boolean
  stripeSessionId?: boolean
  stripePaymentIntentId?: boolean
  amountPaidCents?: boolean
  notes?: boolean
  createdAt?: boolean
  service?: boolean | Prisma.ServiceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["booking"]>



export type BookingSelectScalar = {
  id?: boolean
  serviceId?: boolean
  customerName?: boolean
  customerEmail?: boolean
  customerPhone?: boolean
  date?: boolean
  startTime?: boolean
  status?: boolean
  stripeSessionId?: boolean
  stripePaymentIntentId?: boolean
  amountPaidCents?: boolean
  notes?: boolean
  createdAt?: boolean
}

export type BookingOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "serviceId" | "customerName" | "customerEmail" | "customerPhone" | "date" | "startTime" | "status" | "stripeSessionId" | "stripePaymentIntentId" | "amountPaidCents" | "notes" | "createdAt", ExtArgs["result"]["booking"]>
export type BookingInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  service?: boolean | Prisma.ServiceDefaultArgs<ExtArgs>
}

export type $BookingPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Booking"
  objects: {
    service: Prisma.$ServicePayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    serviceId: string
    customerName: string
    customerEmail: string
    customerPhone: string
    date: string
    startTime: string
    status: $Enums.BookingStatus
    stripeSessionId: string | null
    stripePaymentIntentId: string | null
    amountPaidCents: number | null
    notes: string | null
    createdAt: Date
  }, ExtArgs["result"]["booking"]>
  composites: {}
}

export type BookingGetPayload<S extends boolean | null | undefined | BookingDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BookingPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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




/**
 * Fields of the Booking model
 */
export interface BookingFieldRefs {
  readonly id: Prisma.FieldRef<"Booking", 'String'>
  readonly serviceId: Prisma.FieldRef<"Booking", 'String'>
  readonly customerName: Prisma.FieldRef<"Booking", 'String'>
  readonly customerEmail: Prisma.FieldRef<"Booking", 'String'>
  readonly customerPhone: Prisma.FieldRef<"Booking", 'String'>
  readonly date: Prisma.FieldRef<"Booking", 'String'>
  readonly startTime: Prisma.FieldRef<"Booking", 'String'>
  readonly status: Prisma.FieldRef<"Booking", 'BookingStatus'>
  readonly stripeSessionId: Prisma.FieldRef<"Booking", 'String'>
  readonly stripePaymentIntentId: Prisma.FieldRef<"Booking", 'String'>
  readonly amountPaidCents: Prisma.FieldRef<"Booking", 'Int'>
  readonly notes: Prisma.FieldRef<"Booking", 'String'>
  readonly createdAt: Prisma.FieldRef<"Booking", 'DateTime'>
}
    

// Custom InputTypes
/**
 * Booking findUnique
 */
export type BookingFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Booking
   */
  select?: Prisma.BookingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Booking
   */
  omit?: Prisma.BookingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BookingInclude<ExtArgs> | null
  /**
   * Filter, which Booking to fetch.
   */
  where: Prisma.BookingWhereUniqueInput
}

/**
 * Booking findUniqueOrThrow
 */
export type BookingFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Booking
   */
  select?: Prisma.BookingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Booking
   */
  omit?: Prisma.BookingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BookingInclude<ExtArgs> | null
  /**
   * Filter, which Booking to fetch.
   */
  where: Prisma.BookingWhereUniqueInput
}

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

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

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

/**
 * Booking create
 */
export type BookingCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Booking
   */
  select?: Prisma.BookingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Booking
   */
  omit?: Prisma.BookingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BookingInclude<ExtArgs> | null
  /**
   * The data needed to create a Booking.
   */
  data: Prisma.XOR<Prisma.BookingCreateInput, Prisma.BookingUncheckedCreateInput>
}

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

/**
 * Booking update
 */
export type BookingUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Booking
   */
  select?: Prisma.BookingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Booking
   */
  omit?: Prisma.BookingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BookingInclude<ExtArgs> | null
  /**
   * The data needed to update a Booking.
   */
  data: Prisma.XOR<Prisma.BookingUpdateInput, Prisma.BookingUncheckedUpdateInput>
  /**
   * Choose, which Booking to update.
   */
  where: Prisma.BookingWhereUniqueInput
}

/**
 * Booking updateMany
 */
export type BookingUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Bookings.
   */
  data: Prisma.XOR<Prisma.BookingUpdateManyMutationInput, Prisma.BookingUncheckedUpdateManyInput>
  /**
   * Filter which Bookings to update
   */
  where?: Prisma.BookingWhereInput
  /**
   * Limit how many Bookings to update.
   */
  limit?: number
}

/**
 * Booking upsert
 */
export type BookingUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Booking
   */
  select?: Prisma.BookingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Booking
   */
  omit?: Prisma.BookingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BookingInclude<ExtArgs> | null
  /**
   * The filter to search for the Booking to update in case it exists.
   */
  where: Prisma.BookingWhereUniqueInput
  /**
   * In case the Booking found by the `where` argument doesn't exist, create a new Booking with this data.
   */
  create: Prisma.XOR<Prisma.BookingCreateInput, Prisma.BookingUncheckedCreateInput>
  /**
   * In case the Booking was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.BookingUpdateInput, Prisma.BookingUncheckedUpdateInput>
}

/**
 * Booking delete
 */
export type BookingDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Booking
   */
  select?: Prisma.BookingSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Booking
   */
  omit?: Prisma.BookingOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.BookingInclude<ExtArgs> | null
  /**
   * Filter which Booking to delete.
   */
  where: Prisma.BookingWhereUniqueInput
}

/**
 * Booking deleteMany
 */
export type BookingDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Bookings to delete
   */
  where?: Prisma.BookingWhereInput
  /**
   * Limit how many Bookings to delete.
   */
  limit?: number
}

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