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

export type AggregateClientKeyword = {
  _count: ClientKeywordCountAggregateOutputType | null
  _min: ClientKeywordMinAggregateOutputType | null
  _max: ClientKeywordMaxAggregateOutputType | null
}

export type ClientKeywordMinAggregateOutputType = {
  id: string | null
  clientId: string | null
  keyword: string | null
  status: $Enums.KeywordStatus | null
  isDeleted: boolean | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ClientKeywordMaxAggregateOutputType = {
  id: string | null
  clientId: string | null
  keyword: string | null
  status: $Enums.KeywordStatus | null
  isDeleted: boolean | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type ClientKeywordCountAggregateOutputType = {
  id: number
  clientId: number
  keyword: number
  status: number
  isDeleted: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type ClientKeywordMinAggregateInputType = {
  id?: true
  clientId?: true
  keyword?: true
  status?: true
  isDeleted?: true
  createdAt?: true
  updatedAt?: true
}

export type ClientKeywordMaxAggregateInputType = {
  id?: true
  clientId?: true
  keyword?: true
  status?: true
  isDeleted?: true
  createdAt?: true
  updatedAt?: true
}

export type ClientKeywordCountAggregateInputType = {
  id?: true
  clientId?: true
  keyword?: true
  status?: true
  isDeleted?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type ClientKeywordGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ClientKeywordWhereInput
  orderBy?: Prisma.ClientKeywordOrderByWithAggregationInput | Prisma.ClientKeywordOrderByWithAggregationInput[]
  by: Prisma.ClientKeywordScalarFieldEnum[] | Prisma.ClientKeywordScalarFieldEnum
  having?: Prisma.ClientKeywordScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: ClientKeywordCountAggregateInputType | true
  _min?: ClientKeywordMinAggregateInputType
  _max?: ClientKeywordMaxAggregateInputType
}

export type ClientKeywordGroupByOutputType = {
  id: string
  clientId: string
  keyword: string
  status: $Enums.KeywordStatus
  isDeleted: boolean
  createdAt: Date
  updatedAt: Date
  _count: ClientKeywordCountAggregateOutputType | null
  _min: ClientKeywordMinAggregateOutputType | null
  _max: ClientKeywordMaxAggregateOutputType | null
}

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



export type ClientKeywordWhereInput = {
  AND?: Prisma.ClientKeywordWhereInput | Prisma.ClientKeywordWhereInput[]
  OR?: Prisma.ClientKeywordWhereInput[]
  NOT?: Prisma.ClientKeywordWhereInput | Prisma.ClientKeywordWhereInput[]
  id?: Prisma.StringFilter<"ClientKeyword"> | string
  clientId?: Prisma.StringFilter<"ClientKeyword"> | string
  keyword?: Prisma.StringFilter<"ClientKeyword"> | string
  status?: Prisma.EnumKeywordStatusFilter<"ClientKeyword"> | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFilter<"ClientKeyword"> | boolean
  createdAt?: Prisma.DateTimeFilter<"ClientKeyword"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ClientKeyword"> | Date | string
  client?: Prisma.XOR<Prisma.ClientScalarRelationFilter, Prisma.ClientWhereInput>
  ranks?: Prisma.ReportKeywordRankListRelationFilter
}

export type ClientKeywordOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  clientId?: Prisma.SortOrder
  keyword?: Prisma.SortOrder
  status?: Prisma.SortOrder
  isDeleted?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  client?: Prisma.ClientOrderByWithRelationInput
  ranks?: Prisma.ReportKeywordRankOrderByRelationAggregateInput
}

export type ClientKeywordWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  AND?: Prisma.ClientKeywordWhereInput | Prisma.ClientKeywordWhereInput[]
  OR?: Prisma.ClientKeywordWhereInput[]
  NOT?: Prisma.ClientKeywordWhereInput | Prisma.ClientKeywordWhereInput[]
  clientId?: Prisma.StringFilter<"ClientKeyword"> | string
  keyword?: Prisma.StringFilter<"ClientKeyword"> | string
  status?: Prisma.EnumKeywordStatusFilter<"ClientKeyword"> | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFilter<"ClientKeyword"> | boolean
  createdAt?: Prisma.DateTimeFilter<"ClientKeyword"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ClientKeyword"> | Date | string
  client?: Prisma.XOR<Prisma.ClientScalarRelationFilter, Prisma.ClientWhereInput>
  ranks?: Prisma.ReportKeywordRankListRelationFilter
}, "id">

export type ClientKeywordOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  clientId?: Prisma.SortOrder
  keyword?: Prisma.SortOrder
  status?: Prisma.SortOrder
  isDeleted?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.ClientKeywordCountOrderByAggregateInput
  _max?: Prisma.ClientKeywordMaxOrderByAggregateInput
  _min?: Prisma.ClientKeywordMinOrderByAggregateInput
}

