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

export type AggregateReview = {
  _count: ReviewCountAggregateOutputType | null
  _avg: ReviewAvgAggregateOutputType | null
  _sum: ReviewSumAggregateOutputType | null
  _min: ReviewMinAggregateOutputType | null
  _max: ReviewMaxAggregateOutputType | null
}

export type ReviewAvgAggregateOutputType = {
  rating: number | null
}

export type ReviewSumAggregateOutputType = {
  rating: number | null
}

export type ReviewMinAggregateOutputType = {
  id: string | null
  userId: string | null
  bookId: string | null
  rating: number | null
  content: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ReviewMaxAggregateOutputType = {
  id: string | null
  userId: string | null
  bookId: string | null
  rating: number | null
  content: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ReviewCountAggregateOutputType = {
  id: number
  userId: number
  bookId: number
  rating: number
  content: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type ReviewAvgAggregateInputType = {
  rating?: true
}

export type ReviewSumAggregateInputType = {
  rating?: true
}

export type ReviewMinAggregateInputType = {
  id?: true
  userId?: true
  bookId?: true
  rating?: true
  content?: true
  createdAt?: true
  updatedAt?: true
}

export type ReviewMaxAggregateInputType = {
  id?: true
  userId?: true
  bookId?: true
  rating?: true
  content?: true
  createdAt?: true
  updatedAt?: true
}

export type ReviewCountAggregateInputType = {
  id?: true
  userId?: true
  bookId?: true
  rating?: true
  content?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type ReviewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which review to aggregate.
   */
  where?: Prisma.reviewWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of reviews to fetch.
   */
  orderBy?: Prisma.reviewOrderByWithRelationInput | Prisma.reviewOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.reviewWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` reviews 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` reviews.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned reviews
  **/
  _count?: true | ReviewCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ReviewAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ReviewSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ReviewMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ReviewMaxAggregateInputType
}

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




export type reviewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.reviewWhereInput
  orderBy?: Prisma.reviewOrderByWithAggregationInput | Prisma.reviewOrderByWithAggregationInput[]
  by: Prisma.ReviewScalarFieldEnum[] | Prisma.ReviewScalarFieldEnum
  having?: Prisma.reviewScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ReviewCountAggregateInputType | true
  _avg?: ReviewAvgAggregateInputType
  _sum?: ReviewSumAggregateInputType
  _min?: ReviewMinAggregateInputType
  _max?: ReviewMaxAggregateInputType
}

export type ReviewGroupByOutputType = {
  id: string
  userId: string
  bookId: string
  rating: number
  content: string | null
  createdAt: Date
  updatedAt: Date
  _count: ReviewCountAggregateOutputType | null
  _avg: ReviewAvgAggregateOutputType | null
  _sum: ReviewSumAggregateOutputType | null
  _min: ReviewMinAggregateOutputType | null
  _max: ReviewMaxAggregateOutputType | null
}

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



export type reviewWhereInput = {
  AND?: Prisma.reviewWhereInput | Prisma.reviewWhereInput[]
  OR?: Prisma.reviewWhereInput[]
  NOT?: Prisma.reviewWhereInput | Prisma.reviewWhereInput[]
  id?: Prisma.StringFilter<"review"> | string
  userId?: Prisma.StringFilter<"review"> | string
  bookId?: Prisma.StringFilter<"review"> | string
  rating?: Prisma.IntFilter<"review"> | number
  content?: Prisma.StringNullableFilter<"review"> | string | null
  createdAt?: Prisma.DateTimeFilter<"review"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"review"> | Date | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.userWhereInput>
  book?: Prisma.XOR<Prisma.BookScalarRelationFilter, Prisma.bookWhereInput>
  comments?: Prisma.ReviewCommentListRelationFilter
}

export type reviewOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  bookId?: Prisma.SortOrder
  rating?: Prisma.SortOrder
  content?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  user?: Prisma.userOrderByWithRelationInput
  book?: Prisma.bookOrderByWithRelationInput
  comments?: Prisma.ReviewCommentOrderByRelationAggregateInput
}

export type reviewWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  userId_bookId?: Prisma.reviewUserIdBookIdCompoundUniqueInput
  AND?: Prisma.reviewWhereInput | Prisma.reviewWhereInput[]
  OR?: Prisma.reviewWhereInput[]
  NOT?: Prisma.reviewWhereInput | Prisma.reviewWhereInput[]
  userId?: Prisma.StringFilter<"review"> | string
  bookId?: Prisma.StringFilter<"review"> | string
  rating?: Prisma.IntFilter<"review"> | number
  content?: Prisma.StringNullableFilter<"review"> | string | null
  createdAt?: Prisma.DateTimeFilter<"review"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"review"> | Date | string
  user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.userWhereInput>
  book?: Prisma.XOR<Prisma.BookScalarRelationFilter, Prisma.bookWhereInput>
  comments?: Prisma.ReviewCommentListRelationFilter
}, "id" | "userId_bookId">

export type reviewOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  bookId?: Prisma.SortOrder
  rating?: Prisma.SortOrder
  content?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.reviewCountOrderByAggregateInput
  _avg?: Prisma.reviewAvgOrderByAggregateInput
  _max?: Prisma.reviewMaxOrderByAggregateInput
  _min?: Prisma.reviewMinOrderByAggregateInput
  _sum?: Prisma.reviewSumOrderByAggregateInput
}

export type reviewScalarWhereWithAggregatesInput = {
  AND?: Prisma.reviewScalarWhereWithAggregatesInput | Prisma.reviewScalarWhereWithAggregatesInput[]
  OR?: Prisma.reviewScalarWhereWithAggregatesInput[]
  NOT?: Prisma.reviewScalarWhereWithAggregatesInput | Prisma.reviewScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"review"> | string
  userId?: Prisma.StringWithAggregatesFilter<"review"> | string
  bookId?: Prisma.StringWithAggregatesFilter<"review"> | string
  rating?: Prisma.IntWithAggregatesFilter<"review"> | number
  content?: Prisma.StringNullableWithAggregatesFilter<"review"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"review"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"review"> | Date | string
}

export type reviewCreateInput = {
  id?: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.userCreateNestedOneWithoutReviewsInput
  book: Prisma.bookCreateNestedOneWithoutReviewsInput
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
}

export type reviewUncheckedCreateInput = {
  id?: string
  userId: string
  bookId: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
}

export type reviewUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.userUpdateOneRequiredWithoutReviewsNestedInput
  book?: Prisma.bookUpdateOneRequiredWithoutReviewsNestedInput
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
}

export type reviewUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
}

export type reviewCreateManyInput = {
  id?: string
  userId: string
  bookId: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type reviewUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type reviewUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ReviewListRelationFilter = {
  every?: Prisma.reviewWhereInput
  some?: Prisma.reviewWhereInput
  none?: Prisma.reviewWhereInput
}

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

export type reviewUserIdBookIdCompoundUniqueInput = {
  userId: string
  bookId: string
}

export type reviewCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  bookId?: Prisma.SortOrder
  rating?: Prisma.SortOrder
  content?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type reviewAvgOrderByAggregateInput = {
  rating?: Prisma.SortOrder
}

export type reviewMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  bookId?: Prisma.SortOrder
  rating?: Prisma.SortOrder
  content?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type reviewMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  bookId?: Prisma.SortOrder
  rating?: Prisma.SortOrder
  content?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type reviewSumOrderByAggregateInput = {
  rating?: Prisma.SortOrder
}

export type ReviewScalarRelationFilter = {
  is?: Prisma.reviewWhereInput
  isNot?: Prisma.reviewWhereInput
}

export type reviewCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutUserInput, Prisma.reviewUncheckedCreateWithoutUserInput> | Prisma.reviewCreateWithoutUserInput[] | Prisma.reviewUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutUserInput | Prisma.reviewCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.reviewCreateManyUserInputEnvelope
  connect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
}

