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

/**
 * Model ReportKeywordRank
 * 
 */
export type ReportKeywordRankModel = runtime.Types.Result.DefaultSelection<Prisma.$ReportKeywordRankPayload>

export type AggregateReportKeywordRank = {
  _count: ReportKeywordRankCountAggregateOutputType | null
  _avg: ReportKeywordRankAvgAggregateOutputType | null
  _sum: ReportKeywordRankSumAggregateOutputType | null
  _min: ReportKeywordRankMinAggregateOutputType | null
  _max: ReportKeywordRankMaxAggregateOutputType | null
}

export type ReportKeywordRankAvgAggregateOutputType = {
  position: number | null
}

export type ReportKeywordRankSumAggregateOutputType = {
  position: number | null
}

export type ReportKeywordRankMinAggregateOutputType = {
  id: string | null
  reportId: string | null
  keywordId: string | null
  position: number | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ReportKeywordRankMaxAggregateOutputType = {
  id: string | null
  reportId: string | null
  keywordId: string | null
  position: number | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ReportKeywordRankCountAggregateOutputType = {
  id: number
  reportId: number
  keywordId: number
  position: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type ReportKeywordRankAvgAggregateInputType = {
  position?: true
}

export type ReportKeywordRankSumAggregateInputType = {
  position?: true
}

export type ReportKeywordRankMinAggregateInputType = {
  id?: true
  reportId?: true
  keywordId?: true
  position?: true
  createdAt?: true
  updatedAt?: true
}

export type ReportKeywordRankMaxAggregateInputType = {
  id?: true
  reportId?: true
  keywordId?: true
  position?: true
  createdAt?: true
  updatedAt?: true
}

export type ReportKeywordRankCountAggregateInputType = {
  id?: true
  reportId?: true
  keywordId?: true
  position?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

export type ReportKeywordRankAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ReportKeywordRank to aggregate.
   */
  where?: Prisma.ReportKeywordRankWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of ReportKeywordRanks to fetch.
   */
  orderBy?: Prisma.ReportKeywordRankOrderByWithRelationInput | Prisma.ReportKeywordRankOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.ReportKeywordRankWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` ReportKeywordRanks 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` ReportKeywordRanks.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned ReportKeywordRanks
  **/
  _count?: true | ReportKeywordRankCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: ReportKeywordRankAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: ReportKeywordRankSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: ReportKeywordRankMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: ReportKeywordRankMaxAggregateInputType
}

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




export type ReportKeywordRankGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ReportKeywordRankWhereInput
  orderBy?: Prisma.ReportKeywordRankOrderByWithAggregationInput | Prisma.ReportKeywordRankOrderByWithAggregationInput[]
  by: Prisma.ReportKeywordRankScalarFieldEnum[] | Prisma.ReportKeywordRankScalarFieldEnum
  having?: Prisma.ReportKeywordRankScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ReportKeywordRankCountAggregateInputType | true
  _avg?: ReportKeywordRankAvgAggregateInputType
  _sum?: ReportKeywordRankSumAggregateInputType
  _min?: ReportKeywordRankMinAggregateInputType
  _max?: ReportKeywordRankMaxAggregateInputType
}

export type ReportKeywordRankGroupByOutputType = {
  id: string
  reportId: string
  keywordId: string
  position: number
  createdAt: Date
  updatedAt: Date
  _count: ReportKeywordRankCountAggregateOutputType | null
  _avg: ReportKeywordRankAvgAggregateOutputType | null
  _sum: ReportKeywordRankSumAggregateOutputType | null
  _min: ReportKeywordRankMinAggregateOutputType | null
  _max: ReportKeywordRankMaxAggregateOutputType | null
}

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



export type ReportKeywordRankWhereInput = {
  AND?: Prisma.ReportKeywordRankWhereInput | Prisma.ReportKeywordRankWhereInput[]
  OR?: Prisma.ReportKeywordRankWhereInput[]
  NOT?: Prisma.ReportKeywordRankWhereInput | Prisma.ReportKeywordRankWhereInput[]
  id?: Prisma.StringFilter<"ReportKeywordRank"> | string
  reportId?: Prisma.StringFilter<"ReportKeywordRank"> | string
  keywordId?: Prisma.StringFilter<"ReportKeywordRank"> | string
  position?: Prisma.IntFilter<"ReportKeywordRank"> | number
  createdAt?: Prisma.DateTimeFilter<"ReportKeywordRank"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ReportKeywordRank"> | Date | string
  report?: Prisma.XOR<Prisma.ReportScalarRelationFilter, Prisma.ReportWhereInput>
  keyword?: Prisma.XOR<Prisma.ClientKeywordScalarRelationFilter, Prisma.ClientKeywordWhereInput>
}

export type ReportKeywordRankOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  reportId?: Prisma.SortOrder
  keywordId?: Prisma.SortOrder
  position?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  report?: Prisma.ReportOrderByWithRelationInput
  keyword?: Prisma.ClientKeywordOrderByWithRelationInput
}

export type ReportKeywordRankWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  reportId_keywordId?: Prisma.ReportKeywordRankReportIdKeywordIdCompoundUniqueInput
  AND?: Prisma.ReportKeywordRankWhereInput | Prisma.ReportKeywordRankWhereInput[]
  OR?: Prisma.ReportKeywordRankWhereInput[]
  NOT?: Prisma.ReportKeywordRankWhereInput | Prisma.ReportKeywordRankWhereInput[]
  reportId?: Prisma.StringFilter<"ReportKeywordRank"> | string
  keywordId?: Prisma.StringFilter<"ReportKeywordRank"> | string
  position?: Prisma.IntFilter<"ReportKeywordRank"> | number
  createdAt?: Prisma.DateTimeFilter<"ReportKeywordRank"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ReportKeywordRank"> | Date | string
  report?: Prisma.XOR<Prisma.ReportScalarRelationFilter, Prisma.ReportWhereInput>
  keyword?: Prisma.XOR<Prisma.ClientKeywordScalarRelationFilter, Prisma.ClientKeywordWhereInput>
}, "id" | "reportId_keywordId">

export type ReportKeywordRankOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  reportId?: Prisma.SortOrder
  keywordId?: Prisma.SortOrder
  position?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.ReportKeywordRankCountOrderByAggregateInput
  _avg?: Prisma.ReportKeywordRankAvgOrderByAggregateInput
  _max?: Prisma.ReportKeywordRankMaxOrderByAggregateInput
  _min?: Prisma.ReportKeywordRankMinOrderByAggregateInput
  _sum?: Prisma.ReportKeywordRankSumOrderByAggregateInput
}

export type ReportKeywordRankScalarWhereWithAggregatesInput = {
  AND?: Prisma.ReportKeywordRankScalarWhereWithAggregatesInput | Prisma.ReportKeywordRankScalarWhereWithAggregatesInput[]
  OR?: Prisma.ReportKeywordRankScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ReportKeywordRankScalarWhereWithAggregatesInput | Prisma.ReportKeywordRankScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ReportKeywordRank"> | string
  reportId?: Prisma.StringWithAggregatesFilter<"ReportKeywordRank"> | string
  keywordId?: Prisma.StringWithAggregatesFilter<"ReportKeywordRank"> | string
  position?: Prisma.IntWithAggregatesFilter<"ReportKeywordRank"> | number
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ReportKeywordRank"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ReportKeywordRank"> | Date | string
}

export type ReportKeywordRankCreateInput = {
  id?: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
  report: Prisma.ReportCreateNestedOneWithoutKeywordRanksInput
  keyword: Prisma.ClientKeywordCreateNestedOneWithoutRanksInput
}

export type ReportKeywordRankUncheckedCreateInput = {
  id?: string
  reportId: string
  keywordId: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ReportKeywordRankUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  report?: Prisma.ReportUpdateOneRequiredWithoutKeywordRanksNestedInput
  keyword?: Prisma.ClientKeywordUpdateOneRequiredWithoutRanksNestedInput
}

export type ReportKeywordRankUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  reportId?: Prisma.StringFieldUpdateOperationsInput | string
  keywordId?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ReportKeywordRankCreateManyInput = {
  id?: string
  reportId: string
  keywordId: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ReportKeywordRankUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ReportKeywordRankUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  reportId?: Prisma.StringFieldUpdateOperationsInput | string
  keywordId?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ReportKeywordRankListRelationFilter = {
  every?: Prisma.ReportKeywordRankWhereInput
  some?: Prisma.ReportKeywordRankWhereInput
  none?: Prisma.ReportKeywordRankWhereInput
}

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

export type ReportKeywordRankReportIdKeywordIdCompoundUniqueInput = {
  reportId: string
  keywordId: string
}

export type ReportKeywordRankCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  reportId?: Prisma.SortOrder
  keywordId?: Prisma.SortOrder
  position?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ReportKeywordRankAvgOrderByAggregateInput = {
  position?: Prisma.SortOrder
}

export type ReportKeywordRankMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  reportId?: Prisma.SortOrder
  keywordId?: Prisma.SortOrder
  position?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ReportKeywordRankMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  reportId?: Prisma.SortOrder
  keywordId?: Prisma.SortOrder
  position?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ReportKeywordRankSumOrderByAggregateInput = {
  position?: Prisma.SortOrder
}

export type ReportKeywordRankCreateNestedManyWithoutKeywordInput = {
  create?: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutKeywordInput, Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput> | Prisma.ReportKeywordRankCreateWithoutKeywordInput[] | Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput[]
  connectOrCreate?: Prisma.ReportKeywordRankCreateOrConnectWithoutKeywordInput | Prisma.ReportKeywordRankCreateOrConnectWithoutKeywordInput[]
  createMany?: Prisma.ReportKeywordRankCreateManyKeywordInputEnvelope
  connect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
}

export type ReportKeywordRankUncheckedCreateNestedManyWithoutKeywordInput = {
  create?: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutKeywordInput, Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput> | Prisma.ReportKeywordRankCreateWithoutKeywordInput[] | Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput[]
  connectOrCreate?: Prisma.ReportKeywordRankCreateOrConnectWithoutKeywordInput | Prisma.ReportKeywordRankCreateOrConnectWithoutKeywordInput[]
  createMany?: Prisma.ReportKeywordRankCreateManyKeywordInputEnvelope
  connect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
}

export type ReportKeywordRankUpdateManyWithoutKeywordNestedInput = {
  create?: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutKeywordInput, Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput> | Prisma.ReportKeywordRankCreateWithoutKeywordInput[] | Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput[]
  connectOrCreate?: Prisma.ReportKeywordRankCreateOrConnectWithoutKeywordInput | Prisma.ReportKeywordRankCreateOrConnectWithoutKeywordInput[]
  upsert?: Prisma.ReportKeywordRankUpsertWithWhereUniqueWithoutKeywordInput | Prisma.ReportKeywordRankUpsertWithWhereUniqueWithoutKeywordInput[]
  createMany?: Prisma.ReportKeywordRankCreateManyKeywordInputEnvelope
  set?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  disconnect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  delete?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  connect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  update?: Prisma.ReportKeywordRankUpdateWithWhereUniqueWithoutKeywordInput | Prisma.ReportKeywordRankUpdateWithWhereUniqueWithoutKeywordInput[]
  updateMany?: Prisma.ReportKeywordRankUpdateManyWithWhereWithoutKeywordInput | Prisma.ReportKeywordRankUpdateManyWithWhereWithoutKeywordInput[]
  deleteMany?: Prisma.ReportKeywordRankScalarWhereInput | Prisma.ReportKeywordRankScalarWhereInput[]
}

export type ReportKeywordRankUncheckedUpdateManyWithoutKeywordNestedInput = {
  create?: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutKeywordInput, Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput> | Prisma.ReportKeywordRankCreateWithoutKeywordInput[] | Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput[]
  connectOrCreate?: Prisma.ReportKeywordRankCreateOrConnectWithoutKeywordInput | Prisma.ReportKeywordRankCreateOrConnectWithoutKeywordInput[]
  upsert?: Prisma.ReportKeywordRankUpsertWithWhereUniqueWithoutKeywordInput | Prisma.ReportKeywordRankUpsertWithWhereUniqueWithoutKeywordInput[]
  createMany?: Prisma.ReportKeywordRankCreateManyKeywordInputEnvelope
  set?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  disconnect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  delete?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  connect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  update?: Prisma.ReportKeywordRankUpdateWithWhereUniqueWithoutKeywordInput | Prisma.ReportKeywordRankUpdateWithWhereUniqueWithoutKeywordInput[]
  updateMany?: Prisma.ReportKeywordRankUpdateManyWithWhereWithoutKeywordInput | Prisma.ReportKeywordRankUpdateManyWithWhereWithoutKeywordInput[]
  deleteMany?: Prisma.ReportKeywordRankScalarWhereInput | Prisma.ReportKeywordRankScalarWhereInput[]
}

export type ReportKeywordRankCreateNestedManyWithoutReportInput = {
  create?: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutReportInput, Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput> | Prisma.ReportKeywordRankCreateWithoutReportInput[] | Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput[]
  connectOrCreate?: Prisma.ReportKeywordRankCreateOrConnectWithoutReportInput | Prisma.ReportKeywordRankCreateOrConnectWithoutReportInput[]
  createMany?: Prisma.ReportKeywordRankCreateManyReportInputEnvelope
  connect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
}

export type ReportKeywordRankUncheckedCreateNestedManyWithoutReportInput = {
  create?: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutReportInput, Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput> | Prisma.ReportKeywordRankCreateWithoutReportInput[] | Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput[]
  connectOrCreate?: Prisma.ReportKeywordRankCreateOrConnectWithoutReportInput | Prisma.ReportKeywordRankCreateOrConnectWithoutReportInput[]
  createMany?: Prisma.ReportKeywordRankCreateManyReportInputEnvelope
  connect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
}

export type ReportKeywordRankUpdateManyWithoutReportNestedInput = {
  create?: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutReportInput, Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput> | Prisma.ReportKeywordRankCreateWithoutReportInput[] | Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput[]
  connectOrCreate?: Prisma.ReportKeywordRankCreateOrConnectWithoutReportInput | Prisma.ReportKeywordRankCreateOrConnectWithoutReportInput[]
  upsert?: Prisma.ReportKeywordRankUpsertWithWhereUniqueWithoutReportInput | Prisma.ReportKeywordRankUpsertWithWhereUniqueWithoutReportInput[]
  createMany?: Prisma.ReportKeywordRankCreateManyReportInputEnvelope
  set?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  disconnect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  delete?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  connect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  update?: Prisma.ReportKeywordRankUpdateWithWhereUniqueWithoutReportInput | Prisma.ReportKeywordRankUpdateWithWhereUniqueWithoutReportInput[]
  updateMany?: Prisma.ReportKeywordRankUpdateManyWithWhereWithoutReportInput | Prisma.ReportKeywordRankUpdateManyWithWhereWithoutReportInput[]
  deleteMany?: Prisma.ReportKeywordRankScalarWhereInput | Prisma.ReportKeywordRankScalarWhereInput[]
}

export type ReportKeywordRankUncheckedUpdateManyWithoutReportNestedInput = {
  create?: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutReportInput, Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput> | Prisma.ReportKeywordRankCreateWithoutReportInput[] | Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput[]
  connectOrCreate?: Prisma.ReportKeywordRankCreateOrConnectWithoutReportInput | Prisma.ReportKeywordRankCreateOrConnectWithoutReportInput[]
  upsert?: Prisma.ReportKeywordRankUpsertWithWhereUniqueWithoutReportInput | Prisma.ReportKeywordRankUpsertWithWhereUniqueWithoutReportInput[]
  createMany?: Prisma.ReportKeywordRankCreateManyReportInputEnvelope
  set?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  disconnect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  delete?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  connect?: Prisma.ReportKeywordRankWhereUniqueInput | Prisma.ReportKeywordRankWhereUniqueInput[]
  update?: Prisma.ReportKeywordRankUpdateWithWhereUniqueWithoutReportInput | Prisma.ReportKeywordRankUpdateWithWhereUniqueWithoutReportInput[]
  updateMany?: Prisma.ReportKeywordRankUpdateManyWithWhereWithoutReportInput | Prisma.ReportKeywordRankUpdateManyWithWhereWithoutReportInput[]
  deleteMany?: Prisma.ReportKeywordRankScalarWhereInput | Prisma.ReportKeywordRankScalarWhereInput[]
}

export type ReportKeywordRankCreateWithoutKeywordInput = {
  id?: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
  report: Prisma.ReportCreateNestedOneWithoutKeywordRanksInput
}

export type ReportKeywordRankUncheckedCreateWithoutKeywordInput = {
  id?: string
  reportId: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ReportKeywordRankCreateOrConnectWithoutKeywordInput = {
  where: Prisma.ReportKeywordRankWhereUniqueInput
  create: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutKeywordInput, Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput>
}

export type ReportKeywordRankCreateManyKeywordInputEnvelope = {
  data: Prisma.ReportKeywordRankCreateManyKeywordInput | Prisma.ReportKeywordRankCreateManyKeywordInput[]
  skipDuplicates?: boolean
}

export type ReportKeywordRankUpsertWithWhereUniqueWithoutKeywordInput = {
  where: Prisma.ReportKeywordRankWhereUniqueInput
  update: Prisma.XOR<Prisma.ReportKeywordRankUpdateWithoutKeywordInput, Prisma.ReportKeywordRankUncheckedUpdateWithoutKeywordInput>
  create: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutKeywordInput, Prisma.ReportKeywordRankUncheckedCreateWithoutKeywordInput>
}

export type ReportKeywordRankUpdateWithWhereUniqueWithoutKeywordInput = {
  where: Prisma.ReportKeywordRankWhereUniqueInput
  data: Prisma.XOR<Prisma.ReportKeywordRankUpdateWithoutKeywordInput, Prisma.ReportKeywordRankUncheckedUpdateWithoutKeywordInput>
}

export type ReportKeywordRankUpdateManyWithWhereWithoutKeywordInput = {
  where: Prisma.ReportKeywordRankScalarWhereInput
  data: Prisma.XOR<Prisma.ReportKeywordRankUpdateManyMutationInput, Prisma.ReportKeywordRankUncheckedUpdateManyWithoutKeywordInput>
}

export type ReportKeywordRankScalarWhereInput = {
  AND?: Prisma.ReportKeywordRankScalarWhereInput | Prisma.ReportKeywordRankScalarWhereInput[]
  OR?: Prisma.ReportKeywordRankScalarWhereInput[]
  NOT?: Prisma.ReportKeywordRankScalarWhereInput | Prisma.ReportKeywordRankScalarWhereInput[]
  id?: Prisma.StringFilter<"ReportKeywordRank"> | string
  reportId?: Prisma.StringFilter<"ReportKeywordRank"> | string
  keywordId?: Prisma.StringFilter<"ReportKeywordRank"> | string
  position?: Prisma.IntFilter<"ReportKeywordRank"> | number
  createdAt?: Prisma.DateTimeFilter<"ReportKeywordRank"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ReportKeywordRank"> | Date | string
}

export type ReportKeywordRankCreateWithoutReportInput = {
  id?: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
  keyword: Prisma.ClientKeywordCreateNestedOneWithoutRanksInput
}

export type ReportKeywordRankUncheckedCreateWithoutReportInput = {
  id?: string
  keywordId: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ReportKeywordRankCreateOrConnectWithoutReportInput = {
  where: Prisma.ReportKeywordRankWhereUniqueInput
  create: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutReportInput, Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput>
}

export type ReportKeywordRankCreateManyReportInputEnvelope = {
  data: Prisma.ReportKeywordRankCreateManyReportInput | Prisma.ReportKeywordRankCreateManyReportInput[]
  skipDuplicates?: boolean
}

export type ReportKeywordRankUpsertWithWhereUniqueWithoutReportInput = {
  where: Prisma.ReportKeywordRankWhereUniqueInput
  update: Prisma.XOR<Prisma.ReportKeywordRankUpdateWithoutReportInput, Prisma.ReportKeywordRankUncheckedUpdateWithoutReportInput>
  create: Prisma.XOR<Prisma.ReportKeywordRankCreateWithoutReportInput, Prisma.ReportKeywordRankUncheckedCreateWithoutReportInput>
}

export type ReportKeywordRankUpdateWithWhereUniqueWithoutReportInput = {
  where: Prisma.ReportKeywordRankWhereUniqueInput
  data: Prisma.XOR<Prisma.ReportKeywordRankUpdateWithoutReportInput, Prisma.ReportKeywordRankUncheckedUpdateWithoutReportInput>
}

export type ReportKeywordRankUpdateManyWithWhereWithoutReportInput = {
  where: Prisma.ReportKeywordRankScalarWhereInput
  data: Prisma.XOR<Prisma.ReportKeywordRankUpdateManyMutationInput, Prisma.ReportKeywordRankUncheckedUpdateManyWithoutReportInput>
}

export type ReportKeywordRankCreateManyKeywordInput = {
  id?: string
  reportId: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ReportKeywordRankUpdateWithoutKeywordInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  report?: Prisma.ReportUpdateOneRequiredWithoutKeywordRanksNestedInput
}

export type ReportKeywordRankUncheckedUpdateWithoutKeywordInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  reportId?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ReportKeywordRankUncheckedUpdateManyWithoutKeywordInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  reportId?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ReportKeywordRankCreateManyReportInput = {
  id?: string
  keywordId: string
  position?: number
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ReportKeywordRankUpdateWithoutReportInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  keyword?: Prisma.ClientKeywordUpdateOneRequiredWithoutRanksNestedInput
}

export type ReportKeywordRankUncheckedUpdateWithoutReportInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  keywordId?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ReportKeywordRankUncheckedUpdateManyWithoutReportInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  keywordId?: Prisma.StringFieldUpdateOperationsInput | string
  position?: Prisma.IntFieldUpdateOperationsInput | number
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type ReportKeywordRankSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  reportId?: boolean
  keywordId?: boolean
  position?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  report?: boolean | Prisma.ReportDefaultArgs<ExtArgs>
  keyword?: boolean | Prisma.ClientKeywordDefaultArgs<ExtArgs>
}, ExtArgs["result"]["reportKeywordRank"]>

export type ReportKeywordRankSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  reportId?: boolean
  keywordId?: boolean
  position?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  report?: boolean | Prisma.ReportDefaultArgs<ExtArgs>
  keyword?: boolean | Prisma.ClientKeywordDefaultArgs<ExtArgs>
}, ExtArgs["result"]["reportKeywordRank"]>

export type ReportKeywordRankSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  reportId?: boolean
  keywordId?: boolean
  position?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  report?: boolean | Prisma.ReportDefaultArgs<ExtArgs>
  keyword?: boolean | Prisma.ClientKeywordDefaultArgs<ExtArgs>
}, ExtArgs["result"]["reportKeywordRank"]>