export type ClientKeywordScalarWhereWithAggregatesInput = {
  AND?: Prisma.ClientKeywordScalarWhereWithAggregatesInput | Prisma.ClientKeywordScalarWhereWithAggregatesInput[]
  OR?: Prisma.ClientKeywordScalarWhereWithAggregatesInput[]
  NOT?: Prisma.ClientKeywordScalarWhereWithAggregatesInput | Prisma.ClientKeywordScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"ClientKeyword"> | string
  clientId?: Prisma.StringWithAggregatesFilter<"ClientKeyword"> | string
  keyword?: Prisma.StringWithAggregatesFilter<"ClientKeyword"> | string
  status?: Prisma.EnumKeywordStatusWithAggregatesFilter<"ClientKeyword"> | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolWithAggregatesFilter<"ClientKeyword"> | boolean
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"ClientKeyword"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ClientKeyword"> | Date | string
}

export type ClientKeywordCreateInput = {
  id?: string
  keyword: string
  status?: $Enums.KeywordStatus
  isDeleted?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  client: Prisma.ClientCreateNestedOneWithoutKeywordsInput
  ranks?: Prisma.ReportKeywordRankCreateNestedManyWithoutKeywordInput
}

export type ClientKeywordUncheckedCreateInput = {
  id?: string
  clientId: string
  keyword: string
  status?: $Enums.KeywordStatus
  isDeleted?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  ranks?: Prisma.ReportKeywordRankUncheckedCreateNestedManyWithoutKeywordInput
}

export type ClientKeywordUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  client?: Prisma.ClientUpdateOneRequiredWithoutKeywordsNestedInput
  ranks?: Prisma.ReportKeywordRankUpdateManyWithoutKeywordNestedInput
}

export type ClientKeywordUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  clientId?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  ranks?: Prisma.ReportKeywordRankUncheckedUpdateManyWithoutKeywordNestedInput
}

