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

export type AggregateBookTag = {
  _count: BookTagCountAggregateOutputType | null
  _min: BookTagMinAggregateOutputType | null
  _max: BookTagMaxAggregateOutputType | null
}

export type BookTagMinAggregateOutputType = {
  bookId: string | null
  tagId: string | null
}

export type BookTagMaxAggregateOutputType = {
  bookId: string | null
  tagId: string | null
}

export type BookTagCountAggregateOutputType = {
  bookId: number
  tagId: number
  _all: number
}


export type BookTagMinAggregateInputType = {
  bookId?: true
  tagId?: true
}

export type BookTagMaxAggregateInputType = {
  bookId?: true
  tagId?: true
}

export type BookTagCountAggregateInputType = {
  bookId?: true
  tagId?: true
  _all?: true
}

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

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




export type bookTagGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.bookTagWhereInput
  orderBy?: Prisma.bookTagOrderByWithAggregationInput | Prisma.bookTagOrderByWithAggregationInput[]
  by: Prisma.BookTagScalarFieldEnum[] | Prisma.BookTagScalarFieldEnum
  having?: Prisma.bookTagScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: BookTagCountAggregateInputType | true
  _min?: BookTagMinAggregateInputType
  _max?: BookTagMaxAggregateInputType
}

export type BookTagGroupByOutputType = {
  bookId: string
  tagId: string
  _count: BookTagCountAggregateOutputType | null
  _min: BookTagMinAggregateOutputType | null
  _max: BookTagMaxAggregateOutputType | null
}

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



export type bookTagWhereInput = {
  AND?: Prisma.bookTagWhereInput | Prisma.bookTagWhereInput[]
  OR?: Prisma.bookTagWhereInput[]
  NOT?: Prisma.bookTagWhereInput | Prisma.bookTagWhereInput[]
  bookId?: Prisma.StringFilter<"bookTag"> | string
  tagId?: Prisma.StringFilter<"bookTag"> | string
  book?: Prisma.XOR<Prisma.BookScalarRelationFilter, Prisma.bookWhereInput>
  tag?: Prisma.XOR<Prisma.TagScalarRelationFilter, Prisma.tagWhereInput>
}

export type bookTagOrderByWithRelationInput = {
  bookId?: Prisma.SortOrder
  tagId?: Prisma.SortOrder
  book?: Prisma.bookOrderByWithRelationInput
  tag?: Prisma.tagOrderByWithRelationInput
}

export type bookTagWhereUniqueInput = Prisma.AtLeast<{
  bookId_tagId?: Prisma.bookTagBookIdTagIdCompoundUniqueInput
  AND?: Prisma.bookTagWhereInput | Prisma.bookTagWhereInput[]
  OR?: Prisma.bookTagWhereInput[]
  NOT?: Prisma.bookTagWhereInput | Prisma.bookTagWhereInput[]
  bookId?: Prisma.StringFilter<"bookTag"> | string
  tagId?: Prisma.StringFilter<"bookTag"> | string
  book?: Prisma.XOR<Prisma.BookScalarRelationFilter, Prisma.bookWhereInput>
  tag?: Prisma.XOR<Prisma.TagScalarRelationFilter, Prisma.tagWhereInput>
}, "bookId_tagId">

export type bookTagOrderByWithAggregationInput = {
  bookId?: Prisma.SortOrder
  tagId?: Prisma.SortOrder
  _count?: Prisma.bookTagCountOrderByAggregateInput
  _max?: Prisma.bookTagMaxOrderByAggregateInput
  _min?: Prisma.bookTagMinOrderByAggregateInput
}

export type bookTagScalarWhereWithAggregatesInput = {
  AND?: Prisma.bookTagScalarWhereWithAggregatesInput | Prisma.bookTagScalarWhereWithAggregatesInput[]
  OR?: Prisma.bookTagScalarWhereWithAggregatesInput[]
  NOT?: Prisma.bookTagScalarWhereWithAggregatesInput | Prisma.bookTagScalarWhereWithAggregatesInput[]
  bookId?: Prisma.StringWithAggregatesFilter<"bookTag"> | string
  tagId?: Prisma.StringWithAggregatesFilter<"bookTag"> | string
}