export type ReportKeywordRankSelectScalar = {
  id?: boolean
  reportId?: boolean
  keywordId?: boolean
  position?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type ReportKeywordRankOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "reportId" | "keywordId" | "position" | "createdAt" | "updatedAt", ExtArgs["result"]["reportKeywordRank"]>
export type ReportKeywordRankInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  report?: boolean | Prisma.ReportDefaultArgs<ExtArgs>
  keyword?: boolean | Prisma.ClientKeywordDefaultArgs<ExtArgs>
}
export type ReportKeywordRankIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  report?: boolean | Prisma.ReportDefaultArgs<ExtArgs>
  keyword?: boolean | Prisma.ClientKeywordDefaultArgs<ExtArgs>
}
export type ReportKeywordRankIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  report?: boolean | Prisma.ReportDefaultArgs<ExtArgs>
  keyword?: boolean | Prisma.ClientKeywordDefaultArgs<ExtArgs>
}

export type $ReportKeywordRankPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ReportKeywordRank"
  objects: {
    report: Prisma.$ReportPayload<ExtArgs>
    keyword: Prisma.$ClientKeywordPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    reportId: string
    keywordId: string
    position: number
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["reportKeywordRank"]>
  composites: {}
}

export type ReportKeywordRankGetPayload<S extends boolean | null | undefined | ReportKeywordRankDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ReportKeywordRankPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for ReportKeywordRank.
 * 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__ReportKeywordRankClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  report<T extends Prisma.ReportDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ReportDefaultArgs<ExtArgs>>): Prisma.Prisma__ReportClient<runtime.Types.Result.GetResult<Prisma.$ReportPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  keyword<T extends Prisma.ClientKeywordDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ClientKeywordDefaultArgs<ExtArgs>>): Prisma.Prisma__ClientKeywordClient<runtime.Types.Result.GetResult<Prisma.$ClientKeywordPayload<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 ReportKeywordRank model
 */
