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

export type AggregateGenre = {
  _count: GenreCountAggregateOutputType | null
  _min: GenreMinAggregateOutputType | null
  _max: GenreMaxAggregateOutputType | null
}

export type GenreMinAggregateOutputType = {
  id: string | null
  name: string | null
  description: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type GenreMaxAggregateOutputType = {
  id: string | null
  name: string | null
  description: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type GenreCountAggregateOutputType = {
  id: number
  name: number
  description: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type GenreMinAggregateInputType = {
  id?: true
  name?: true
  description?: true
  createdAt?: true
  updatedAt?: true
}

export type GenreMaxAggregateInputType = {
  id?: true
  name?: true
  description?: true
  createdAt?: true
  updatedAt?: true
}

export type GenreCountAggregateInputType = {
  id?: true
  name?: true
  description?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type genreGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.genreWhereInput
  orderBy?: Prisma.genreOrderByWithAggregationInput | Prisma.genreOrderByWithAggregationInput[]
  by: Prisma.GenreScalarFieldEnum[] | Prisma.GenreScalarFieldEnum
  having?: Prisma.genreScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: GenreCountAggregateInputType | true
  _min?: GenreMinAggregateInputType
  _max?: GenreMaxAggregateInputType
}

export type GenreGroupByOutputType = {
  id: string
  name: string
  description: string | null
  createdAt: Date
  updatedAt: Date
  _count: GenreCountAggregateOutputType | null
  _min: GenreMinAggregateOutputType | null
  _max: GenreMaxAggregateOutputType | null
}

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



export type genreWhereInput = {
  AND?: Prisma.genreWhereInput | Prisma.genreWhereInput[]
  OR?: Prisma.genreWhereInput[]
  NOT?: Prisma.genreWhereInput | Prisma.genreWhereInput[]
  id?: Prisma.StringFilter<"genre"> | string
  name?: Prisma.StringFilter<"genre"> | string
  description?: Prisma.StringNullableFilter<"genre"> | string | null
  createdAt?: Prisma.DateTimeFilter<"genre"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"genre"> | Date | string
  books?: Prisma.BookListRelationFilter
}

export type genreOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  books?: Prisma.bookOrderByRelationAggregateInput
}

export type genreWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  name?: string
  AND?: Prisma.genreWhereInput | Prisma.genreWhereInput[]
  OR?: Prisma.genreWhereInput[]
  NOT?: Prisma.genreWhereInput | Prisma.genreWhereInput[]
  description?: Prisma.StringNullableFilter<"genre"> | string | null
  createdAt?: Prisma.DateTimeFilter<"genre"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"genre"> | Date | string
  books?: Prisma.BookListRelationFilter
}, "id" | "name">

export type genreOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.genreCountOrderByAggregateInput
  _max?: Prisma.genreMaxOrderByAggregateInput
  _min?: Prisma.genreMinOrderByAggregateInput
}

export type genreScalarWhereWithAggregatesInput = {
  AND?: Prisma.genreScalarWhereWithAggregatesInput | Prisma.genreScalarWhereWithAggregatesInput[]
  OR?: Prisma.genreScalarWhereWithAggregatesInput[]
  NOT?: Prisma.genreScalarWhereWithAggregatesInput | Prisma.genreScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"genre"> | string
  name?: Prisma.StringWithAggregatesFilter<"genre"> | string
  description?: Prisma.StringNullableWithAggregatesFilter<"genre"> | string | null
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"genre"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"genre"> | Date | string
}

export type genreCreateInput = {
  id?: string
  name: string
  description?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  books?: Prisma.bookCreateNestedManyWithoutGenreInput
}

export type genreUncheckedCreateInput = {
  id?: string
  name: string
  description?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
  books?: Prisma.bookUncheckedCreateNestedManyWithoutGenreInput
}

export type genreUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  books?: Prisma.bookUpdateManyWithoutGenreNestedInput
}

export type genreUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  books?: Prisma.bookUncheckedUpdateManyWithoutGenreNestedInput
}