export type ClientKeywordCreateManyInput = {
  id?: string
  clientId: string
  keyword: string
  status?: $Enums.KeywordStatus
  isDeleted?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ClientKeywordUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ClientKeywordUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  clientId?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ClientKeywordListRelationFilter = {
  every?: Prisma.ClientKeywordWhereInput
  some?: Prisma.ClientKeywordWhereInput
  none?: Prisma.ClientKeywordWhereInput
}

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

export type ClientKeywordCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  clientId?: Prisma.SortOrder
  keyword?: Prisma.SortOrder
  status?: Prisma.SortOrder
  isDeleted?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ClientKeywordMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  clientId?: Prisma.SortOrder
  keyword?: Prisma.SortOrder
  status?: Prisma.SortOrder
  isDeleted?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ClientKeywordMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  clientId?: Prisma.SortOrder
  keyword?: Prisma.SortOrder
  status?: Prisma.SortOrder
  isDeleted?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type ClientKeywordScalarRelationFilter = {
  is?: Prisma.ClientKeywordWhereInput
  isNot?: Prisma.ClientKeywordWhereInput
}

export type ClientKeywordCreateNestedManyWithoutClientInput = {
  create?: Prisma.XOR<Prisma.ClientKeywordCreateWithoutClientInput, Prisma.ClientKeywordUncheckedCreateWithoutClientInput> | Prisma.ClientKeywordCreateWithoutClientInput[] | Prisma.ClientKeywordUncheckedCreateWithoutClientInput[]
  connectOrCreate?: Prisma.ClientKeywordCreateOrConnectWithoutClientInput | Prisma.ClientKeywordCreateOrConnectWithoutClientInput[]
  createMany?: Prisma.ClientKeywordCreateManyClientInputEnvelope
  connect?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
}

export type ClientKeywordUncheckedCreateNestedManyWithoutClientInput = {
  create?: Prisma.XOR<Prisma.ClientKeywordCreateWithoutClientInput, Prisma.ClientKeywordUncheckedCreateWithoutClientInput> | Prisma.ClientKeywordCreateWithoutClientInput[] | Prisma.ClientKeywordUncheckedCreateWithoutClientInput[]
  connectOrCreate?: Prisma.ClientKeywordCreateOrConnectWithoutClientInput | Prisma.ClientKeywordCreateOrConnectWithoutClientInput[]
  createMany?: Prisma.ClientKeywordCreateManyClientInputEnvelope
  connect?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
}

export type ClientKeywordUpdateManyWithoutClientNestedInput = {
  create?: Prisma.XOR<Prisma.ClientKeywordCreateWithoutClientInput, Prisma.ClientKeywordUncheckedCreateWithoutClientInput> | Prisma.ClientKeywordCreateWithoutClientInput[] | Prisma.ClientKeywordUncheckedCreateWithoutClientInput[]
  connectOrCreate?: Prisma.ClientKeywordCreateOrConnectWithoutClientInput | Prisma.ClientKeywordCreateOrConnectWithoutClientInput[]
  upsert?: Prisma.ClientKeywordUpsertWithWhereUniqueWithoutClientInput | Prisma.ClientKeywordUpsertWithWhereUniqueWithoutClientInput[]
  createMany?: Prisma.ClientKeywordCreateManyClientInputEnvelope
  set?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
  disconnect?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
  delete?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
  connect?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
  update?: Prisma.ClientKeywordUpdateWithWhereUniqueWithoutClientInput | Prisma.ClientKeywordUpdateWithWhereUniqueWithoutClientInput[]
  updateMany?: Prisma.ClientKeywordUpdateManyWithWhereWithoutClientInput | Prisma.ClientKeywordUpdateManyWithWhereWithoutClientInput[]
  deleteMany?: Prisma.ClientKeywordScalarWhereInput | Prisma.ClientKeywordScalarWhereInput[]
}

export type ClientKeywordUncheckedUpdateManyWithoutClientNestedInput = {
  create?: Prisma.XOR<Prisma.ClientKeywordCreateWithoutClientInput, Prisma.ClientKeywordUncheckedCreateWithoutClientInput> | Prisma.ClientKeywordCreateWithoutClientInput[] | Prisma.ClientKeywordUncheckedCreateWithoutClientInput[]
  connectOrCreate?: Prisma.ClientKeywordCreateOrConnectWithoutClientInput | Prisma.ClientKeywordCreateOrConnectWithoutClientInput[]
  upsert?: Prisma.ClientKeywordUpsertWithWhereUniqueWithoutClientInput | Prisma.ClientKeywordUpsertWithWhereUniqueWithoutClientInput[]
  createMany?: Prisma.ClientKeywordCreateManyClientInputEnvelope
  set?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
  disconnect?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
  delete?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
  connect?: Prisma.ClientKeywordWhereUniqueInput | Prisma.ClientKeywordWhereUniqueInput[]
  update?: Prisma.ClientKeywordUpdateWithWhereUniqueWithoutClientInput | Prisma.ClientKeywordUpdateWithWhereUniqueWithoutClientInput[]
  updateMany?: Prisma.ClientKeywordUpdateManyWithWhereWithoutClientInput | Prisma.ClientKeywordUpdateManyWithWhereWithoutClientInput[]
  deleteMany?: Prisma.ClientKeywordScalarWhereInput | Prisma.ClientKeywordScalarWhereInput[]
}

export type EnumKeywordStatusFieldUpdateOperationsInput = {
  set?: $Enums.KeywordStatus
}

export type ClientKeywordCreateNestedOneWithoutRanksInput = {
  create?: Prisma.XOR<Prisma.ClientKeywordCreateWithoutRanksInput, Prisma.ClientKeywordUncheckedCreateWithoutRanksInput>
  connectOrCreate?: Prisma.ClientKeywordCreateOrConnectWithoutRanksInput
  connect?: Prisma.ClientKeywordWhereUniqueInput
}

export type ClientKeywordUpdateOneRequiredWithoutRanksNestedInput = {
  create?: Prisma.XOR<Prisma.ClientKeywordCreateWithoutRanksInput, Prisma.ClientKeywordUncheckedCreateWithoutRanksInput>
  connectOrCreate?: Prisma.ClientKeywordCreateOrConnectWithoutRanksInput
  upsert?: Prisma.ClientKeywordUpsertWithoutRanksInput
  connect?: Prisma.ClientKeywordWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.ClientKeywordUpdateToOneWithWhereWithoutRanksInput, Prisma.ClientKeywordUpdateWithoutRanksInput>, Prisma.ClientKeywordUncheckedUpdateWithoutRanksInput>
}

export type ClientKeywordCreateWithoutClientInput = {
  id?: string
  keyword: string
  status?: $Enums.KeywordStatus
  isDeleted?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  ranks?: Prisma.ReportKeywordRankCreateNestedManyWithoutKeywordInput
}

export type ClientKeywordUncheckedCreateWithoutClientInput = {
  id?: string
  keyword: string
  status?: $Enums.KeywordStatus
  isDeleted?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  ranks?: Prisma.ReportKeywordRankUncheckedCreateNestedManyWithoutKeywordInput
}

export type ClientKeywordCreateOrConnectWithoutClientInput = {
  where: Prisma.ClientKeywordWhereUniqueInput
  create: Prisma.XOR<Prisma.ClientKeywordCreateWithoutClientInput, Prisma.ClientKeywordUncheckedCreateWithoutClientInput>
}

export type ClientKeywordCreateManyClientInputEnvelope = {
  data: Prisma.ClientKeywordCreateManyClientInput | Prisma.ClientKeywordCreateManyClientInput[]
  skipDuplicates?: boolean
}

export type ClientKeywordUpsertWithWhereUniqueWithoutClientInput = {
  where: Prisma.ClientKeywordWhereUniqueInput
  update: Prisma.XOR<Prisma.ClientKeywordUpdateWithoutClientInput, Prisma.ClientKeywordUncheckedUpdateWithoutClientInput>
  create: Prisma.XOR<Prisma.ClientKeywordCreateWithoutClientInput, Prisma.ClientKeywordUncheckedCreateWithoutClientInput>
}

export type ClientKeywordUpdateWithWhereUniqueWithoutClientInput = {
  where: Prisma.ClientKeywordWhereUniqueInput
  data: Prisma.XOR<Prisma.ClientKeywordUpdateWithoutClientInput, Prisma.ClientKeywordUncheckedUpdateWithoutClientInput>
}

export type ClientKeywordUpdateManyWithWhereWithoutClientInput = {
  where: Prisma.ClientKeywordScalarWhereInput
  data: Prisma.XOR<Prisma.ClientKeywordUpdateManyMutationInput, Prisma.ClientKeywordUncheckedUpdateManyWithoutClientInput>
}

export type ClientKeywordScalarWhereInput = {
  AND?: Prisma.ClientKeywordScalarWhereInput | Prisma.ClientKeywordScalarWhereInput[]
  OR?: Prisma.ClientKeywordScalarWhereInput[]
  NOT?: Prisma.ClientKeywordScalarWhereInput | Prisma.ClientKeywordScalarWhereInput[]
  id?: Prisma.StringFilter<"ClientKeyword"> | string
  clientId?: Prisma.StringFilter<"ClientKeyword"> | string
  keyword?: Prisma.StringFilter<"ClientKeyword"> | string
  status?: Prisma.EnumKeywordStatusFilter<"ClientKeyword"> | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFilter<"ClientKeyword"> | boolean
  createdAt?: Prisma.DateTimeFilter<"ClientKeyword"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"ClientKeyword"> | Date | string
}

export type ClientKeywordCreateWithoutRanksInput = {
  id?: string
  keyword: string
  status?: $Enums.KeywordStatus
  isDeleted?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
  client: Prisma.ClientCreateNestedOneWithoutKeywordsInput
}

export type ClientKeywordUncheckedCreateWithoutRanksInput = {
  id?: string
  clientId: string
  keyword: string
  status?: $Enums.KeywordStatus
  isDeleted?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ClientKeywordCreateOrConnectWithoutRanksInput = {
  where: Prisma.ClientKeywordWhereUniqueInput
  create: Prisma.XOR<Prisma.ClientKeywordCreateWithoutRanksInput, Prisma.ClientKeywordUncheckedCreateWithoutRanksInput>
}

export type ClientKeywordUpsertWithoutRanksInput = {
  update: Prisma.XOR<Prisma.ClientKeywordUpdateWithoutRanksInput, Prisma.ClientKeywordUncheckedUpdateWithoutRanksInput>
  create: Prisma.XOR<Prisma.ClientKeywordCreateWithoutRanksInput, Prisma.ClientKeywordUncheckedCreateWithoutRanksInput>
  where?: Prisma.ClientKeywordWhereInput
}

export type ClientKeywordUpdateToOneWithWhereWithoutRanksInput = {
  where?: Prisma.ClientKeywordWhereInput
  data: Prisma.XOR<Prisma.ClientKeywordUpdateWithoutRanksInput, Prisma.ClientKeywordUncheckedUpdateWithoutRanksInput>
}

export type ClientKeywordUpdateWithoutRanksInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  client?: Prisma.ClientUpdateOneRequiredWithoutKeywordsNestedInput
}

export type ClientKeywordUncheckedUpdateWithoutRanksInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  clientId?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type ClientKeywordCreateManyClientInput = {
  id?: string
  keyword: string
  status?: $Enums.KeywordStatus
  isDeleted?: boolean
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type ClientKeywordUpdateWithoutClientInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  ranks?: Prisma.ReportKeywordRankUpdateManyWithoutKeywordNestedInput
}

export type ClientKeywordUncheckedUpdateWithoutClientInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  ranks?: Prisma.ReportKeywordRankUncheckedUpdateManyWithoutKeywordNestedInput
}