export interface ReportKeywordRankFieldRefs {
  readonly id: Prisma.FieldRef<"ReportKeywordRank", 'String'>
  readonly reportId: Prisma.FieldRef<"ReportKeywordRank", 'String'>
  readonly keywordId: Prisma.FieldRef<"ReportKeywordRank", 'String'>
  readonly position: Prisma.FieldRef<"ReportKeywordRank", 'Int'>
  readonly createdAt: Prisma.FieldRef<"ReportKeywordRank", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"ReportKeywordRank", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ReportKeywordRank findUnique
 */
export type ReportKeywordRankFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReportKeywordRank
   */
  select?: Prisma.ReportKeywordRankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ReportKeywordRank
   */
  omit?: Prisma.ReportKeywordRankOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReportKeywordRankInclude<ExtArgs> | null
  /**
   * Filter, which ReportKeywordRank to fetch.
   */
  where: Prisma.ReportKeywordRankWhereUniqueInput
}

/**
 * ReportKeywordRank findUniqueOrThrow
 */
export type ReportKeywordRankFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReportKeywordRank
   */
  select?: Prisma.ReportKeywordRankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ReportKeywordRank
   */
  omit?: Prisma.ReportKeywordRankOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReportKeywordRankInclude<ExtArgs> | null
  /**
   * Filter, which ReportKeywordRank to fetch.
   */
  where: Prisma.ReportKeywordRankWhereUniqueInput
}

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

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

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