export type bookTagCreateInput = {
  book: Prisma.bookCreateNestedOneWithoutTagsInput
  tag: Prisma.tagCreateNestedOneWithoutBooksInput
}

export type bookTagUncheckedCreateInput = {
  bookId: string
  tagId: string
}

export type bookTagUpdateInput = {
  book?: Prisma.bookUpdateOneRequiredWithoutTagsNestedInput
  tag?: Prisma.tagUpdateOneRequiredWithoutBooksNestedInput
}

export type bookTagUncheckedUpdateInput = {
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
  tagId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type bookTagCreateManyInput = {
  bookId: string
  tagId: string
}

export type bookTagUpdateManyMutationInput = {

}

export type bookTagUncheckedUpdateManyInput = {
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
  tagId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type BookTagListRelationFilter = {
  every?: Prisma.bookTagWhereInput
  some?: Prisma.bookTagWhereInput
  none?: Prisma.bookTagWhereInput
}

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

export type bookTagBookIdTagIdCompoundUniqueInput = {
  bookId: string
  tagId: string
}

export type bookTagCountOrderByAggregateInput = {
  bookId?: Prisma.SortOrder
  tagId?: Prisma.SortOrder
}

export type bookTagMaxOrderByAggregateInput = {
  bookId?: Prisma.SortOrder
  tagId?: Prisma.SortOrder
}

export type bookTagMinOrderByAggregateInput = {
  bookId?: Prisma.SortOrder
  tagId?: Prisma.SortOrder
}

export type bookTagCreateNestedManyWithoutTagInput = {
  create?: Prisma.XOR<Prisma.bookTagCreateWithoutTagInput, Prisma.bookTagUncheckedCreateWithoutTagInput> | Prisma.bookTagCreateWithoutTagInput[] | Prisma.bookTagUncheckedCreateWithoutTagInput[]
  connectOrCreate?: Prisma.bookTagCreateOrConnectWithoutTagInput | Prisma.bookTagCreateOrConnectWithoutTagInput[]
  createMany?: Prisma.bookTagCreateManyTagInputEnvelope
  connect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
}

export type bookTagUncheckedCreateNestedManyWithoutTagInput = {
  create?: Prisma.XOR<Prisma.bookTagCreateWithoutTagInput, Prisma.bookTagUncheckedCreateWithoutTagInput> | Prisma.bookTagCreateWithoutTagInput[] | Prisma.bookTagUncheckedCreateWithoutTagInput[]
  connectOrCreate?: Prisma.bookTagCreateOrConnectWithoutTagInput | Prisma.bookTagCreateOrConnectWithoutTagInput[]
  createMany?: Prisma.bookTagCreateManyTagInputEnvelope
  connect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
}

export type bookTagUpdateManyWithoutTagNestedInput = {
  create?: Prisma.XOR<Prisma.bookTagCreateWithoutTagInput, Prisma.bookTagUncheckedCreateWithoutTagInput> | Prisma.bookTagCreateWithoutTagInput[] | Prisma.bookTagUncheckedCreateWithoutTagInput[]
  connectOrCreate?: Prisma.bookTagCreateOrConnectWithoutTagInput | Prisma.bookTagCreateOrConnectWithoutTagInput[]
  upsert?: Prisma.bookTagUpsertWithWhereUniqueWithoutTagInput | Prisma.bookTagUpsertWithWhereUniqueWithoutTagInput[]
  createMany?: Prisma.bookTagCreateManyTagInputEnvelope
  set?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  disconnect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  delete?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  connect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  update?: Prisma.bookTagUpdateWithWhereUniqueWithoutTagInput | Prisma.bookTagUpdateWithWhereUniqueWithoutTagInput[]
  updateMany?: Prisma.bookTagUpdateManyWithWhereWithoutTagInput | Prisma.bookTagUpdateManyWithWhereWithoutTagInput[]
  deleteMany?: Prisma.bookTagScalarWhereInput | Prisma.bookTagScalarWhereInput[]
}

export type bookTagUncheckedUpdateManyWithoutTagNestedInput = {
  create?: Prisma.XOR<Prisma.bookTagCreateWithoutTagInput, Prisma.bookTagUncheckedCreateWithoutTagInput> | Prisma.bookTagCreateWithoutTagInput[] | Prisma.bookTagUncheckedCreateWithoutTagInput[]
  connectOrCreate?: Prisma.bookTagCreateOrConnectWithoutTagInput | Prisma.bookTagCreateOrConnectWithoutTagInput[]
  upsert?: Prisma.bookTagUpsertWithWhereUniqueWithoutTagInput | Prisma.bookTagUpsertWithWhereUniqueWithoutTagInput[]
  createMany?: Prisma.bookTagCreateManyTagInputEnvelope
  set?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  disconnect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  delete?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  connect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  update?: Prisma.bookTagUpdateWithWhereUniqueWithoutTagInput | Prisma.bookTagUpdateWithWhereUniqueWithoutTagInput[]
  updateMany?: Prisma.bookTagUpdateManyWithWhereWithoutTagInput | Prisma.bookTagUpdateManyWithWhereWithoutTagInput[]
  deleteMany?: Prisma.bookTagScalarWhereInput | Prisma.bookTagScalarWhereInput[]
}

export type bookTagCreateNestedManyWithoutBookInput = {
  create?: Prisma.XOR<Prisma.bookTagCreateWithoutBookInput, Prisma.bookTagUncheckedCreateWithoutBookInput> | Prisma.bookTagCreateWithoutBookInput[] | Prisma.bookTagUncheckedCreateWithoutBookInput[]
  connectOrCreate?: Prisma.bookTagCreateOrConnectWithoutBookInput | Prisma.bookTagCreateOrConnectWithoutBookInput[]
  createMany?: Prisma.bookTagCreateManyBookInputEnvelope
  connect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
}

export type bookTagUncheckedCreateNestedManyWithoutBookInput = {
  create?: Prisma.XOR<Prisma.bookTagCreateWithoutBookInput, Prisma.bookTagUncheckedCreateWithoutBookInput> | Prisma.bookTagCreateWithoutBookInput[] | Prisma.bookTagUncheckedCreateWithoutBookInput[]
  connectOrCreate?: Prisma.bookTagCreateOrConnectWithoutBookInput | Prisma.bookTagCreateOrConnectWithoutBookInput[]
  createMany?: Prisma.bookTagCreateManyBookInputEnvelope
  connect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
}

export type bookTagUpdateManyWithoutBookNestedInput = {
  create?: Prisma.XOR<Prisma.bookTagCreateWithoutBookInput, Prisma.bookTagUncheckedCreateWithoutBookInput> | Prisma.bookTagCreateWithoutBookInput[] | Prisma.bookTagUncheckedCreateWithoutBookInput[]
  connectOrCreate?: Prisma.bookTagCreateOrConnectWithoutBookInput | Prisma.bookTagCreateOrConnectWithoutBookInput[]
  upsert?: Prisma.bookTagUpsertWithWhereUniqueWithoutBookInput | Prisma.bookTagUpsertWithWhereUniqueWithoutBookInput[]
  createMany?: Prisma.bookTagCreateManyBookInputEnvelope
  set?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  disconnect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  delete?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  connect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  update?: Prisma.bookTagUpdateWithWhereUniqueWithoutBookInput | Prisma.bookTagUpdateWithWhereUniqueWithoutBookInput[]
  updateMany?: Prisma.bookTagUpdateManyWithWhereWithoutBookInput | Prisma.bookTagUpdateManyWithWhereWithoutBookInput[]
  deleteMany?: Prisma.bookTagScalarWhereInput | Prisma.bookTagScalarWhereInput[]
}

export type bookTagUncheckedUpdateManyWithoutBookNestedInput = {
  create?: Prisma.XOR<Prisma.bookTagCreateWithoutBookInput, Prisma.bookTagUncheckedCreateWithoutBookInput> | Prisma.bookTagCreateWithoutBookInput[] | Prisma.bookTagUncheckedCreateWithoutBookInput[]
  connectOrCreate?: Prisma.bookTagCreateOrConnectWithoutBookInput | Prisma.bookTagCreateOrConnectWithoutBookInput[]
  upsert?: Prisma.bookTagUpsertWithWhereUniqueWithoutBookInput | Prisma.bookTagUpsertWithWhereUniqueWithoutBookInput[]
  createMany?: Prisma.bookTagCreateManyBookInputEnvelope
  set?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  disconnect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  delete?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  connect?: Prisma.bookTagWhereUniqueInput | Prisma.bookTagWhereUniqueInput[]
  update?: Prisma.bookTagUpdateWithWhereUniqueWithoutBookInput | Prisma.bookTagUpdateWithWhereUniqueWithoutBookInput[]
  updateMany?: Prisma.bookTagUpdateManyWithWhereWithoutBookInput | Prisma.bookTagUpdateManyWithWhereWithoutBookInput[]
  deleteMany?: Prisma.bookTagScalarWhereInput | Prisma.bookTagScalarWhereInput[]
}

export type bookTagCreateWithoutTagInput = {
  book: Prisma.bookCreateNestedOneWithoutTagsInput
}

export type bookTagUncheckedCreateWithoutTagInput = {
  bookId: string
}

export type bookTagCreateOrConnectWithoutTagInput = {
  where: Prisma.bookTagWhereUniqueInput
  create: Prisma.XOR<Prisma.bookTagCreateWithoutTagInput, Prisma.bookTagUncheckedCreateWithoutTagInput>
}

export type bookTagCreateManyTagInputEnvelope = {
  data: Prisma.bookTagCreateManyTagInput | Prisma.bookTagCreateManyTagInput[]
  skipDuplicates?: boolean
}

export type bookTagUpsertWithWhereUniqueWithoutTagInput = {
  where: Prisma.bookTagWhereUniqueInput
  update: Prisma.XOR<Prisma.bookTagUpdateWithoutTagInput, Prisma.bookTagUncheckedUpdateWithoutTagInput>
  create: Prisma.XOR<Prisma.bookTagCreateWithoutTagInput, Prisma.bookTagUncheckedCreateWithoutTagInput>
}

export type bookTagUpdateWithWhereUniqueWithoutTagInput = {
  where: Prisma.bookTagWhereUniqueInput
  data: Prisma.XOR<Prisma.bookTagUpdateWithoutTagInput, Prisma.bookTagUncheckedUpdateWithoutTagInput>
}

export type bookTagUpdateManyWithWhereWithoutTagInput = {
  where: Prisma.bookTagScalarWhereInput
  data: Prisma.XOR<Prisma.bookTagUpdateManyMutationInput, Prisma.bookTagUncheckedUpdateManyWithoutTagInput>
}

export type bookTagScalarWhereInput = {
  AND?: Prisma.bookTagScalarWhereInput | Prisma.bookTagScalarWhereInput[]
  OR?: Prisma.bookTagScalarWhereInput[]
  NOT?: Prisma.bookTagScalarWhereInput | Prisma.bookTagScalarWhereInput[]
  bookId?: Prisma.StringFilter<"bookTag"> | string
  tagId?: Prisma.StringFilter<"bookTag"> | string
}

export type bookTagCreateWithoutBookInput = {
  tag: Prisma.tagCreateNestedOneWithoutBooksInput
}

export type bookTagUncheckedCreateWithoutBookInput = {
  tagId: string
}

export type bookTagCreateOrConnectWithoutBookInput = {
  where: Prisma.bookTagWhereUniqueInput
  create: Prisma.XOR<Prisma.bookTagCreateWithoutBookInput, Prisma.bookTagUncheckedCreateWithoutBookInput>
}

export type bookTagCreateManyBookInputEnvelope = {
  data: Prisma.bookTagCreateManyBookInput | Prisma.bookTagCreateManyBookInput[]
  skipDuplicates?: boolean
}

export type bookTagUpsertWithWhereUniqueWithoutBookInput = {
  where: Prisma.bookTagWhereUniqueInput
  update: Prisma.XOR<Prisma.bookTagUpdateWithoutBookInput, Prisma.bookTagUncheckedUpdateWithoutBookInput>
  create: Prisma.XOR<Prisma.bookTagCreateWithoutBookInput, Prisma.bookTagUncheckedCreateWithoutBookInput>
}

export type bookTagUpdateWithWhereUniqueWithoutBookInput = {
  where: Prisma.bookTagWhereUniqueInput
  data: Prisma.XOR<Prisma.bookTagUpdateWithoutBookInput, Prisma.bookTagUncheckedUpdateWithoutBookInput>
}

export type bookTagUpdateManyWithWhereWithoutBookInput = {
  where: Prisma.bookTagScalarWhereInput
  data: Prisma.XOR<Prisma.bookTagUpdateManyMutationInput, Prisma.bookTagUncheckedUpdateManyWithoutBookInput>
}

export type bookTagCreateManyTagInput = {
  bookId: string
}

export type bookTagUpdateWithoutTagInput = {
  book?: Prisma.bookUpdateOneRequiredWithoutTagsNestedInput
}

export type bookTagUncheckedUpdateWithoutTagInput = {
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type bookTagUncheckedUpdateManyWithoutTagInput = {
  bookId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type bookTagCreateManyBookInput = {
  tagId: string
}

export type bookTagUpdateWithoutBookInput = {
  tag?: Prisma.tagUpdateOneRequiredWithoutBooksNestedInput
}

export type bookTagUncheckedUpdateWithoutBookInput = {
  tagId?: Prisma.StringFieldUpdateOperationsInput | string
}

export type bookTagUncheckedUpdateManyWithoutBookInput = {
  tagId?: Prisma.StringFieldUpdateOperationsInput | string
}



export type bookTagSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  bookId?: boolean
  tagId?: boolean
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
  tag?: boolean | Prisma.tagDefaultArgs<ExtArgs>
}, ExtArgs["result"]["bookTag"]>

export type bookTagSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  bookId?: boolean
  tagId?: boolean
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
  tag?: boolean | Prisma.tagDefaultArgs<ExtArgs>
}, ExtArgs["result"]["bookTag"]>

export type bookTagSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  bookId?: boolean
  tagId?: boolean
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
  tag?: boolean | Prisma.tagDefaultArgs<ExtArgs>
}, ExtArgs["result"]["bookTag"]>

export type bookTagSelectScalar = {
  bookId?: boolean
  tagId?: boolean
}

export type bookTagOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"bookId" | "tagId", ExtArgs["result"]["bookTag"]>
export type bookTagInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
  tag?: boolean | Prisma.tagDefaultArgs<ExtArgs>
}
export type bookTagIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
  tag?: boolean | Prisma.tagDefaultArgs<ExtArgs>
}
export type bookTagIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  book?: boolean | Prisma.bookDefaultArgs<ExtArgs>
  tag?: boolean | Prisma.tagDefaultArgs<ExtArgs>
}

