/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `QuizAttempt` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model QuizAttempt * */ export type QuizAttemptModel = runtime.Types.Result.DefaultSelection export type AggregateQuizAttempt = { _count: QuizAttemptCountAggregateOutputType | null _avg: QuizAttemptAvgAggregateOutputType | null _sum: QuizAttemptSumAggregateOutputType | null _min: QuizAttemptMinAggregateOutputType | null _max: QuizAttemptMaxAggregateOutputType | null } export type QuizAttemptAvgAggregateOutputType = { score: number | null maxScore: number | null } export type QuizAttemptSumAggregateOutputType = { score: number | null maxScore: number | null } export type QuizAttemptMinAggregateOutputType = { id: string | null quizSetId: string | null score: number | null maxScore: number | null answersJson: string | null reviewSnapshotJson: string | null isPartialRetake: boolean | null completedAt: Date | null } export type QuizAttemptMaxAggregateOutputType = { id: string | null quizSetId: string | null score: number | null maxScore: number | null answersJson: string | null reviewSnapshotJson: string | null isPartialRetake: boolean | null completedAt: Date | null } export type QuizAttemptCountAggregateOutputType = { id: number quizSetId: number score: number maxScore: number answersJson: number reviewSnapshotJson: number isPartialRetake: number completedAt: number _all: number } export type QuizAttemptAvgAggregateInputType = { score?: true maxScore?: true } export type QuizAttemptSumAggregateInputType = { score?: true maxScore?: true } export type QuizAttemptMinAggregateInputType = { id?: true quizSetId?: true score?: true maxScore?: true answersJson?: true reviewSnapshotJson?: true isPartialRetake?: true completedAt?: true } export type QuizAttemptMaxAggregateInputType = { id?: true quizSetId?: true score?: true maxScore?: true answersJson?: true reviewSnapshotJson?: true isPartialRetake?: true completedAt?: true } export type QuizAttemptCountAggregateInputType = { id?: true quizSetId?: true score?: true maxScore?: true answersJson?: true reviewSnapshotJson?: true isPartialRetake?: true completedAt?: true _all?: true } export type QuizAttemptAggregateArgs = { /** * Filter which QuizAttempt to aggregate. */ where?: Prisma.QuizAttemptWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of QuizAttempts to fetch. */ orderBy?: Prisma.QuizAttemptOrderByWithRelationInput | Prisma.QuizAttemptOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.QuizAttemptWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` QuizAttempts 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` QuizAttempts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned QuizAttempts **/ _count?: true | QuizAttemptCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: QuizAttemptAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: QuizAttemptSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: QuizAttemptMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: QuizAttemptMaxAggregateInputType } export type GetQuizAttemptAggregateType = { [P in keyof T & keyof AggregateQuizAttempt]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type QuizAttemptGroupByArgs = { where?: Prisma.QuizAttemptWhereInput orderBy?: Prisma.QuizAttemptOrderByWithAggregationInput | Prisma.QuizAttemptOrderByWithAggregationInput[] by: Prisma.QuizAttemptScalarFieldEnum[] | Prisma.QuizAttemptScalarFieldEnum having?: Prisma.QuizAttemptScalarWhereWithAggregatesInput take?: number skip?: number _count?: QuizAttemptCountAggregateInputType | true _avg?: QuizAttemptAvgAggregateInputType _sum?: QuizAttemptSumAggregateInputType _min?: QuizAttemptMinAggregateInputType _max?: QuizAttemptMaxAggregateInputType } export type QuizAttemptGroupByOutputType = { id: string quizSetId: string score: number maxScore: number answersJson: string reviewSnapshotJson: string | null isPartialRetake: boolean completedAt: Date _count: QuizAttemptCountAggregateOutputType | null _avg: QuizAttemptAvgAggregateOutputType | null _sum: QuizAttemptSumAggregateOutputType | null _min: QuizAttemptMinAggregateOutputType | null _max: QuizAttemptMaxAggregateOutputType | null } export type GetQuizAttemptGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof QuizAttemptGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type QuizAttemptWhereInput = { AND?: Prisma.QuizAttemptWhereInput | Prisma.QuizAttemptWhereInput[] OR?: Prisma.QuizAttemptWhereInput[] NOT?: Prisma.QuizAttemptWhereInput | Prisma.QuizAttemptWhereInput[] id?: Prisma.StringFilter<"QuizAttempt"> | string quizSetId?: Prisma.StringFilter<"QuizAttempt"> | string score?: Prisma.FloatFilter<"QuizAttempt"> | number maxScore?: Prisma.IntFilter<"QuizAttempt"> | number answersJson?: Prisma.StringFilter<"QuizAttempt"> | string reviewSnapshotJson?: Prisma.StringNullableFilter<"QuizAttempt"> | string | null isPartialRetake?: Prisma.BoolFilter<"QuizAttempt"> | boolean completedAt?: Prisma.DateTimeFilter<"QuizAttempt"> | Date | string quizSet?: Prisma.XOR } export type QuizAttemptOrderByWithRelationInput = { id?: Prisma.SortOrder quizSetId?: Prisma.SortOrder score?: Prisma.SortOrder maxScore?: Prisma.SortOrder answersJson?: Prisma.SortOrder reviewSnapshotJson?: Prisma.SortOrderInput | Prisma.SortOrder isPartialRetake?: Prisma.SortOrder completedAt?: Prisma.SortOrder quizSet?: Prisma.QuizSetOrderByWithRelationInput } export type QuizAttemptWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.QuizAttemptWhereInput | Prisma.QuizAttemptWhereInput[] OR?: Prisma.QuizAttemptWhereInput[] NOT?: Prisma.QuizAttemptWhereInput | Prisma.QuizAttemptWhereInput[] quizSetId?: Prisma.StringFilter<"QuizAttempt"> | string score?: Prisma.FloatFilter<"QuizAttempt"> | number maxScore?: Prisma.IntFilter<"QuizAttempt"> | number answersJson?: Prisma.StringFilter<"QuizAttempt"> | string reviewSnapshotJson?: Prisma.StringNullableFilter<"QuizAttempt"> | string | null isPartialRetake?: Prisma.BoolFilter<"QuizAttempt"> | boolean completedAt?: Prisma.DateTimeFilter<"QuizAttempt"> | Date | string quizSet?: Prisma.XOR }, "id"> export type QuizAttemptOrderByWithAggregationInput = { id?: Prisma.SortOrder quizSetId?: Prisma.SortOrder score?: Prisma.SortOrder maxScore?: Prisma.SortOrder answersJson?: Prisma.SortOrder reviewSnapshotJson?: Prisma.SortOrderInput | Prisma.SortOrder isPartialRetake?: Prisma.SortOrder completedAt?: Prisma.SortOrder _count?: Prisma.QuizAttemptCountOrderByAggregateInput _avg?: Prisma.QuizAttemptAvgOrderByAggregateInput _max?: Prisma.QuizAttemptMaxOrderByAggregateInput _min?: Prisma.QuizAttemptMinOrderByAggregateInput _sum?: Prisma.QuizAttemptSumOrderByAggregateInput } export type QuizAttemptScalarWhereWithAggregatesInput = { AND?: Prisma.QuizAttemptScalarWhereWithAggregatesInput | Prisma.QuizAttemptScalarWhereWithAggregatesInput[] OR?: Prisma.QuizAttemptScalarWhereWithAggregatesInput[] NOT?: Prisma.QuizAttemptScalarWhereWithAggregatesInput | Prisma.QuizAttemptScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"QuizAttempt"> | string quizSetId?: Prisma.StringWithAggregatesFilter<"QuizAttempt"> | string score?: Prisma.FloatWithAggregatesFilter<"QuizAttempt"> | number maxScore?: Prisma.IntWithAggregatesFilter<"QuizAttempt"> | number answersJson?: Prisma.StringWithAggregatesFilter<"QuizAttempt"> | string reviewSnapshotJson?: Prisma.StringNullableWithAggregatesFilter<"QuizAttempt"> | string | null isPartialRetake?: Prisma.BoolWithAggregatesFilter<"QuizAttempt"> | boolean completedAt?: Prisma.DateTimeWithAggregatesFilter<"QuizAttempt"> | Date | string } export type QuizAttemptCreateInput = { id?: string score: number maxScore: number answersJson: string reviewSnapshotJson?: string | null isPartialRetake?: boolean completedAt?: Date | string quizSet: Prisma.QuizSetCreateNestedOneWithoutAttemptsInput } export type QuizAttemptUncheckedCreateInput = { id?: string quizSetId: string score: number maxScore: number answersJson: string reviewSnapshotJson?: string | null isPartialRetake?: boolean completedAt?: Date | string } export type QuizAttemptUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string score?: Prisma.FloatFieldUpdateOperationsInput | number maxScore?: Prisma.IntFieldUpdateOperationsInput | number answersJson?: Prisma.StringFieldUpdateOperationsInput | string reviewSnapshotJson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isPartialRetake?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string quizSet?: Prisma.QuizSetUpdateOneRequiredWithoutAttemptsNestedInput } export type QuizAttemptUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string quizSetId?: Prisma.StringFieldUpdateOperationsInput | string score?: Prisma.FloatFieldUpdateOperationsInput | number maxScore?: Prisma.IntFieldUpdateOperationsInput | number answersJson?: Prisma.StringFieldUpdateOperationsInput | string reviewSnapshotJson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isPartialRetake?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type QuizAttemptCreateManyInput = { id?: string quizSetId: string score: number maxScore: number answersJson: string reviewSnapshotJson?: string | null isPartialRetake?: boolean completedAt?: Date | string } export type QuizAttemptUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string score?: Prisma.FloatFieldUpdateOperationsInput | number maxScore?: Prisma.IntFieldUpdateOperationsInput | number answersJson?: Prisma.StringFieldUpdateOperationsInput | string reviewSnapshotJson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isPartialRetake?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type QuizAttemptUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string quizSetId?: Prisma.StringFieldUpdateOperationsInput | string score?: Prisma.FloatFieldUpdateOperationsInput | number maxScore?: Prisma.IntFieldUpdateOperationsInput | number answersJson?: Prisma.StringFieldUpdateOperationsInput | string reviewSnapshotJson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isPartialRetake?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type QuizAttemptListRelationFilter = { every?: Prisma.QuizAttemptWhereInput some?: Prisma.QuizAttemptWhereInput none?: Prisma.QuizAttemptWhereInput } export type QuizAttemptOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type QuizAttemptCountOrderByAggregateInput = { id?: Prisma.SortOrder quizSetId?: Prisma.SortOrder score?: Prisma.SortOrder maxScore?: Prisma.SortOrder answersJson?: Prisma.SortOrder reviewSnapshotJson?: Prisma.SortOrder isPartialRetake?: Prisma.SortOrder completedAt?: Prisma.SortOrder } export type QuizAttemptAvgOrderByAggregateInput = { score?: Prisma.SortOrder maxScore?: Prisma.SortOrder } export type QuizAttemptMaxOrderByAggregateInput = { id?: Prisma.SortOrder quizSetId?: Prisma.SortOrder score?: Prisma.SortOrder maxScore?: Prisma.SortOrder answersJson?: Prisma.SortOrder reviewSnapshotJson?: Prisma.SortOrder isPartialRetake?: Prisma.SortOrder completedAt?: Prisma.SortOrder } export type QuizAttemptMinOrderByAggregateInput = { id?: Prisma.SortOrder quizSetId?: Prisma.SortOrder score?: Prisma.SortOrder maxScore?: Prisma.SortOrder answersJson?: Prisma.SortOrder reviewSnapshotJson?: Prisma.SortOrder isPartialRetake?: Prisma.SortOrder completedAt?: Prisma.SortOrder } export type QuizAttemptSumOrderByAggregateInput = { score?: Prisma.SortOrder maxScore?: Prisma.SortOrder } export type QuizAttemptCreateNestedManyWithoutQuizSetInput = { create?: Prisma.XOR | Prisma.QuizAttemptCreateWithoutQuizSetInput[] | Prisma.QuizAttemptUncheckedCreateWithoutQuizSetInput[] connectOrCreate?: Prisma.QuizAttemptCreateOrConnectWithoutQuizSetInput | Prisma.QuizAttemptCreateOrConnectWithoutQuizSetInput[] createMany?: Prisma.QuizAttemptCreateManyQuizSetInputEnvelope connect?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] } export type QuizAttemptUncheckedCreateNestedManyWithoutQuizSetInput = { create?: Prisma.XOR | Prisma.QuizAttemptCreateWithoutQuizSetInput[] | Prisma.QuizAttemptUncheckedCreateWithoutQuizSetInput[] connectOrCreate?: Prisma.QuizAttemptCreateOrConnectWithoutQuizSetInput | Prisma.QuizAttemptCreateOrConnectWithoutQuizSetInput[] createMany?: Prisma.QuizAttemptCreateManyQuizSetInputEnvelope connect?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] } export type QuizAttemptUpdateManyWithoutQuizSetNestedInput = { create?: Prisma.XOR | Prisma.QuizAttemptCreateWithoutQuizSetInput[] | Prisma.QuizAttemptUncheckedCreateWithoutQuizSetInput[] connectOrCreate?: Prisma.QuizAttemptCreateOrConnectWithoutQuizSetInput | Prisma.QuizAttemptCreateOrConnectWithoutQuizSetInput[] upsert?: Prisma.QuizAttemptUpsertWithWhereUniqueWithoutQuizSetInput | Prisma.QuizAttemptUpsertWithWhereUniqueWithoutQuizSetInput[] createMany?: Prisma.QuizAttemptCreateManyQuizSetInputEnvelope set?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] disconnect?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] delete?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] connect?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] update?: Prisma.QuizAttemptUpdateWithWhereUniqueWithoutQuizSetInput | Prisma.QuizAttemptUpdateWithWhereUniqueWithoutQuizSetInput[] updateMany?: Prisma.QuizAttemptUpdateManyWithWhereWithoutQuizSetInput | Prisma.QuizAttemptUpdateManyWithWhereWithoutQuizSetInput[] deleteMany?: Prisma.QuizAttemptScalarWhereInput | Prisma.QuizAttemptScalarWhereInput[] } export type QuizAttemptUncheckedUpdateManyWithoutQuizSetNestedInput = { create?: Prisma.XOR | Prisma.QuizAttemptCreateWithoutQuizSetInput[] | Prisma.QuizAttemptUncheckedCreateWithoutQuizSetInput[] connectOrCreate?: Prisma.QuizAttemptCreateOrConnectWithoutQuizSetInput | Prisma.QuizAttemptCreateOrConnectWithoutQuizSetInput[] upsert?: Prisma.QuizAttemptUpsertWithWhereUniqueWithoutQuizSetInput | Prisma.QuizAttemptUpsertWithWhereUniqueWithoutQuizSetInput[] createMany?: Prisma.QuizAttemptCreateManyQuizSetInputEnvelope set?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] disconnect?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] delete?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] connect?: Prisma.QuizAttemptWhereUniqueInput | Prisma.QuizAttemptWhereUniqueInput[] update?: Prisma.QuizAttemptUpdateWithWhereUniqueWithoutQuizSetInput | Prisma.QuizAttemptUpdateWithWhereUniqueWithoutQuizSetInput[] updateMany?: Prisma.QuizAttemptUpdateManyWithWhereWithoutQuizSetInput | Prisma.QuizAttemptUpdateManyWithWhereWithoutQuizSetInput[] deleteMany?: Prisma.QuizAttemptScalarWhereInput | Prisma.QuizAttemptScalarWhereInput[] } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type QuizAttemptCreateWithoutQuizSetInput = { id?: string score: number maxScore: number answersJson: string reviewSnapshotJson?: string | null isPartialRetake?: boolean completedAt?: Date | string } export type QuizAttemptUncheckedCreateWithoutQuizSetInput = { id?: string score: number maxScore: number answersJson: string reviewSnapshotJson?: string | null isPartialRetake?: boolean completedAt?: Date | string } export type QuizAttemptCreateOrConnectWithoutQuizSetInput = { where: Prisma.QuizAttemptWhereUniqueInput create: Prisma.XOR } export type QuizAttemptCreateManyQuizSetInputEnvelope = { data: Prisma.QuizAttemptCreateManyQuizSetInput | Prisma.QuizAttemptCreateManyQuizSetInput[] } export type QuizAttemptUpsertWithWhereUniqueWithoutQuizSetInput = { where: Prisma.QuizAttemptWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type QuizAttemptUpdateWithWhereUniqueWithoutQuizSetInput = { where: Prisma.QuizAttemptWhereUniqueInput data: Prisma.XOR } export type QuizAttemptUpdateManyWithWhereWithoutQuizSetInput = { where: Prisma.QuizAttemptScalarWhereInput data: Prisma.XOR } export type QuizAttemptScalarWhereInput = { AND?: Prisma.QuizAttemptScalarWhereInput | Prisma.QuizAttemptScalarWhereInput[] OR?: Prisma.QuizAttemptScalarWhereInput[] NOT?: Prisma.QuizAttemptScalarWhereInput | Prisma.QuizAttemptScalarWhereInput[] id?: Prisma.StringFilter<"QuizAttempt"> | string quizSetId?: Prisma.StringFilter<"QuizAttempt"> | string score?: Prisma.FloatFilter<"QuizAttempt"> | number maxScore?: Prisma.IntFilter<"QuizAttempt"> | number answersJson?: Prisma.StringFilter<"QuizAttempt"> | string reviewSnapshotJson?: Prisma.StringNullableFilter<"QuizAttempt"> | string | null isPartialRetake?: Prisma.BoolFilter<"QuizAttempt"> | boolean completedAt?: Prisma.DateTimeFilter<"QuizAttempt"> | Date | string } export type QuizAttemptCreateManyQuizSetInput = { id?: string score: number maxScore: number answersJson: string reviewSnapshotJson?: string | null isPartialRetake?: boolean completedAt?: Date | string } export type QuizAttemptUpdateWithoutQuizSetInput = { id?: Prisma.StringFieldUpdateOperationsInput | string score?: Prisma.FloatFieldUpdateOperationsInput | number maxScore?: Prisma.IntFieldUpdateOperationsInput | number answersJson?: Prisma.StringFieldUpdateOperationsInput | string reviewSnapshotJson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isPartialRetake?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type QuizAttemptUncheckedUpdateWithoutQuizSetInput = { id?: Prisma.StringFieldUpdateOperationsInput | string score?: Prisma.FloatFieldUpdateOperationsInput | number maxScore?: Prisma.IntFieldUpdateOperationsInput | number answersJson?: Prisma.StringFieldUpdateOperationsInput | string reviewSnapshotJson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isPartialRetake?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type QuizAttemptUncheckedUpdateManyWithoutQuizSetInput = { id?: Prisma.StringFieldUpdateOperationsInput | string score?: Prisma.FloatFieldUpdateOperationsInput | number maxScore?: Prisma.IntFieldUpdateOperationsInput | number answersJson?: Prisma.StringFieldUpdateOperationsInput | string reviewSnapshotJson?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isPartialRetake?: Prisma.BoolFieldUpdateOperationsInput | boolean completedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type QuizAttemptSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean quizSetId?: boolean score?: boolean maxScore?: boolean answersJson?: boolean reviewSnapshotJson?: boolean isPartialRetake?: boolean completedAt?: boolean quizSet?: boolean | Prisma.QuizSetDefaultArgs }, ExtArgs["result"]["quizAttempt"]> export type QuizAttemptSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean quizSetId?: boolean score?: boolean maxScore?: boolean answersJson?: boolean reviewSnapshotJson?: boolean isPartialRetake?: boolean completedAt?: boolean quizSet?: boolean | Prisma.QuizSetDefaultArgs }, ExtArgs["result"]["quizAttempt"]> export type QuizAttemptSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean quizSetId?: boolean score?: boolean maxScore?: boolean answersJson?: boolean reviewSnapshotJson?: boolean isPartialRetake?: boolean completedAt?: boolean quizSet?: boolean | Prisma.QuizSetDefaultArgs }, ExtArgs["result"]["quizAttempt"]> export type QuizAttemptSelectScalar = { id?: boolean quizSetId?: boolean score?: boolean maxScore?: boolean answersJson?: boolean reviewSnapshotJson?: boolean isPartialRetake?: boolean completedAt?: boolean } export type QuizAttemptOmit = runtime.Types.Extensions.GetOmit<"id" | "quizSetId" | "score" | "maxScore" | "answersJson" | "reviewSnapshotJson" | "isPartialRetake" | "completedAt", ExtArgs["result"]["quizAttempt"]> export type QuizAttemptInclude = { quizSet?: boolean | Prisma.QuizSetDefaultArgs } export type QuizAttemptIncludeCreateManyAndReturn = { quizSet?: boolean | Prisma.QuizSetDefaultArgs } export type QuizAttemptIncludeUpdateManyAndReturn = { quizSet?: boolean | Prisma.QuizSetDefaultArgs } export type $QuizAttemptPayload = { name: "QuizAttempt" objects: { quizSet: Prisma.$QuizSetPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string quizSetId: string score: number maxScore: number answersJson: string reviewSnapshotJson: string | null isPartialRetake: boolean completedAt: Date }, ExtArgs["result"]["quizAttempt"]> composites: {} } export type QuizAttemptGetPayload = runtime.Types.Result.GetResult export type QuizAttemptCountArgs = Omit & { select?: QuizAttemptCountAggregateInputType | true } export interface QuizAttemptDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['QuizAttempt'], meta: { name: 'QuizAttempt' } } /** * Find zero or one QuizAttempt that matches the filter. * @param {QuizAttemptFindUniqueArgs} args - Arguments to find a QuizAttempt * @example * // Get one QuizAttempt * const quizAttempt = await prisma.quizAttempt.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__QuizAttemptClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one QuizAttempt that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {QuizAttemptFindUniqueOrThrowArgs} args - Arguments to find a QuizAttempt * @example * // Get one QuizAttempt * const quizAttempt = await prisma.quizAttempt.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__QuizAttemptClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first QuizAttempt 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 {QuizAttemptFindFirstArgs} args - Arguments to find a QuizAttempt * @example * // Get one QuizAttempt * const quizAttempt = await prisma.quizAttempt.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__QuizAttemptClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first QuizAttempt 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 {QuizAttemptFindFirstOrThrowArgs} args - Arguments to find a QuizAttempt * @example * // Get one QuizAttempt * const quizAttempt = await prisma.quizAttempt.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__QuizAttemptClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more QuizAttempts 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 {QuizAttemptFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all QuizAttempts * const quizAttempts = await prisma.quizAttempt.findMany() * * // Get first 10 QuizAttempts * const quizAttempts = await prisma.quizAttempt.findMany({ take: 10 }) * * // Only select the `id` * const quizAttemptWithIdOnly = await prisma.quizAttempt.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a QuizAttempt. * @param {QuizAttemptCreateArgs} args - Arguments to create a QuizAttempt. * @example * // Create one QuizAttempt * const QuizAttempt = await prisma.quizAttempt.create({ * data: { * // ... data to create a QuizAttempt * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__QuizAttemptClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many QuizAttempts. * @param {QuizAttemptCreateManyArgs} args - Arguments to create many QuizAttempts. * @example * // Create many QuizAttempts * const quizAttempt = await prisma.quizAttempt.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many QuizAttempts and returns the data saved in the database. * @param {QuizAttemptCreateManyAndReturnArgs} args - Arguments to create many QuizAttempts. * @example * // Create many QuizAttempts * const quizAttempt = await prisma.quizAttempt.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many QuizAttempts and only return the `id` * const quizAttemptWithIdOnly = await prisma.quizAttempt.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a QuizAttempt. * @param {QuizAttemptDeleteArgs} args - Arguments to delete one QuizAttempt. * @example * // Delete one QuizAttempt * const QuizAttempt = await prisma.quizAttempt.delete({ * where: { * // ... filter to delete one QuizAttempt * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__QuizAttemptClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one QuizAttempt. * @param {QuizAttemptUpdateArgs} args - Arguments to update one QuizAttempt. * @example * // Update one QuizAttempt * const quizAttempt = await prisma.quizAttempt.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__QuizAttemptClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more QuizAttempts. * @param {QuizAttemptDeleteManyArgs} args - Arguments to filter QuizAttempts to delete. * @example * // Delete a few QuizAttempts * const { count } = await prisma.quizAttempt.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more QuizAttempts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {QuizAttemptUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many QuizAttempts * const quizAttempt = await prisma.quizAttempt.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more QuizAttempts and returns the data updated in the database. * @param {QuizAttemptUpdateManyAndReturnArgs} args - Arguments to update many QuizAttempts. * @example * // Update many QuizAttempts * const quizAttempt = await prisma.quizAttempt.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more QuizAttempts and only return the `id` * const quizAttemptWithIdOnly = await prisma.quizAttempt.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one QuizAttempt. * @param {QuizAttemptUpsertArgs} args - Arguments to update or create a QuizAttempt. * @example * // Update or create a QuizAttempt * const quizAttempt = await prisma.quizAttempt.upsert({ * create: { * // ... data to create a QuizAttempt * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the QuizAttempt we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__QuizAttemptClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of QuizAttempts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {QuizAttemptCountArgs} args - Arguments to filter QuizAttempts to count. * @example * // Count the number of QuizAttempts * const count = await prisma.quizAttempt.count({ * where: { * // ... the filter for the QuizAttempts 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 QuizAttempt. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {QuizAttemptAggregateArgs} 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 QuizAttempt. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {QuizAttemptGroupByArgs} 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 QuizAttemptGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: QuizAttemptGroupByArgs['orderBy'] } : { orderBy?: QuizAttemptGroupByArgs['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 ? GetQuizAttemptGroupByPayload : Prisma.PrismaPromise /** * Fields of the QuizAttempt model */ readonly fields: QuizAttemptFieldRefs; } /** * The delegate class that acts as a "Promise-like" for QuizAttempt. * 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__QuizAttemptClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" quizSet = {}>(args?: Prisma.Subset>): Prisma.Prisma__QuizSetClient, 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 QuizAttempt model */ export interface QuizAttemptFieldRefs { readonly id: Prisma.FieldRef<"QuizAttempt", 'String'> readonly quizSetId: Prisma.FieldRef<"QuizAttempt", 'String'> readonly score: Prisma.FieldRef<"QuizAttempt", 'Float'> readonly maxScore: Prisma.FieldRef<"QuizAttempt", 'Int'> readonly answersJson: Prisma.FieldRef<"QuizAttempt", 'String'> readonly reviewSnapshotJson: Prisma.FieldRef<"QuizAttempt", 'String'> readonly isPartialRetake: Prisma.FieldRef<"QuizAttempt", 'Boolean'> readonly completedAt: Prisma.FieldRef<"QuizAttempt", 'DateTime'> } // Custom InputTypes /** * QuizAttempt findUnique */ export type QuizAttemptFindUniqueArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * Filter, which QuizAttempt to fetch. */ where: Prisma.QuizAttemptWhereUniqueInput } /** * QuizAttempt findUniqueOrThrow */ export type QuizAttemptFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * Filter, which QuizAttempt to fetch. */ where: Prisma.QuizAttemptWhereUniqueInput } /** * QuizAttempt findFirst */ export type QuizAttemptFindFirstArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * Filter, which QuizAttempt to fetch. */ where?: Prisma.QuizAttemptWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of QuizAttempts to fetch. */ orderBy?: Prisma.QuizAttemptOrderByWithRelationInput | Prisma.QuizAttemptOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for QuizAttempts. */ cursor?: Prisma.QuizAttemptWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` QuizAttempts 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` QuizAttempts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of QuizAttempts. */ distinct?: Prisma.QuizAttemptScalarFieldEnum | Prisma.QuizAttemptScalarFieldEnum[] } /** * QuizAttempt findFirstOrThrow */ export type QuizAttemptFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * Filter, which QuizAttempt to fetch. */ where?: Prisma.QuizAttemptWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of QuizAttempts to fetch. */ orderBy?: Prisma.QuizAttemptOrderByWithRelationInput | Prisma.QuizAttemptOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for QuizAttempts. */ cursor?: Prisma.QuizAttemptWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` QuizAttempts 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` QuizAttempts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of QuizAttempts. */ distinct?: Prisma.QuizAttemptScalarFieldEnum | Prisma.QuizAttemptScalarFieldEnum[] } /** * QuizAttempt findMany */ export type QuizAttemptFindManyArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * Filter, which QuizAttempts to fetch. */ where?: Prisma.QuizAttemptWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of QuizAttempts to fetch. */ orderBy?: Prisma.QuizAttemptOrderByWithRelationInput | Prisma.QuizAttemptOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing QuizAttempts. */ cursor?: Prisma.QuizAttemptWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` QuizAttempts 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` QuizAttempts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of QuizAttempts. */ distinct?: Prisma.QuizAttemptScalarFieldEnum | Prisma.QuizAttemptScalarFieldEnum[] } /** * QuizAttempt create */ export type QuizAttemptCreateArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * The data needed to create a QuizAttempt. */ data: Prisma.XOR } /** * QuizAttempt createMany */ export type QuizAttemptCreateManyArgs = { /** * The data used to create many QuizAttempts. */ data: Prisma.QuizAttemptCreateManyInput | Prisma.QuizAttemptCreateManyInput[] } /** * QuizAttempt createManyAndReturn */ export type QuizAttemptCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelectCreateManyAndReturn | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * The data used to create many QuizAttempts. */ data: Prisma.QuizAttemptCreateManyInput | Prisma.QuizAttemptCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptIncludeCreateManyAndReturn | null } /** * QuizAttempt update */ export type QuizAttemptUpdateArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * The data needed to update a QuizAttempt. */ data: Prisma.XOR /** * Choose, which QuizAttempt to update. */ where: Prisma.QuizAttemptWhereUniqueInput } /** * QuizAttempt updateMany */ export type QuizAttemptUpdateManyArgs = { /** * The data used to update QuizAttempts. */ data: Prisma.XOR /** * Filter which QuizAttempts to update */ where?: Prisma.QuizAttemptWhereInput /** * Limit how many QuizAttempts to update. */ limit?: number } /** * QuizAttempt updateManyAndReturn */ export type QuizAttemptUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelectUpdateManyAndReturn | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * The data used to update QuizAttempts. */ data: Prisma.XOR /** * Filter which QuizAttempts to update */ where?: Prisma.QuizAttemptWhereInput /** * Limit how many QuizAttempts to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptIncludeUpdateManyAndReturn | null } /** * QuizAttempt upsert */ export type QuizAttemptUpsertArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * The filter to search for the QuizAttempt to update in case it exists. */ where: Prisma.QuizAttemptWhereUniqueInput /** * In case the QuizAttempt found by the `where` argument doesn't exist, create a new QuizAttempt with this data. */ create: Prisma.XOR /** * In case the QuizAttempt was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * QuizAttempt delete */ export type QuizAttemptDeleteArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null /** * Filter which QuizAttempt to delete. */ where: Prisma.QuizAttemptWhereUniqueInput } /** * QuizAttempt deleteMany */ export type QuizAttemptDeleteManyArgs = { /** * Filter which QuizAttempts to delete */ where?: Prisma.QuizAttemptWhereInput /** * Limit how many QuizAttempts to delete. */ limit?: number } /** * QuizAttempt without action */ export type QuizAttemptDefaultArgs = { /** * Select specific fields to fetch from the QuizAttempt */ select?: Prisma.QuizAttemptSelect | null /** * Omit specific fields from the QuizAttempt */ omit?: Prisma.QuizAttemptOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.QuizAttemptInclude | null }