export type ClientKeywordUncheckedUpdateManyWithoutClientInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  keyword?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumKeywordStatusFieldUpdateOperationsInput | $Enums.KeywordStatus
  isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type ClientKeywordCountOutputType
 */

export type ClientKeywordCountOutputType = {
  ranks: number
}

export type ClientKeywordCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  ranks?: boolean | ClientKeywordCountOutputTypeCountRanksArgs
}

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

/**
 * ClientKeywordCountOutputType without action
 */
export type ClientKeywordCountOutputTypeCountRanksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.ReportKeywordRankWhereInput
}


export type ClientKeywordSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  clientId?: boolean
  keyword?: boolean
  status?: boolean
  isDeleted?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>
  ranks?: boolean | Prisma.ClientKeyword$ranksArgs<ExtArgs>
  _count?: boolean | Prisma.ClientKeywordCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["clientKeyword"]>

export type ClientKeywordSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  clientId?: boolean
  keyword?: boolean
  status?: boolean
  isDeleted?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>
}, ExtArgs["result"]["clientKeyword"]>

export type ClientKeywordSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  clientId?: boolean
  keyword?: boolean
  status?: boolean
  isDeleted?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>
}, ExtArgs["result"]["clientKeyword"]>

export type ClientKeywordSelectScalar = {
  id?: boolean
  clientId?: boolean
  keyword?: boolean
  status?: boolean
  isDeleted?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type ClientKeywordOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "clientId" | "keyword" | "status" | "isDeleted" | "createdAt" | "updatedAt", ExtArgs["result"]["clientKeyword"]>
export type ClientKeywordInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>
  ranks?: boolean | Prisma.ClientKeyword$ranksArgs<ExtArgs>
  _count?: boolean | Prisma.ClientKeywordCountOutputTypeDefaultArgs<ExtArgs>
}
export type ClientKeywordIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>
}
export type ClientKeywordIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  client?: boolean | Prisma.ClientDefaultArgs<ExtArgs>
}

