Refactor Study Desk application structure
This commit is contained in:
parent
faaccf8a7e
commit
089439ed90
145 changed files with 8087 additions and 3412 deletions
|
|
@ -42,6 +42,7 @@ export type QuizAttemptMinAggregateOutputType = {
|
|||
score: number | null
|
||||
maxScore: number | null
|
||||
answersJson: string | null
|
||||
reviewSnapshotJson: string | null
|
||||
isPartialRetake: boolean | null
|
||||
completedAt: Date | null
|
||||
}
|
||||
|
|
@ -52,6 +53,7 @@ export type QuizAttemptMaxAggregateOutputType = {
|
|||
score: number | null
|
||||
maxScore: number | null
|
||||
answersJson: string | null
|
||||
reviewSnapshotJson: string | null
|
||||
isPartialRetake: boolean | null
|
||||
completedAt: Date | null
|
||||
}
|
||||
|
|
@ -62,6 +64,7 @@ export type QuizAttemptCountAggregateOutputType = {
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: number
|
||||
reviewSnapshotJson: number
|
||||
isPartialRetake: number
|
||||
completedAt: number
|
||||
_all: number
|
||||
|
|
@ -84,6 +87,7 @@ export type QuizAttemptMinAggregateInputType = {
|
|||
score?: true
|
||||
maxScore?: true
|
||||
answersJson?: true
|
||||
reviewSnapshotJson?: true
|
||||
isPartialRetake?: true
|
||||
completedAt?: true
|
||||
}
|
||||
|
|
@ -94,6 +98,7 @@ export type QuizAttemptMaxAggregateInputType = {
|
|||
score?: true
|
||||
maxScore?: true
|
||||
answersJson?: true
|
||||
reviewSnapshotJson?: true
|
||||
isPartialRetake?: true
|
||||
completedAt?: true
|
||||
}
|
||||
|
|
@ -104,6 +109,7 @@ export type QuizAttemptCountAggregateInputType = {
|
|||
score?: true
|
||||
maxScore?: true
|
||||
answersJson?: true
|
||||
reviewSnapshotJson?: true
|
||||
isPartialRetake?: true
|
||||
completedAt?: true
|
||||
_all?: true
|
||||
|
|
@ -201,6 +207,7 @@ export type QuizAttemptGroupByOutputType = {
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: string
|
||||
reviewSnapshotJson: string | null
|
||||
isPartialRetake: boolean
|
||||
completedAt: Date
|
||||
_count: QuizAttemptCountAggregateOutputType | null
|
||||
|
|
@ -234,6 +241,7 @@ export type QuizAttemptWhereInput = {
|
|||
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<Prisma.QuizSetScalarRelationFilter, Prisma.QuizSetWhereInput>
|
||||
|
|
@ -245,6 +253,7 @@ export type QuizAttemptOrderByWithRelationInput = {
|
|||
score?: Prisma.SortOrder
|
||||
maxScore?: Prisma.SortOrder
|
||||
answersJson?: Prisma.SortOrder
|
||||
reviewSnapshotJson?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isPartialRetake?: Prisma.SortOrder
|
||||
completedAt?: Prisma.SortOrder
|
||||
quizSet?: Prisma.QuizSetOrderByWithRelationInput
|
||||
|
|
@ -259,6 +268,7 @@ export type QuizAttemptWhereUniqueInput = Prisma.AtLeast<{
|
|||
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<Prisma.QuizSetScalarRelationFilter, Prisma.QuizSetWhereInput>
|
||||
|
|
@ -270,6 +280,7 @@ export type QuizAttemptOrderByWithAggregationInput = {
|
|||
score?: Prisma.SortOrder
|
||||
maxScore?: Prisma.SortOrder
|
||||
answersJson?: Prisma.SortOrder
|
||||
reviewSnapshotJson?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
isPartialRetake?: Prisma.SortOrder
|
||||
completedAt?: Prisma.SortOrder
|
||||
_count?: Prisma.QuizAttemptCountOrderByAggregateInput
|
||||
|
|
@ -288,6 +299,7 @@ export type QuizAttemptScalarWhereWithAggregatesInput = {
|
|||
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
|
||||
}
|
||||
|
|
@ -297,6 +309,7 @@ export type QuizAttemptCreateInput = {
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: string
|
||||
reviewSnapshotJson?: string | null
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: Date | string
|
||||
quizSet: Prisma.QuizSetCreateNestedOneWithoutAttemptsInput
|
||||
|
|
@ -308,6 +321,7 @@ export type QuizAttemptUncheckedCreateInput = {
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: string
|
||||
reviewSnapshotJson?: string | null
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: Date | string
|
||||
}
|
||||
|
|
@ -317,6 +331,7 @@ export type QuizAttemptUpdateInput = {
|
|||
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
|
||||
|
|
@ -328,6 +343,7 @@ export type QuizAttemptUncheckedUpdateInput = {
|
|||
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
|
||||
}
|
||||
|
|
@ -338,6 +354,7 @@ export type QuizAttemptCreateManyInput = {
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: string
|
||||
reviewSnapshotJson?: string | null
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: Date | string
|
||||
}
|
||||
|
|
@ -347,6 +364,7 @@ export type QuizAttemptUpdateManyMutationInput = {
|
|||
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
|
||||
}
|
||||
|
|
@ -357,6 +375,7 @@ export type QuizAttemptUncheckedUpdateManyInput = {
|
|||
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
|
||||
}
|
||||
|
|
@ -377,6 +396,7 @@ export type QuizAttemptCountOrderByAggregateInput = {
|
|||
score?: Prisma.SortOrder
|
||||
maxScore?: Prisma.SortOrder
|
||||
answersJson?: Prisma.SortOrder
|
||||
reviewSnapshotJson?: Prisma.SortOrder
|
||||
isPartialRetake?: Prisma.SortOrder
|
||||
completedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
|
@ -392,6 +412,7 @@ export type QuizAttemptMaxOrderByAggregateInput = {
|
|||
score?: Prisma.SortOrder
|
||||
maxScore?: Prisma.SortOrder
|
||||
answersJson?: Prisma.SortOrder
|
||||
reviewSnapshotJson?: Prisma.SortOrder
|
||||
isPartialRetake?: Prisma.SortOrder
|
||||
completedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
|
@ -402,6 +423,7 @@ export type QuizAttemptMinOrderByAggregateInput = {
|
|||
score?: Prisma.SortOrder
|
||||
maxScore?: Prisma.SortOrder
|
||||
answersJson?: Prisma.SortOrder
|
||||
reviewSnapshotJson?: Prisma.SortOrder
|
||||
isPartialRetake?: Prisma.SortOrder
|
||||
completedAt?: Prisma.SortOrder
|
||||
}
|
||||
|
|
@ -466,6 +488,7 @@ export type QuizAttemptCreateWithoutQuizSetInput = {
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: string
|
||||
reviewSnapshotJson?: string | null
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: Date | string
|
||||
}
|
||||
|
|
@ -475,6 +498,7 @@ export type QuizAttemptUncheckedCreateWithoutQuizSetInput = {
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: string
|
||||
reviewSnapshotJson?: string | null
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: Date | string
|
||||
}
|
||||
|
|
@ -513,6 +537,7 @@ export type QuizAttemptScalarWhereInput = {
|
|||
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
|
||||
}
|
||||
|
|
@ -522,6 +547,7 @@ export type QuizAttemptCreateManyQuizSetInput = {
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: string
|
||||
reviewSnapshotJson?: string | null
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: Date | string
|
||||
}
|
||||
|
|
@ -531,6 +557,7 @@ export type QuizAttemptUpdateWithoutQuizSetInput = {
|
|||
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
|
||||
}
|
||||
|
|
@ -540,6 +567,7 @@ export type QuizAttemptUncheckedUpdateWithoutQuizSetInput = {
|
|||
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
|
||||
}
|
||||
|
|
@ -549,6 +577,7 @@ export type QuizAttemptUncheckedUpdateManyWithoutQuizSetInput = {
|
|||
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
|
||||
}
|
||||
|
|
@ -561,6 +590,7 @@ export type QuizAttemptSelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||
score?: boolean
|
||||
maxScore?: boolean
|
||||
answersJson?: boolean
|
||||
reviewSnapshotJson?: boolean
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: boolean
|
||||
quizSet?: boolean | Prisma.QuizSetDefaultArgs<ExtArgs>
|
||||
|
|
@ -572,6 +602,7 @@ export type QuizAttemptSelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
|
|||
score?: boolean
|
||||
maxScore?: boolean
|
||||
answersJson?: boolean
|
||||
reviewSnapshotJson?: boolean
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: boolean
|
||||
quizSet?: boolean | Prisma.QuizSetDefaultArgs<ExtArgs>
|
||||
|
|
@ -583,6 +614,7 @@ export type QuizAttemptSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
|
|||
score?: boolean
|
||||
maxScore?: boolean
|
||||
answersJson?: boolean
|
||||
reviewSnapshotJson?: boolean
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: boolean
|
||||
quizSet?: boolean | Prisma.QuizSetDefaultArgs<ExtArgs>
|
||||
|
|
@ -594,11 +626,12 @@ export type QuizAttemptSelectScalar = {
|
|||
score?: boolean
|
||||
maxScore?: boolean
|
||||
answersJson?: boolean
|
||||
reviewSnapshotJson?: boolean
|
||||
isPartialRetake?: boolean
|
||||
completedAt?: boolean
|
||||
}
|
||||
|
||||
export type QuizAttemptOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quizSetId" | "score" | "maxScore" | "answersJson" | "isPartialRetake" | "completedAt", ExtArgs["result"]["quizAttempt"]>
|
||||
export type QuizAttemptOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quizSetId" | "score" | "maxScore" | "answersJson" | "reviewSnapshotJson" | "isPartialRetake" | "completedAt", ExtArgs["result"]["quizAttempt"]>
|
||||
export type QuizAttemptInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
quizSet?: boolean | Prisma.QuizSetDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
|
@ -620,6 +653,7 @@ export type $QuizAttemptPayload<ExtArgs extends runtime.Types.Extensions.Interna
|
|||
score: number
|
||||
maxScore: number
|
||||
answersJson: string
|
||||
reviewSnapshotJson: string | null
|
||||
isPartialRetake: boolean
|
||||
completedAt: Date
|
||||
}, ExtArgs["result"]["quizAttempt"]>
|
||||
|
|
@ -1051,6 +1085,7 @@ export interface QuizAttemptFieldRefs {
|
|||
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'>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue