/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateSessionFeedback]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type SessionFeedbackGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof SessionFeedbackGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 } 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 }, "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[] connectOrCreate?: Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput | Prisma.SessionFeedbackCreateOrConnectWithoutExerciseLogInput[] createMany?: Prisma.SessionFeedbackCreateManyExerciseLogInputEnvelope connect?: Prisma.SessionFeedbackWhereUniqueInput | Prisma.SessionFeedbackWhereUniqueInput[] } export type SessionFeedbackUncheckedCreateNestedManyWithoutExerciseLogInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type SessionFeedbackCreateManyExerciseLogInputEnvelope = { data: Prisma.SessionFeedbackCreateManyExerciseLogInput | Prisma.SessionFeedbackCreateManyExerciseLogInput[] skipDuplicates?: boolean } export type SessionFeedbackUpsertWithWhereUniqueWithoutExerciseLogInput = { where: Prisma.SessionFeedbackWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type SessionFeedbackUpdateWithWhereUniqueWithoutExerciseLogInput = { where: Prisma.SessionFeedbackWhereUniqueInput data: Prisma.XOR } export type SessionFeedbackUpdateManyWithWhereWithoutExerciseLogInput = { where: Prisma.SessionFeedbackScalarWhereInput data: Prisma.XOR } 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 = runtime.Types.Extensions.GetSelect<{ id?: boolean question?: boolean answer?: boolean exerciseLogId?: boolean exerciseLog?: boolean | Prisma.ExerciseLogDefaultArgs }, ExtArgs["result"]["sessionFeedback"]> export type SessionFeedbackSelectScalar = { id?: boolean question?: boolean answer?: boolean exerciseLogId?: boolean } export type SessionFeedbackOmit = runtime.Types.Extensions.GetOmit<"id" | "question" | "answer" | "exerciseLogId", ExtArgs["result"]["sessionFeedback"]> export type SessionFeedbackInclude = { exerciseLog?: boolean | Prisma.ExerciseLogDefaultArgs } export type $SessionFeedbackPayload = { name: "SessionFeedback" objects: { exerciseLog: Prisma.$ExerciseLogPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number question: string answer: string exerciseLogId: number }, ExtArgs["result"]["sessionFeedback"]> composites: {} } export type SessionFeedbackGetPayload = runtime.Types.Result.GetResult export type SessionFeedbackCountArgs = Omit & { select?: SessionFeedbackCountAggregateInputType | true } export interface SessionFeedbackDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.Prisma__SessionFeedbackClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: SessionFeedbackGroupByArgs['orderBy'] } : { orderBy?: SessionFeedbackGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetSessionFeedbackGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" exerciseLog = {}>(args?: Prisma.Subset>): Prisma.Prisma__ExerciseLogClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the 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 = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | null /** * Filter, which SessionFeedback to fetch. */ where: Prisma.SessionFeedbackWhereUniqueInput } /** * SessionFeedback findUniqueOrThrow */ export type SessionFeedbackFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | null /** * Filter, which SessionFeedback to fetch. */ where: Prisma.SessionFeedbackWhereUniqueInput } /** * SessionFeedback findFirst */ export type SessionFeedbackFindFirstArgs = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | 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 = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | 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 = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | 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 = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | null /** * The data needed to create a SessionFeedback. */ data: Prisma.XOR } /** * SessionFeedback createMany */ export type SessionFeedbackCreateManyArgs = { /** * The data used to create many SessionFeedbacks. */ data: Prisma.SessionFeedbackCreateManyInput | Prisma.SessionFeedbackCreateManyInput[] skipDuplicates?: boolean } /** * SessionFeedback update */ export type SessionFeedbackUpdateArgs = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | null /** * The data needed to update a SessionFeedback. */ data: Prisma.XOR /** * Choose, which SessionFeedback to update. */ where: Prisma.SessionFeedbackWhereUniqueInput } /** * SessionFeedback updateMany */ export type SessionFeedbackUpdateManyArgs = { /** * The data used to update SessionFeedbacks. */ data: Prisma.XOR /** * Filter which SessionFeedbacks to update */ where?: Prisma.SessionFeedbackWhereInput /** * Limit how many SessionFeedbacks to update. */ limit?: number } /** * SessionFeedback upsert */ export type SessionFeedbackUpsertArgs = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | 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 /** * In case the SessionFeedback was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * SessionFeedback delete */ export type SessionFeedbackDeleteArgs = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | null /** * Filter which SessionFeedback to delete. */ where: Prisma.SessionFeedbackWhereUniqueInput } /** * SessionFeedback deleteMany */ export type SessionFeedbackDeleteManyArgs = { /** * Filter which SessionFeedbacks to delete */ where?: Prisma.SessionFeedbackWhereInput /** * Limit how many SessionFeedbacks to delete. */ limit?: number } /** * SessionFeedback without action */ export type SessionFeedbackDefaultArgs = { /** * Select specific fields to fetch from the SessionFeedback */ select?: Prisma.SessionFeedbackSelect | null /** * Omit specific fields from the SessionFeedback */ omit?: Prisma.SessionFeedbackOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SessionFeedbackInclude | null }