export type $ClientKeywordPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "ClientKeyword"
  objects: {
    client: Prisma.$ClientPayload<ExtArgs>
    ranks: Prisma.$ReportKeywordRankPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    clientId: string
    keyword: string
    status: $Enums.KeywordStatus
    isDeleted: boolean
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["clientKeyword"]>
  composites: {}
}

export type ClientKeywordGetPayload<S extends boolean | null | undefined | ClientKeywordDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ClientKeywordPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for ClientKeyword.
 * 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__ClientKeywordClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  client<T extends Prisma.ClientDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ClientDefaultArgs<ExtArgs>>): Prisma.Prisma__ClientClient<runtime.Types.Result.GetResult<Prisma.$ClientPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  ranks<T extends Prisma.ClientKeyword$ranksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ClientKeyword$ranksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReportKeywordRankPayload<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 ClientKeyword model
 */
export interface ClientKeywordFieldRefs {
  readonly id: Prisma.FieldRef<"ClientKeyword", 'String'>
  readonly clientId: Prisma.FieldRef<"ClientKeyword", 'String'>
  readonly keyword: Prisma.FieldRef<"ClientKeyword", 'String'>
  readonly status: Prisma.FieldRef<"ClientKeyword", 'KeywordStatus'>
  readonly isDeleted: Prisma.FieldRef<"ClientKeyword", 'Boolean'>
  readonly createdAt: Prisma.FieldRef<"ClientKeyword", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"ClientKeyword", 'DateTime'>
}
    