export type $bookTagPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "bookTag"
  objects: {
    book: Prisma.$bookPayload<ExtArgs>
    tag: Prisma.$tagPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    bookId: string
    tagId: string
  }, ExtArgs["result"]["bookTag"]>
  composites: {}
}

export type bookTagGetPayload<S extends boolean | null | undefined | bookTagDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$bookTagPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for bookTag.
 * 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__bookTagClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  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>
  tag<T extends Prisma.tagDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.tagDefaultArgs<ExtArgs>>): Prisma.Prisma__tagClient<runtime.Types.Result.GetResult<Prisma.$tagPayload<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 bookTag model
 */
export interface bookTagFieldRefs {
  readonly bookId: Prisma.FieldRef<"bookTag", 'String'>
  readonly tagId: Prisma.FieldRef<"bookTag", 'String'>
}
    

// Custom InputTypes
/**
 * bookTag findUnique
 */
export type bookTagFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bookTag
   */
  select?: Prisma.bookTagSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bookTag
   */
  omit?: Prisma.bookTagOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookTagInclude<ExtArgs> | null
  /**
   * Filter, which bookTag to fetch.
   */
  where: Prisma.bookTagWhereUniqueInput
}

/**
 * bookTag findUniqueOrThrow
 */
export type bookTagFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bookTag
   */
  select?: Prisma.bookTagSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bookTag
   */
  omit?: Prisma.bookTagOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookTagInclude<ExtArgs> | null
  /**
   * Filter, which bookTag to fetch.
   */
  where: Prisma.bookTagWhereUniqueInput
}

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

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

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