export type genreCreateManyInput = {
  id?: string
  name: string
  description?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type genreUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type genreUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type genreCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type genreMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type genreMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  description?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type GenreNullableScalarRelationFilter = {
  is?: Prisma.genreWhereInput | null
  isNot?: Prisma.genreWhereInput | null
}

export type genreCreateNestedOneWithoutBooksInput = {
  create?: Prisma.XOR<Prisma.genreCreateWithoutBooksInput, Prisma.genreUncheckedCreateWithoutBooksInput>
  connectOrCreate?: Prisma.genreCreateOrConnectWithoutBooksInput
  connect?: Prisma.genreWhereUniqueInput
}

export type genreUpdateOneWithoutBooksNestedInput = {
  create?: Prisma.XOR<Prisma.genreCreateWithoutBooksInput, Prisma.genreUncheckedCreateWithoutBooksInput>
  connectOrCreate?: Prisma.genreCreateOrConnectWithoutBooksInput
  upsert?: Prisma.genreUpsertWithoutBooksInput
  disconnect?: Prisma.genreWhereInput | boolean
  delete?: Prisma.genreWhereInput | boolean
  connect?: Prisma.genreWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.genreUpdateToOneWithWhereWithoutBooksInput, Prisma.genreUpdateWithoutBooksInput>, Prisma.genreUncheckedUpdateWithoutBooksInput>
}

export type genreCreateWithoutBooksInput = {
  id?: string
  name: string
  description?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type genreUncheckedCreateWithoutBooksInput = {
  id?: string
  name: string
  description?: string | null
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type genreCreateOrConnectWithoutBooksInput = {
  where: Prisma.genreWhereUniqueInput
  create: Prisma.XOR<Prisma.genreCreateWithoutBooksInput, Prisma.genreUncheckedCreateWithoutBooksInput>
}

export type genreUpsertWithoutBooksInput = {
  update: Prisma.XOR<Prisma.genreUpdateWithoutBooksInput, Prisma.genreUncheckedUpdateWithoutBooksInput>
  create: Prisma.XOR<Prisma.genreCreateWithoutBooksInput, Prisma.genreUncheckedCreateWithoutBooksInput>
  where?: Prisma.genreWhereInput
}

export type genreUpdateToOneWithWhereWithoutBooksInput = {
  where?: Prisma.genreWhereInput
  data: Prisma.XOR<Prisma.genreUpdateWithoutBooksInput, Prisma.genreUncheckedUpdateWithoutBooksInput>
}

export type genreUpdateWithoutBooksInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type genreUncheckedUpdateWithoutBooksInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type GenreCountOutputType
 */

export type GenreCountOutputType = {
  books: number
}

export type GenreCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  books?: boolean | GenreCountOutputTypeCountBooksArgs
}

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

/**
 * GenreCountOutputType without action
 */
export type GenreCountOutputTypeCountBooksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.bookWhereInput
}


export type genreSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  description?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  books?: boolean | Prisma.genre$booksArgs<ExtArgs>
  _count?: boolean | Prisma.GenreCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["genre"]>

export type genreSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  description?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["genre"]>

export type genreSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  description?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["genre"]>

export type genreSelectScalar = {
  id?: boolean
  name?: boolean
  description?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type genreOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["genre"]>
export type genreInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  books?: boolean | Prisma.genre$booksArgs<ExtArgs>
  _count?: boolean | Prisma.GenreCountOutputTypeDefaultArgs<ExtArgs>
}
export type genreIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type genreIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}

export type $genrePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "genre"
  objects: {
    books: Prisma.$bookPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    name: string
    description: string | null
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["genre"]>
  composites: {}
}

export type genreGetPayload<S extends boolean | null | undefined | genreDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$genrePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for genre.
 * 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__genreClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  books<T extends Prisma.genre$booksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.genre$booksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$bookPayload<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 genre model
 */
export interface genreFieldRefs {
  readonly id: Prisma.FieldRef<"genre", 'String'>
  readonly name: Prisma.FieldRef<"genre", 'String'>
  readonly description: Prisma.FieldRef<"genre", 'String'>
  readonly createdAt: Prisma.FieldRef<"genre", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"genre", 'DateTime'>
}
    

// Custom InputTypes
/**
 * genre findUnique
 */
export type genreFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the genre
   */
  select?: Prisma.genreSelect<ExtArgs> | null
  /**
   * Omit specific fields from the genre
   */
  omit?: Prisma.genreOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.genreInclude<ExtArgs> | null
  /**
   * Filter, which genre to fetch.
   */
  where: Prisma.genreWhereUniqueInput
}

/**
 * genre findUniqueOrThrow
 */
