1282 lines
60 KiB
TypeScript
1282 lines
60 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 `KnowledgeBaseArticleDownvotes` 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 KnowledgeBaseArticleDownvotes
|
|
*
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesModel = runtime.Types.Result.DefaultSelection<Prisma.$KnowledgeBaseArticleDownvotesPayload>
|
|
|
|
export type AggregateKnowledgeBaseArticleDownvotes = {
|
|
_count: KnowledgeBaseArticleDownvotesCountAggregateOutputType | null
|
|
_min: KnowledgeBaseArticleDownvotesMinAggregateOutputType | null
|
|
_max: KnowledgeBaseArticleDownvotesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesMinAggregateOutputType = {
|
|
createdAt: Date | null
|
|
knowledgeBaseArticleId: string | null
|
|
userAnalyticsId: string | null
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesMaxAggregateOutputType = {
|
|
createdAt: Date | null
|
|
knowledgeBaseArticleId: string | null
|
|
userAnalyticsId: string | null
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCountAggregateOutputType = {
|
|
createdAt: number
|
|
knowledgeBaseArticleId: number
|
|
userAnalyticsId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type KnowledgeBaseArticleDownvotesMinAggregateInputType = {
|
|
createdAt?: true
|
|
knowledgeBaseArticleId?: true
|
|
userAnalyticsId?: true
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesMaxAggregateInputType = {
|
|
createdAt?: true
|
|
knowledgeBaseArticleId?: true
|
|
userAnalyticsId?: true
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCountAggregateInputType = {
|
|
createdAt?: true
|
|
knowledgeBaseArticleId?: true
|
|
userAnalyticsId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which KnowledgeBaseArticleDownvotes to aggregate.
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
orderBy?: Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KnowledgeBaseArticleDownvotes 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` KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned KnowledgeBaseArticleDownvotes
|
|
**/
|
|
_count?: true | KnowledgeBaseArticleDownvotesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: KnowledgeBaseArticleDownvotesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: KnowledgeBaseArticleDownvotesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetKnowledgeBaseArticleDownvotesAggregateType<T extends KnowledgeBaseArticleDownvotesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateKnowledgeBaseArticleDownvotes]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateKnowledgeBaseArticleDownvotes[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateKnowledgeBaseArticleDownvotes[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type KnowledgeBaseArticleDownvotesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
orderBy?: Prisma.KnowledgeBaseArticleDownvotesOrderByWithAggregationInput | Prisma.KnowledgeBaseArticleDownvotesOrderByWithAggregationInput[]
|
|
by: Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum[] | Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum
|
|
having?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: KnowledgeBaseArticleDownvotesCountAggregateInputType | true
|
|
_min?: KnowledgeBaseArticleDownvotesMinAggregateInputType
|
|
_max?: KnowledgeBaseArticleDownvotesMaxAggregateInputType
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesGroupByOutputType = {
|
|
createdAt: Date
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
_count: KnowledgeBaseArticleDownvotesCountAggregateOutputType | null
|
|
_min: KnowledgeBaseArticleDownvotesMinAggregateOutputType | null
|
|
_max: KnowledgeBaseArticleDownvotesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetKnowledgeBaseArticleDownvotesGroupByPayload<T extends KnowledgeBaseArticleDownvotesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<KnowledgeBaseArticleDownvotesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof KnowledgeBaseArticleDownvotesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], KnowledgeBaseArticleDownvotesGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], KnowledgeBaseArticleDownvotesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type KnowledgeBaseArticleDownvotesWhereInput = {
|
|
AND?: Prisma.KnowledgeBaseArticleDownvotesWhereInput | Prisma.KnowledgeBaseArticleDownvotesWhereInput[]
|
|
OR?: Prisma.KnowledgeBaseArticleDownvotesWhereInput[]
|
|
NOT?: Prisma.KnowledgeBaseArticleDownvotesWhereInput | Prisma.KnowledgeBaseArticleDownvotesWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticleDownvotes"> | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFilter<"KnowledgeBaseArticleDownvotes"> | string
|
|
userAnalyticsId?: Prisma.StringFilter<"KnowledgeBaseArticleDownvotes"> | string
|
|
knowledgeBaseArticle?: Prisma.XOR<Prisma.KnowledgeBaseArticleScalarRelationFilter, Prisma.KnowledgeBaseArticleWhereInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesOrderByWithRelationInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
knowledgeBaseArticle?: Prisma.KnowledgeBaseArticleOrderByWithRelationInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesWhereUniqueInput = Prisma.AtLeast<{
|
|
knowledgeBaseArticleId_userAnalyticsId?: Prisma.KnowledgeBaseArticleDownvotesKnowledgeBaseArticleIdUserAnalyticsIdCompoundUniqueInput
|
|
AND?: Prisma.KnowledgeBaseArticleDownvotesWhereInput | Prisma.KnowledgeBaseArticleDownvotesWhereInput[]
|
|
OR?: Prisma.KnowledgeBaseArticleDownvotesWhereInput[]
|
|
NOT?: Prisma.KnowledgeBaseArticleDownvotesWhereInput | Prisma.KnowledgeBaseArticleDownvotesWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticleDownvotes"> | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFilter<"KnowledgeBaseArticleDownvotes"> | string
|
|
userAnalyticsId?: Prisma.StringFilter<"KnowledgeBaseArticleDownvotes"> | string
|
|
knowledgeBaseArticle?: Prisma.XOR<Prisma.KnowledgeBaseArticleScalarRelationFilter, Prisma.KnowledgeBaseArticleWhereInput>
|
|
}, "knowledgeBaseArticleId_userAnalyticsId">
|
|
|
|
export type KnowledgeBaseArticleDownvotesOrderByWithAggregationInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
_count?: Prisma.KnowledgeBaseArticleDownvotesCountOrderByAggregateInput
|
|
_max?: Prisma.KnowledgeBaseArticleDownvotesMaxOrderByAggregateInput
|
|
_min?: Prisma.KnowledgeBaseArticleDownvotesMinOrderByAggregateInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseArticleDownvotesScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseArticleDownvotesScalarWhereWithAggregatesInput[]
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBaseArticleDownvotes"> | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticleDownvotes"> | string
|
|
userAnalyticsId?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticleDownvotes"> | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCreateInput = {
|
|
createdAt?: Date | string
|
|
userAnalyticsId: string
|
|
knowledgeBaseArticle: Prisma.KnowledgeBaseArticleCreateNestedOneWithoutDownvotesInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUncheckedCreateInput = {
|
|
createdAt?: Date | string
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUpdateInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
knowledgeBaseArticle?: Prisma.KnowledgeBaseArticleUpdateOneRequiredWithoutDownvotesNestedInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUncheckedUpdateInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCreateManyInput = {
|
|
createdAt?: Date | string
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUpdateManyMutationInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUncheckedUpdateManyInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesListRelationFilter = {
|
|
every?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
some?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
none?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesKnowledgeBaseArticleIdUserAnalyticsIdCompoundUniqueInput = {
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCountOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesMaxOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesMinOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCreateNestedManyWithoutKnowledgeBaseArticleInput = {
|
|
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput> | Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput[] | Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput[]
|
|
connectOrCreate?: Prisma.KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput[]
|
|
createMany?: Prisma.KnowledgeBaseArticleDownvotesCreateManyKnowledgeBaseArticleInputEnvelope
|
|
connect?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput = {
|
|
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput> | Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput[] | Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput[]
|
|
connectOrCreate?: Prisma.KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput[]
|
|
createMany?: Prisma.KnowledgeBaseArticleDownvotesCreateManyKnowledgeBaseArticleInputEnvelope
|
|
connect?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput = {
|
|
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput> | Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput[] | Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput[]
|
|
connectOrCreate?: Prisma.KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput[]
|
|
upsert?: Prisma.KnowledgeBaseArticleDownvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput[]
|
|
createMany?: Prisma.KnowledgeBaseArticleDownvotesCreateManyKnowledgeBaseArticleInputEnvelope
|
|
set?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
disconnect?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
delete?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
connect?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
update?: Prisma.KnowledgeBaseArticleDownvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput[]
|
|
updateMany?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput[]
|
|
deleteMany?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput | Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput[]
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput = {
|
|
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput> | Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput[] | Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput[]
|
|
connectOrCreate?: Prisma.KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput[]
|
|
upsert?: Prisma.KnowledgeBaseArticleDownvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput[]
|
|
createMany?: Prisma.KnowledgeBaseArticleDownvotesCreateManyKnowledgeBaseArticleInputEnvelope
|
|
set?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
disconnect?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
delete?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
connect?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput[]
|
|
update?: Prisma.KnowledgeBaseArticleDownvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput[]
|
|
updateMany?: Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput[]
|
|
deleteMany?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput | Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput[]
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Date | string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Date | string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCreateOrConnectWithoutKnowledgeBaseArticleInput = {
|
|
where: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCreateManyKnowledgeBaseArticleInputEnvelope = {
|
|
data: Prisma.KnowledgeBaseArticleDownvotesCreateManyKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleDownvotesCreateManyKnowledgeBaseArticleInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput = {
|
|
where: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesUpdateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateWithoutKnowledgeBaseArticleInput>
|
|
create: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateWithoutKnowledgeBaseArticleInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput = {
|
|
where: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesUpdateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateWithoutKnowledgeBaseArticleInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput = {
|
|
where: Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesUpdateManyMutationInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesScalarWhereInput = {
|
|
AND?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput | Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput[]
|
|
OR?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput[]
|
|
NOT?: Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput | Prisma.KnowledgeBaseArticleDownvotesScalarWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticleDownvotes"> | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFilter<"KnowledgeBaseArticleDownvotes"> | string
|
|
userAnalyticsId?: Prisma.StringFilter<"KnowledgeBaseArticleDownvotes"> | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesCreateManyKnowledgeBaseArticleInput = {
|
|
createdAt?: Date | string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUpdateWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUncheckedUpdateWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type KnowledgeBaseArticleDownvotesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
createdAt?: boolean
|
|
knowledgeBaseArticleId?: boolean
|
|
userAnalyticsId?: boolean
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["knowledgeBaseArticleDownvotes"]>
|
|
|
|
export type KnowledgeBaseArticleDownvotesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
createdAt?: boolean
|
|
knowledgeBaseArticleId?: boolean
|
|
userAnalyticsId?: boolean
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["knowledgeBaseArticleDownvotes"]>
|
|
|
|
export type KnowledgeBaseArticleDownvotesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
createdAt?: boolean
|
|
knowledgeBaseArticleId?: boolean
|
|
userAnalyticsId?: boolean
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["knowledgeBaseArticleDownvotes"]>
|
|
|
|
export type KnowledgeBaseArticleDownvotesSelectScalar = {
|
|
createdAt?: boolean
|
|
knowledgeBaseArticleId?: boolean
|
|
userAnalyticsId?: boolean
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"createdAt" | "knowledgeBaseArticleId" | "userAnalyticsId", ExtArgs["result"]["knowledgeBaseArticleDownvotes"]>
|
|
export type KnowledgeBaseArticleDownvotesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}
|
|
export type KnowledgeBaseArticleDownvotesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}
|
|
export type KnowledgeBaseArticleDownvotesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $KnowledgeBaseArticleDownvotesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "KnowledgeBaseArticleDownvotes"
|
|
objects: {
|
|
knowledgeBaseArticle: Prisma.$KnowledgeBaseArticlePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
createdAt: Date
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
}, ExtArgs["result"]["knowledgeBaseArticleDownvotes"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type KnowledgeBaseArticleDownvotesGetPayload<S extends boolean | null | undefined | KnowledgeBaseArticleDownvotesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload, S>
|
|
|
|
export type KnowledgeBaseArticleDownvotesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<KnowledgeBaseArticleDownvotesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: KnowledgeBaseArticleDownvotesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface KnowledgeBaseArticleDownvotesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KnowledgeBaseArticleDownvotes'], meta: { name: 'KnowledgeBaseArticleDownvotes' } }
|
|
/**
|
|
* Find zero or one KnowledgeBaseArticleDownvotes that matches the filter.
|
|
* @param {KnowledgeBaseArticleDownvotesFindUniqueArgs} args - Arguments to find a KnowledgeBaseArticleDownvotes
|
|
* @example
|
|
* // Get one KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends KnowledgeBaseArticleDownvotesFindUniqueArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleDownvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one KnowledgeBaseArticleDownvotes that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {KnowledgeBaseArticleDownvotesFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeBaseArticleDownvotes
|
|
* @example
|
|
* // Get one KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends KnowledgeBaseArticleDownvotesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleDownvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first KnowledgeBaseArticleDownvotes 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 {KnowledgeBaseArticleDownvotesFindFirstArgs} args - Arguments to find a KnowledgeBaseArticleDownvotes
|
|
* @example
|
|
* // Get one KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends KnowledgeBaseArticleDownvotesFindFirstArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesFindFirstArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleDownvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first KnowledgeBaseArticleDownvotes 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 {KnowledgeBaseArticleDownvotesFindFirstOrThrowArgs} args - Arguments to find a KnowledgeBaseArticleDownvotes
|
|
* @example
|
|
* // Get one KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends KnowledgeBaseArticleDownvotesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleDownvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more KnowledgeBaseArticleDownvotes 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 {KnowledgeBaseArticleDownvotesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.findMany()
|
|
*
|
|
* // Get first 10 KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `createdAt`
|
|
* const knowledgeBaseArticleDownvotesWithCreatedAtOnly = await prisma.knowledgeBaseArticleDownvotes.findMany({ select: { createdAt: true } })
|
|
*
|
|
*/
|
|
findMany<T extends KnowledgeBaseArticleDownvotesFindManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a KnowledgeBaseArticleDownvotes.
|
|
* @param {KnowledgeBaseArticleDownvotesCreateArgs} args - Arguments to create a KnowledgeBaseArticleDownvotes.
|
|
* @example
|
|
* // Create one KnowledgeBaseArticleDownvotes
|
|
* const KnowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.create({
|
|
* data: {
|
|
* // ... data to create a KnowledgeBaseArticleDownvotes
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends KnowledgeBaseArticleDownvotesCreateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesCreateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleDownvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many KnowledgeBaseArticleDownvotes.
|
|
* @param {KnowledgeBaseArticleDownvotesCreateManyArgs} args - Arguments to create many KnowledgeBaseArticleDownvotes.
|
|
* @example
|
|
* // Create many KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends KnowledgeBaseArticleDownvotesCreateManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many KnowledgeBaseArticleDownvotes and returns the data saved in the database.
|
|
* @param {KnowledgeBaseArticleDownvotesCreateManyAndReturnArgs} args - Arguments to create many KnowledgeBaseArticleDownvotes.
|
|
* @example
|
|
* // Create many KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many KnowledgeBaseArticleDownvotes and only return the `createdAt`
|
|
* const knowledgeBaseArticleDownvotesWithCreatedAtOnly = await prisma.knowledgeBaseArticleDownvotes.createManyAndReturn({
|
|
* select: { createdAt: 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 KnowledgeBaseArticleDownvotesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a KnowledgeBaseArticleDownvotes.
|
|
* @param {KnowledgeBaseArticleDownvotesDeleteArgs} args - Arguments to delete one KnowledgeBaseArticleDownvotes.
|
|
* @example
|
|
* // Delete one KnowledgeBaseArticleDownvotes
|
|
* const KnowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.delete({
|
|
* where: {
|
|
* // ... filter to delete one KnowledgeBaseArticleDownvotes
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends KnowledgeBaseArticleDownvotesDeleteArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesDeleteArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleDownvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one KnowledgeBaseArticleDownvotes.
|
|
* @param {KnowledgeBaseArticleDownvotesUpdateArgs} args - Arguments to update one KnowledgeBaseArticleDownvotes.
|
|
* @example
|
|
* // Update one KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends KnowledgeBaseArticleDownvotesUpdateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesUpdateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleDownvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more KnowledgeBaseArticleDownvotes.
|
|
* @param {KnowledgeBaseArticleDownvotesDeleteManyArgs} args - Arguments to filter KnowledgeBaseArticleDownvotes to delete.
|
|
* @example
|
|
* // Delete a few KnowledgeBaseArticleDownvotes
|
|
* const { count } = await prisma.knowledgeBaseArticleDownvotes.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends KnowledgeBaseArticleDownvotesDeleteManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more KnowledgeBaseArticleDownvotes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KnowledgeBaseArticleDownvotesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends KnowledgeBaseArticleDownvotesUpdateManyArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more KnowledgeBaseArticleDownvotes and returns the data updated in the database.
|
|
* @param {KnowledgeBaseArticleDownvotesUpdateManyAndReturnArgs} args - Arguments to update many KnowledgeBaseArticleDownvotes.
|
|
* @example
|
|
* // Update many KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more KnowledgeBaseArticleDownvotes and only return the `createdAt`
|
|
* const knowledgeBaseArticleDownvotesWithCreatedAtOnly = await prisma.knowledgeBaseArticleDownvotes.updateManyAndReturn({
|
|
* select: { createdAt: 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 KnowledgeBaseArticleDownvotesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one KnowledgeBaseArticleDownvotes.
|
|
* @param {KnowledgeBaseArticleDownvotesUpsertArgs} args - Arguments to update or create a KnowledgeBaseArticleDownvotes.
|
|
* @example
|
|
* // Update or create a KnowledgeBaseArticleDownvotes
|
|
* const knowledgeBaseArticleDownvotes = await prisma.knowledgeBaseArticleDownvotes.upsert({
|
|
* create: {
|
|
* // ... data to create a KnowledgeBaseArticleDownvotes
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the KnowledgeBaseArticleDownvotes we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends KnowledgeBaseArticleDownvotesUpsertArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleDownvotesUpsertArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleDownvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleDownvotesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of KnowledgeBaseArticleDownvotes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KnowledgeBaseArticleDownvotesCountArgs} args - Arguments to filter KnowledgeBaseArticleDownvotes to count.
|
|
* @example
|
|
* // Count the number of KnowledgeBaseArticleDownvotes
|
|
* const count = await prisma.knowledgeBaseArticleDownvotes.count({
|
|
* where: {
|
|
* // ... the filter for the KnowledgeBaseArticleDownvotes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends KnowledgeBaseArticleDownvotesCountArgs>(
|
|
args?: Prisma.Subset<T, KnowledgeBaseArticleDownvotesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], KnowledgeBaseArticleDownvotesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a KnowledgeBaseArticleDownvotes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KnowledgeBaseArticleDownvotesAggregateArgs} 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 KnowledgeBaseArticleDownvotesAggregateArgs>(args: Prisma.Subset<T, KnowledgeBaseArticleDownvotesAggregateArgs>): Prisma.PrismaPromise<GetKnowledgeBaseArticleDownvotesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by KnowledgeBaseArticleDownvotes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KnowledgeBaseArticleDownvotesGroupByArgs} 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 KnowledgeBaseArticleDownvotesGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: KnowledgeBaseArticleDownvotesGroupByArgs['orderBy'] }
|
|
: { orderBy?: KnowledgeBaseArticleDownvotesGroupByArgs['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, KnowledgeBaseArticleDownvotesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKnowledgeBaseArticleDownvotesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the KnowledgeBaseArticleDownvotes model
|
|
*/
|
|
readonly fields: KnowledgeBaseArticleDownvotesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for KnowledgeBaseArticleDownvotes.
|
|
* 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__KnowledgeBaseArticleDownvotesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
knowledgeBaseArticle<T extends Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticlePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the KnowledgeBaseArticleDownvotes model
|
|
*/
|
|
export interface KnowledgeBaseArticleDownvotesFieldRefs {
|
|
readonly createdAt: Prisma.FieldRef<"KnowledgeBaseArticleDownvotes", 'DateTime'>
|
|
readonly knowledgeBaseArticleId: Prisma.FieldRef<"KnowledgeBaseArticleDownvotes", 'String'>
|
|
readonly userAnalyticsId: Prisma.FieldRef<"KnowledgeBaseArticleDownvotes", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes findUnique
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesFindUniqueArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes findUniqueOrThrow
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes findFirst
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesFindFirstArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
orderBy?: Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
cursor?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KnowledgeBaseArticleDownvotes 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` KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
distinct?: Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum | Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes findFirstOrThrow
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
orderBy?: Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
cursor?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KnowledgeBaseArticleDownvotes 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` KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
distinct?: Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum | Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes findMany
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesFindManyArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KnowledgeBaseArticleDownvotes to fetch.
|
|
*/
|
|
orderBy?: Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleDownvotesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
cursor?: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KnowledgeBaseArticleDownvotes 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` KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
distinct?: Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum | Prisma.KnowledgeBaseArticleDownvotesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes create
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesCreateArgs<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
|
|
/**
|
|
* The data needed to create a KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesCreateInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes createMany
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
data: Prisma.KnowledgeBaseArticleDownvotesCreateManyInput | Prisma.KnowledgeBaseArticleDownvotesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes createManyAndReturn
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KnowledgeBaseArticleDownvotes
|
|
*/
|
|
select?: Prisma.KnowledgeBaseArticleDownvotesSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KnowledgeBaseArticleDownvotes
|
|
*/
|
|
omit?: Prisma.KnowledgeBaseArticleDownvotesOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
data: Prisma.KnowledgeBaseArticleDownvotesCreateManyInput | Prisma.KnowledgeBaseArticleDownvotesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KnowledgeBaseArticleDownvotesIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes update
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesUpdateArgs<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
|
|
/**
|
|
* The data needed to update a KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesUpdateInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which KnowledgeBaseArticleDownvotes to update.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes updateMany
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesUpdateManyMutationInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which KnowledgeBaseArticleDownvotes to update
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
/**
|
|
* Limit how many KnowledgeBaseArticleDownvotes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes updateManyAndReturn
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KnowledgeBaseArticleDownvotes
|
|
*/
|
|
select?: Prisma.KnowledgeBaseArticleDownvotesSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KnowledgeBaseArticleDownvotes
|
|
*/
|
|
omit?: Prisma.KnowledgeBaseArticleDownvotesOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update KnowledgeBaseArticleDownvotes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesUpdateManyMutationInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which KnowledgeBaseArticleDownvotes to update
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
/**
|
|
* Limit how many KnowledgeBaseArticleDownvotes to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KnowledgeBaseArticleDownvotesIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes upsert
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesUpsertArgs<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
|
|
/**
|
|
* The filter to search for the KnowledgeBaseArticleDownvotes to update in case it exists.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
/**
|
|
* In case the KnowledgeBaseArticleDownvotes found by the `where` argument doesn't exist, create a new KnowledgeBaseArticleDownvotes with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesCreateInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedCreateInput>
|
|
/**
|
|
* In case the KnowledgeBaseArticleDownvotes was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.KnowledgeBaseArticleDownvotesUpdateInput, Prisma.KnowledgeBaseArticleDownvotesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes delete
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesDeleteArgs<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
|
|
/**
|
|
* Filter which KnowledgeBaseArticleDownvotes to delete.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleDownvotesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes deleteMany
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which KnowledgeBaseArticleDownvotes to delete
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleDownvotesWhereInput
|
|
/**
|
|
* Limit how many KnowledgeBaseArticleDownvotes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleDownvotes without action
|
|
*/
|
|
export type KnowledgeBaseArticleDownvotesDefaultArgs<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
|
|
}
|