/**
 * bookTag create
 */
export type bookTagCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bookTag
   */
  select?: Prisma.bookTagSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bookTag
   */
  omit?: Prisma.bookTagOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookTagInclude<ExtArgs> | null
  /**
   * The data needed to create a bookTag.
   */
  data: Prisma.XOR<Prisma.bookTagCreateInput, Prisma.bookTagUncheckedCreateInput>
}

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

/**
 * bookTag createManyAndReturn
 */
export type bookTagCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bookTag
   */
  select?: Prisma.bookTagSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the bookTag
   */
  omit?: Prisma.bookTagOmit<ExtArgs> | null
  /**
   * The data used to create many bookTags.
   */
  data: Prisma.bookTagCreateManyInput | Prisma.bookTagCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookTagIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * bookTag update
 */
export type bookTagUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bookTag
   */
  select?: Prisma.bookTagSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bookTag
   */
  omit?: Prisma.bookTagOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookTagInclude<ExtArgs> | null
  /**
   * The data needed to update a bookTag.
   */
  data: Prisma.XOR<Prisma.bookTagUpdateInput, Prisma.bookTagUncheckedUpdateInput>
  /**
   * Choose, which bookTag to update.
   */
  where: Prisma.bookTagWhereUniqueInput
}

/**
 * bookTag updateMany
 */
