/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `KnowledgeBaseArticle` 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.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model KnowledgeBaseArticle * */ export type KnowledgeBaseArticleModel = runtime.Types.Result.DefaultSelection export type AggregateKnowledgeBaseArticle = { _count: KnowledgeBaseArticleCountAggregateOutputType | null _avg: KnowledgeBaseArticleAvgAggregateOutputType | null _sum: KnowledgeBaseArticleSumAggregateOutputType | null _min: KnowledgeBaseArticleMinAggregateOutputType | null _max: KnowledgeBaseArticleMaxAggregateOutputType | null } export type KnowledgeBaseArticleAvgAggregateOutputType = { order: number | null featuredOrder: number | null } export type KnowledgeBaseArticleSumAggregateOutputType = { order: number | null featuredOrder: number | null } export type KnowledgeBaseArticleMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null knowledgeBaseId: string | null categoryId: string | null sectionId: string | null slug: string | null title: string | null description: string | null order: number | null contentDraft: string | null contentPublished: string | null contentPublishedAsText: string | null contentType: string | null language: string | null featuredOrder: number | null seoImage: string | null publishedAt: Date | null relatedInArticleId: string | null createdByUserId: string | null } export type KnowledgeBaseArticleMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null knowledgeBaseId: string | null categoryId: string | null sectionId: string | null slug: string | null title: string | null description: string | null order: number | null contentDraft: string | null contentPublished: string | null contentPublishedAsText: string | null contentType: string | null language: string | null featuredOrder: number | null seoImage: string | null publishedAt: Date | null relatedInArticleId: string | null createdByUserId: string | null } export type KnowledgeBaseArticleCountAggregateOutputType = { id: number createdAt: number updatedAt: number knowledgeBaseId: number categoryId: number sectionId: number slug: number title: number description: number order: number contentDraft: number contentPublished: number contentPublishedAsText: number contentType: number language: number featuredOrder: number seoImage: number publishedAt: number relatedInArticleId: number createdByUserId: number _all: number } export type KnowledgeBaseArticleAvgAggregateInputType = { order?: true featuredOrder?: true } export type KnowledgeBaseArticleSumAggregateInputType = { order?: true featuredOrder?: true } export type KnowledgeBaseArticleMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true knowledgeBaseId?: true categoryId?: true sectionId?: true slug?: true title?: true description?: true order?: true contentDraft?: true contentPublished?: true contentPublishedAsText?: true contentType?: true language?: true featuredOrder?: true seoImage?: true publishedAt?: true relatedInArticleId?: true createdByUserId?: true } export type KnowledgeBaseArticleMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true knowledgeBaseId?: true categoryId?: true sectionId?: true slug?: true title?: true description?: true order?: true contentDraft?: true contentPublished?: true contentPublishedAsText?: true contentType?: true language?: true featuredOrder?: true seoImage?: true publishedAt?: true relatedInArticleId?: true createdByUserId?: true } export type KnowledgeBaseArticleCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true knowledgeBaseId?: true categoryId?: true sectionId?: true slug?: true title?: true description?: true order?: true contentDraft?: true contentPublished?: true contentPublishedAsText?: true contentType?: true language?: true featuredOrder?: true seoImage?: true publishedAt?: true relatedInArticleId?: true createdByUserId?: true _all?: true } export type KnowledgeBaseArticleAggregateArgs = { /** * Filter which KnowledgeBaseArticle to aggregate. */ where?: Prisma.KnowledgeBaseArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KnowledgeBaseArticles to fetch. */ orderBy?: Prisma.KnowledgeBaseArticleOrderByWithRelationInput | Prisma.KnowledgeBaseArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.KnowledgeBaseArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KnowledgeBaseArticles 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` KnowledgeBaseArticles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned KnowledgeBaseArticles **/ _count?: true | KnowledgeBaseArticleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: KnowledgeBaseArticleAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: KnowledgeBaseArticleSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: KnowledgeBaseArticleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: KnowledgeBaseArticleMaxAggregateInputType } export type GetKnowledgeBaseArticleAggregateType = { [P in keyof T & keyof AggregateKnowledgeBaseArticle]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type KnowledgeBaseArticleGroupByArgs = { where?: Prisma.KnowledgeBaseArticleWhereInput orderBy?: Prisma.KnowledgeBaseArticleOrderByWithAggregationInput | Prisma.KnowledgeBaseArticleOrderByWithAggregationInput[] by: Prisma.KnowledgeBaseArticleScalarFieldEnum[] | Prisma.KnowledgeBaseArticleScalarFieldEnum having?: Prisma.KnowledgeBaseArticleScalarWhereWithAggregatesInput take?: number skip?: number _count?: KnowledgeBaseArticleCountAggregateInputType | true _avg?: KnowledgeBaseArticleAvgAggregateInputType _sum?: KnowledgeBaseArticleSumAggregateInputType _min?: KnowledgeBaseArticleMinAggregateInputType _max?: KnowledgeBaseArticleMaxAggregateInputType } export type KnowledgeBaseArticleGroupByOutputType = { id: string createdAt: Date updatedAt: Date | null knowledgeBaseId: string categoryId: string | null sectionId: string | null slug: string title: string description: string order: number contentDraft: string contentPublished: string contentPublishedAsText: string contentType: string language: string featuredOrder: number | null seoImage: string publishedAt: Date | null relatedInArticleId: string | null createdByUserId: string | null _count: KnowledgeBaseArticleCountAggregateOutputType | null _avg: KnowledgeBaseArticleAvgAggregateOutputType | null _sum: KnowledgeBaseArticleSumAggregateOutputType | null _min: KnowledgeBaseArticleMinAggregateOutputType | null _max: KnowledgeBaseArticleMaxAggregateOutputType | null } export type GetKnowledgeBaseArticleGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof KnowledgeBaseArticleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type KnowledgeBaseArticleWhereInput = { AND?: Prisma.KnowledgeBaseArticleWhereInput | Prisma.KnowledgeBaseArticleWhereInput[] OR?: Prisma.KnowledgeBaseArticleWhereInput[] NOT?: Prisma.KnowledgeBaseArticleWhereInput | Prisma.KnowledgeBaseArticleWhereInput[] id?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticle"> | Date | string updatedAt?: Prisma.DateTimeNullableFilter<"KnowledgeBaseArticle"> | Date | string | null knowledgeBaseId?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string categoryId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null sectionId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null slug?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string title?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string description?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string order?: Prisma.IntFilter<"KnowledgeBaseArticle"> | number contentDraft?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentPublished?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentPublishedAsText?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentType?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string language?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string featuredOrder?: Prisma.IntNullableFilter<"KnowledgeBaseArticle"> | number | null seoImage?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string publishedAt?: Prisma.DateTimeNullableFilter<"KnowledgeBaseArticle"> | Date | string | null relatedInArticleId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null createdByUserId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null knowledgeBase?: Prisma.XOR category?: Prisma.XOR | null section?: Prisma.XOR | null createdByUser?: Prisma.XOR | null views?: Prisma.KnowledgeBaseArticleViewsListRelationFilter upvotes?: Prisma.KnowledgeBaseArticleUpvotesListRelationFilter downvotes?: Prisma.KnowledgeBaseArticleDownvotesListRelationFilter relatedArticles?: Prisma.KnowledgeBaseRelatedArticleListRelationFilter relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleListRelationFilter } export type KnowledgeBaseArticleOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder knowledgeBaseId?: Prisma.SortOrder categoryId?: Prisma.SortOrderInput | Prisma.SortOrder sectionId?: Prisma.SortOrderInput | Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder order?: Prisma.SortOrder contentDraft?: Prisma.SortOrder contentPublished?: Prisma.SortOrder contentPublishedAsText?: Prisma.SortOrder contentType?: Prisma.SortOrder language?: Prisma.SortOrder featuredOrder?: Prisma.SortOrderInput | Prisma.SortOrder seoImage?: Prisma.SortOrder publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder relatedInArticleId?: Prisma.SortOrderInput | Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder knowledgeBase?: Prisma.KnowledgeBaseOrderByWithRelationInput category?: Prisma.KnowledgeBaseCategoryOrderByWithRelationInput section?: Prisma.KnowledgeBaseCategorySectionOrderByWithRelationInput createdByUser?: Prisma.UserOrderByWithRelationInput views?: Prisma.KnowledgeBaseArticleViewsOrderByRelationAggregateInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesOrderByRelationAggregateInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesOrderByRelationAggregateInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleOrderByRelationAggregateInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleOrderByRelationAggregateInput } export type KnowledgeBaseArticleWhereUniqueInput = Prisma.AtLeast<{ id?: string knowledgeBaseId_slug?: Prisma.KnowledgeBaseArticleKnowledgeBaseIdSlugCompoundUniqueInput AND?: Prisma.KnowledgeBaseArticleWhereInput | Prisma.KnowledgeBaseArticleWhereInput[] OR?: Prisma.KnowledgeBaseArticleWhereInput[] NOT?: Prisma.KnowledgeBaseArticleWhereInput | Prisma.KnowledgeBaseArticleWhereInput[] createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticle"> | Date | string updatedAt?: Prisma.DateTimeNullableFilter<"KnowledgeBaseArticle"> | Date | string | null knowledgeBaseId?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string categoryId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null sectionId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null slug?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string title?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string description?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string order?: Prisma.IntFilter<"KnowledgeBaseArticle"> | number contentDraft?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentPublished?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentPublishedAsText?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentType?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string language?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string featuredOrder?: Prisma.IntNullableFilter<"KnowledgeBaseArticle"> | number | null seoImage?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string publishedAt?: Prisma.DateTimeNullableFilter<"KnowledgeBaseArticle"> | Date | string | null relatedInArticleId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null createdByUserId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null knowledgeBase?: Prisma.XOR category?: Prisma.XOR | null section?: Prisma.XOR | null createdByUser?: Prisma.XOR | null views?: Prisma.KnowledgeBaseArticleViewsListRelationFilter upvotes?: Prisma.KnowledgeBaseArticleUpvotesListRelationFilter downvotes?: Prisma.KnowledgeBaseArticleDownvotesListRelationFilter relatedArticles?: Prisma.KnowledgeBaseRelatedArticleListRelationFilter relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleListRelationFilter }, "id" | "knowledgeBaseId_slug"> export type KnowledgeBaseArticleOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder knowledgeBaseId?: Prisma.SortOrder categoryId?: Prisma.SortOrderInput | Prisma.SortOrder sectionId?: Prisma.SortOrderInput | Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder order?: Prisma.SortOrder contentDraft?: Prisma.SortOrder contentPublished?: Prisma.SortOrder contentPublishedAsText?: Prisma.SortOrder contentType?: Prisma.SortOrder language?: Prisma.SortOrder featuredOrder?: Prisma.SortOrderInput | Prisma.SortOrder seoImage?: Prisma.SortOrder publishedAt?: Prisma.SortOrderInput | Prisma.SortOrder relatedInArticleId?: Prisma.SortOrderInput | Prisma.SortOrder createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.KnowledgeBaseArticleCountOrderByAggregateInput _avg?: Prisma.KnowledgeBaseArticleAvgOrderByAggregateInput _max?: Prisma.KnowledgeBaseArticleMaxOrderByAggregateInput _min?: Prisma.KnowledgeBaseArticleMinOrderByAggregateInput _sum?: Prisma.KnowledgeBaseArticleSumOrderByAggregateInput } export type KnowledgeBaseArticleScalarWhereWithAggregatesInput = { AND?: Prisma.KnowledgeBaseArticleScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseArticleScalarWhereWithAggregatesInput[] OR?: Prisma.KnowledgeBaseArticleScalarWhereWithAggregatesInput[] NOT?: Prisma.KnowledgeBaseArticleScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseArticleScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBaseArticle"> | Date | string updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"KnowledgeBaseArticle"> | Date | string | null knowledgeBaseId?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string categoryId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBaseArticle"> | string | null sectionId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBaseArticle"> | string | null slug?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string title?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string description?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string order?: Prisma.IntWithAggregatesFilter<"KnowledgeBaseArticle"> | number contentDraft?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string contentPublished?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string contentPublishedAsText?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string contentType?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string language?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string featuredOrder?: Prisma.IntNullableWithAggregatesFilter<"KnowledgeBaseArticle"> | number | null seoImage?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticle"> | string publishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"KnowledgeBaseArticle"> | Date | string | null relatedInArticleId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBaseArticle"> | string | null createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"KnowledgeBaseArticle"> | string | null } export type KnowledgeBaseArticleCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null } export type KnowledgeBaseArticleUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type KnowledgeBaseArticleUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type KnowledgeBaseArticleListRelationFilter = { every?: Prisma.KnowledgeBaseArticleWhereInput some?: Prisma.KnowledgeBaseArticleWhereInput none?: Prisma.KnowledgeBaseArticleWhereInput } export type KnowledgeBaseArticleOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type KnowledgeBaseArticleKnowledgeBaseIdSlugCompoundUniqueInput = { knowledgeBaseId: string slug: string } export type KnowledgeBaseArticleCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder knowledgeBaseId?: Prisma.SortOrder categoryId?: Prisma.SortOrder sectionId?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder order?: Prisma.SortOrder contentDraft?: Prisma.SortOrder contentPublished?: Prisma.SortOrder contentPublishedAsText?: Prisma.SortOrder contentType?: Prisma.SortOrder language?: Prisma.SortOrder featuredOrder?: Prisma.SortOrder seoImage?: Prisma.SortOrder publishedAt?: Prisma.SortOrder relatedInArticleId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder } export type KnowledgeBaseArticleAvgOrderByAggregateInput = { order?: Prisma.SortOrder featuredOrder?: Prisma.SortOrder } export type KnowledgeBaseArticleMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder knowledgeBaseId?: Prisma.SortOrder categoryId?: Prisma.SortOrder sectionId?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder order?: Prisma.SortOrder contentDraft?: Prisma.SortOrder contentPublished?: Prisma.SortOrder contentPublishedAsText?: Prisma.SortOrder contentType?: Prisma.SortOrder language?: Prisma.SortOrder featuredOrder?: Prisma.SortOrder seoImage?: Prisma.SortOrder publishedAt?: Prisma.SortOrder relatedInArticleId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder } export type KnowledgeBaseArticleMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder knowledgeBaseId?: Prisma.SortOrder categoryId?: Prisma.SortOrder sectionId?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder description?: Prisma.SortOrder order?: Prisma.SortOrder contentDraft?: Prisma.SortOrder contentPublished?: Prisma.SortOrder contentPublishedAsText?: Prisma.SortOrder contentType?: Prisma.SortOrder language?: Prisma.SortOrder featuredOrder?: Prisma.SortOrder seoImage?: Prisma.SortOrder publishedAt?: Prisma.SortOrder relatedInArticleId?: Prisma.SortOrder createdByUserId?: Prisma.SortOrder } export type KnowledgeBaseArticleSumOrderByAggregateInput = { order?: Prisma.SortOrder featuredOrder?: Prisma.SortOrder } export type KnowledgeBaseArticleScalarRelationFilter = { is?: Prisma.KnowledgeBaseArticleWhereInput isNot?: Prisma.KnowledgeBaseArticleWhereInput } export type KnowledgeBaseArticleCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutCreatedByUserInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyCreatedByUserInputEnvelope connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] } export type KnowledgeBaseArticleUncheckedCreateNestedManyWithoutCreatedByUserInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutCreatedByUserInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyCreatedByUserInputEnvelope connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] } export type KnowledgeBaseArticleUpdateManyWithoutCreatedByUserNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutCreatedByUserInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput[] upsert?: Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCreatedByUserInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyCreatedByUserInputEnvelope set?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] delete?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] update?: Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCreatedByUserInput[] updateMany?: Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutCreatedByUserInput[] deleteMany?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] } export type KnowledgeBaseArticleUncheckedUpdateManyWithoutCreatedByUserNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutCreatedByUserInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCreatedByUserInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput[] upsert?: Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCreatedByUserInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyCreatedByUserInputEnvelope set?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] delete?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] update?: Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCreatedByUserInput[] updateMany?: Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutCreatedByUserInput | Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutCreatedByUserInput[] deleteMany?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] } export type KnowledgeBaseArticleCreateNestedManyWithoutKnowledgeBaseInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutKnowledgeBaseInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutKnowledgeBaseInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyKnowledgeBaseInputEnvelope connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] } export type KnowledgeBaseArticleUncheckedCreateNestedManyWithoutKnowledgeBaseInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutKnowledgeBaseInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutKnowledgeBaseInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyKnowledgeBaseInputEnvelope connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] } export type KnowledgeBaseArticleUpdateManyWithoutKnowledgeBaseNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutKnowledgeBaseInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutKnowledgeBaseInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput[] upsert?: Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutKnowledgeBaseInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyKnowledgeBaseInputEnvelope set?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] delete?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] update?: Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutKnowledgeBaseInput[] updateMany?: Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutKnowledgeBaseInput[] deleteMany?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] } export type KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutKnowledgeBaseInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutKnowledgeBaseInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput[] upsert?: Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutKnowledgeBaseInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyKnowledgeBaseInputEnvelope set?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] delete?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] update?: Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutKnowledgeBaseInput[] updateMany?: Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutKnowledgeBaseInput | Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutKnowledgeBaseInput[] deleteMany?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] } export type KnowledgeBaseArticleCreateNestedManyWithoutCategoryInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutCategoryInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCategoryInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyCategoryInputEnvelope connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] } export type KnowledgeBaseArticleUncheckedCreateNestedManyWithoutCategoryInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutCategoryInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCategoryInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyCategoryInputEnvelope connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] } export type KnowledgeBaseArticleUpdateManyWithoutCategoryNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutCategoryInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCategoryInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput[] upsert?: Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCategoryInput | Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCategoryInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyCategoryInputEnvelope set?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] delete?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] update?: Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCategoryInput | Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCategoryInput[] updateMany?: Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutCategoryInput | Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutCategoryInput[] deleteMany?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] } export type KnowledgeBaseArticleUncheckedUpdateManyWithoutCategoryNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutCategoryInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCategoryInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput[] upsert?: Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCategoryInput | Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCategoryInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManyCategoryInputEnvelope set?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] delete?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] update?: Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCategoryInput | Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCategoryInput[] updateMany?: Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutCategoryInput | Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutCategoryInput[] deleteMany?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] } export type KnowledgeBaseArticleCreateNestedManyWithoutSectionInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutSectionInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutSectionInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutSectionInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutSectionInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManySectionInputEnvelope connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] } export type KnowledgeBaseArticleUncheckedCreateNestedManyWithoutSectionInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutSectionInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutSectionInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutSectionInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutSectionInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManySectionInputEnvelope connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] } export type KnowledgeBaseArticleUpdateManyWithoutSectionNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutSectionInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutSectionInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutSectionInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutSectionInput[] upsert?: Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutSectionInput | Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutSectionInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManySectionInputEnvelope set?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] delete?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] update?: Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutSectionInput | Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutSectionInput[] updateMany?: Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutSectionInput | Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutSectionInput[] deleteMany?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] } export type KnowledgeBaseArticleUncheckedUpdateManyWithoutSectionNestedInput = { create?: Prisma.XOR | Prisma.KnowledgeBaseArticleCreateWithoutSectionInput[] | Prisma.KnowledgeBaseArticleUncheckedCreateWithoutSectionInput[] connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutSectionInput | Prisma.KnowledgeBaseArticleCreateOrConnectWithoutSectionInput[] upsert?: Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutSectionInput | Prisma.KnowledgeBaseArticleUpsertWithWhereUniqueWithoutSectionInput[] createMany?: Prisma.KnowledgeBaseArticleCreateManySectionInputEnvelope set?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] disconnect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] delete?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput | Prisma.KnowledgeBaseArticleWhereUniqueInput[] update?: Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutSectionInput | Prisma.KnowledgeBaseArticleUpdateWithWhereUniqueWithoutSectionInput[] updateMany?: Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutSectionInput | Prisma.KnowledgeBaseArticleUpdateManyWithWhereWithoutSectionInput[] deleteMany?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] } export type KnowledgeBaseArticleCreateNestedOneWithoutRelatedArticlesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutRelatedArticlesInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput } export type KnowledgeBaseArticleCreateNestedOneWithoutRelatedInArticlesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutRelatedInArticlesInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput } export type KnowledgeBaseArticleUpdateOneRequiredWithoutRelatedArticlesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutRelatedArticlesInput upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutRelatedArticlesInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput update?: Prisma.XOR, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutRelatedArticlesInput> } export type KnowledgeBaseArticleUpdateOneRequiredWithoutRelatedInArticlesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutRelatedInArticlesInput upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutRelatedInArticlesInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput update?: Prisma.XOR, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutRelatedInArticlesInput> } export type KnowledgeBaseArticleCreateNestedOneWithoutViewsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutViewsInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput } export type KnowledgeBaseArticleUpdateOneRequiredWithoutViewsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutViewsInput upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutViewsInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput update?: Prisma.XOR, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutViewsInput> } export type KnowledgeBaseArticleCreateNestedOneWithoutUpvotesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutUpvotesInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput } export type KnowledgeBaseArticleUpdateOneRequiredWithoutUpvotesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutUpvotesInput upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutUpvotesInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput update?: Prisma.XOR, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutUpvotesInput> } export type KnowledgeBaseArticleCreateNestedOneWithoutDownvotesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutDownvotesInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput } export type KnowledgeBaseArticleUpdateOneRequiredWithoutDownvotesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutDownvotesInput upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutDownvotesInput connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput update?: Prisma.XOR, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutDownvotesInput> } export type KnowledgeBaseArticleCreateWithoutCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutCreatedByUserInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleCreateManyCreatedByUserInputEnvelope = { data: Prisma.KnowledgeBaseArticleCreateManyCreatedByUserInput | Prisma.KnowledgeBaseArticleCreateManyCreatedByUserInput[] skipDuplicates?: boolean } export type KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCreatedByUserInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateManyWithWhereWithoutCreatedByUserInput = { where: Prisma.KnowledgeBaseArticleScalarWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleScalarWhereInput = { AND?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] OR?: Prisma.KnowledgeBaseArticleScalarWhereInput[] NOT?: Prisma.KnowledgeBaseArticleScalarWhereInput | Prisma.KnowledgeBaseArticleScalarWhereInput[] id?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticle"> | Date | string updatedAt?: Prisma.DateTimeNullableFilter<"KnowledgeBaseArticle"> | Date | string | null knowledgeBaseId?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string categoryId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null sectionId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null slug?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string title?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string description?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string order?: Prisma.IntFilter<"KnowledgeBaseArticle"> | number contentDraft?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentPublished?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentPublishedAsText?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string contentType?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string language?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string featuredOrder?: Prisma.IntNullableFilter<"KnowledgeBaseArticle"> | number | null seoImage?: Prisma.StringFilter<"KnowledgeBaseArticle"> | string publishedAt?: Prisma.DateTimeNullableFilter<"KnowledgeBaseArticle"> | Date | string | null relatedInArticleId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null createdByUserId?: Prisma.StringNullableFilter<"KnowledgeBaseArticle"> | string | null } export type KnowledgeBaseArticleCreateWithoutKnowledgeBaseInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutKnowledgeBaseInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutKnowledgeBaseInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleCreateManyKnowledgeBaseInputEnvelope = { data: Prisma.KnowledgeBaseArticleCreateManyKnowledgeBaseInput | Prisma.KnowledgeBaseArticleCreateManyKnowledgeBaseInput[] skipDuplicates?: boolean } export type KnowledgeBaseArticleUpsertWithWhereUniqueWithoutKnowledgeBaseInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithWhereUniqueWithoutKnowledgeBaseInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateManyWithWhereWithoutKnowledgeBaseInput = { where: Prisma.KnowledgeBaseArticleScalarWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleCreateWithoutCategoryInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutCategoryInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutCategoryInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleCreateManyCategoryInputEnvelope = { data: Prisma.KnowledgeBaseArticleCreateManyCategoryInput | Prisma.KnowledgeBaseArticleCreateManyCategoryInput[] skipDuplicates?: boolean } export type KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCategoryInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCategoryInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateManyWithWhereWithoutCategoryInput = { where: Prisma.KnowledgeBaseArticleScalarWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleCreateWithoutSectionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutSectionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutSectionInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleCreateManySectionInputEnvelope = { data: Prisma.KnowledgeBaseArticleCreateManySectionInput | Prisma.KnowledgeBaseArticleCreateManySectionInput[] skipDuplicates?: boolean } export type KnowledgeBaseArticleUpsertWithWhereUniqueWithoutSectionInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithWhereUniqueWithoutSectionInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateManyWithWhereWithoutSectionInput = { where: Prisma.KnowledgeBaseArticleScalarWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleCreateWithoutRelatedArticlesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutRelatedArticlesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutRelatedArticlesInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleCreateWithoutRelatedInArticlesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutRelatedInArticlesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutRelatedInArticlesInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleUpsertWithoutRelatedArticlesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.KnowledgeBaseArticleWhereInput } export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutRelatedArticlesInput = { where?: Prisma.KnowledgeBaseArticleWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithoutRelatedArticlesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutRelatedArticlesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUpsertWithoutRelatedInArticlesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.KnowledgeBaseArticleWhereInput } export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutRelatedInArticlesInput = { where?: Prisma.KnowledgeBaseArticleWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithoutRelatedInArticlesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutRelatedInArticlesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput } export type KnowledgeBaseArticleCreateWithoutViewsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutViewsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutViewsInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleUpsertWithoutViewsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.KnowledgeBaseArticleWhereInput } export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutViewsInput = { where?: Prisma.KnowledgeBaseArticleWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithoutViewsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutViewsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleCreateWithoutUpvotesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutUpvotesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutUpvotesInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleUpsertWithoutUpvotesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.KnowledgeBaseArticleWhereInput } export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutUpvotesInput = { where?: Prisma.KnowledgeBaseArticleWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithoutUpvotesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutUpvotesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleCreateWithoutDownvotesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null knowledgeBase: Prisma.KnowledgeBaseCreateNestedOneWithoutArticlesInput category?: Prisma.KnowledgeBaseCategoryCreateNestedOneWithoutArticlesInput section?: Prisma.KnowledgeBaseCategorySectionCreateNestedOneWithoutArticlesInput createdByUser?: Prisma.UserCreateNestedOneWithoutKnowledgeBaseArticlesInput views?: Prisma.KnowledgeBaseArticleViewsCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleUncheckedCreateWithoutDownvotesInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutArticleInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedCreateNestedManyWithoutRelatedArticleInput } export type KnowledgeBaseArticleCreateOrConnectWithoutDownvotesInput = { where: Prisma.KnowledgeBaseArticleWhereUniqueInput create: Prisma.XOR } export type KnowledgeBaseArticleUpsertWithoutDownvotesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.KnowledgeBaseArticleWhereInput } export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutDownvotesInput = { where?: Prisma.KnowledgeBaseArticleWhereInput data: Prisma.XOR } export type KnowledgeBaseArticleUpdateWithoutDownvotesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutDownvotesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleCreateManyCreatedByUserInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null } export type KnowledgeBaseArticleUpdateWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateManyWithoutCreatedByUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type KnowledgeBaseArticleCreateManyKnowledgeBaseInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null categoryId?: string | null sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null } export type KnowledgeBaseArticleUpdateWithoutKnowledgeBaseInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutKnowledgeBaseInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type KnowledgeBaseArticleCreateManyCategoryInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string sectionId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null } export type KnowledgeBaseArticleUpdateWithoutCategoryInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput section?: Prisma.KnowledgeBaseCategorySectionUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutCategoryInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateManyWithoutCategoryInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string sectionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type KnowledgeBaseArticleCreateManySectionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string | null knowledgeBaseId: string categoryId?: string | null slug: string title: string description: string order: number contentDraft: string contentPublished?: string contentPublishedAsText?: string contentType: string language: string featuredOrder?: number | null seoImage: string publishedAt?: Date | string | null relatedInArticleId?: string | null createdByUserId?: string | null } export type KnowledgeBaseArticleUpdateWithoutSectionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null knowledgeBase?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutArticlesNestedInput category?: Prisma.KnowledgeBaseCategoryUpdateOneWithoutArticlesNestedInput createdByUser?: Prisma.UserUpdateOneWithoutKnowledgeBaseArticlesNestedInput views?: Prisma.KnowledgeBaseArticleViewsUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateWithoutSectionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null views?: Prisma.KnowledgeBaseArticleViewsUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput upvotes?: Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput downvotes?: Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput relatedArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutArticleNestedInput relatedInArticles?: Prisma.KnowledgeBaseRelatedArticleUncheckedUpdateManyWithoutRelatedArticleNestedInput } export type KnowledgeBaseArticleUncheckedUpdateManyWithoutSectionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null knowledgeBaseId?: Prisma.StringFieldUpdateOperationsInput | string categoryId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string description?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number contentDraft?: Prisma.StringFieldUpdateOperationsInput | string contentPublished?: Prisma.StringFieldUpdateOperationsInput | string contentPublishedAsText?: Prisma.StringFieldUpdateOperationsInput | string contentType?: Prisma.StringFieldUpdateOperationsInput | string language?: Prisma.StringFieldUpdateOperationsInput | string featuredOrder?: Prisma.NullableIntFieldUpdateOperationsInput | number | null seoImage?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null relatedInArticleId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type KnowledgeBaseArticleCountOutputType */ export type KnowledgeBaseArticleCountOutputType = { views: number upvotes: number downvotes: number relatedArticles: number relatedInArticles: number } export type KnowledgeBaseArticleCountOutputTypeSelect = { views?: boolean | KnowledgeBaseArticleCountOutputTypeCountViewsArgs upvotes?: boolean | KnowledgeBaseArticleCountOutputTypeCountUpvotesArgs downvotes?: boolean | KnowledgeBaseArticleCountOutputTypeCountDownvotesArgs relatedArticles?: boolean | KnowledgeBaseArticleCountOutputTypeCountRelatedArticlesArgs relatedInArticles?: boolean | KnowledgeBaseArticleCountOutputTypeCountRelatedInArticlesArgs } /** * KnowledgeBaseArticleCountOutputType without action */ export type KnowledgeBaseArticleCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticleCountOutputType */ select?: Prisma.KnowledgeBaseArticleCountOutputTypeSelect | null } /** * KnowledgeBaseArticleCountOutputType without action */ export type KnowledgeBaseArticleCountOutputTypeCountViewsArgs = { where?: Prisma.KnowledgeBaseArticleViewsWhereInput } /** * KnowledgeBaseArticleCountOutputType without action */ export type KnowledgeBaseArticleCountOutputTypeCountUpvotesArgs = { where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput } /** * KnowledgeBaseArticleCountOutputType without action */ export type KnowledgeBaseArticleCountOutputTypeCountDownvotesArgs = { where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput } /** * KnowledgeBaseArticleCountOutputType without action */ export type KnowledgeBaseArticleCountOutputTypeCountRelatedArticlesArgs = { where?: Prisma.KnowledgeBaseRelatedArticleWhereInput } /** * KnowledgeBaseArticleCountOutputType without action */ export type KnowledgeBaseArticleCountOutputTypeCountRelatedInArticlesArgs = { where?: Prisma.KnowledgeBaseRelatedArticleWhereInput } export type KnowledgeBaseArticleSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean knowledgeBaseId?: boolean categoryId?: boolean sectionId?: boolean slug?: boolean title?: boolean description?: boolean order?: boolean contentDraft?: boolean contentPublished?: boolean contentPublishedAsText?: boolean contentType?: boolean language?: boolean featuredOrder?: boolean seoImage?: boolean publishedAt?: boolean relatedInArticleId?: boolean createdByUserId?: boolean knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs views?: boolean | Prisma.KnowledgeBaseArticle$viewsArgs upvotes?: boolean | Prisma.KnowledgeBaseArticle$upvotesArgs downvotes?: boolean | Prisma.KnowledgeBaseArticle$downvotesArgs relatedArticles?: boolean | Prisma.KnowledgeBaseArticle$relatedArticlesArgs relatedInArticles?: boolean | Prisma.KnowledgeBaseArticle$relatedInArticlesArgs _count?: boolean | Prisma.KnowledgeBaseArticleCountOutputTypeDefaultArgs }, ExtArgs["result"]["knowledgeBaseArticle"]> export type KnowledgeBaseArticleSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean knowledgeBaseId?: boolean categoryId?: boolean sectionId?: boolean slug?: boolean title?: boolean description?: boolean order?: boolean contentDraft?: boolean contentPublished?: boolean contentPublishedAsText?: boolean contentType?: boolean language?: boolean featuredOrder?: boolean seoImage?: boolean publishedAt?: boolean relatedInArticleId?: boolean createdByUserId?: boolean knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs }, ExtArgs["result"]["knowledgeBaseArticle"]> export type KnowledgeBaseArticleSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean knowledgeBaseId?: boolean categoryId?: boolean sectionId?: boolean slug?: boolean title?: boolean description?: boolean order?: boolean contentDraft?: boolean contentPublished?: boolean contentPublishedAsText?: boolean contentType?: boolean language?: boolean featuredOrder?: boolean seoImage?: boolean publishedAt?: boolean relatedInArticleId?: boolean createdByUserId?: boolean knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs }, ExtArgs["result"]["knowledgeBaseArticle"]> export type KnowledgeBaseArticleSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean knowledgeBaseId?: boolean categoryId?: boolean sectionId?: boolean slug?: boolean title?: boolean description?: boolean order?: boolean contentDraft?: boolean contentPublished?: boolean contentPublishedAsText?: boolean contentType?: boolean language?: boolean featuredOrder?: boolean seoImage?: boolean publishedAt?: boolean relatedInArticleId?: boolean createdByUserId?: boolean } export type KnowledgeBaseArticleOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "knowledgeBaseId" | "categoryId" | "sectionId" | "slug" | "title" | "description" | "order" | "contentDraft" | "contentPublished" | "contentPublishedAsText" | "contentType" | "language" | "featuredOrder" | "seoImage" | "publishedAt" | "relatedInArticleId" | "createdByUserId", ExtArgs["result"]["knowledgeBaseArticle"]> export type KnowledgeBaseArticleInclude = { knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs views?: boolean | Prisma.KnowledgeBaseArticle$viewsArgs upvotes?: boolean | Prisma.KnowledgeBaseArticle$upvotesArgs downvotes?: boolean | Prisma.KnowledgeBaseArticle$downvotesArgs relatedArticles?: boolean | Prisma.KnowledgeBaseArticle$relatedArticlesArgs relatedInArticles?: boolean | Prisma.KnowledgeBaseArticle$relatedInArticlesArgs _count?: boolean | Prisma.KnowledgeBaseArticleCountOutputTypeDefaultArgs } export type KnowledgeBaseArticleIncludeCreateManyAndReturn = { knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs } export type KnowledgeBaseArticleIncludeUpdateManyAndReturn = { knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs } export type $KnowledgeBaseArticlePayload = { name: "KnowledgeBaseArticle" objects: { knowledgeBase: Prisma.$KnowledgeBasePayload category: Prisma.$KnowledgeBaseCategoryPayload | null section: Prisma.$KnowledgeBaseCategorySectionPayload | null createdByUser: Prisma.$UserPayload | null views: Prisma.$KnowledgeBaseArticleViewsPayload[] upvotes: Prisma.$KnowledgeBaseArticleUpvotesPayload[] downvotes: Prisma.$KnowledgeBaseArticleDownvotesPayload[] relatedArticles: Prisma.$KnowledgeBaseRelatedArticlePayload[] relatedInArticles: Prisma.$KnowledgeBaseRelatedArticlePayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date | null knowledgeBaseId: string categoryId: string | null sectionId: string | null slug: string title: string description: string order: number contentDraft: string contentPublished: string contentPublishedAsText: string contentType: string language: string featuredOrder: number | null seoImage: string publishedAt: Date | null relatedInArticleId: string | null createdByUserId: string | null }, ExtArgs["result"]["knowledgeBaseArticle"]> composites: {} } export type KnowledgeBaseArticleGetPayload = runtime.Types.Result.GetResult export type KnowledgeBaseArticleCountArgs = Omit & { select?: KnowledgeBaseArticleCountAggregateInputType | true } export interface KnowledgeBaseArticleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['KnowledgeBaseArticle'], meta: { name: 'KnowledgeBaseArticle' } } /** * Find zero or one KnowledgeBaseArticle that matches the filter. * @param {KnowledgeBaseArticleFindUniqueArgs} args - Arguments to find a KnowledgeBaseArticle * @example * // Get one KnowledgeBaseArticle * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseArticleClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one KnowledgeBaseArticle that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {KnowledgeBaseArticleFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeBaseArticle * @example * // Get one KnowledgeBaseArticle * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseArticleClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first KnowledgeBaseArticle 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 {KnowledgeBaseArticleFindFirstArgs} args - Arguments to find a KnowledgeBaseArticle * @example * // Get one KnowledgeBaseArticle * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseArticleClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first KnowledgeBaseArticle 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 {KnowledgeBaseArticleFindFirstOrThrowArgs} args - Arguments to find a KnowledgeBaseArticle * @example * // Get one KnowledgeBaseArticle * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseArticleClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more KnowledgeBaseArticles 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 {KnowledgeBaseArticleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all KnowledgeBaseArticles * const knowledgeBaseArticles = await prisma.knowledgeBaseArticle.findMany() * * // Get first 10 KnowledgeBaseArticles * const knowledgeBaseArticles = await prisma.knowledgeBaseArticle.findMany({ take: 10 }) * * // Only select the `id` * const knowledgeBaseArticleWithIdOnly = await prisma.knowledgeBaseArticle.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a KnowledgeBaseArticle. * @param {KnowledgeBaseArticleCreateArgs} args - Arguments to create a KnowledgeBaseArticle. * @example * // Create one KnowledgeBaseArticle * const KnowledgeBaseArticle = await prisma.knowledgeBaseArticle.create({ * data: { * // ... data to create a KnowledgeBaseArticle * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseArticleClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many KnowledgeBaseArticles. * @param {KnowledgeBaseArticleCreateManyArgs} args - Arguments to create many KnowledgeBaseArticles. * @example * // Create many KnowledgeBaseArticles * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many KnowledgeBaseArticles and returns the data saved in the database. * @param {KnowledgeBaseArticleCreateManyAndReturnArgs} args - Arguments to create many KnowledgeBaseArticles. * @example * // Create many KnowledgeBaseArticles * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many KnowledgeBaseArticles and only return the `id` * const knowledgeBaseArticleWithIdOnly = await prisma.knowledgeBaseArticle.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a KnowledgeBaseArticle. * @param {KnowledgeBaseArticleDeleteArgs} args - Arguments to delete one KnowledgeBaseArticle. * @example * // Delete one KnowledgeBaseArticle * const KnowledgeBaseArticle = await prisma.knowledgeBaseArticle.delete({ * where: { * // ... filter to delete one KnowledgeBaseArticle * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseArticleClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one KnowledgeBaseArticle. * @param {KnowledgeBaseArticleUpdateArgs} args - Arguments to update one KnowledgeBaseArticle. * @example * // Update one KnowledgeBaseArticle * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseArticleClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more KnowledgeBaseArticles. * @param {KnowledgeBaseArticleDeleteManyArgs} args - Arguments to filter KnowledgeBaseArticles to delete. * @example * // Delete a few KnowledgeBaseArticles * const { count } = await prisma.knowledgeBaseArticle.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more KnowledgeBaseArticles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KnowledgeBaseArticleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many KnowledgeBaseArticles * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more KnowledgeBaseArticles and returns the data updated in the database. * @param {KnowledgeBaseArticleUpdateManyAndReturnArgs} args - Arguments to update many KnowledgeBaseArticles. * @example * // Update many KnowledgeBaseArticles * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more KnowledgeBaseArticles and only return the `id` * const knowledgeBaseArticleWithIdOnly = await prisma.knowledgeBaseArticle.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one KnowledgeBaseArticle. * @param {KnowledgeBaseArticleUpsertArgs} args - Arguments to update or create a KnowledgeBaseArticle. * @example * // Update or create a KnowledgeBaseArticle * const knowledgeBaseArticle = await prisma.knowledgeBaseArticle.upsert({ * create: { * // ... data to create a KnowledgeBaseArticle * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the KnowledgeBaseArticle we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__KnowledgeBaseArticleClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of KnowledgeBaseArticles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KnowledgeBaseArticleCountArgs} args - Arguments to filter KnowledgeBaseArticles to count. * @example * // Count the number of KnowledgeBaseArticles * const count = await prisma.knowledgeBaseArticle.count({ * where: { * // ... the filter for the KnowledgeBaseArticles we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a KnowledgeBaseArticle. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KnowledgeBaseArticleAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by KnowledgeBaseArticle. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {KnowledgeBaseArticleGroupByArgs} 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 KnowledgeBaseArticleGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: KnowledgeBaseArticleGroupByArgs['orderBy'] } : { orderBy?: KnowledgeBaseArticleGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetKnowledgeBaseArticleGroupByPayload : Prisma.PrismaPromise /** * Fields of the KnowledgeBaseArticle model */ readonly fields: KnowledgeBaseArticleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for KnowledgeBaseArticle. * 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__KnowledgeBaseArticleClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" knowledgeBase = {}>(args?: Prisma.Subset>): Prisma.Prisma__KnowledgeBaseClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> category = {}>(args?: Prisma.Subset>): Prisma.Prisma__KnowledgeBaseCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> section = {}>(args?: Prisma.Subset>): Prisma.Prisma__KnowledgeBaseCategorySectionClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> createdByUser = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> views = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> upvotes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> downvotes = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> relatedArticles = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> relatedInArticles = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the KnowledgeBaseArticle model */ export interface KnowledgeBaseArticleFieldRefs { readonly id: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly createdAt: Prisma.FieldRef<"KnowledgeBaseArticle", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"KnowledgeBaseArticle", 'DateTime'> readonly knowledgeBaseId: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly categoryId: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly sectionId: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly slug: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly title: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly description: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly order: Prisma.FieldRef<"KnowledgeBaseArticle", 'Int'> readonly contentDraft: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly contentPublished: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly contentPublishedAsText: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly contentType: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly language: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly featuredOrder: Prisma.FieldRef<"KnowledgeBaseArticle", 'Int'> readonly seoImage: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly publishedAt: Prisma.FieldRef<"KnowledgeBaseArticle", 'DateTime'> readonly relatedInArticleId: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> readonly createdByUserId: Prisma.FieldRef<"KnowledgeBaseArticle", 'String'> } // Custom InputTypes /** * KnowledgeBaseArticle findUnique */ export type KnowledgeBaseArticleFindUniqueArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * Filter, which KnowledgeBaseArticle to fetch. */ where: Prisma.KnowledgeBaseArticleWhereUniqueInput } /** * KnowledgeBaseArticle findUniqueOrThrow */ export type KnowledgeBaseArticleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * Filter, which KnowledgeBaseArticle to fetch. */ where: Prisma.KnowledgeBaseArticleWhereUniqueInput } /** * KnowledgeBaseArticle findFirst */ export type KnowledgeBaseArticleFindFirstArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * Filter, which KnowledgeBaseArticle to fetch. */ where?: Prisma.KnowledgeBaseArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KnowledgeBaseArticles to fetch. */ orderBy?: Prisma.KnowledgeBaseArticleOrderByWithRelationInput | Prisma.KnowledgeBaseArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for KnowledgeBaseArticles. */ cursor?: Prisma.KnowledgeBaseArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KnowledgeBaseArticles 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` KnowledgeBaseArticles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KnowledgeBaseArticles. */ distinct?: Prisma.KnowledgeBaseArticleScalarFieldEnum | Prisma.KnowledgeBaseArticleScalarFieldEnum[] } /** * KnowledgeBaseArticle findFirstOrThrow */ export type KnowledgeBaseArticleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * Filter, which KnowledgeBaseArticle to fetch. */ where?: Prisma.KnowledgeBaseArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KnowledgeBaseArticles to fetch. */ orderBy?: Prisma.KnowledgeBaseArticleOrderByWithRelationInput | Prisma.KnowledgeBaseArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for KnowledgeBaseArticles. */ cursor?: Prisma.KnowledgeBaseArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KnowledgeBaseArticles 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` KnowledgeBaseArticles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KnowledgeBaseArticles. */ distinct?: Prisma.KnowledgeBaseArticleScalarFieldEnum | Prisma.KnowledgeBaseArticleScalarFieldEnum[] } /** * KnowledgeBaseArticle findMany */ export type KnowledgeBaseArticleFindManyArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * Filter, which KnowledgeBaseArticles to fetch. */ where?: Prisma.KnowledgeBaseArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of KnowledgeBaseArticles to fetch. */ orderBy?: Prisma.KnowledgeBaseArticleOrderByWithRelationInput | Prisma.KnowledgeBaseArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing KnowledgeBaseArticles. */ cursor?: Prisma.KnowledgeBaseArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` KnowledgeBaseArticles 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` KnowledgeBaseArticles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of KnowledgeBaseArticles. */ distinct?: Prisma.KnowledgeBaseArticleScalarFieldEnum | Prisma.KnowledgeBaseArticleScalarFieldEnum[] } /** * KnowledgeBaseArticle create */ export type KnowledgeBaseArticleCreateArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * The data needed to create a KnowledgeBaseArticle. */ data: Prisma.XOR } /** * KnowledgeBaseArticle createMany */ export type KnowledgeBaseArticleCreateManyArgs = { /** * The data used to create many KnowledgeBaseArticles. */ data: Prisma.KnowledgeBaseArticleCreateManyInput | Prisma.KnowledgeBaseArticleCreateManyInput[] skipDuplicates?: boolean } /** * KnowledgeBaseArticle createManyAndReturn */ export type KnowledgeBaseArticleCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelectCreateManyAndReturn | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * The data used to create many KnowledgeBaseArticles. */ data: Prisma.KnowledgeBaseArticleCreateManyInput | Prisma.KnowledgeBaseArticleCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleIncludeCreateManyAndReturn | null } /** * KnowledgeBaseArticle update */ export type KnowledgeBaseArticleUpdateArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * The data needed to update a KnowledgeBaseArticle. */ data: Prisma.XOR /** * Choose, which KnowledgeBaseArticle to update. */ where: Prisma.KnowledgeBaseArticleWhereUniqueInput } /** * KnowledgeBaseArticle updateMany */ export type KnowledgeBaseArticleUpdateManyArgs = { /** * The data used to update KnowledgeBaseArticles. */ data: Prisma.XOR /** * Filter which KnowledgeBaseArticles to update */ where?: Prisma.KnowledgeBaseArticleWhereInput /** * Limit how many KnowledgeBaseArticles to update. */ limit?: number } /** * KnowledgeBaseArticle updateManyAndReturn */ export type KnowledgeBaseArticleUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelectUpdateManyAndReturn | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * The data used to update KnowledgeBaseArticles. */ data: Prisma.XOR /** * Filter which KnowledgeBaseArticles to update */ where?: Prisma.KnowledgeBaseArticleWhereInput /** * Limit how many KnowledgeBaseArticles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleIncludeUpdateManyAndReturn | null } /** * KnowledgeBaseArticle upsert */ export type KnowledgeBaseArticleUpsertArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * The filter to search for the KnowledgeBaseArticle to update in case it exists. */ where: Prisma.KnowledgeBaseArticleWhereUniqueInput /** * In case the KnowledgeBaseArticle found by the `where` argument doesn't exist, create a new KnowledgeBaseArticle with this data. */ create: Prisma.XOR /** * In case the KnowledgeBaseArticle was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * KnowledgeBaseArticle delete */ export type KnowledgeBaseArticleDeleteArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null /** * Filter which KnowledgeBaseArticle to delete. */ where: Prisma.KnowledgeBaseArticleWhereUniqueInput } /** * KnowledgeBaseArticle deleteMany */ export type KnowledgeBaseArticleDeleteManyArgs = { /** * Filter which KnowledgeBaseArticles to delete */ where?: Prisma.KnowledgeBaseArticleWhereInput /** * Limit how many KnowledgeBaseArticles to delete. */ limit?: number } /** * KnowledgeBaseArticle.category */ export type KnowledgeBaseArticle$categoryArgs = { /** * Select specific fields to fetch from the KnowledgeBaseCategory */ select?: Prisma.KnowledgeBaseCategorySelect | null /** * Omit specific fields from the KnowledgeBaseCategory */ omit?: Prisma.KnowledgeBaseCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseCategoryInclude | null where?: Prisma.KnowledgeBaseCategoryWhereInput } /** * KnowledgeBaseArticle.section */ export type KnowledgeBaseArticle$sectionArgs = { /** * Select specific fields to fetch from the KnowledgeBaseCategorySection */ select?: Prisma.KnowledgeBaseCategorySectionSelect | null /** * Omit specific fields from the KnowledgeBaseCategorySection */ omit?: Prisma.KnowledgeBaseCategorySectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseCategorySectionInclude | null where?: Prisma.KnowledgeBaseCategorySectionWhereInput } /** * KnowledgeBaseArticle.createdByUser */ export type KnowledgeBaseArticle$createdByUserArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null where?: Prisma.UserWhereInput } /** * KnowledgeBaseArticle.views */ export type KnowledgeBaseArticle$viewsArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticleViews */ select?: Prisma.KnowledgeBaseArticleViewsSelect | null /** * Omit specific fields from the KnowledgeBaseArticleViews */ omit?: Prisma.KnowledgeBaseArticleViewsOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleViewsInclude | null where?: Prisma.KnowledgeBaseArticleViewsWhereInput orderBy?: Prisma.KnowledgeBaseArticleViewsOrderByWithRelationInput | Prisma.KnowledgeBaseArticleViewsOrderByWithRelationInput[] cursor?: Prisma.KnowledgeBaseArticleViewsWhereUniqueInput take?: number skip?: number distinct?: Prisma.KnowledgeBaseArticleViewsScalarFieldEnum | Prisma.KnowledgeBaseArticleViewsScalarFieldEnum[] } /** * KnowledgeBaseArticle.upvotes */ export type KnowledgeBaseArticle$upvotesArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticleUpvotes */ select?: Prisma.KnowledgeBaseArticleUpvotesSelect | null /** * Omit specific fields from the KnowledgeBaseArticleUpvotes */ omit?: Prisma.KnowledgeBaseArticleUpvotesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleUpvotesInclude | null where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput orderBy?: Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput[] cursor?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput take?: number skip?: number distinct?: Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum | Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum[] } /** * KnowledgeBaseArticle.downvotes */ export type KnowledgeBaseArticle$downvotesArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticleDownvotes */ select?: Prisma.KnowledgeBaseArticleDownvotesSelect | null /** * Omit specific fields from the KnowledgeBaseArticleDownvotes */ omit?: Prisma.KnowledgeBaseArticleDownvotesOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleDownvotesInclude | null where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput orderBy?: Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput[] cursor?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput take?: number skip?: number distinct?: Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum | Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum[] } /** * KnowledgeBaseArticle.relatedArticles */ export type KnowledgeBaseArticle$relatedArticlesArgs = { /** * Select specific fields to fetch from the KnowledgeBaseRelatedArticle */ select?: Prisma.KnowledgeBaseRelatedArticleSelect | null /** * Omit specific fields from the KnowledgeBaseRelatedArticle */ omit?: Prisma.KnowledgeBaseRelatedArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseRelatedArticleInclude | null where?: Prisma.KnowledgeBaseRelatedArticleWhereInput orderBy?: Prisma.KnowledgeBaseRelatedArticleOrderByWithRelationInput | Prisma.KnowledgeBaseRelatedArticleOrderByWithRelationInput[] cursor?: Prisma.KnowledgeBaseRelatedArticleWhereUniqueInput take?: number skip?: number distinct?: Prisma.KnowledgeBaseRelatedArticleScalarFieldEnum | Prisma.KnowledgeBaseRelatedArticleScalarFieldEnum[] } /** * KnowledgeBaseArticle.relatedInArticles */ export type KnowledgeBaseArticle$relatedInArticlesArgs = { /** * Select specific fields to fetch from the KnowledgeBaseRelatedArticle */ select?: Prisma.KnowledgeBaseRelatedArticleSelect | null /** * Omit specific fields from the KnowledgeBaseRelatedArticle */ omit?: Prisma.KnowledgeBaseRelatedArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseRelatedArticleInclude | null where?: Prisma.KnowledgeBaseRelatedArticleWhereInput orderBy?: Prisma.KnowledgeBaseRelatedArticleOrderByWithRelationInput | Prisma.KnowledgeBaseRelatedArticleOrderByWithRelationInput[] cursor?: Prisma.KnowledgeBaseRelatedArticleWhereUniqueInput take?: number skip?: number distinct?: Prisma.KnowledgeBaseRelatedArticleScalarFieldEnum | Prisma.KnowledgeBaseRelatedArticleScalarFieldEnum[] } /** * KnowledgeBaseArticle without action */ export type KnowledgeBaseArticleDefaultArgs = { /** * Select specific fields to fetch from the KnowledgeBaseArticle */ select?: Prisma.KnowledgeBaseArticleSelect | null /** * Omit specific fields from the KnowledgeBaseArticle */ omit?: Prisma.KnowledgeBaseArticleOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.KnowledgeBaseArticleInclude | null }