// Custom InputTypes
/**
 * ClientKeyword findUnique
 */
export type ClientKeywordFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ClientKeyword
   */
  select?: Prisma.ClientKeywordSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ClientKeyword
   */
  omit?: Prisma.ClientKeywordOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ClientKeywordInclude<ExtArgs> | null
  /**
   * Filter, which ClientKeyword to fetch.
   */
  where: Prisma.ClientKeywordWhereUniqueInput
}

/**
 * ClientKeyword findUniqueOrThrow
 */
export type ClientKeywordFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ClientKeyword
   */
  select?: Prisma.ClientKeywordSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ClientKeyword
   */
  omit?: Prisma.ClientKeywordOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ClientKeywordInclude<ExtArgs> | null
  /**
   * Filter, which ClientKeyword to fetch.
   */
  where: Prisma.ClientKeywordWhereUniqueInput
}

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

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

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

/**
 * ClientKeyword create
 */
export type ClientKeywordCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ClientKeyword
   */
  select?: Prisma.ClientKeywordSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ClientKeyword
   */
  omit?: Prisma.ClientKeywordOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ClientKeywordInclude<ExtArgs> | null
  /**
   * The data needed to create a ClientKeyword.
   */
  data: Prisma.XOR<Prisma.ClientKeywordCreateInput, Prisma.ClientKeywordUncheckedCreateInput>
}

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

/**
 * ClientKeyword createManyAndReturn
 */