export type bookTagUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update bookTags.
   */
  data: Prisma.XOR<Prisma.bookTagUpdateManyMutationInput, Prisma.bookTagUncheckedUpdateManyInput>
  /**
   * Filter which bookTags to update
   */
  where?: Prisma.bookTagWhereInput
  /**
   * Limit how many bookTags to update.
   */
  limit?: number
}

/**
 * bookTag updateManyAndReturn
 */
export type bookTagUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bookTag
   */
  select?: Prisma.bookTagSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the bookTag
   */
  omit?: Prisma.bookTagOmit<ExtArgs> | null
  /**
   * The data used to update bookTags.
   */
  data: Prisma.XOR<Prisma.bookTagUpdateManyMutationInput, Prisma.bookTagUncheckedUpdateManyInput>
  /**
   * Filter which bookTags to update
   */
  where?: Prisma.bookTagWhereInput
  /**
   * Limit how many bookTags to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookTagIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * bookTag upsert
 */
export type bookTagUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bookTag
   */
  select?: Prisma.bookTagSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bookTag
   */
  omit?: Prisma.bookTagOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookTagInclude<ExtArgs> | null
  /**
   * The filter to search for the bookTag to update in case it exists.
   */
  where: Prisma.bookTagWhereUniqueInput
  /**
   * In case the bookTag found by the `where` argument doesn't exist, create a new bookTag with this data.
   */
  create: Prisma.XOR<Prisma.bookTagCreateInput, Prisma.bookTagUncheckedCreateInput>
  /**
   * In case the bookTag was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.bookTagUpdateInput, Prisma.bookTagUncheckedUpdateInput>
}

/**
 * bookTag delete
 */
export type bookTagDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bookTag
   */
  select?: Prisma.bookTagSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bookTag
   */
  omit?: Prisma.bookTagOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookTagInclude<ExtArgs> | null
  /**
   * Filter which bookTag to delete.
   */
  where: Prisma.bookTagWhereUniqueInput
}

/**
 * bookTag deleteMany
 */
export type bookTagDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which bookTags to delete
   */
  where?: Prisma.bookTagWhereInput
  /**
   * Limit how many bookTags to delete.
   */
  limit?: number
}

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