/**
 * ReportKeywordRank create
 */
export type ReportKeywordRankCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReportKeywordRank
   */
  select?: Prisma.ReportKeywordRankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ReportKeywordRank
   */
  omit?: Prisma.ReportKeywordRankOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReportKeywordRankInclude<ExtArgs> | null
  /**
   * The data needed to create a ReportKeywordRank.
   */
  data: Prisma.XOR<Prisma.ReportKeywordRankCreateInput, Prisma.ReportKeywordRankUncheckedCreateInput>
}

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

/**
 * ReportKeywordRank createManyAndReturn
 */
export type ReportKeywordRankCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReportKeywordRank
   */
  select?: Prisma.ReportKeywordRankSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ReportKeywordRank
   */
  omit?: Prisma.ReportKeywordRankOmit<ExtArgs> | null
  /**
   * The data used to create many ReportKeywordRanks.
   */
  data: Prisma.ReportKeywordRankCreateManyInput | Prisma.ReportKeywordRankCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReportKeywordRankIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * ReportKeywordRank update
 */
export type ReportKeywordRankUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReportKeywordRank
   */
  select?: Prisma.ReportKeywordRankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ReportKeywordRank
   */
  omit?: Prisma.ReportKeywordRankOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReportKeywordRankInclude<ExtArgs> | null
  /**
   * The data needed to update a ReportKeywordRank.
   */
  data: Prisma.XOR<Prisma.ReportKeywordRankUpdateInput, Prisma.ReportKeywordRankUncheckedUpdateInput>
  /**
   * Choose, which ReportKeywordRank to update.
   */
  where: Prisma.ReportKeywordRankWhereUniqueInput
}

