1282 lines
59 KiB
TypeScript
1282 lines
59 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 `KnowledgeBaseArticleUpvotes` 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 KnowledgeBaseArticleUpvotes
|
|
*
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesModel = runtime.Types.Result.DefaultSelection<Prisma.$KnowledgeBaseArticleUpvotesPayload>
|
|
|
|
export type AggregateKnowledgeBaseArticleUpvotes = {
|
|
_count: KnowledgeBaseArticleUpvotesCountAggregateOutputType | null
|
|
_min: KnowledgeBaseArticleUpvotesMinAggregateOutputType | null
|
|
_max: KnowledgeBaseArticleUpvotesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesMinAggregateOutputType = {
|
|
createdAt: Date | null
|
|
knowledgeBaseArticleId: string | null
|
|
userAnalyticsId: string | null
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesMaxAggregateOutputType = {
|
|
createdAt: Date | null
|
|
knowledgeBaseArticleId: string | null
|
|
userAnalyticsId: string | null
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCountAggregateOutputType = {
|
|
createdAt: number
|
|
knowledgeBaseArticleId: number
|
|
userAnalyticsId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type KnowledgeBaseArticleUpvotesMinAggregateInputType = {
|
|
createdAt?: true
|
|
knowledgeBaseArticleId?: true
|
|
userAnalyticsId?: true
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesMaxAggregateInputType = {
|
|
createdAt?: true
|
|
knowledgeBaseArticleId?: true
|
|
userAnalyticsId?: true
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCountAggregateInputType = {
|
|
createdAt?: true
|
|
knowledgeBaseArticleId?: true
|
|
userAnalyticsId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which KnowledgeBaseArticleUpvotes to aggregate.
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
orderBy?: Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KnowledgeBaseArticleUpvotes 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` KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned KnowledgeBaseArticleUpvotes
|
|
**/
|
|
_count?: true | KnowledgeBaseArticleUpvotesCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: KnowledgeBaseArticleUpvotesMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: KnowledgeBaseArticleUpvotesMaxAggregateInputType
|
|
}
|
|
|
|
export type GetKnowledgeBaseArticleUpvotesAggregateType<T extends KnowledgeBaseArticleUpvotesAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateKnowledgeBaseArticleUpvotes]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateKnowledgeBaseArticleUpvotes[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateKnowledgeBaseArticleUpvotes[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type KnowledgeBaseArticleUpvotesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
orderBy?: Prisma.KnowledgeBaseArticleUpvotesOrderByWithAggregationInput | Prisma.KnowledgeBaseArticleUpvotesOrderByWithAggregationInput[]
|
|
by: Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum[] | Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum
|
|
having?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: KnowledgeBaseArticleUpvotesCountAggregateInputType | true
|
|
_min?: KnowledgeBaseArticleUpvotesMinAggregateInputType
|
|
_max?: KnowledgeBaseArticleUpvotesMaxAggregateInputType
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesGroupByOutputType = {
|
|
createdAt: Date
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
_count: KnowledgeBaseArticleUpvotesCountAggregateOutputType | null
|
|
_min: KnowledgeBaseArticleUpvotesMinAggregateOutputType | null
|
|
_max: KnowledgeBaseArticleUpvotesMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetKnowledgeBaseArticleUpvotesGroupByPayload<T extends KnowledgeBaseArticleUpvotesGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<KnowledgeBaseArticleUpvotesGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof KnowledgeBaseArticleUpvotesGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], KnowledgeBaseArticleUpvotesGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], KnowledgeBaseArticleUpvotesGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type KnowledgeBaseArticleUpvotesWhereInput = {
|
|
AND?: Prisma.KnowledgeBaseArticleUpvotesWhereInput | Prisma.KnowledgeBaseArticleUpvotesWhereInput[]
|
|
OR?: Prisma.KnowledgeBaseArticleUpvotesWhereInput[]
|
|
NOT?: Prisma.KnowledgeBaseArticleUpvotesWhereInput | Prisma.KnowledgeBaseArticleUpvotesWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticleUpvotes"> | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFilter<"KnowledgeBaseArticleUpvotes"> | string
|
|
userAnalyticsId?: Prisma.StringFilter<"KnowledgeBaseArticleUpvotes"> | string
|
|
knowledgeBaseArticle?: Prisma.XOR<Prisma.KnowledgeBaseArticleScalarRelationFilter, Prisma.KnowledgeBaseArticleWhereInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesOrderByWithRelationInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
knowledgeBaseArticle?: Prisma.KnowledgeBaseArticleOrderByWithRelationInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesWhereUniqueInput = Prisma.AtLeast<{
|
|
knowledgeBaseArticleId_userAnalyticsId?: Prisma.KnowledgeBaseArticleUpvotesKnowledgeBaseArticleIdUserAnalyticsIdCompoundUniqueInput
|
|
AND?: Prisma.KnowledgeBaseArticleUpvotesWhereInput | Prisma.KnowledgeBaseArticleUpvotesWhereInput[]
|
|
OR?: Prisma.KnowledgeBaseArticleUpvotesWhereInput[]
|
|
NOT?: Prisma.KnowledgeBaseArticleUpvotesWhereInput | Prisma.KnowledgeBaseArticleUpvotesWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticleUpvotes"> | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFilter<"KnowledgeBaseArticleUpvotes"> | string
|
|
userAnalyticsId?: Prisma.StringFilter<"KnowledgeBaseArticleUpvotes"> | string
|
|
knowledgeBaseArticle?: Prisma.XOR<Prisma.KnowledgeBaseArticleScalarRelationFilter, Prisma.KnowledgeBaseArticleWhereInput>
|
|
}, "knowledgeBaseArticleId_userAnalyticsId">
|
|
|
|
export type KnowledgeBaseArticleUpvotesOrderByWithAggregationInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
_count?: Prisma.KnowledgeBaseArticleUpvotesCountOrderByAggregateInput
|
|
_max?: Prisma.KnowledgeBaseArticleUpvotesMaxOrderByAggregateInput
|
|
_min?: Prisma.KnowledgeBaseArticleUpvotesMinOrderByAggregateInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseArticleUpvotesScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereWithAggregatesInput | Prisma.KnowledgeBaseArticleUpvotesScalarWhereWithAggregatesInput[]
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"KnowledgeBaseArticleUpvotes"> | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticleUpvotes"> | string
|
|
userAnalyticsId?: Prisma.StringWithAggregatesFilter<"KnowledgeBaseArticleUpvotes"> | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCreateInput = {
|
|
createdAt?: Date | string
|
|
userAnalyticsId: string
|
|
knowledgeBaseArticle: Prisma.KnowledgeBaseArticleCreateNestedOneWithoutUpvotesInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUncheckedCreateInput = {
|
|
createdAt?: Date | string
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUpdateInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
knowledgeBaseArticle?: Prisma.KnowledgeBaseArticleUpdateOneRequiredWithoutUpvotesNestedInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUncheckedUpdateInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCreateManyInput = {
|
|
createdAt?: Date | string
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUpdateManyMutationInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUncheckedUpdateManyInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesListRelationFilter = {
|
|
every?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
some?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
none?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesKnowledgeBaseArticleIdUserAnalyticsIdCompoundUniqueInput = {
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCountOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesMaxOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesMinOrderByAggregateInput = {
|
|
createdAt?: Prisma.SortOrder
|
|
knowledgeBaseArticleId?: Prisma.SortOrder
|
|
userAnalyticsId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCreateNestedManyWithoutKnowledgeBaseArticleInput = {
|
|
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput> | Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput[] | Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput[]
|
|
connectOrCreate?: Prisma.KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput[]
|
|
createMany?: Prisma.KnowledgeBaseArticleUpvotesCreateManyKnowledgeBaseArticleInputEnvelope
|
|
connect?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUncheckedCreateNestedManyWithoutKnowledgeBaseArticleInput = {
|
|
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput> | Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput[] | Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput[]
|
|
connectOrCreate?: Prisma.KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput[]
|
|
createMany?: Prisma.KnowledgeBaseArticleUpvotesCreateManyKnowledgeBaseArticleInputEnvelope
|
|
connect?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUpdateManyWithoutKnowledgeBaseArticleNestedInput = {
|
|
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput> | Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput[] | Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput[]
|
|
connectOrCreate?: Prisma.KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput[]
|
|
upsert?: Prisma.KnowledgeBaseArticleUpvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput[]
|
|
createMany?: Prisma.KnowledgeBaseArticleUpvotesCreateManyKnowledgeBaseArticleInputEnvelope
|
|
set?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
disconnect?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
delete?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
connect?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
update?: Prisma.KnowledgeBaseArticleUpvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput[]
|
|
updateMany?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput[]
|
|
deleteMany?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput | Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput[]
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleNestedInput = {
|
|
create?: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput> | Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput[] | Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput[]
|
|
connectOrCreate?: Prisma.KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput[]
|
|
upsert?: Prisma.KnowledgeBaseArticleUpvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput[]
|
|
createMany?: Prisma.KnowledgeBaseArticleUpvotesCreateManyKnowledgeBaseArticleInputEnvelope
|
|
set?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
disconnect?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
delete?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
connect?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput | Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput[]
|
|
update?: Prisma.KnowledgeBaseArticleUpvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput[]
|
|
updateMany?: Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput[]
|
|
deleteMany?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput | Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput[]
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Date | string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Date | string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCreateOrConnectWithoutKnowledgeBaseArticleInput = {
|
|
where: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCreateManyKnowledgeBaseArticleInputEnvelope = {
|
|
data: Prisma.KnowledgeBaseArticleUpvotesCreateManyKnowledgeBaseArticleInput | Prisma.KnowledgeBaseArticleUpvotesCreateManyKnowledgeBaseArticleInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUpsertWithWhereUniqueWithoutKnowledgeBaseArticleInput = {
|
|
where: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesUpdateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateWithoutKnowledgeBaseArticleInput>
|
|
create: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesCreateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateWithoutKnowledgeBaseArticleInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUpdateWithWhereUniqueWithoutKnowledgeBaseArticleInput = {
|
|
where: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesUpdateWithoutKnowledgeBaseArticleInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateWithoutKnowledgeBaseArticleInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUpdateManyWithWhereWithoutKnowledgeBaseArticleInput = {
|
|
where: Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleInput>
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesScalarWhereInput = {
|
|
AND?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput | Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput[]
|
|
OR?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput[]
|
|
NOT?: Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput | Prisma.KnowledgeBaseArticleUpvotesScalarWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"KnowledgeBaseArticleUpvotes"> | Date | string
|
|
knowledgeBaseArticleId?: Prisma.StringFilter<"KnowledgeBaseArticleUpvotes"> | string
|
|
userAnalyticsId?: Prisma.StringFilter<"KnowledgeBaseArticleUpvotes"> | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesCreateManyKnowledgeBaseArticleInput = {
|
|
createdAt?: Date | string
|
|
userAnalyticsId: string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUpdateWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUncheckedUpdateWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesUncheckedUpdateManyWithoutKnowledgeBaseArticleInput = {
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
userAnalyticsId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type KnowledgeBaseArticleUpvotesSelect<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"]["knowledgeBaseArticleUpvotes"]>
|
|
|
|
export type KnowledgeBaseArticleUpvotesSelectCreateManyAndReturn<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"]["knowledgeBaseArticleUpvotes"]>
|
|
|
|
export type KnowledgeBaseArticleUpvotesSelectUpdateManyAndReturn<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"]["knowledgeBaseArticleUpvotes"]>
|
|
|
|
export type KnowledgeBaseArticleUpvotesSelectScalar = {
|
|
createdAt?: boolean
|
|
knowledgeBaseArticleId?: boolean
|
|
userAnalyticsId?: boolean
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"createdAt" | "knowledgeBaseArticleId" | "userAnalyticsId", ExtArgs["result"]["knowledgeBaseArticleUpvotes"]>
|
|
export type KnowledgeBaseArticleUpvotesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}
|
|
export type KnowledgeBaseArticleUpvotesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}
|
|
export type KnowledgeBaseArticleUpvotesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
knowledgeBaseArticle?: boolean | Prisma.KnowledgeBaseArticleDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $KnowledgeBaseArticleUpvotesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "KnowledgeBaseArticleUpvotes"
|
|
objects: {
|
|
knowledgeBaseArticle: Prisma.$KnowledgeBaseArticlePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
createdAt: Date
|
|
knowledgeBaseArticleId: string
|
|
userAnalyticsId: string
|
|
}, ExtArgs["result"]["knowledgeBaseArticleUpvotes"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type KnowledgeBaseArticleUpvotesGetPayload<S extends boolean | null | undefined | KnowledgeBaseArticleUpvotesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload, S>
|
|
|
|
export type KnowledgeBaseArticleUpvotesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<KnowledgeBaseArticleUpvotesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: KnowledgeBaseArticleUpvotesCountAggregateInputType | true
|
|
}
|
|
|
|
export interface KnowledgeBaseArticleUpvotesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['KnowledgeBaseArticleUpvotes'], meta: { name: 'KnowledgeBaseArticleUpvotes' } }
|
|
/**
|
|
* Find zero or one KnowledgeBaseArticleUpvotes that matches the filter.
|
|
* @param {KnowledgeBaseArticleUpvotesFindUniqueArgs} args - Arguments to find a KnowledgeBaseArticleUpvotes
|
|
* @example
|
|
* // Get one KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends KnowledgeBaseArticleUpvotesFindUniqueArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleUpvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one KnowledgeBaseArticleUpvotes that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {KnowledgeBaseArticleUpvotesFindUniqueOrThrowArgs} args - Arguments to find a KnowledgeBaseArticleUpvotes
|
|
* @example
|
|
* // Get one KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends KnowledgeBaseArticleUpvotesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleUpvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first KnowledgeBaseArticleUpvotes 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 {KnowledgeBaseArticleUpvotesFindFirstArgs} args - Arguments to find a KnowledgeBaseArticleUpvotes
|
|
* @example
|
|
* // Get one KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends KnowledgeBaseArticleUpvotesFindFirstArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesFindFirstArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleUpvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first KnowledgeBaseArticleUpvotes 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 {KnowledgeBaseArticleUpvotesFindFirstOrThrowArgs} args - Arguments to find a KnowledgeBaseArticleUpvotes
|
|
* @example
|
|
* // Get one KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends KnowledgeBaseArticleUpvotesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleUpvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more KnowledgeBaseArticleUpvotes 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 {KnowledgeBaseArticleUpvotesFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.findMany()
|
|
*
|
|
* // Get first 10 KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `createdAt`
|
|
* const knowledgeBaseArticleUpvotesWithCreatedAtOnly = await prisma.knowledgeBaseArticleUpvotes.findMany({ select: { createdAt: true } })
|
|
*
|
|
*/
|
|
findMany<T extends KnowledgeBaseArticleUpvotesFindManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a KnowledgeBaseArticleUpvotes.
|
|
* @param {KnowledgeBaseArticleUpvotesCreateArgs} args - Arguments to create a KnowledgeBaseArticleUpvotes.
|
|
* @example
|
|
* // Create one KnowledgeBaseArticleUpvotes
|
|
* const KnowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.create({
|
|
* data: {
|
|
* // ... data to create a KnowledgeBaseArticleUpvotes
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends KnowledgeBaseArticleUpvotesCreateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesCreateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleUpvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many KnowledgeBaseArticleUpvotes.
|
|
* @param {KnowledgeBaseArticleUpvotesCreateManyArgs} args - Arguments to create many KnowledgeBaseArticleUpvotes.
|
|
* @example
|
|
* // Create many KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends KnowledgeBaseArticleUpvotesCreateManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many KnowledgeBaseArticleUpvotes and returns the data saved in the database.
|
|
* @param {KnowledgeBaseArticleUpvotesCreateManyAndReturnArgs} args - Arguments to create many KnowledgeBaseArticleUpvotes.
|
|
* @example
|
|
* // Create many KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many KnowledgeBaseArticleUpvotes and only return the `createdAt`
|
|
* const knowledgeBaseArticleUpvotesWithCreatedAtOnly = await prisma.knowledgeBaseArticleUpvotes.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 KnowledgeBaseArticleUpvotesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a KnowledgeBaseArticleUpvotes.
|
|
* @param {KnowledgeBaseArticleUpvotesDeleteArgs} args - Arguments to delete one KnowledgeBaseArticleUpvotes.
|
|
* @example
|
|
* // Delete one KnowledgeBaseArticleUpvotes
|
|
* const KnowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.delete({
|
|
* where: {
|
|
* // ... filter to delete one KnowledgeBaseArticleUpvotes
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends KnowledgeBaseArticleUpvotesDeleteArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesDeleteArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleUpvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one KnowledgeBaseArticleUpvotes.
|
|
* @param {KnowledgeBaseArticleUpvotesUpdateArgs} args - Arguments to update one KnowledgeBaseArticleUpvotes.
|
|
* @example
|
|
* // Update one KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends KnowledgeBaseArticleUpvotesUpdateArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesUpdateArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleUpvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more KnowledgeBaseArticleUpvotes.
|
|
* @param {KnowledgeBaseArticleUpvotesDeleteManyArgs} args - Arguments to filter KnowledgeBaseArticleUpvotes to delete.
|
|
* @example
|
|
* // Delete a few KnowledgeBaseArticleUpvotes
|
|
* const { count } = await prisma.knowledgeBaseArticleUpvotes.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends KnowledgeBaseArticleUpvotesDeleteManyArgs>(args?: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more KnowledgeBaseArticleUpvotes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KnowledgeBaseArticleUpvotesUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends KnowledgeBaseArticleUpvotesUpdateManyArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more KnowledgeBaseArticleUpvotes and returns the data updated in the database.
|
|
* @param {KnowledgeBaseArticleUpvotesUpdateManyAndReturnArgs} args - Arguments to update many KnowledgeBaseArticleUpvotes.
|
|
* @example
|
|
* // Update many KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more KnowledgeBaseArticleUpvotes and only return the `createdAt`
|
|
* const knowledgeBaseArticleUpvotesWithCreatedAtOnly = await prisma.knowledgeBaseArticleUpvotes.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 KnowledgeBaseArticleUpvotesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one KnowledgeBaseArticleUpvotes.
|
|
* @param {KnowledgeBaseArticleUpvotesUpsertArgs} args - Arguments to update or create a KnowledgeBaseArticleUpvotes.
|
|
* @example
|
|
* // Update or create a KnowledgeBaseArticleUpvotes
|
|
* const knowledgeBaseArticleUpvotes = await prisma.knowledgeBaseArticleUpvotes.upsert({
|
|
* create: {
|
|
* // ... data to create a KnowledgeBaseArticleUpvotes
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the KnowledgeBaseArticleUpvotes we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends KnowledgeBaseArticleUpvotesUpsertArgs>(args: Prisma.SelectSubset<T, KnowledgeBaseArticleUpvotesUpsertArgs<ExtArgs>>): Prisma.Prisma__KnowledgeBaseArticleUpvotesClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeBaseArticleUpvotesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of KnowledgeBaseArticleUpvotes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KnowledgeBaseArticleUpvotesCountArgs} args - Arguments to filter KnowledgeBaseArticleUpvotes to count.
|
|
* @example
|
|
* // Count the number of KnowledgeBaseArticleUpvotes
|
|
* const count = await prisma.knowledgeBaseArticleUpvotes.count({
|
|
* where: {
|
|
* // ... the filter for the KnowledgeBaseArticleUpvotes we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends KnowledgeBaseArticleUpvotesCountArgs>(
|
|
args?: Prisma.Subset<T, KnowledgeBaseArticleUpvotesCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], KnowledgeBaseArticleUpvotesCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a KnowledgeBaseArticleUpvotes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KnowledgeBaseArticleUpvotesAggregateArgs} 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 KnowledgeBaseArticleUpvotesAggregateArgs>(args: Prisma.Subset<T, KnowledgeBaseArticleUpvotesAggregateArgs>): Prisma.PrismaPromise<GetKnowledgeBaseArticleUpvotesAggregateType<T>>
|
|
|
|
/**
|
|
* Group by KnowledgeBaseArticleUpvotes.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {KnowledgeBaseArticleUpvotesGroupByArgs} 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 KnowledgeBaseArticleUpvotesGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: KnowledgeBaseArticleUpvotesGroupByArgs['orderBy'] }
|
|
: { orderBy?: KnowledgeBaseArticleUpvotesGroupByArgs['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, KnowledgeBaseArticleUpvotesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetKnowledgeBaseArticleUpvotesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the KnowledgeBaseArticleUpvotes model
|
|
*/
|
|
readonly fields: KnowledgeBaseArticleUpvotesFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for KnowledgeBaseArticleUpvotes.
|
|
* 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__KnowledgeBaseArticleUpvotesClient<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 KnowledgeBaseArticleUpvotes model
|
|
*/
|
|
export interface KnowledgeBaseArticleUpvotesFieldRefs {
|
|
readonly createdAt: Prisma.FieldRef<"KnowledgeBaseArticleUpvotes", 'DateTime'>
|
|
readonly knowledgeBaseArticleId: Prisma.FieldRef<"KnowledgeBaseArticleUpvotes", 'String'>
|
|
readonly userAnalyticsId: Prisma.FieldRef<"KnowledgeBaseArticleUpvotes", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes findUnique
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesFindUniqueArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes findUniqueOrThrow
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes findFirst
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesFindFirstArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
orderBy?: Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
cursor?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KnowledgeBaseArticleUpvotes 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` KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
distinct?: Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum | Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes findFirstOrThrow
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
orderBy?: Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
cursor?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KnowledgeBaseArticleUpvotes 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` KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
distinct?: Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum | Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes findMany
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesFindManyArgs<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
|
|
/**
|
|
* Filter, which KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of KnowledgeBaseArticleUpvotes to fetch.
|
|
*/
|
|
orderBy?: Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput | Prisma.KnowledgeBaseArticleUpvotesOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
cursor?: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` KnowledgeBaseArticleUpvotes 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` KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
distinct?: Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum | Prisma.KnowledgeBaseArticleUpvotesScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes create
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesCreateArgs<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
|
|
/**
|
|
* The data needed to create a KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesCreateInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes createMany
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
data: Prisma.KnowledgeBaseArticleUpvotesCreateManyInput | Prisma.KnowledgeBaseArticleUpvotesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes createManyAndReturn
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KnowledgeBaseArticleUpvotes
|
|
*/
|
|
select?: Prisma.KnowledgeBaseArticleUpvotesSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KnowledgeBaseArticleUpvotes
|
|
*/
|
|
omit?: Prisma.KnowledgeBaseArticleUpvotesOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
data: Prisma.KnowledgeBaseArticleUpvotesCreateManyInput | Prisma.KnowledgeBaseArticleUpvotesCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KnowledgeBaseArticleUpvotesIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes update
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesUpdateArgs<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
|
|
/**
|
|
* The data needed to update a KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesUpdateInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which KnowledgeBaseArticleUpvotes to update.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes updateMany
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which KnowledgeBaseArticleUpvotes to update
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
/**
|
|
* Limit how many KnowledgeBaseArticleUpvotes to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes updateManyAndReturn
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the KnowledgeBaseArticleUpvotes
|
|
*/
|
|
select?: Prisma.KnowledgeBaseArticleUpvotesSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the KnowledgeBaseArticleUpvotes
|
|
*/
|
|
omit?: Prisma.KnowledgeBaseArticleUpvotesOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update KnowledgeBaseArticleUpvotes.
|
|
*/
|
|
data: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesUpdateManyMutationInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which KnowledgeBaseArticleUpvotes to update
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
/**
|
|
* Limit how many KnowledgeBaseArticleUpvotes to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.KnowledgeBaseArticleUpvotesIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes upsert
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesUpsertArgs<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
|
|
/**
|
|
* The filter to search for the KnowledgeBaseArticleUpvotes to update in case it exists.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
/**
|
|
* In case the KnowledgeBaseArticleUpvotes found by the `where` argument doesn't exist, create a new KnowledgeBaseArticleUpvotes with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesCreateInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedCreateInput>
|
|
/**
|
|
* In case the KnowledgeBaseArticleUpvotes was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.KnowledgeBaseArticleUpvotesUpdateInput, Prisma.KnowledgeBaseArticleUpvotesUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes delete
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesDeleteArgs<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
|
|
/**
|
|
* Filter which KnowledgeBaseArticleUpvotes to delete.
|
|
*/
|
|
where: Prisma.KnowledgeBaseArticleUpvotesWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes deleteMany
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which KnowledgeBaseArticleUpvotes to delete
|
|
*/
|
|
where?: Prisma.KnowledgeBaseArticleUpvotesWhereInput
|
|
/**
|
|
* Limit how many KnowledgeBaseArticleUpvotes to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* KnowledgeBaseArticleUpvotes without action
|
|
*/
|
|
export type KnowledgeBaseArticleUpvotesDefaultArgs<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
|
|
}
|