export type ClientKeywordCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ClientKeyword
   */
  select?: Prisma.ClientKeywordSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ClientKeyword
   */
  omit?: Prisma.ClientKeywordOmit<ExtArgs> | null
  /**
   * The data used to create many ClientKeywords.
   */
  data: Prisma.ClientKeywordCreateManyInput | Prisma.ClientKeywordCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ClientKeywordIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * ClientKeyword update
 */
export type ClientKeywordUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ClientKeyword
   */
  select?: Prisma.ClientKeywordSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ClientKeyword
   */
  omit?: Prisma.ClientKeywordOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ClientKeywordInclude<ExtArgs> | null
  /**
   * The data needed to update a ClientKeyword.
   */
  data: Prisma.XOR<Prisma.ClientKeywordUpdateInput, Prisma.ClientKeywordUncheckedUpdateInput>
  /**
   * Choose, which ClientKeyword to update.
   */
  where: Prisma.ClientKeywordWhereUniqueInput
}

/**
 * ClientKeyword updateMany
 */
export type ClientKeywordUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update ClientKeywords.
   */
  data: Prisma.XOR<Prisma.ClientKeywordUpdateManyMutationInput, Prisma.ClientKeywordUncheckedUpdateManyInput>
  /**
   * Filter which ClientKeywords to update
   */
  where?: Prisma.ClientKeywordWhereInput
  /**
   * Limit how many ClientKeywords to update.
   */
  limit?: number
}

/**
 * ClientKeyword updateManyAndReturn
 */
export type ClientKeywordUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ClientKeyword
   */
  select?: Prisma.ClientKeywordSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the ClientKeyword
   */
  omit?: Prisma.ClientKeywordOmit<ExtArgs> | null
  /**
   * The data used to update ClientKeywords.
   */
  data: Prisma.XOR<Prisma.ClientKeywordUpdateManyMutationInput, Prisma.ClientKeywordUncheckedUpdateManyInput>
  /**
   * Filter which ClientKeywords to update
   */
  where?: Prisma.ClientKeywordWhereInput
  /**
   * Limit how many ClientKeywords to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ClientKeywordIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * ClientKeyword upsert
 */
export type ClientKeywordUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ClientKeyword
   */
  select?: Prisma.ClientKeywordSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ClientKeyword
   */
  omit?: Prisma.ClientKeywordOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ClientKeywordInclude<ExtArgs> | null
  /**
   * The filter to search for the ClientKeyword to update in case it exists.
   */
  where: Prisma.ClientKeywordWhereUniqueInput
  /**
   * In case the ClientKeyword found by the `where` argument doesn't exist, create a new ClientKeyword with this data.
   */
  create: Prisma.XOR<Prisma.ClientKeywordCreateInput, Prisma.ClientKeywordUncheckedCreateInput>
  /**
   * In case the ClientKeyword was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.ClientKeywordUpdateInput, Prisma.ClientKeywordUncheckedUpdateInput>
}

/**
 * ClientKeyword delete
 */
export type ClientKeywordDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the ClientKeyword
   */
  select?: Prisma.ClientKeywordSelect<ExtArgs> | null
  /**
   * Omit specific fields from the ClientKeyword
   */
  omit?: Prisma.ClientKeywordOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.ClientKeywordInclude<ExtArgs> | null
  /**
   * Filter which ClientKeyword to delete.
   */
  where: Prisma.ClientKeywordWhereUniqueInput
}

/**
 * ClientKeyword deleteMany
 */
export type ClientKeywordDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which ClientKeywords to delete
   */
  where?: Prisma.ClientKeywordWhereInput
  /**
   * Limit how many ClientKeywords to delete.
   */
  limit?: number
}

/**
 * ClientKeyword.ranks
 */
export type ClientKeyword$ranksArgs<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
  where?: Prisma.ReportKeywordRankWhereInput
  orderBy?: Prisma.ReportKeywordRankOrderByWithRelationInput | Prisma.ReportKeywordRankOrderByWithRelationInput[]
  cursor?: Prisma.ReportKeywordRankWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.ReportKeywordRankScalarFieldEnum | Prisma.ReportKeywordRankScalarFieldEnum[]
}

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