export type genreFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the genre
   */
  select?: Prisma.genreSelect<ExtArgs> | null
  /**
   * Omit specific fields from the genre
   */
  omit?: Prisma.genreOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.genreInclude<ExtArgs> | null
  /**
   * Filter, which genre to fetch.
   */
  where: Prisma.genreWhereUniqueInput
}

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

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

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

/**
 * genre create
 */
export type genreCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the genre
   */
  select?: Prisma.genreSelect<ExtArgs> | null
  /**
   * Omit specific fields from the genre
   */
  omit?: Prisma.genreOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.genreInclude<ExtArgs> | null
  /**
   * The data needed to create a genre.
   */
  data: Prisma.XOR<Prisma.genreCreateInput, Prisma.genreUncheckedCreateInput>
}

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

/**
 * genre createManyAndReturn
 */
export type genreCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the genre
   */
  select?: Prisma.genreSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the genre
   */
  omit?: Prisma.genreOmit<ExtArgs> | null
  /**
   * The data used to create many genres.
   */
  data: Prisma.genreCreateManyInput | Prisma.genreCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * genre update
 */
export type genreUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the genre
   */
  select?: Prisma.genreSelect<ExtArgs> | null
  /**
   * Omit specific fields from the genre
   */
  omit?: Prisma.genreOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.genreInclude<ExtArgs> | null
  /**
   * The data needed to update a genre.
   */
  data: Prisma.XOR<Prisma.genreUpdateInput, Prisma.genreUncheckedUpdateInput>
  /**
   * Choose, which genre to update.
   */
  where: Prisma.genreWhereUniqueInput
}

/**
 * genre updateMany
 */
export type genreUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update genres.
   */
  data: Prisma.XOR<Prisma.genreUpdateManyMutationInput, Prisma.genreUncheckedUpdateManyInput>
  /**
   * Filter which genres to update
   */
  where?: Prisma.genreWhereInput
  /**
   * Limit how many genres to update.
   */
  limit?: number
}

/**
 * genre updateManyAndReturn
 */
export type genreUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the genre
   */
  select?: Prisma.genreSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the genre
   */
  omit?: Prisma.genreOmit<ExtArgs> | null
  /**
   * The data used to update genres.
   */
  data: Prisma.XOR<Prisma.genreUpdateManyMutationInput, Prisma.genreUncheckedUpdateManyInput>
  /**
   * Filter which genres to update
   */
  where?: Prisma.genreWhereInput
  /**
   * Limit how many genres to update.
   */
  limit?: number
}

/**
 * genre upsert
 */
export type genreUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the genre
   */
  select?: Prisma.genreSelect<ExtArgs> | null
  /**
   * Omit specific fields from the genre
   */
  omit?: Prisma.genreOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.genreInclude<ExtArgs> | null
  /**
   * The filter to search for the genre to update in case it exists.
   */
  where: Prisma.genreWhereUniqueInput
  /**
   * In case the genre found by the `where` argument doesn't exist, create a new genre with this data.
   */
  create: Prisma.XOR<Prisma.genreCreateInput, Prisma.genreUncheckedCreateInput>
  /**
   * In case the genre was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.genreUpdateInput, Prisma.genreUncheckedUpdateInput>
}

/**
 * genre delete
 */
export type genreDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the genre
   */
  select?: Prisma.genreSelect<ExtArgs> | null
  /**
   * Omit specific fields from the genre
   */
  omit?: Prisma.genreOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.genreInclude<ExtArgs> | null
  /**
   * Filter which genre to delete.
   */
  where: Prisma.genreWhereUniqueInput
}

/**
 * genre deleteMany
 */
export type genreDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which genres to delete
   */
  where?: Prisma.genreWhereInput
  /**
   * Limit how many genres to delete.
   */
  limit?: number
}

/**
 * genre.books
 */
export type genre$booksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the book
   */
  select?: Prisma.bookSelect<ExtArgs> | null
  /**
   * Omit specific fields from the book
   */
  omit?: Prisma.bookOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bookInclude<ExtArgs> | null
  where?: Prisma.bookWhereInput
  orderBy?: Prisma.bookOrderByWithRelationInput | Prisma.bookOrderByWithRelationInput[]
  cursor?: Prisma.bookWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.BookScalarFieldEnum | Prisma.BookScalarFieldEnum[]
}

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