1236 lines
47 KiB
TypeScript
1236 lines
47 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 `SessionFeedback` 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 SessionFeedback
|
|
*
|
|
*/
|
|
export type SessionFeedbackModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionFeedbackPayload>
|
|
|
|
export type AggregateSessionFeedback = {
|
|
_count: SessionFeedbackCountAggregateOutputType | null
|
|
_avg: SessionFeedbackAvgAggregateOutputType | null
|
|
_sum: SessionFeedbackSumAggregateOutputType | null
|
|
_min: SessionFeedbackMinAggregateOutputType | null
|
|
_max: SessionFeedbackMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SessionFeedbackAvgAggregateOutputType = {
|
|
id: number | null
|
|
exerciseLogId: number | null
|
|
}
|
|
|
|
export type SessionFeedbackSumAggregateOutputType = {
|
|
id: number | null
|
|
exerciseLogId: number | null
|
|
}
|
|
|
|
export type SessionFeedbackMinAggregateOutputType = {
|
|
id: number | null
|
|
question: string | null
|
|
answer: string | null
|
|
exerciseLogId: number | null
|
|
}
|
|
|
|
export type SessionFeedbackMaxAggregateOutputType = {
|
|
id: number | null
|
|
question: string | null
|
|
answer: string | null
|
|
exerciseLogId: number | null
|
|
}
|
|
|
|
export type SessionFeedbackCountAggregateOutputType = {
|
|
id: number
|
|
question: number
|
|
answer: number
|
|
exerciseLogId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SessionFeedbackAvgAggregateInputType = {
|
|
id?: true
|
|
exerciseLogId?: true
|
|
}
|
|
|
|
export type SessionFeedbackSumAggregateInputType = {
|
|
id?: true
|
|
exerciseLogId?: true
|
|
}
|
|
|
|
export type SessionFeedbackMinAggregateInputType = {
|
|
id?: true
|
|
question?: true
|
|
answer?: true
|
|
exerciseLogId?: true
|
|
}
|
|
|
|
export type SessionFeedbackMaxAggregateInputType = {
|
|
id?: true
|
|
question?: true
|
|
answer?: true
|
|
exerciseLogId?: true
|
|
}
|
|
|
|
export type SessionFeedbackCountAggregateInputType = {
|
|
id?: true
|
|
question?: true
|
|
answer?: true
|
|
exerciseLogId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SessionFeedbackAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SessionFeedback to aggregate.
|
|
*/
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SessionFeedbacks to fetch.
|
|
*/
|
|
orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SessionFeedbackWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SessionFeedbacks 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` SessionFeedbacks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SessionFeedbacks
|
|
**/
|
|
_count?: true | SessionFeedbackCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SessionFeedbackAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SessionFeedbackSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SessionFeedbackMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SessionFeedbackMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSessionFeedbackAggregateType<T extends SessionFeedbackAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSessionFeedback]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSessionFeedback[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSessionFeedback[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionFeedbackGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
orderBy?: Prisma.SessionFeedbackOrderByWithAggregationInput | Prisma.SessionFeedbackOrderByWithAggregationInput[]
|
|
by: Prisma.SessionFeedbackScalarFieldEnum[] | Prisma.SessionFeedbackScalarFieldEnum
|
|
having?: Prisma.SessionFeedbackScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SessionFeedbackCountAggregateInputType | true
|
|
_avg?: SessionFeedbackAvgAggregateInputType
|
|
_sum?: SessionFeedbackSumAggregateInputType
|
|
_min?: SessionFeedbackMinAggregateInputType
|
|
_max?: SessionFeedbackMaxAggregateInputType
|
|
}
|
|
|
|
export type SessionFeedbackGroupByOutputType = {
|
|
id: number
|
|
question: string
|
|
answer: string
|
|
exerciseLogId: number
|
|
_count: SessionFeedbackCountAggregateOutputType | null
|
|
_avg: SessionFeedbackAvgAggregateOutputType | null
|
|
_sum: SessionFeedbackSumAggregateOutputType | null
|
|
_min: SessionFeedbackMinAggregateOutputType | null
|
|
_max: SessionFeedbackMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSessionFeedbackGroupByPayload<T extends SessionFeedbackGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SessionFeedbackGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SessionFeedbackGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SessionFeedbackGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SessionFeedbackGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type SessionFeedbackWhereInput = {
|
|
AND?: Prisma.SessionFeedbackWhereInput | Prisma.SessionFeedbackWhereInput[]
|
|
OR?: Prisma.SessionFeedbackWhereInput[]
|
|
NOT?: Prisma.SessionFeedbackWhereInput | Prisma.SessionFeedbackWhereInput[]
|
|
id?: Prisma.IntFilter<"SessionFeedback"> | number
|
|
question?: Prisma.StringFilter<"SessionFeedback"> | string
|
|
answer?: Prisma.StringFilter<"SessionFeedback"> | string
|
|
exerciseLogId?: Prisma.IntFilter<"SessionFeedback"> | number
|
|
exerciseLog?: Prisma.XOR<Prisma.ExerciseLogScalarRelationFilter, Prisma.ExerciseLogWhereInput>
|
|
}
|
|
|
|
export type SessionFeedbackOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
question?: Prisma.SortOrder
|
|
answer?: Prisma.SortOrder
|
|
exerciseLogId?: Prisma.SortOrder
|
|
exerciseLog?: Prisma.ExerciseLogOrderByWithRelationInput
|
|
_relevance?: Prisma.SessionFeedbackOrderByRelevanceInput
|
|
}
|
|
|
|
export type SessionFeedbackWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.SessionFeedbackWhereInput | Prisma.SessionFeedbackWhereInput[]
|
|
OR?: Prisma.SessionFeedbackWhereInput[]
|
|
NOT?: Prisma.SessionFeedbackWhereInput | Prisma.SessionFeedbackWhereInput[]
|
|
question?: Prisma.StringFilter<"SessionFeedback"> | string
|
|
answer?: Prisma.StringFilter<"SessionFeedback"> | string
|
|
exerciseLogId?: Prisma.IntFilter<"SessionFeedback"> | number
|
|
exerciseLog?: Prisma.XOR<Prisma.ExerciseLogScalarRelationFilter, Prisma.ExerciseLogWhereInput>
|
|
}, "id">
|
|
|
|
export type SessionFeedbackOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
question?: Prisma.SortOrder
|
|
answer?: Prisma.SortOrder
|
|
exerciseLogId?: Prisma.SortOrder
|
|
_count?: Prisma.SessionFeedbackCountOrderByAggregateInput
|
|
_avg?: Prisma.SessionFeedbackAvgOrderByAggregateInput
|
|
_max?: Prisma.SessionFeedbackMaxOrderByAggregateInput
|
|
_min?: Prisma.SessionFeedbackMinOrderByAggregateInput
|
|
_sum?: Prisma.SessionFeedbackSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SessionFeedbackScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.SessionFeedbackScalarWhereWithAggregatesInput | Prisma.SessionFeedbackScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SessionFeedbackScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.SessionFeedbackScalarWhereWithAggregatesInput | Prisma.SessionFeedbackScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"SessionFeedback"> | number
|
|
question?: Prisma.StringWithAggregatesFilter<"SessionFeedback"> | string
|
|
answer?: Prisma.StringWithAggregatesFilter<"SessionFeedback"> | string
|
|
exerciseLogId?: Prisma.IntWithAggregatesFilter<"SessionFeedback"> | number
|
|
}
|
|
|
|
export type SessionFeedbackCreateInput = {
|
|
question: string
|
|
answer: string
|
|
exerciseLog: Prisma.ExerciseLogCreateNestedOneWithoutSessionFeedbacksInput
|
|
}
|
|
|
|
export type SessionFeedbackUncheckedCreateInput = {
|
|
id?: number
|
|
question: string
|
|
answer: string
|
|
exerciseLogId: number
|
|
}
|
|
|
|
export type SessionFeedbackUpdateInput = {
|
|
question?: Prisma.StringFieldUpdateOperationsInput | string
|
|
answer?: Prisma.StringFieldUpdateOperationsInput | string
|
|
exerciseLog?: Prisma.ExerciseLogUpdateOneRequiredWithoutSessionFeedbacksNestedInput
|
|
}
|
|
|
|
export type SessionFeedbackUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
question?: Prisma.StringFieldUpdateOperationsInput | string
|
|
answer?: Prisma.StringFieldUpdateOperationsInput | string
|
|
exerciseLogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type SessionFeedbackCreateManyInput = {
|
|
id?: number
|
|
question: string
|
|
answer: string
|
|
exerciseLogId: number
|
|
}
|
|
|
|
export type SessionFeedbackUpdateManyMutationInput = {
|
|
question?: Prisma.StringFieldUpdateOperationsInput | string
|
|
answer?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SessionFeedbackUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
question?: Prisma.StringFieldUpdateOperationsInput | string
|
|
answer?: Prisma.StringFieldUpdateOperationsInput | string
|
|
exerciseLogId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type SessionFeedbackListRelationFilter = {
|
|
every?: Prisma.SessionFeedbackWhereInput
|
|
some?: Prisma.SessionFeedbackWhereInput
|
|
none?: Prisma.SessionFeedbackWhereInput
|
|
}
|
|
|
|
export type SessionFeedbackOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionFeedbackOrderByRelevanceInput = {
|
|
fields: Prisma.SessionFeedbackOrderByRelevanceFieldEnum | Prisma.SessionFeedbackOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type SessionFeedbackCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
question?: Prisma.SortOrder
|
|
answer?: Prisma.SortOrder
|
|
exerciseLogId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionFeedbackAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
exerciseLogId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionFeedbackMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
question?: Prisma.SortOrder
|
|
answer?: Prisma.SortOrder
|
|
exerciseLogId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionFeedbackMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
question?: Prisma.SortOrder
|
|
answer?: Prisma.SortOrder
|
|
exerciseLogId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionFeedbackSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
exerciseLogId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionFeedbackCreateNestedManyWithoutExerciseLogInput = {
|
|
create?: Prisma.XOR<Prisma.SessionFeedbackCreateWithoutExerciseLogInput, Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput> | Prisma.SessionFeedbackCreateWithoutExerciseLogInput[] | Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput[]
|
|
connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[]
|
|
createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope
|
|
connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
}
|
|
|
|
export type SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput = {
|
|
create?: Prisma.XOR<Prisma.SessionFeedbackCreateWithoutExerciseLogInput, Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput> | Prisma.SessionFeedbackCreateWithoutExerciseLogInput[] | Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput[]
|
|
connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[]
|
|
createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope
|
|
connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
}
|
|
|
|
export type SessionFeedbackUpdateManyWithoutExerciseLogNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SessionFeedbackCreateWithoutExerciseLogInput, Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput> | Prisma.SessionFeedbackCreateWithoutExerciseLogInput[] | Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput[]
|
|
connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[]
|
|
upsert?: Prisma.SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput | Prisma.SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput[]
|
|
createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope
|
|
set?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
disconnect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
delete?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
update?: Prisma.SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput | Prisma.SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput[]
|
|
updateMany?: Prisma.SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput | Prisma.SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput[]
|
|
deleteMany?: Prisma.SessionFeedbackScalarWhereInput | Prisma.SessionFeedbackScalarWhereInput[]
|
|
}
|
|
|
|
export type SessionFeedbackUncheckedUpdateManyWithoutExerciseLogNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SessionFeedbackCreateWithoutExerciseLogInput, Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput> | Prisma.SessionFeedbackCreateWithoutExerciseLogInput[] | Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput[]
|
|
connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[]
|
|
upsert?: Prisma.SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput | Prisma.SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput[]
|
|
createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope
|
|
set?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
disconnect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
delete?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[]
|
|
update?: Prisma.SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput | Prisma.SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput[]
|
|
updateMany?: Prisma.SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput | Prisma.SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput[]
|
|
deleteMany?: Prisma.SessionFeedbackScalarWhereInput | Prisma.SessionFeedbackScalarWhereInput[]
|
|
}
|
|
|
|
export type SessionFeedbackCreateWithoutExerciseLogInput = {
|
|
question: string
|
|
answer: string
|
|
}
|
|
|
|
export type SessionFeedbackUncheckedCreateWithoutExerciseLogInput = {
|
|
id?: number
|
|
question: string
|
|
answer: string
|
|
}
|
|
|
|
export type SessionFeedbackCreateOrConnectWithoutExerciseLogInput = {
|
|
where: Prisma.SessionFeedbackWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SessionFeedbackCreateWithoutExerciseLogInput, Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput>
|
|
}
|
|
|
|
export type SessionFeedbackCreateManyExerciseLogInputEnvelope = {
|
|
data: Prisma.SessionFeedbackCreateManyExerciseLogInput | Prisma.SessionFeedbackCreateManyExerciseLogInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput = {
|
|
where: Prisma.SessionFeedbackWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.SessionFeedbackUpdateWithoutExerciseLogInput, Prisma.SessionFeedbackUncheckedUpdateWithoutExerciseLogInput>
|
|
create: Prisma.XOR<Prisma.SessionFeedbackCreateWithoutExerciseLogInput, Prisma.SessionFeedbackUncheckedCreateWithoutExerciseLogInput>
|
|
}
|
|
|
|
export type SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput = {
|
|
where: Prisma.SessionFeedbackWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.SessionFeedbackUpdateWithoutExerciseLogInput, Prisma.SessionFeedbackUncheckedUpdateWithoutExerciseLogInput>
|
|
}
|
|
|
|
export type SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput = {
|
|
where: Prisma.SessionFeedbackScalarWhereInput
|
|
data: Prisma.XOR<Prisma.SessionFeedbackUpdateManyMutationInput, Prisma.SessionFeedbackUncheckedUpdateManyWithoutExerciseLogInput>
|
|
}
|
|
|
|
export type SessionFeedbackScalarWhereInput = {
|
|
AND?: Prisma.SessionFeedbackScalarWhereInput | Prisma.SessionFeedbackScalarWhereInput[]
|
|
OR?: Prisma.SessionFeedbackScalarWhereInput[]
|
|
NOT?: Prisma.SessionFeedbackScalarWhereInput | Prisma.SessionFeedbackScalarWhereInput[]
|
|
id?: Prisma.IntFilter<"SessionFeedback"> | number
|
|
question?: Prisma.StringFilter<"SessionFeedback"> | string
|
|
answer?: Prisma.StringFilter<"SessionFeedback"> | string
|
|
exerciseLogId?: Prisma.IntFilter<"SessionFeedback"> | number
|
|
}
|
|
|
|
export type SessionFeedbackCreateManyExerciseLogInput = {
|
|
id?: number
|
|
question: string
|
|
answer: string
|
|
}
|
|
|
|
export type SessionFeedbackUpdateWithoutExerciseLogInput = {
|
|
question?: Prisma.StringFieldUpdateOperationsInput | string
|
|
answer?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SessionFeedbackUncheckedUpdateWithoutExerciseLogInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
question?: Prisma.StringFieldUpdateOperationsInput | string
|
|
answer?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SessionFeedbackUncheckedUpdateManyWithoutExerciseLogInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
question?: Prisma.StringFieldUpdateOperationsInput | string
|
|
answer?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type SessionFeedbackSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
question?: boolean
|
|
answer?: boolean
|
|
exerciseLogId?: boolean
|
|
exerciseLog?: boolean | Prisma.ExerciseLogDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["sessionFeedback"]>
|
|
|
|
|
|
|
|
export type SessionFeedbackSelectScalar = {
|
|
id?: boolean
|
|
question?: boolean
|
|
answer?: boolean
|
|
exerciseLogId?: boolean
|
|
}
|
|
|
|
export type SessionFeedbackOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "question" | "answer" | "exerciseLogId", ExtArgs["result"]["sessionFeedback"]>
|
|
export type SessionFeedbackInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
exerciseLog?: boolean | Prisma.ExerciseLogDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SessionFeedbackPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "SessionFeedback"
|
|
objects: {
|
|
exerciseLog: Prisma.$ExerciseLogPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
question: string
|
|
answer: string
|
|
exerciseLogId: number
|
|
}, ExtArgs["result"]["sessionFeedback"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type SessionFeedbackGetPayload<S extends boolean | null | undefined | SessionFeedbackDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload, S>
|
|
|
|
export type SessionFeedbackCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<SessionFeedbackFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SessionFeedbackCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SessionFeedbackDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SessionFeedback'], meta: { name: 'SessionFeedback' } }
|
|
/**
|
|
* Find zero or one SessionFeedback that matches the filter.
|
|
* @param {SessionFeedbackFindUniqueArgs} args - Arguments to find a SessionFeedback
|
|
* @example
|
|
* // Get one SessionFeedback
|
|
* const sessionFeedback = await prisma.sessionFeedback.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SessionFeedbackFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionFeedbackFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionFeedbackClient<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one SessionFeedback that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SessionFeedbackFindUniqueOrThrowArgs} args - Arguments to find a SessionFeedback
|
|
* @example
|
|
* // Get one SessionFeedback
|
|
* const sessionFeedback = await prisma.sessionFeedback.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SessionFeedbackFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionFeedbackFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionFeedbackClient<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SessionFeedback 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 {SessionFeedbackFindFirstArgs} args - Arguments to find a SessionFeedback
|
|
* @example
|
|
* // Get one SessionFeedback
|
|
* const sessionFeedback = await prisma.sessionFeedback.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SessionFeedbackFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionFeedbackFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionFeedbackClient<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SessionFeedback 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 {SessionFeedbackFindFirstOrThrowArgs} args - Arguments to find a SessionFeedback
|
|
* @example
|
|
* // Get one SessionFeedback
|
|
* const sessionFeedback = await prisma.sessionFeedback.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SessionFeedbackFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionFeedbackFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionFeedbackClient<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more SessionFeedbacks 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 {SessionFeedbackFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SessionFeedbacks
|
|
* const sessionFeedbacks = await prisma.sessionFeedback.findMany()
|
|
*
|
|
* // Get first 10 SessionFeedbacks
|
|
* const sessionFeedbacks = await prisma.sessionFeedback.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const sessionFeedbackWithIdOnly = await prisma.sessionFeedback.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SessionFeedbackFindManyArgs>(args?: Prisma.SelectSubset<T, SessionFeedbackFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a SessionFeedback.
|
|
* @param {SessionFeedbackCreateArgs} args - Arguments to create a SessionFeedback.
|
|
* @example
|
|
* // Create one SessionFeedback
|
|
* const SessionFeedback = await prisma.sessionFeedback.create({
|
|
* data: {
|
|
* // ... data to create a SessionFeedback
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SessionFeedbackCreateArgs>(args: Prisma.SelectSubset<T, SessionFeedbackCreateArgs<ExtArgs>>): Prisma.Prisma__SessionFeedbackClient<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many SessionFeedbacks.
|
|
* @param {SessionFeedbackCreateManyArgs} args - Arguments to create many SessionFeedbacks.
|
|
* @example
|
|
* // Create many SessionFeedbacks
|
|
* const sessionFeedback = await prisma.sessionFeedback.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SessionFeedbackCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionFeedbackCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a SessionFeedback.
|
|
* @param {SessionFeedbackDeleteArgs} args - Arguments to delete one SessionFeedback.
|
|
* @example
|
|
* // Delete one SessionFeedback
|
|
* const SessionFeedback = await prisma.sessionFeedback.delete({
|
|
* where: {
|
|
* // ... filter to delete one SessionFeedback
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SessionFeedbackDeleteArgs>(args: Prisma.SelectSubset<T, SessionFeedbackDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionFeedbackClient<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one SessionFeedback.
|
|
* @param {SessionFeedbackUpdateArgs} args - Arguments to update one SessionFeedback.
|
|
* @example
|
|
* // Update one SessionFeedback
|
|
* const sessionFeedback = await prisma.sessionFeedback.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SessionFeedbackUpdateArgs>(args: Prisma.SelectSubset<T, SessionFeedbackUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionFeedbackClient<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more SessionFeedbacks.
|
|
* @param {SessionFeedbackDeleteManyArgs} args - Arguments to filter SessionFeedbacks to delete.
|
|
* @example
|
|
* // Delete a few SessionFeedbacks
|
|
* const { count } = await prisma.sessionFeedback.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SessionFeedbackDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionFeedbackDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SessionFeedbacks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionFeedbackUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SessionFeedbacks
|
|
* const sessionFeedback = await prisma.sessionFeedback.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SessionFeedbackUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionFeedbackUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one SessionFeedback.
|
|
* @param {SessionFeedbackUpsertArgs} args - Arguments to update or create a SessionFeedback.
|
|
* @example
|
|
* // Update or create a SessionFeedback
|
|
* const sessionFeedback = await prisma.sessionFeedback.upsert({
|
|
* create: {
|
|
* // ... data to create a SessionFeedback
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SessionFeedback we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SessionFeedbackUpsertArgs>(args: Prisma.SelectSubset<T, SessionFeedbackUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionFeedbackClient<runtime.Types.Result.GetResult<Prisma.$SessionFeedbackPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of SessionFeedbacks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionFeedbackCountArgs} args - Arguments to filter SessionFeedbacks to count.
|
|
* @example
|
|
* // Count the number of SessionFeedbacks
|
|
* const count = await prisma.sessionFeedback.count({
|
|
* where: {
|
|
* // ... the filter for the SessionFeedbacks we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SessionFeedbackCountArgs>(
|
|
args?: Prisma.Subset<T, SessionFeedbackCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SessionFeedbackCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SessionFeedback.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionFeedbackAggregateArgs} 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 SessionFeedbackAggregateArgs>(args: Prisma.Subset<T, SessionFeedbackAggregateArgs>): Prisma.PrismaPromise<GetSessionFeedbackAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SessionFeedback.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionFeedbackGroupByArgs} 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 SessionFeedbackGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SessionFeedbackGroupByArgs['orderBy'] }
|
|
: { orderBy?: SessionFeedbackGroupByArgs['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, SessionFeedbackGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionFeedbackGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SessionFeedback model
|
|
*/
|
|
readonly fields: SessionFeedbackFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SessionFeedback.
|
|
* 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__SessionFeedbackClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
exerciseLog<T extends Prisma.ExerciseLogDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ExerciseLogDefaultArgs<ExtArgs>>): Prisma.Prisma__ExerciseLogClient<runtime.Types.Result.GetResult<Prisma.$ExerciseLogPayload<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 SessionFeedback model
|
|
*/
|
|
export interface SessionFeedbackFieldRefs {
|
|
readonly id: Prisma.FieldRef<"SessionFeedback", 'Int'>
|
|
readonly question: Prisma.FieldRef<"SessionFeedback", 'String'>
|
|
readonly answer: Prisma.FieldRef<"SessionFeedback", 'String'>
|
|
readonly exerciseLogId: Prisma.FieldRef<"SessionFeedback", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SessionFeedback findUnique
|
|
*/
|
|
export type SessionFeedbackFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SessionFeedback to fetch.
|
|
*/
|
|
where: Prisma.SessionFeedbackWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback findUniqueOrThrow
|
|
*/
|
|
export type SessionFeedbackFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SessionFeedback to fetch.
|
|
*/
|
|
where: Prisma.SessionFeedbackWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback findFirst
|
|
*/
|
|
export type SessionFeedbackFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SessionFeedback to fetch.
|
|
*/
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SessionFeedbacks to fetch.
|
|
*/
|
|
orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SessionFeedbacks.
|
|
*/
|
|
cursor?: Prisma.SessionFeedbackWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SessionFeedbacks 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` SessionFeedbacks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SessionFeedbacks.
|
|
*/
|
|
distinct?: Prisma.SessionFeedbackScalarFieldEnum | Prisma.SessionFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback findFirstOrThrow
|
|
*/
|
|
export type SessionFeedbackFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SessionFeedback to fetch.
|
|
*/
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SessionFeedbacks to fetch.
|
|
*/
|
|
orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SessionFeedbacks.
|
|
*/
|
|
cursor?: Prisma.SessionFeedbackWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SessionFeedbacks 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` SessionFeedbacks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SessionFeedbacks.
|
|
*/
|
|
distinct?: Prisma.SessionFeedbackScalarFieldEnum | Prisma.SessionFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback findMany
|
|
*/
|
|
export type SessionFeedbackFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SessionFeedbacks to fetch.
|
|
*/
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SessionFeedbacks to fetch.
|
|
*/
|
|
orderBy?: Prisma.SessionFeedbackOrderByWithRelationInput | Prisma.SessionFeedbackOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SessionFeedbacks.
|
|
*/
|
|
cursor?: Prisma.SessionFeedbackWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SessionFeedbacks 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` SessionFeedbacks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SessionFeedbacks.
|
|
*/
|
|
distinct?: Prisma.SessionFeedbackScalarFieldEnum | Prisma.SessionFeedbackScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback create
|
|
*/
|
|
export type SessionFeedbackCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SessionFeedback.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SessionFeedbackCreateInput, Prisma.SessionFeedbackUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback createMany
|
|
*/
|
|
export type SessionFeedbackCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SessionFeedbacks.
|
|
*/
|
|
data: Prisma.SessionFeedbackCreateManyInput | Prisma.SessionFeedbackCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback update
|
|
*/
|
|
export type SessionFeedbackUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SessionFeedback.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SessionFeedbackUpdateInput, Prisma.SessionFeedbackUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SessionFeedback to update.
|
|
*/
|
|
where: Prisma.SessionFeedbackWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback updateMany
|
|
*/
|
|
export type SessionFeedbackUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SessionFeedbacks.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SessionFeedbackUpdateManyMutationInput, Prisma.SessionFeedbackUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SessionFeedbacks to update
|
|
*/
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
/**
|
|
* Limit how many SessionFeedbacks to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback upsert
|
|
*/
|
|
export type SessionFeedbackUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SessionFeedback to update in case it exists.
|
|
*/
|
|
where: Prisma.SessionFeedbackWhereUniqueInput
|
|
/**
|
|
* In case the SessionFeedback found by the `where` argument doesn't exist, create a new SessionFeedback with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SessionFeedbackCreateInput, Prisma.SessionFeedbackUncheckedCreateInput>
|
|
/**
|
|
* In case the SessionFeedback was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SessionFeedbackUpdateInput, Prisma.SessionFeedbackUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback delete
|
|
*/
|
|
export type SessionFeedbackDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SessionFeedback to delete.
|
|
*/
|
|
where: Prisma.SessionFeedbackWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback deleteMany
|
|
*/
|
|
export type SessionFeedbackDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SessionFeedbacks to delete
|
|
*/
|
|
where?: Prisma.SessionFeedbackWhereInput
|
|
/**
|
|
* Limit how many SessionFeedbacks to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SessionFeedback without action
|
|
*/
|
|
export type SessionFeedbackDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SessionFeedback
|
|
*/
|
|
select?: Prisma.SessionFeedbackSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SessionFeedback
|
|
*/
|
|
omit?: Prisma.SessionFeedbackOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionFeedbackInclude<ExtArgs> | null
|
|
}
|