/**
 * ReportKeywordRank updateMany
 */
export type ReportKeywordRankUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ReportKeywordRanks.
   */
  data: Prisma.XOR<Prisma.ReportKeywordRankUpdateManyMutationInput, Prisma.ReportKeywordRankUncheckedUpdateManyInput>
  /**
   * Filter which ReportKeywordRanks to update
   */
  where?: Prisma.ReportKeywordRankWhereInput
  /**
   * Limit how many ReportKeywordRanks to update.
   */
  limit?: number
}

/**
 * ReportKeywordRank updateManyAndReturn
 */
export type ReportKeywordRankUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReportKeywordRank
   */
  select?: Prisma.ReportKeywordRankSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ReportKeywordRank
   */
  omit?: Prisma.ReportKeywordRankOmit<ExtArgs> | null
  /**
   * The data used to update ReportKeywordRanks.
   */
  data: Prisma.XOR<Prisma.ReportKeywordRankUpdateManyMutationInput, Prisma.ReportKeywordRankUncheckedUpdateManyInput>
  /**
   * Filter which ReportKeywordRanks to update
   */
  where?: Prisma.ReportKeywordRankWhereInput
  /**
   * Limit how many ReportKeywordRanks to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReportKeywordRankIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * ReportKeywordRank upsert
 */