export type reviewUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutUserInput, Prisma.reviewUncheckedCreateWithoutUserInput> | Prisma.reviewCreateWithoutUserInput[] | Prisma.reviewUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutUserInput | Prisma.reviewCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.reviewCreateManyUserInputEnvelope
  connect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
}

export type reviewUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutUserInput, Prisma.reviewUncheckedCreateWithoutUserInput> | Prisma.reviewCreateWithoutUserInput[] | Prisma.reviewUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutUserInput | Prisma.reviewCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.reviewUpsertWithWhereUniqueWithoutUserInput | Prisma.reviewUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.reviewCreateManyUserInputEnvelope
  set?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  disconnect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  delete?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  connect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  update?: Prisma.reviewUpdateWithWhereUniqueWithoutUserInput | Prisma.reviewUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.reviewUpdateManyWithWhereWithoutUserInput | Prisma.reviewUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.reviewScalarWhereInput | Prisma.reviewScalarWhereInput[]
}

export type reviewUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutUserInput, Prisma.reviewUncheckedCreateWithoutUserInput> | Prisma.reviewCreateWithoutUserInput[] | Prisma.reviewUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutUserInput | Prisma.reviewCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.reviewUpsertWithWhereUniqueWithoutUserInput | Prisma.reviewUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.reviewCreateManyUserInputEnvelope
  set?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  disconnect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  delete?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  connect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  update?: Prisma.reviewUpdateWithWhereUniqueWithoutUserInput | Prisma.reviewUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.reviewUpdateManyWithWhereWithoutUserInput | Prisma.reviewUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.reviewScalarWhereInput | Prisma.reviewScalarWhereInput[]
}

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

export type reviewCreateNestedOneWithoutCommentsInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutCommentsInput, Prisma.reviewUncheckedCreateWithoutCommentsInput>
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutCommentsInput
  connect?: Prisma.reviewWhereUniqueInput
}

export type reviewUpdateOneRequiredWithoutCommentsNestedInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutCommentsInput, Prisma.reviewUncheckedCreateWithoutCommentsInput>
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutCommentsInput
  upsert?: Prisma.reviewUpsertWithoutCommentsInput
  connect?: Prisma.reviewWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.reviewUpdateToOneWithWhereWithoutCommentsInput, Prisma.reviewUpdateWithoutCommentsInput>, Prisma.reviewUncheckedUpdateWithoutCommentsInput>
}

export type reviewCreateNestedManyWithoutBookInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutBookInput, Prisma.reviewUncheckedCreateWithoutBookInput> | Prisma.reviewCreateWithoutBookInput[] | Prisma.reviewUncheckedCreateWithoutBookInput[]
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutBookInput | Prisma.reviewCreateOrConnectWithoutBookInput[]
  createMany?: Prisma.reviewCreateManyBookInputEnvelope
  connect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
}

export type reviewUncheckedCreateNestedManyWithoutBookInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutBookInput, Prisma.reviewUncheckedCreateWithoutBookInput> | Prisma.reviewCreateWithoutBookInput[] | Prisma.reviewUncheckedCreateWithoutBookInput[]
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutBookInput | Prisma.reviewCreateOrConnectWithoutBookInput[]
  createMany?: Prisma.reviewCreateManyBookInputEnvelope
  connect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
}

export type reviewUpdateManyWithoutBookNestedInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutBookInput, Prisma.reviewUncheckedCreateWithoutBookInput> | Prisma.reviewCreateWithoutBookInput[] | Prisma.reviewUncheckedCreateWithoutBookInput[]
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutBookInput | Prisma.reviewCreateOrConnectWithoutBookInput[]
  upsert?: Prisma.reviewUpsertWithWhereUniqueWithoutBookInput | Prisma.reviewUpsertWithWhereUniqueWithoutBookInput[]
  createMany?: Prisma.reviewCreateManyBookInputEnvelope
  set?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  disconnect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  delete?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  connect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  update?: Prisma.reviewUpdateWithWhereUniqueWithoutBookInput | Prisma.reviewUpdateWithWhereUniqueWithoutBookInput[]
  updateMany?: Prisma.reviewUpdateManyWithWhereWithoutBookInput | Prisma.reviewUpdateManyWithWhereWithoutBookInput[]
  deleteMany?: Prisma.reviewScalarWhereInput | Prisma.reviewScalarWhereInput[]
}

export type reviewUncheckedUpdateManyWithoutBookNestedInput = {
  create?: Prisma.XOR<Prisma.reviewCreateWithoutBookInput, Prisma.reviewUncheckedCreateWithoutBookInput> | Prisma.reviewCreateWithoutBookInput[] | Prisma.reviewUncheckedCreateWithoutBookInput[]
  connectOrCreate?: Prisma.reviewCreateOrConnectWithoutBookInput | Prisma.reviewCreateOrConnectWithoutBookInput[]
  upsert?: Prisma.reviewUpsertWithWhereUniqueWithoutBookInput | Prisma.reviewUpsertWithWhereUniqueWithoutBookInput[]
  createMany?: Prisma.reviewCreateManyBookInputEnvelope
  set?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  disconnect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  delete?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  connect?: Prisma.reviewWhereUniqueInput | Prisma.reviewWhereUniqueInput[]
  update?: Prisma.reviewUpdateWithWhereUniqueWithoutBookInput | Prisma.reviewUpdateWithWhereUniqueWithoutBookInput[]
  updateMany?: Prisma.reviewUpdateManyWithWhereWithoutBookInput | Prisma.reviewUpdateManyWithWhereWithoutBookInput[]
  deleteMany?: Prisma.reviewScalarWhereInput | Prisma.reviewScalarWhereInput[]
}

export type reviewCreateWithoutUserInput = {
  id?: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  book: Prisma.bookCreateNestedOneWithoutReviewsInput
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
}

export type reviewUncheckedCreateWithoutUserInput = {
  id?: string
  bookId: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
}

export type reviewCreateOrConnectWithoutUserInput = {
  where: Prisma.reviewWhereUniqueInput
  create: Prisma.XOR<Prisma.reviewCreateWithoutUserInput, Prisma.reviewUncheckedCreateWithoutUserInput>
}

export type reviewCreateManyUserInputEnvelope = {
  data: Prisma.reviewCreateManyUserInput | Prisma.reviewCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type reviewUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.reviewWhereUniqueInput
  update: Prisma.XOR<Prisma.reviewUpdateWithoutUserInput, Prisma.reviewUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.reviewCreateWithoutUserInput, Prisma.reviewUncheckedCreateWithoutUserInput>
}

export type reviewUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.reviewWhereUniqueInput
  data: Prisma.XOR<Prisma.reviewUpdateWithoutUserInput, Prisma.reviewUncheckedUpdateWithoutUserInput>
}

export type reviewUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.reviewScalarWhereInput
  data: Prisma.XOR<Prisma.reviewUpdateManyMutationInput, Prisma.reviewUncheckedUpdateManyWithoutUserInput>
}

export type reviewScalarWhereInput = {
  AND?: Prisma.reviewScalarWhereInput | Prisma.reviewScalarWhereInput[]
  OR?: Prisma.reviewScalarWhereInput[]
  NOT?: Prisma.reviewScalarWhereInput | Prisma.reviewScalarWhereInput[]
  id?: Prisma.StringFilter<"review"> | string
  userId?: Prisma.StringFilter<"review"> | string
  bookId?: Prisma.StringFilter<"review"> | string
  rating?: Prisma.IntFilter<"review"> | number
  content?: Prisma.StringNullableFilter<"review"> | string | null
  createdAt?: Prisma.DateTimeFilter<"review"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"review"> | Date | string
}

export type reviewCreateWithoutCommentsInput = {
  id?: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.userCreateNestedOneWithoutReviewsInput
  book: Prisma.bookCreateNestedOneWithoutReviewsInput
}

export type reviewUncheckedCreateWithoutCommentsInput = {
  id?: string
  userId: string
  bookId: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type reviewCreateOrConnectWithoutCommentsInput = {
  where: Prisma.reviewWhereUniqueInput
  create: Prisma.XOR<Prisma.reviewCreateWithoutCommentsInput, Prisma.reviewUncheckedCreateWithoutCommentsInput>
}

export type reviewUpsertWithoutCommentsInput = {
  update: Prisma.XOR<Prisma.reviewUpdateWithoutCommentsInput, Prisma.reviewUncheckedUpdateWithoutCommentsInput>
  create: Prisma.XOR<Prisma.reviewCreateWithoutCommentsInput, Prisma.reviewUncheckedCreateWithoutCommentsInput>
  where?: Prisma.reviewWhereInput
}

export type reviewUpdateToOneWithWhereWithoutCommentsInput = {
  where?: Prisma.reviewWhereInput
  data: Prisma.XOR<Prisma.reviewUpdateWithoutCommentsInput, Prisma.reviewUncheckedUpdateWithoutCommentsInput>
}

export type reviewUpdateWithoutCommentsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.userUpdateOneRequiredWithoutReviewsNestedInput
  book?: Prisma.bookUpdateOneRequiredWithoutReviewsNestedInput
}

export type reviewUncheckedUpdateWithoutCommentsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type reviewCreateWithoutBookInput = {
  id?: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  user: Prisma.userCreateNestedOneWithoutReviewsInput
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
}

export type reviewUncheckedCreateWithoutBookInput = {
  id?: string
  userId: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
}

export type reviewCreateOrConnectWithoutBookInput = {
  where: Prisma.reviewWhereUniqueInput
  create: Prisma.XOR<Prisma.reviewCreateWithoutBookInput, Prisma.reviewUncheckedCreateWithoutBookInput>
}

export type reviewCreateManyBookInputEnvelope = {
  data: Prisma.reviewCreateManyBookInput | Prisma.reviewCreateManyBookInput[]
  skipDuplicates?: boolean
}

export type reviewUpsertWithWhereUniqueWithoutBookInput = {
  where: Prisma.reviewWhereUniqueInput
  update: Prisma.XOR<Prisma.reviewUpdateWithoutBookInput, Prisma.reviewUncheckedUpdateWithoutBookInput>
  create: Prisma.XOR<Prisma.reviewCreateWithoutBookInput, Prisma.reviewUncheckedCreateWithoutBookInput>
}

export type reviewUpdateWithWhereUniqueWithoutBookInput = {
  where: Prisma.reviewWhereUniqueInput
  data: Prisma.XOR<Prisma.reviewUpdateWithoutBookInput, Prisma.reviewUncheckedUpdateWithoutBookInput>
}

export type reviewUpdateManyWithWhereWithoutBookInput = {
  where: Prisma.reviewScalarWhereInput
  data: Prisma.XOR<Prisma.reviewUpdateManyMutationInput, Prisma.reviewUncheckedUpdateManyWithoutBookInput>
}

export type reviewCreateManyUserInput = {
  id?: string
  bookId: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type reviewUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  book?: Prisma.bookUpdateOneRequiredWithoutReviewsNestedInput
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
}

export type reviewUncheckedUpdateWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
}

export type reviewUncheckedUpdateManyWithoutUserInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type reviewCreateManyBookInput = {
  id?: string
  userId: string
  rating: number
  content?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type reviewUpdateWithoutBookInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.userUpdateOneRequiredWithoutReviewsNestedInput
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
}

export type reviewUncheckedUpdateWithoutBookInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
}

export type reviewUncheckedUpdateManyWithoutBookInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.StringFieldUpdateOperationsInput | string
  rating?: Prisma.IntFieldUpdateOperationsInput | number
  content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type ReviewCountOutputType
 */

export type ReviewCountOutputType = {
  comments: number
}

export type ReviewCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  comments?: boolean | ReviewCountOutputTypeCountCommentsArgs
}

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

/**
 * ReviewCountOutputType without action
 */
export type ReviewCountOutputTypeCountCommentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ReviewCommentWhereInput
}


export type reviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  bookId?: boolean
  rating?: boolean
  content?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
  comments?: boolean | Prisma.review$commentsArgs<ExtArgs>
  _count?: boolean | Prisma.ReviewCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["review"]>

export type reviewSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  bookId?: boolean
  rating?: boolean
  content?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
}, ExtArgs["result"]["review"]>

export type reviewSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  userId?: boolean
  bookId?: boolean
  rating?: boolean
  content?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
}, ExtArgs["result"]["review"]>

export type reviewSelectScalar = {
  id?: boolean
  userId?: boolean
  bookId?: boolean
  rating?: boolean
  content?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type reviewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "bookId" | "rating" | "content" | "createdAt" | "updatedAt", ExtArgs["result"]["review"]>
export type reviewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
  comments?: boolean | Prisma.review$commentsArgs<ExtArgs>
  _count?: boolean | Prisma.ReviewCountOutputTypeDefaultArgs<ExtArgs>
}
export type reviewIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
}
export type reviewIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  user?: boolean | Prisma.userDefaultArgs<ExtArgs>
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
}

export type $reviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "review"
  objects: {
    user: Prisma.$userPayload<ExtArgs>
    book: Prisma.$bookPayload<ExtArgs>
    comments: Prisma.$ReviewCommentPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    userId: string
    bookId: string
    rating: number
    content: string | null
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["review"]>
  composites: {}
}

export type reviewGetPayload<S extends boolean | null | undefined | reviewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$reviewPayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many Reviews and returns the data saved in the database.
   * @param {reviewCreateManyAndReturnArgs} args - Arguments to create many Reviews.
   * @example
   * // Create many Reviews
   * const review = await prisma.review.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Reviews and only return the `id`
   * const reviewWithIdOnly = await prisma.review.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends reviewCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, reviewCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$reviewPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more Reviews and returns the data updated in the database.
   * @param {reviewUpdateManyAndReturnArgs} args - Arguments to update many Reviews.
   * @example
   * // Update many Reviews
   * const review = await prisma.review.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Reviews and only return the `id`
   * const reviewWithIdOnly = await prisma.review.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends reviewUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, reviewUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$reviewPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for review.
 * 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__reviewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  user<T extends Prisma.userDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.userDefaultArgs<ExtArgs>>): Prisma.Prisma__userClient<runtime.Types.Result.GetResult<Prisma.$userPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  book<T extends Prisma.bookDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bookDefaultArgs<ExtArgs>>): Prisma.Prisma__bookClient<runtime.Types.Result.GetResult<Prisma.$bookPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  comments<T extends Prisma.review$commentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.review$commentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReviewCommentPayload<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 review model
 */
export interface reviewFieldRefs {
  readonly id: Prisma.FieldRef<"review", 'String'>
  readonly userId: Prisma.FieldRef<"review", 'String'>
  readonly bookId: Prisma.FieldRef<"review", 'String'>
  readonly rating: Prisma.FieldRef<"review", 'Int'>
  readonly content: Prisma.FieldRef<"review", 'String'>
  readonly createdAt: Prisma.FieldRef<"review", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"review", 'DateTime'>
}
    

// Custom InputTypes
/**
 * review findUnique
 */
export type reviewFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the review
   */
  select?: Prisma.reviewSelect<ExtArgs> | null
  /**
   * Omit specific fields from the review
   */
  omit?: Prisma.reviewOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.reviewInclude<ExtArgs> | null
  /**
   * Filter, which review to fetch.
   */
  where: Prisma.reviewWhereUniqueInput
}

/**
 * review findUniqueOrThrow
 */
export type reviewFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the review
   */
  select?: Prisma.reviewSelect<ExtArgs> | null
  /**
   * Omit specific fields from the review
   */
  omit?: Prisma.reviewOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.reviewInclude<ExtArgs> | null
  /**
   * Filter, which review to fetch.
   */
  where: Prisma.reviewWhereUniqueInput
}

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

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

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

/**
 * review create
 */
export type reviewCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the review
   */
  select?: Prisma.reviewSelect<ExtArgs> | null
  /**
   * Omit specific fields from the review
   */
  omit?: Prisma.reviewOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.reviewInclude<ExtArgs> | null
  /**
   * The data needed to create a review.
   */
  data: Prisma.XOR<Prisma.reviewCreateInput, Prisma.reviewUncheckedCreateInput>
}

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

/**
 * review createManyAndReturn
 */
export type reviewCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the review
   */
  select?: Prisma.reviewSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the review
   */
  omit?: Prisma.reviewOmit<ExtArgs> | null
  /**
   * The data used to create many reviews.
   */
  data: Prisma.reviewCreateManyInput | Prisma.reviewCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.reviewIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * review update
 */
export type reviewUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the review
   */
  select?: Prisma.reviewSelect<ExtArgs> | null
  /**
   * Omit specific fields from the review
   */
  omit?: Prisma.reviewOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.reviewInclude<ExtArgs> | null
  /**
   * The data needed to update a review.
   */
  data: Prisma.XOR<Prisma.reviewUpdateInput, Prisma.reviewUncheckedUpdateInput>
  /**
   * Choose, which review to update.
   */
  where: Prisma.reviewWhereUniqueInput
}

/**
 * review updateMany
 */
export type reviewUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update reviews.
   */
  data: Prisma.XOR<Prisma.reviewUpdateManyMutationInput, Prisma.reviewUncheckedUpdateManyInput>
  /**
   * Filter which reviews to update
   */
  where?: Prisma.reviewWhereInput
  /**
   * Limit how many reviews to update.
   */
  limit?: number
}

/**
 * review updateManyAndReturn
 */
export type reviewUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the review
   */
  select?: Prisma.reviewSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the review
   */
  omit?: Prisma.reviewOmit<ExtArgs> | null
  /**
   * The data used to update reviews.
   */
  data: Prisma.XOR<Prisma.reviewUpdateManyMutationInput, Prisma.reviewUncheckedUpdateManyInput>
  /**
   * Filter which reviews to update
   */
  where?: Prisma.reviewWhereInput
  /**
   * Limit how many reviews to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.reviewIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * review upsert
 */
export type reviewUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the review
   */
  select?: Prisma.reviewSelect<ExtArgs> | null
  /**
   * Omit specific fields from the review
   */
  omit?: Prisma.reviewOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.reviewInclude<ExtArgs> | null
  /**
   * The filter to search for the review to update in case it exists.
   */
  where: Prisma.reviewWhereUniqueInput
  /**
   * In case the review found by the `where` argument doesn't exist, create a new review with this data.
   */
  create: Prisma.XOR<Prisma.reviewCreateInput, Prisma.reviewUncheckedCreateInput>
  /**
   * In case the review was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.reviewUpdateInput, Prisma.reviewUncheckedUpdateInput>
}

/**
 * review delete
 */
export type reviewDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the review
   */
  select?: Prisma.reviewSelect<ExtArgs> | null
  /**
   * Omit specific fields from the review
   */
  omit?: Prisma.reviewOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.reviewInclude<ExtArgs> | null
  /**
   * Filter which review to delete.
   */
  where: Prisma.reviewWhereUniqueInput
}

/**
 * review deleteMany
 */
export type reviewDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which reviews to delete
   */
  where?: Prisma.reviewWhereInput
  /**
   * Limit how many reviews to delete.
   */
  limit?: number
}

/**
 * review.comments
 */
export type review$commentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReviewComment
   */
  select?: Prisma.ReviewCommentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ReviewComment
   */
  omit?: Prisma.ReviewCommentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReviewCommentInclude<ExtArgs> | null
  where?: Prisma.ReviewCommentWhereInput
  orderBy?: Prisma.ReviewCommentOrderByWithRelationInput | Prisma.ReviewCommentOrderByWithRelationInput[]
  cursor?: Prisma.ReviewCommentWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ReviewCommentScalarFieldEnum | Prisma.ReviewCommentScalarFieldEnum[]
}

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