Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/KnowledgeBaseArticle.ts
T

3631 lines
181 KiB
TypeScript

/* !!! 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<Prisma.$KnowledgeBaseArticlePayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends KnowledgeBaseArticleAggregateArgs> = {
[P in keyof T & keyof AggregateKnowledgeBaseArticle]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateKnowledgeBaseArticle[P]>
: Prisma.GetScalarType<T[P], AggregateKnowledgeBaseArticle[P]>
}
export type KnowledgeBaseArticleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends KnowledgeBaseArticleGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<KnowledgeBaseArticleGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof KnowledgeBaseArticleGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], KnowledgeBaseArticleGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], KnowledgeBaseArticleGroupByOutputType[P]>
}
>
>
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<Prisma.KnowledgeBaseScalarRelationFilter, Prisma.KnowledgeBaseWhereInput>
category?: Prisma.XOR<Prisma.KnowledgeBaseCategoryNullableScalarRelationFilter, Prisma.KnowledgeBaseCategoryWhereInput> | null
section?: Prisma.XOR<Prisma.KnowledgeBaseCategorySectionNullableScalarRelationFilter, Prisma.KnowledgeBaseCategorySectionWhereInput> | null
createdByUser?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | 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<Prisma.KnowledgeBaseScalarRelationFilter, Prisma.KnowledgeBaseWhereInput>
category?: Prisma.XOR<Prisma.KnowledgeBaseCategoryNullableScalarRelationFilter, Prisma.KnowledgeBaseCategoryWhereInput> | null
section?: Prisma.XOR<Prisma.KnowledgeBaseCategorySectionNullableScalarRelationFilter, Prisma.KnowledgeBaseCategorySectionWhereInput> | null
createdByUser?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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> | 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<Prisma.KnowledgeBaseArticleCreateWithoutRelatedArticlesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutRelatedArticlesInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutRelatedArticlesInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
export type KnowledgeBaseArticleCreateNestedOneWithoutRelatedInArticlesInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutRelatedInArticlesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutRelatedInArticlesInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutRelatedInArticlesInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
export type KnowledgeBaseArticleUpdateOneRequiredWithoutRelatedArticlesNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutRelatedArticlesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutRelatedArticlesInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutRelatedArticlesInput
upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutRelatedArticlesInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateToOneWithWhereWithoutRelatedArticlesInput, Prisma.KnowledgeBaseArticleUpdateWithoutRelatedArticlesInput>, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutRelatedArticlesInput>
}
export type KnowledgeBaseArticleUpdateOneRequiredWithoutRelatedInArticlesNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutRelatedInArticlesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutRelatedInArticlesInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutRelatedInArticlesInput
upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutRelatedInArticlesInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateToOneWithWhereWithoutRelatedInArticlesInput, Prisma.KnowledgeBaseArticleUpdateWithoutRelatedInArticlesInput>, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutRelatedInArticlesInput>
}
export type KnowledgeBaseArticleCreateNestedOneWithoutViewsInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutViewsInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutViewsInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutViewsInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
export type KnowledgeBaseArticleUpdateOneRequiredWithoutViewsNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutViewsInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutViewsInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutViewsInput
upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutViewsInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateToOneWithWhereWithoutViewsInput, Prisma.KnowledgeBaseArticleUpdateWithoutViewsInput>, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutViewsInput>
}
export type KnowledgeBaseArticleCreateNestedOneWithoutUpvotesInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutUpvotesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutUpvotesInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutUpvotesInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
export type KnowledgeBaseArticleUpdateOneRequiredWithoutUpvotesNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutUpvotesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutUpvotesInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutUpvotesInput
upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutUpvotesInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateToOneWithWhereWithoutUpvotesInput, Prisma.KnowledgeBaseArticleUpdateWithoutUpvotesInput>, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutUpvotesInput>
}
export type KnowledgeBaseArticleCreateNestedOneWithoutDownvotesInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutDownvotesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutDownvotesInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutDownvotesInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
export type KnowledgeBaseArticleUpdateOneRequiredWithoutDownvotesNestedInput = {
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutDownvotesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutDownvotesInput>
connectOrCreate?: Prisma.KnowledgeBaseArticleCreateOrConnectWithoutDownvotesInput
upsert?: Prisma.KnowledgeBaseArticleUpsertWithoutDownvotesInput
connect?: Prisma.KnowledgeBaseArticleWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateToOneWithWhereWithoutDownvotesInput, Prisma.KnowledgeBaseArticleUpdateWithoutDownvotesInput>, 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<Prisma.KnowledgeBaseArticleCreateWithoutCreatedByUserInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCreatedByUserInput>
}
export type KnowledgeBaseArticleCreateManyCreatedByUserInputEnvelope = {
data: Prisma.KnowledgeBaseArticleCreateManyCreatedByUserInput | Prisma.KnowledgeBaseArticleCreateManyCreatedByUserInput[]
skipDuplicates?: boolean
}
export type KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCreatedByUserInput = {
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutCreatedByUserInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutCreatedByUserInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutCreatedByUserInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCreatedByUserInput>
}
export type KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCreatedByUserInput = {
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutCreatedByUserInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutCreatedByUserInput>
}
export type KnowledgeBaseArticleUpdateManyWithWhereWithoutCreatedByUserInput = {
where: Prisma.KnowledgeBaseArticleScalarWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutCreatedByUserInput>
}
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<Prisma.KnowledgeBaseArticleCreateWithoutKnowledgeBaseInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutKnowledgeBaseInput>
}
export type KnowledgeBaseArticleCreateManyKnowledgeBaseInputEnvelope = {
data: Prisma.KnowledgeBaseArticleCreateManyKnowledgeBaseInput | Prisma.KnowledgeBaseArticleCreateManyKnowledgeBaseInput[]
skipDuplicates?: boolean
}
export type KnowledgeBaseArticleUpsertWithWhereUniqueWithoutKnowledgeBaseInput = {
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutKnowledgeBaseInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutKnowledgeBaseInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutKnowledgeBaseInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutKnowledgeBaseInput>
}
export type KnowledgeBaseArticleUpdateWithWhereUniqueWithoutKnowledgeBaseInput = {
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutKnowledgeBaseInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutKnowledgeBaseInput>
}
export type KnowledgeBaseArticleUpdateManyWithWhereWithoutKnowledgeBaseInput = {
where: Prisma.KnowledgeBaseArticleScalarWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutKnowledgeBaseInput>
}
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<Prisma.KnowledgeBaseArticleCreateWithoutCategoryInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCategoryInput>
}
export type KnowledgeBaseArticleCreateManyCategoryInputEnvelope = {
data: Prisma.KnowledgeBaseArticleCreateManyCategoryInput | Prisma.KnowledgeBaseArticleCreateManyCategoryInput[]
skipDuplicates?: boolean
}
export type KnowledgeBaseArticleUpsertWithWhereUniqueWithoutCategoryInput = {
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutCategoryInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutCategoryInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutCategoryInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutCategoryInput>
}
export type KnowledgeBaseArticleUpdateWithWhereUniqueWithoutCategoryInput = {
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutCategoryInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutCategoryInput>
}
export type KnowledgeBaseArticleUpdateManyWithWhereWithoutCategoryInput = {
where: Prisma.KnowledgeBaseArticleScalarWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutCategoryInput>
}
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<Prisma.KnowledgeBaseArticleCreateWithoutSectionInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutSectionInput>
}
export type KnowledgeBaseArticleCreateManySectionInputEnvelope = {
data: Prisma.KnowledgeBaseArticleCreateManySectionInput | Prisma.KnowledgeBaseArticleCreateManySectionInput[]
skipDuplicates?: boolean
}
export type KnowledgeBaseArticleUpsertWithWhereUniqueWithoutSectionInput = {
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutSectionInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutSectionInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutSectionInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutSectionInput>
}
export type KnowledgeBaseArticleUpdateWithWhereUniqueWithoutSectionInput = {
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutSectionInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutSectionInput>
}
export type KnowledgeBaseArticleUpdateManyWithWhereWithoutSectionInput = {
where: Prisma.KnowledgeBaseArticleScalarWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUncheckedUpdateManyWithoutSectionInput>
}
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<Prisma.KnowledgeBaseArticleCreateWithoutRelatedArticlesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutRelatedArticlesInput>
}
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<Prisma.KnowledgeBaseArticleCreateWithoutRelatedInArticlesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutRelatedInArticlesInput>
}
export type KnowledgeBaseArticleUpsertWithoutRelatedArticlesInput = {
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutRelatedArticlesInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutRelatedArticlesInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutRelatedArticlesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutRelatedArticlesInput>
where?: Prisma.KnowledgeBaseArticleWhereInput
}
export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutRelatedArticlesInput = {
where?: Prisma.KnowledgeBaseArticleWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutRelatedArticlesInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutRelatedArticlesInput>
}
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<Prisma.KnowledgeBaseArticleUpdateWithoutRelatedInArticlesInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutRelatedInArticlesInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutRelatedInArticlesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutRelatedInArticlesInput>
where?: Prisma.KnowledgeBaseArticleWhereInput
}
export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutRelatedInArticlesInput = {
where?: Prisma.KnowledgeBaseArticleWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutRelatedInArticlesInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutRelatedInArticlesInput>
}
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<Prisma.KnowledgeBaseArticleCreateWithoutViewsInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutViewsInput>
}
export type KnowledgeBaseArticleUpsertWithoutViewsInput = {
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutViewsInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutViewsInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutViewsInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutViewsInput>
where?: Prisma.KnowledgeBaseArticleWhereInput
}
export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutViewsInput = {
where?: Prisma.KnowledgeBaseArticleWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutViewsInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutViewsInput>
}
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<Prisma.KnowledgeBaseArticleCreateWithoutUpvotesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutUpvotesInput>
}
export type KnowledgeBaseArticleUpsertWithoutUpvotesInput = {
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutUpvotesInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutUpvotesInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutUpvotesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutUpvotesInput>
where?: Prisma.KnowledgeBaseArticleWhereInput
}
export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutUpvotesInput = {
where?: Prisma.KnowledgeBaseArticleWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutUpvotesInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutUpvotesInput>
}
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<Prisma.KnowledgeBaseArticleCreateWithoutDownvotesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutDownvotesInput>
}
export type KnowledgeBaseArticleUpsertWithoutDownvotesInput = {
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutDownvotesInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutDownvotesInput>
create: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateWithoutDownvotesInput, Prisma.KnowledgeBaseArticleUncheckedCreateWithoutDownvotesInput>
where?: Prisma.KnowledgeBaseArticleWhereInput
}
export type KnowledgeBaseArticleUpdateToOneWithWhereWithoutDownvotesInput = {
where?: Prisma.KnowledgeBaseArticleWhereInput
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateWithoutDownvotesInput, Prisma.KnowledgeBaseArticleUncheckedUpdateWithoutDownvotesInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
views?: boolean | KnowledgeBaseArticleCountOutputTypeCountViewsArgs
upvotes?: boolean | KnowledgeBaseArticleCountOutputTypeCountUpvotesArgs
downvotes?: boolean | KnowledgeBaseArticleCountOutputTypeCountDownvotesArgs
relatedArticles?: boolean | KnowledgeBaseArticleCountOutputTypeCountRelatedArticlesArgs
relatedInArticles?: boolean | KnowledgeBaseArticleCountOutputTypeCountRelatedInArticlesArgs
}
/**
* KnowledgeBaseArticleCountOutputType without action
*/
export type KnowledgeBaseArticleCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticleCountOutputType
*/
select?: Prisma.KnowledgeBaseArticleCountOutputTypeSelect<ExtArgs> | null
}
/**
* KnowledgeBaseArticleCountOutputType without action
*/
export type KnowledgeBaseArticleCountOutputTypeCountViewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseArticleViewsWhereInput
}
/**
* KnowledgeBaseArticleCountOutputType without action
*/
export type KnowledgeBaseArticleCountOutputTypeCountUpvotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
}
/**
* KnowledgeBaseArticleCountOutputType without action
*/
export type KnowledgeBaseArticleCountOutputTypeCountDownvotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
}
/**
* KnowledgeBaseArticleCountOutputType without action
*/
export type KnowledgeBaseArticleCountOutputTypeCountRelatedArticlesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseRelatedArticleWhereInput
}
/**
* KnowledgeBaseArticleCountOutputType without action
*/
export type KnowledgeBaseArticleCountOutputTypeCountRelatedInArticlesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.KnowledgeBaseRelatedArticleWhereInput
}
export type KnowledgeBaseArticleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs<ExtArgs>
section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs<ExtArgs>
createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs<ExtArgs>
views?: boolean | Prisma.KnowledgeBaseArticle$viewsArgs<ExtArgs>
upvotes?: boolean | Prisma.KnowledgeBaseArticle$upvotesArgs<ExtArgs>
downvotes?: boolean | Prisma.KnowledgeBaseArticle$downvotesArgs<ExtArgs>
relatedArticles?: boolean | Prisma.KnowledgeBaseArticle$relatedArticlesArgs<ExtArgs>
relatedInArticles?: boolean | Prisma.KnowledgeBaseArticle$relatedInArticlesArgs<ExtArgs>
_count?: boolean | Prisma.KnowledgeBaseArticleCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["knowledgeBaseArticle"]>
export type KnowledgeBaseArticleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs<ExtArgs>
section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs<ExtArgs>
createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs<ExtArgs>
}, ExtArgs["result"]["knowledgeBaseArticle"]>
export type KnowledgeBaseArticleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs<ExtArgs>
section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs<ExtArgs>
createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs<ExtArgs>
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs<ExtArgs>
section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs<ExtArgs>
createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs<ExtArgs>
views?: boolean | Prisma.KnowledgeBaseArticle$viewsArgs<ExtArgs>
upvotes?: boolean | Prisma.KnowledgeBaseArticle$upvotesArgs<ExtArgs>
downvotes?: boolean | Prisma.KnowledgeBaseArticle$downvotesArgs<ExtArgs>
relatedArticles?: boolean | Prisma.KnowledgeBaseArticle$relatedArticlesArgs<ExtArgs>
relatedInArticles?: boolean | Prisma.KnowledgeBaseArticle$relatedInArticlesArgs<ExtArgs>
_count?: boolean | Prisma.KnowledgeBaseArticleCountOutputTypeDefaultArgs<ExtArgs>
}
export type KnowledgeBaseArticleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs<ExtArgs>
section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs<ExtArgs>
createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs<ExtArgs>
}
export type KnowledgeBaseArticleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
knowledgeBase?: boolean | Prisma.KnowledgeBaseDefaultArgs<ExtArgs>
category?: boolean | Prisma.KnowledgeBaseArticle$categoryArgs<ExtArgs>
section?: boolean | Prisma.KnowledgeBaseArticle$sectionArgs<ExtArgs>
createdByUser?: boolean | Prisma.KnowledgeBaseArticle$createdByUserArgs<ExtArgs>
}
export type $KnowledgeBaseArticlePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "KnowledgeBaseArticle"
objects: {
knowledgeBase: Prisma.$KnowledgeBasePayload<ExtArgs>
category: Prisma.$KnowledgeBaseCategoryPayload<ExtArgs> | null
section: Prisma.$KnowledgeBaseCategorySectionPayload<ExtArgs> | null
createdByUser: Prisma.$UserPayload<ExtArgs> | null
views: Prisma.$KnowledgeBaseArticleViewsPayload<ExtArgs>[]
upvotes: Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>[]
downvotes: Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>[]
relatedArticles: Prisma.$KnowledgeBaseRelatedArticlePayload<ExtArgs>[]
relatedInArticles: Prisma.$KnowledgeBaseRelatedArticlePayload<ExtArgs>[]
}
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<S extends boolean | null | undefined | KnowledgeBaseArticleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload, S>
export type KnowledgeBaseArticleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<KnowledgeBaseArticleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: KnowledgeBaseArticleCountAggregateInputType | true
}
export interface KnowledgeBaseArticleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends KnowledgeBaseArticleFindUniqueArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleFindFirstArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleFindFirstArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleFindManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleCreateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleCreateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleCreateManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends KnowledgeBaseArticleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleDeleteArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDeleteArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleUpdateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpdateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleDeleteManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends KnowledgeBaseArticleUpdateManyArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends KnowledgeBaseArticleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleUpsertArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpsertArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, 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<T extends KnowledgeBaseArticleCountArgs>(
args?: Prisma.Subset<T, KnowledgeBaseArticleCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], KnowledgeBaseArticleCountAggregateOutputType>
: 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<T extends KnowledgeBaseArticleAggregateArgs>(args: Prisma.Subset<T, KnowledgeBaseArticleAggregateArgs>): Prisma.PrismaPromise<GetKnowledgeBaseArticleAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: KnowledgeBaseArticleGroupByArgs['orderBy'] }
: { orderBy?: KnowledgeBaseArticleGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, KnowledgeBaseArticleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKnowledgeBaseArticleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
knowledgeBase<T extends Prisma.KnowledgeBaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseDefaultArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
category<T extends Prisma.KnowledgeBaseArticle$categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticle$categoryArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseCategoryClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
section<T extends Prisma.KnowledgeBaseArticle$sectionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticle$sectionArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseCategorySectionClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseCategorySectionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
createdByUser<T extends Prisma.KnowledgeBaseArticle$createdByUserArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticle$createdByUserArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
views<T extends Prisma.KnowledgeBaseArticle$viewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticle$viewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleViewsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
upvotes<T extends Prisma.KnowledgeBaseArticle$upvotesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticle$upvotesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
downvotes<T extends Prisma.KnowledgeBaseArticle$downvotesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticle$downvotesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
relatedArticles<T extends Prisma.KnowledgeBaseArticle$relatedArticlesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticle$relatedArticlesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseRelatedArticlePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
relatedInArticles<T extends Prisma.KnowledgeBaseArticle$relatedInArticlesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticle$relatedInArticlesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseRelatedArticlePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | null
/**
* Filter, which KnowledgeBaseArticle to fetch.
*/
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
/**
* KnowledgeBaseArticle findUniqueOrThrow
*/
export type KnowledgeBaseArticleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | null
/**
* Filter, which KnowledgeBaseArticle to fetch.
*/
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
/**
* KnowledgeBaseArticle findFirst
*/
export type KnowledgeBaseArticleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | null
/**
* The data needed to create a KnowledgeBaseArticle.
*/
data: Prisma.XOR<Prisma.KnowledgeBaseArticleCreateInput, Prisma.KnowledgeBaseArticleUncheckedCreateInput>
}
/**
* KnowledgeBaseArticle createMany
*/
export type KnowledgeBaseArticleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many KnowledgeBaseArticles.
*/
data: Prisma.KnowledgeBaseArticleCreateManyInput | Prisma.KnowledgeBaseArticleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* KnowledgeBaseArticle createManyAndReturn
*/
export type KnowledgeBaseArticleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* KnowledgeBaseArticle update
*/
export type KnowledgeBaseArticleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | null
/**
* The data needed to update a KnowledgeBaseArticle.
*/
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateInput, Prisma.KnowledgeBaseArticleUncheckedUpdateInput>
/**
* Choose, which KnowledgeBaseArticle to update.
*/
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
/**
* KnowledgeBaseArticle updateMany
*/
export type KnowledgeBaseArticleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update KnowledgeBaseArticles.
*/
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUncheckedUpdateManyInput>
/**
* Filter which KnowledgeBaseArticles to update
*/
where?: Prisma.KnowledgeBaseArticleWhereInput
/**
* Limit how many KnowledgeBaseArticles to update.
*/
limit?: number
}
/**
* KnowledgeBaseArticle updateManyAndReturn
*/
export type KnowledgeBaseArticleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* The data used to update KnowledgeBaseArticles.
*/
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* KnowledgeBaseArticle upsert
*/
export type KnowledgeBaseArticleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | 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<Prisma.KnowledgeBaseArticleCreateInput, Prisma.KnowledgeBaseArticleUncheckedCreateInput>
/**
* In case the KnowledgeBaseArticle was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpdateInput, Prisma.KnowledgeBaseArticleUncheckedUpdateInput>
}
/**
* KnowledgeBaseArticle delete
*/
export type KnowledgeBaseArticleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | null
/**
* Filter which KnowledgeBaseArticle to delete.
*/
where: Prisma.KnowledgeBaseArticleWhereUniqueInput
}
/**
* KnowledgeBaseArticle deleteMany
*/
export type KnowledgeBaseArticleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which KnowledgeBaseArticles to delete
*/
where?: Prisma.KnowledgeBaseArticleWhereInput
/**
* Limit how many KnowledgeBaseArticles to delete.
*/
limit?: number
}
/**
* KnowledgeBaseArticle.category
*/
export type KnowledgeBaseArticle$categoryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseCategory
*/
select?: Prisma.KnowledgeBaseCategorySelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseCategory
*/
omit?: Prisma.KnowledgeBaseCategoryOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseCategoryInclude<ExtArgs> | null
where?: Prisma.KnowledgeBaseCategoryWhereInput
}
/**
* KnowledgeBaseArticle.section
*/
export type KnowledgeBaseArticle$sectionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseCategorySection
*/
select?: Prisma.KnowledgeBaseCategorySectionSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseCategorySection
*/
omit?: Prisma.KnowledgeBaseCategorySectionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseCategorySectionInclude<ExtArgs> | null
where?: Prisma.KnowledgeBaseCategorySectionWhereInput
}
/**
* KnowledgeBaseArticle.createdByUser
*/
export type KnowledgeBaseArticle$createdByUserArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the User
*/
select?: Prisma.UserSelect<ExtArgs> | null
/**
* Omit specific fields from the User
*/
omit?: Prisma.UserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.UserInclude<ExtArgs> | null
where?: Prisma.UserWhereInput
}
/**
* KnowledgeBaseArticle.views
*/
export type KnowledgeBaseArticle$viewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticleViews
*/
select?: Prisma.KnowledgeBaseArticleViewsSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticleViews
*/
omit?: Prisma.KnowledgeBaseArticleViewsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleViewsInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticleUpvotes
*/
select?: Prisma.KnowledgeBaseArticleUpvotesSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticleUpvotes
*/
omit?: Prisma.KnowledgeBaseArticleUpvotesOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleUpvotesInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticleDownvotes
*/
select?: Prisma.KnowledgeBaseArticleDownvotesSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticleDownvotes
*/
omit?: Prisma.KnowledgeBaseArticleDownvotesOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleDownvotesInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseRelatedArticle
*/
select?: Prisma.KnowledgeBaseRelatedArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseRelatedArticle
*/
omit?: Prisma.KnowledgeBaseRelatedArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseRelatedArticleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseRelatedArticle
*/
select?: Prisma.KnowledgeBaseRelatedArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseRelatedArticle
*/
omit?: Prisma.KnowledgeBaseRelatedArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseRelatedArticleInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the KnowledgeBaseArticle
*/
select?: Prisma.KnowledgeBaseArticleSelect<ExtArgs> | null
/**
* Omit specific fields from the KnowledgeBaseArticle
*/
omit?: Prisma.KnowledgeBaseArticleOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.KnowledgeBaseArticleInclude<ExtArgs> | null
}