export type ReportKeywordRankUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReportKeywordRank
   */
  select?: Prisma.ReportKeywordRankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ReportKeywordRank
   */
  omit?: Prisma.ReportKeywordRankOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReportKeywordRankInclude<ExtArgs> | null
  /**
   * The filter to search for the ReportKeywordRank to update in case it exists.
   */
  where: Prisma.ReportKeywordRankWhereUniqueInput
  /**
   * In case the ReportKeywordRank found by the `where` argument doesn't exist, create a new ReportKeywordRank with this data.
   */
  create: Prisma.XOR<Prisma.ReportKeywordRankCreateInput, Prisma.ReportKeywordRankUncheckedCreateInput>
  /**
   * In case the ReportKeywordRank was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ReportKeywordRankUpdateInput, Prisma.ReportKeywordRankUncheckedUpdateInput>
}

/**
 * ReportKeywordRank delete
 */
export type ReportKeywordRankDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ReportKeywordRank
   */
  select?: Prisma.ReportKeywordRankSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ReportKeywordRank
   */
  omit?: Prisma.ReportKeywordRankOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ReportKeywordRankInclude<ExtArgs> | null
  /**
   * Filter which ReportKeywordRank to delete.
   */
  where: Prisma.ReportKeywordRankWhereUniqueInput
}

/**
 * ReportKeywordRank deleteMany
 */
export type ReportKeywordRankDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ReportKeywordRanks to delete
   */
  where?: Prisma.ReportKeywordRankWhereInput
  /**
   * Limit how many ReportKeywordRanks to delete.
   */
  limit?: number
}

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