Implement local browser caching for shared groups and UI improvements
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m10s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m10s
This commit is contained in:
parent
42ed0d275b
commit
7af0935657
37 changed files with 6141 additions and 411 deletions
|
|
@ -218,6 +218,7 @@ export type ClassWhereInput = {
|
|||
createdAt?: Prisma.DateTimeFilter<"Class"> | Date | string
|
||||
decks?: Prisma.DeckListRelationFilter
|
||||
quizSets?: Prisma.QuizSetListRelationFilter
|
||||
materialGroups?: Prisma.MaterialGroupListRelationFilter
|
||||
}
|
||||
|
||||
export type ClassOrderByWithRelationInput = {
|
||||
|
|
@ -228,6 +229,7 @@ export type ClassOrderByWithRelationInput = {
|
|||
createdAt?: Prisma.SortOrder
|
||||
decks?: Prisma.DeckOrderByRelationAggregateInput
|
||||
quizSets?: Prisma.QuizSetOrderByRelationAggregateInput
|
||||
materialGroups?: Prisma.MaterialGroupOrderByRelationAggregateInput
|
||||
}
|
||||
|
||||
export type ClassWhereUniqueInput = Prisma.AtLeast<{
|
||||
|
|
@ -241,6 +243,7 @@ export type ClassWhereUniqueInput = Prisma.AtLeast<{
|
|||
createdAt?: Prisma.DateTimeFilter<"Class"> | Date | string
|
||||
decks?: Prisma.DeckListRelationFilter
|
||||
quizSets?: Prisma.QuizSetListRelationFilter
|
||||
materialGroups?: Prisma.MaterialGroupListRelationFilter
|
||||
}, "id" | "slug">
|
||||
|
||||
export type ClassOrderByWithAggregationInput = {
|
||||
|
|
@ -275,6 +278,7 @@ export type ClassCreateInput = {
|
|||
createdAt?: Date | string
|
||||
decks?: Prisma.DeckCreateNestedManyWithoutClassInput
|
||||
quizSets?: Prisma.QuizSetCreateNestedManyWithoutClassInput
|
||||
materialGroups?: Prisma.MaterialGroupCreateNestedManyWithoutClassInput
|
||||
}
|
||||
|
||||
export type ClassUncheckedCreateInput = {
|
||||
|
|
@ -285,6 +289,7 @@ export type ClassUncheckedCreateInput = {
|
|||
createdAt?: Date | string
|
||||
decks?: Prisma.DeckUncheckedCreateNestedManyWithoutClassInput
|
||||
quizSets?: Prisma.QuizSetUncheckedCreateNestedManyWithoutClassInput
|
||||
materialGroups?: Prisma.MaterialGroupUncheckedCreateNestedManyWithoutClassInput
|
||||
}
|
||||
|
||||
export type ClassUpdateInput = {
|
||||
|
|
@ -295,6 +300,7 @@ export type ClassUpdateInput = {
|
|||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
decks?: Prisma.DeckUpdateManyWithoutClassNestedInput
|
||||
quizSets?: Prisma.QuizSetUpdateManyWithoutClassNestedInput
|
||||
materialGroups?: Prisma.MaterialGroupUpdateManyWithoutClassNestedInput
|
||||
}
|
||||
|
||||
export type ClassUncheckedUpdateInput = {
|
||||
|
|
@ -305,6 +311,7 @@ export type ClassUncheckedUpdateInput = {
|
|||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
decks?: Prisma.DeckUncheckedUpdateManyWithoutClassNestedInput
|
||||
quizSets?: Prisma.QuizSetUncheckedUpdateManyWithoutClassNestedInput
|
||||
materialGroups?: Prisma.MaterialGroupUncheckedUpdateManyWithoutClassNestedInput
|
||||
}
|
||||
|
||||
export type ClassCreateManyInput = {
|
||||
|
|
@ -412,6 +419,20 @@ export type ClassUpdateOneRequiredWithoutQuizSetsNestedInput = {
|
|||
update?: Prisma.XOR<Prisma.XOR<Prisma.ClassUpdateToOneWithWhereWithoutQuizSetsInput, Prisma.ClassUpdateWithoutQuizSetsInput>, Prisma.ClassUncheckedUpdateWithoutQuizSetsInput>
|
||||
}
|
||||
|
||||
export type ClassCreateNestedOneWithoutMaterialGroupsInput = {
|
||||
create?: Prisma.XOR<Prisma.ClassCreateWithoutMaterialGroupsInput, Prisma.ClassUncheckedCreateWithoutMaterialGroupsInput>
|
||||
connectOrCreate?: Prisma.ClassCreateOrConnectWithoutMaterialGroupsInput
|
||||
connect?: Prisma.ClassWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ClassUpdateOneRequiredWithoutMaterialGroupsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ClassCreateWithoutMaterialGroupsInput, Prisma.ClassUncheckedCreateWithoutMaterialGroupsInput>
|
||||
connectOrCreate?: Prisma.ClassCreateOrConnectWithoutMaterialGroupsInput
|
||||
upsert?: Prisma.ClassUpsertWithoutMaterialGroupsInput
|
||||
connect?: Prisma.ClassWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ClassUpdateToOneWithWhereWithoutMaterialGroupsInput, Prisma.ClassUpdateWithoutMaterialGroupsInput>, Prisma.ClassUncheckedUpdateWithoutMaterialGroupsInput>
|
||||
}
|
||||
|
||||
export type ClassCreateWithoutDecksInput = {
|
||||
id?: string
|
||||
slug: string
|
||||
|
|
@ -419,6 +440,7 @@ export type ClassCreateWithoutDecksInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
quizSets?: Prisma.QuizSetCreateNestedManyWithoutClassInput
|
||||
materialGroups?: Prisma.MaterialGroupCreateNestedManyWithoutClassInput
|
||||
}
|
||||
|
||||
export type ClassUncheckedCreateWithoutDecksInput = {
|
||||
|
|
@ -428,6 +450,7 @@ export type ClassUncheckedCreateWithoutDecksInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
quizSets?: Prisma.QuizSetUncheckedCreateNestedManyWithoutClassInput
|
||||
materialGroups?: Prisma.MaterialGroupUncheckedCreateNestedManyWithoutClassInput
|
||||
}
|
||||
|
||||
export type ClassCreateOrConnectWithoutDecksInput = {
|
||||
|
|
@ -453,6 +476,7 @@ export type ClassUpdateWithoutDecksInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
quizSets?: Prisma.QuizSetUpdateManyWithoutClassNestedInput
|
||||
materialGroups?: Prisma.MaterialGroupUpdateManyWithoutClassNestedInput
|
||||
}
|
||||
|
||||
export type ClassUncheckedUpdateWithoutDecksInput = {
|
||||
|
|
@ -462,6 +486,7 @@ export type ClassUncheckedUpdateWithoutDecksInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
quizSets?: Prisma.QuizSetUncheckedUpdateManyWithoutClassNestedInput
|
||||
materialGroups?: Prisma.MaterialGroupUncheckedUpdateManyWithoutClassNestedInput
|
||||
}
|
||||
|
||||
export type ClassCreateWithoutQuizSetsInput = {
|
||||
|
|
@ -471,6 +496,7 @@ export type ClassCreateWithoutQuizSetsInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
decks?: Prisma.DeckCreateNestedManyWithoutClassInput
|
||||
materialGroups?: Prisma.MaterialGroupCreateNestedManyWithoutClassInput
|
||||
}
|
||||
|
||||
export type ClassUncheckedCreateWithoutQuizSetsInput = {
|
||||
|
|
@ -480,6 +506,7 @@ export type ClassUncheckedCreateWithoutQuizSetsInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
decks?: Prisma.DeckUncheckedCreateNestedManyWithoutClassInput
|
||||
materialGroups?: Prisma.MaterialGroupUncheckedCreateNestedManyWithoutClassInput
|
||||
}
|
||||
|
||||
export type ClassCreateOrConnectWithoutQuizSetsInput = {
|
||||
|
|
@ -505,6 +532,7 @@ export type ClassUpdateWithoutQuizSetsInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
decks?: Prisma.DeckUpdateManyWithoutClassNestedInput
|
||||
materialGroups?: Prisma.MaterialGroupUpdateManyWithoutClassNestedInput
|
||||
}
|
||||
|
||||
export type ClassUncheckedUpdateWithoutQuizSetsInput = {
|
||||
|
|
@ -514,6 +542,63 @@ export type ClassUncheckedUpdateWithoutQuizSetsInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
decks?: Prisma.DeckUncheckedUpdateManyWithoutClassNestedInput
|
||||
materialGroups?: Prisma.MaterialGroupUncheckedUpdateManyWithoutClassNestedInput
|
||||
}
|
||||
|
||||
export type ClassCreateWithoutMaterialGroupsInput = {
|
||||
id?: string
|
||||
slug: string
|
||||
name: string
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
decks?: Prisma.DeckCreateNestedManyWithoutClassInput
|
||||
quizSets?: Prisma.QuizSetCreateNestedManyWithoutClassInput
|
||||
}
|
||||
|
||||
export type ClassUncheckedCreateWithoutMaterialGroupsInput = {
|
||||
id?: string
|
||||
slug: string
|
||||
name: string
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
decks?: Prisma.DeckUncheckedCreateNestedManyWithoutClassInput
|
||||
quizSets?: Prisma.QuizSetUncheckedCreateNestedManyWithoutClassInput
|
||||
}
|
||||
|
||||
export type ClassCreateOrConnectWithoutMaterialGroupsInput = {
|
||||
where: Prisma.ClassWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ClassCreateWithoutMaterialGroupsInput, Prisma.ClassUncheckedCreateWithoutMaterialGroupsInput>
|
||||
}
|
||||
|
||||
export type ClassUpsertWithoutMaterialGroupsInput = {
|
||||
update: Prisma.XOR<Prisma.ClassUpdateWithoutMaterialGroupsInput, Prisma.ClassUncheckedUpdateWithoutMaterialGroupsInput>
|
||||
create: Prisma.XOR<Prisma.ClassCreateWithoutMaterialGroupsInput, Prisma.ClassUncheckedCreateWithoutMaterialGroupsInput>
|
||||
where?: Prisma.ClassWhereInput
|
||||
}
|
||||
|
||||
export type ClassUpdateToOneWithWhereWithoutMaterialGroupsInput = {
|
||||
where?: Prisma.ClassWhereInput
|
||||
data: Prisma.XOR<Prisma.ClassUpdateWithoutMaterialGroupsInput, Prisma.ClassUncheckedUpdateWithoutMaterialGroupsInput>
|
||||
}
|
||||
|
||||
export type ClassUpdateWithoutMaterialGroupsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
slug?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
decks?: Prisma.DeckUpdateManyWithoutClassNestedInput
|
||||
quizSets?: Prisma.QuizSetUpdateManyWithoutClassNestedInput
|
||||
}
|
||||
|
||||
export type ClassUncheckedUpdateWithoutMaterialGroupsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
slug?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
decks?: Prisma.DeckUncheckedUpdateManyWithoutClassNestedInput
|
||||
quizSets?: Prisma.QuizSetUncheckedUpdateManyWithoutClassNestedInput
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -524,11 +609,13 @@ export type ClassUncheckedUpdateWithoutQuizSetsInput = {
|
|||
export type ClassCountOutputType = {
|
||||
decks: number
|
||||
quizSets: number
|
||||
materialGroups: number
|
||||
}
|
||||
|
||||
export type ClassCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
decks?: boolean | ClassCountOutputTypeCountDecksArgs
|
||||
quizSets?: boolean | ClassCountOutputTypeCountQuizSetsArgs
|
||||
materialGroups?: boolean | ClassCountOutputTypeCountMaterialGroupsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -555,6 +642,13 @@ export type ClassCountOutputTypeCountQuizSetsArgs<ExtArgs extends runtime.Types.
|
|||
where?: Prisma.QuizSetWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* ClassCountOutputType without action
|
||||
*/
|
||||
export type ClassCountOutputTypeCountMaterialGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.MaterialGroupWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type ClassSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
|
|
@ -564,6 +658,7 @@ export type ClassSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||
createdAt?: boolean
|
||||
decks?: boolean | Prisma.Class$decksArgs<ExtArgs>
|
||||
quizSets?: boolean | Prisma.Class$quizSetsArgs<ExtArgs>
|
||||
materialGroups?: boolean | Prisma.Class$materialGroupsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ClassCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["class"]>
|
||||
|
||||
|
|
@ -595,6 +690,7 @@ export type ClassOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = ru
|
|||
export type ClassInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
decks?: boolean | Prisma.Class$decksArgs<ExtArgs>
|
||||
quizSets?: boolean | Prisma.Class$quizSetsArgs<ExtArgs>
|
||||
materialGroups?: boolean | Prisma.Class$materialGroupsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.ClassCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type ClassIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||
|
|
@ -605,6 +701,7 @@ export type $ClassPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||
objects: {
|
||||
decks: Prisma.$DeckPayload<ExtArgs>[]
|
||||
quizSets: Prisma.$QuizSetPayload<ExtArgs>[]
|
||||
materialGroups: Prisma.$MaterialGroupPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
|
|
@ -1008,6 +1105,7 @@ export interface Prisma__ClassClient<T, Null = never, ExtArgs extends runtime.Ty
|
|||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
decks<T extends Prisma.Class$decksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Class$decksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
quizSets<T extends Prisma.Class$quizSetsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Class$quizSetsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuizSetPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
materialGroups<T extends Prisma.Class$materialGroupsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Class$materialGroupsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MaterialGroupPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
|
|
@ -1480,6 +1578,30 @@ export type Class$quizSetsArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||
distinct?: Prisma.QuizSetScalarFieldEnum | Prisma.QuizSetScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Class.materialGroups
|
||||
*/
|
||||
export type Class$materialGroupsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the MaterialGroup
|
||||
*/
|
||||
select?: Prisma.MaterialGroupSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the MaterialGroup
|
||||
*/
|
||||
omit?: Prisma.MaterialGroupOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.MaterialGroupInclude<ExtArgs> | null
|
||||
where?: Prisma.MaterialGroupWhereInput
|
||||
orderBy?: Prisma.MaterialGroupOrderByWithRelationInput | Prisma.MaterialGroupOrderByWithRelationInput[]
|
||||
cursor?: Prisma.MaterialGroupWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.MaterialGroupScalarFieldEnum | Prisma.MaterialGroupScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Class without action
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ export type DeckMinAggregateOutputType = {
|
|||
description: string | null
|
||||
sortOrder: number | null
|
||||
createdAt: Date | null
|
||||
groupId: string | null
|
||||
}
|
||||
|
||||
export type DeckMaxAggregateOutputType = {
|
||||
|
|
@ -50,6 +51,7 @@ export type DeckMaxAggregateOutputType = {
|
|||
description: string | null
|
||||
sortOrder: number | null
|
||||
createdAt: Date | null
|
||||
groupId: string | null
|
||||
}
|
||||
|
||||
export type DeckCountAggregateOutputType = {
|
||||
|
|
@ -59,6 +61,7 @@ export type DeckCountAggregateOutputType = {
|
|||
description: number
|
||||
sortOrder: number
|
||||
createdAt: number
|
||||
groupId: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
|
@ -78,6 +81,7 @@ export type DeckMinAggregateInputType = {
|
|||
description?: true
|
||||
sortOrder?: true
|
||||
createdAt?: true
|
||||
groupId?: true
|
||||
}
|
||||
|
||||
export type DeckMaxAggregateInputType = {
|
||||
|
|
@ -87,6 +91,7 @@ export type DeckMaxAggregateInputType = {
|
|||
description?: true
|
||||
sortOrder?: true
|
||||
createdAt?: true
|
||||
groupId?: true
|
||||
}
|
||||
|
||||
export type DeckCountAggregateInputType = {
|
||||
|
|
@ -96,6 +101,7 @@ export type DeckCountAggregateInputType = {
|
|||
description?: true
|
||||
sortOrder?: true
|
||||
createdAt?: true
|
||||
groupId?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
|
|
@ -192,6 +198,7 @@ export type DeckGroupByOutputType = {
|
|||
description: string | null
|
||||
sortOrder: number
|
||||
createdAt: Date
|
||||
groupId: string | null
|
||||
_count: DeckCountAggregateOutputType | null
|
||||
_avg: DeckAvgAggregateOutputType | null
|
||||
_sum: DeckSumAggregateOutputType | null
|
||||
|
|
@ -224,7 +231,9 @@ export type DeckWhereInput = {
|
|||
description?: Prisma.StringNullableFilter<"Deck"> | string | null
|
||||
sortOrder?: Prisma.IntFilter<"Deck"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"Deck"> | Date | string
|
||||
groupId?: Prisma.StringNullableFilter<"Deck"> | string | null
|
||||
class?: Prisma.XOR<Prisma.ClassScalarRelationFilter, Prisma.ClassWhereInput>
|
||||
group?: Prisma.XOR<Prisma.MaterialGroupNullableScalarRelationFilter, Prisma.MaterialGroupWhereInput> | null
|
||||
cards?: Prisma.FlashcardListRelationFilter
|
||||
shareLink?: Prisma.XOR<Prisma.ShareLinkNullableScalarRelationFilter, Prisma.ShareLinkWhereInput> | null
|
||||
progress?: Prisma.StudyProgressListRelationFilter
|
||||
|
|
@ -237,7 +246,9 @@ export type DeckOrderByWithRelationInput = {
|
|||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
class?: Prisma.ClassOrderByWithRelationInput
|
||||
group?: Prisma.MaterialGroupOrderByWithRelationInput
|
||||
cards?: Prisma.FlashcardOrderByRelationAggregateInput
|
||||
shareLink?: Prisma.ShareLinkOrderByWithRelationInput
|
||||
progress?: Prisma.StudyProgressOrderByRelationAggregateInput
|
||||
|
|
@ -253,7 +264,9 @@ export type DeckWhereUniqueInput = Prisma.AtLeast<{
|
|||
description?: Prisma.StringNullableFilter<"Deck"> | string | null
|
||||
sortOrder?: Prisma.IntFilter<"Deck"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"Deck"> | Date | string
|
||||
groupId?: Prisma.StringNullableFilter<"Deck"> | string | null
|
||||
class?: Prisma.XOR<Prisma.ClassScalarRelationFilter, Prisma.ClassWhereInput>
|
||||
group?: Prisma.XOR<Prisma.MaterialGroupNullableScalarRelationFilter, Prisma.MaterialGroupWhereInput> | null
|
||||
cards?: Prisma.FlashcardListRelationFilter
|
||||
shareLink?: Prisma.XOR<Prisma.ShareLinkNullableScalarRelationFilter, Prisma.ShareLinkWhereInput> | null
|
||||
progress?: Prisma.StudyProgressListRelationFilter
|
||||
|
|
@ -266,6 +279,7 @@ export type DeckOrderByWithAggregationInput = {
|
|||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.DeckCountOrderByAggregateInput
|
||||
_avg?: Prisma.DeckAvgOrderByAggregateInput
|
||||
_max?: Prisma.DeckMaxOrderByAggregateInput
|
||||
|
|
@ -283,6 +297,7 @@ export type DeckScalarWhereWithAggregatesInput = {
|
|||
description?: Prisma.StringNullableWithAggregatesFilter<"Deck"> | string | null
|
||||
sortOrder?: Prisma.IntWithAggregatesFilter<"Deck"> | number
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Deck"> | Date | string
|
||||
groupId?: Prisma.StringNullableWithAggregatesFilter<"Deck"> | string | null
|
||||
}
|
||||
|
||||
export type DeckCreateInput = {
|
||||
|
|
@ -292,6 +307,7 @@ export type DeckCreateInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
||||
cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput
|
||||
|
|
@ -304,6 +320,7 @@ export type DeckUncheckedCreateInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
||||
|
|
@ -316,6 +333,7 @@ export type DeckUpdateInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
||||
cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput
|
||||
|
|
@ -328,6 +346,7 @@ export type DeckUncheckedUpdateInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput
|
||||
|
|
@ -340,6 +359,7 @@ export type DeckCreateManyInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
}
|
||||
|
||||
export type DeckUpdateManyMutationInput = {
|
||||
|
|
@ -357,6 +377,7 @@ export type DeckUncheckedUpdateManyInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
}
|
||||
|
||||
export type DeckListRelationFilter = {
|
||||
|
|
@ -376,6 +397,7 @@ export type DeckCountOrderByAggregateInput = {
|
|||
description?: Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type DeckAvgOrderByAggregateInput = {
|
||||
|
|
@ -389,6 +411,7 @@ export type DeckMaxOrderByAggregateInput = {
|
|||
description?: Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type DeckMinOrderByAggregateInput = {
|
||||
|
|
@ -398,6 +421,7 @@ export type DeckMinOrderByAggregateInput = {
|
|||
description?: Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type DeckSumOrderByAggregateInput = {
|
||||
|
|
@ -506,12 +530,55 @@ export type DeckUpdateOneWithoutShareLinkNestedInput = {
|
|||
update?: Prisma.XOR<Prisma.XOR<Prisma.DeckUpdateToOneWithWhereWithoutShareLinkInput, Prisma.DeckUpdateWithoutShareLinkInput>, Prisma.DeckUncheckedUpdateWithoutShareLinkInput>
|
||||
}
|
||||
|
||||
export type DeckCreateNestedManyWithoutGroupInput = {
|
||||
create?: Prisma.XOR<Prisma.DeckCreateWithoutGroupInput, Prisma.DeckUncheckedCreateWithoutGroupInput> | Prisma.DeckCreateWithoutGroupInput[] | Prisma.DeckUncheckedCreateWithoutGroupInput[]
|
||||
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutGroupInput | Prisma.DeckCreateOrConnectWithoutGroupInput[]
|
||||
createMany?: Prisma.DeckCreateManyGroupInputEnvelope
|
||||
connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type DeckUncheckedCreateNestedManyWithoutGroupInput = {
|
||||
create?: Prisma.XOR<Prisma.DeckCreateWithoutGroupInput, Prisma.DeckUncheckedCreateWithoutGroupInput> | Prisma.DeckCreateWithoutGroupInput[] | Prisma.DeckUncheckedCreateWithoutGroupInput[]
|
||||
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutGroupInput | Prisma.DeckCreateOrConnectWithoutGroupInput[]
|
||||
createMany?: Prisma.DeckCreateManyGroupInputEnvelope
|
||||
connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type DeckUpdateManyWithoutGroupNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.DeckCreateWithoutGroupInput, Prisma.DeckUncheckedCreateWithoutGroupInput> | Prisma.DeckCreateWithoutGroupInput[] | Prisma.DeckUncheckedCreateWithoutGroupInput[]
|
||||
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutGroupInput | Prisma.DeckCreateOrConnectWithoutGroupInput[]
|
||||
upsert?: Prisma.DeckUpsertWithWhereUniqueWithoutGroupInput | Prisma.DeckUpsertWithWhereUniqueWithoutGroupInput[]
|
||||
createMany?: Prisma.DeckCreateManyGroupInputEnvelope
|
||||
set?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
disconnect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
delete?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
update?: Prisma.DeckUpdateWithWhereUniqueWithoutGroupInput | Prisma.DeckUpdateWithWhereUniqueWithoutGroupInput[]
|
||||
updateMany?: Prisma.DeckUpdateManyWithWhereWithoutGroupInput | Prisma.DeckUpdateManyWithWhereWithoutGroupInput[]
|
||||
deleteMany?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type DeckUncheckedUpdateManyWithoutGroupNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.DeckCreateWithoutGroupInput, Prisma.DeckUncheckedCreateWithoutGroupInput> | Prisma.DeckCreateWithoutGroupInput[] | Prisma.DeckUncheckedCreateWithoutGroupInput[]
|
||||
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutGroupInput | Prisma.DeckCreateOrConnectWithoutGroupInput[]
|
||||
upsert?: Prisma.DeckUpsertWithWhereUniqueWithoutGroupInput | Prisma.DeckUpsertWithWhereUniqueWithoutGroupInput[]
|
||||
createMany?: Prisma.DeckCreateManyGroupInputEnvelope
|
||||
set?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
disconnect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
delete?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
||||
update?: Prisma.DeckUpdateWithWhereUniqueWithoutGroupInput | Prisma.DeckUpdateWithWhereUniqueWithoutGroupInput[]
|
||||
updateMany?: Prisma.DeckUpdateManyWithWhereWithoutGroupInput | Prisma.DeckUpdateManyWithWhereWithoutGroupInput[]
|
||||
deleteMany?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type DeckCreateWithoutClassInput = {
|
||||
id?: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
||||
cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput
|
||||
|
|
@ -523,6 +590,7 @@ export type DeckUncheckedCreateWithoutClassInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
||||
|
|
@ -563,6 +631,7 @@ export type DeckScalarWhereInput = {
|
|||
description?: Prisma.StringNullableFilter<"Deck"> | string | null
|
||||
sortOrder?: Prisma.IntFilter<"Deck"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"Deck"> | Date | string
|
||||
groupId?: Prisma.StringNullableFilter<"Deck"> | string | null
|
||||
}
|
||||
|
||||
export type DeckCreateWithoutCardsInput = {
|
||||
|
|
@ -572,6 +641,7 @@ export type DeckCreateWithoutCardsInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput
|
||||
}
|
||||
|
|
@ -583,6 +653,7 @@ export type DeckUncheckedCreateWithoutCardsInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
||||
}
|
||||
|
|
@ -610,6 +681,7 @@ export type DeckUpdateWithoutCardsInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput
|
||||
}
|
||||
|
|
@ -621,6 +693,7 @@ export type DeckUncheckedUpdateWithoutCardsInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput
|
||||
}
|
||||
|
|
@ -632,6 +705,7 @@ export type DeckCreateWithoutProgressInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
||||
cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput
|
||||
}
|
||||
|
|
@ -643,6 +717,7 @@ export type DeckUncheckedCreateWithoutProgressInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
||||
}
|
||||
|
|
@ -670,6 +745,7 @@ export type DeckUpdateWithoutProgressInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
||||
cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput
|
||||
}
|
||||
|
|
@ -681,6 +757,7 @@ export type DeckUncheckedUpdateWithoutProgressInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput
|
||||
}
|
||||
|
|
@ -692,6 +769,7 @@ export type DeckCreateWithoutShareLinkInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
||||
cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput
|
||||
}
|
||||
|
|
@ -703,6 +781,7 @@ export type DeckUncheckedCreateWithoutShareLinkInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
||||
}
|
||||
|
|
@ -730,6 +809,7 @@ export type DeckUpdateWithoutShareLinkInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
||||
cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput
|
||||
}
|
||||
|
|
@ -741,16 +821,67 @@ export type DeckUncheckedUpdateWithoutShareLinkInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput
|
||||
}
|
||||
|
||||
export type DeckCreateWithoutGroupInput = {
|
||||
id?: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
||||
cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput
|
||||
}
|
||||
|
||||
export type DeckUncheckedCreateWithoutGroupInput = {
|
||||
id?: string
|
||||
classId: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
||||
}
|
||||
|
||||
export type DeckCreateOrConnectWithoutGroupInput = {
|
||||
where: Prisma.DeckWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.DeckCreateWithoutGroupInput, Prisma.DeckUncheckedCreateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type DeckCreateManyGroupInputEnvelope = {
|
||||
data: Prisma.DeckCreateManyGroupInput | Prisma.DeckCreateManyGroupInput[]
|
||||
}
|
||||
|
||||
export type DeckUpsertWithWhereUniqueWithoutGroupInput = {
|
||||
where: Prisma.DeckWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.DeckUpdateWithoutGroupInput, Prisma.DeckUncheckedUpdateWithoutGroupInput>
|
||||
create: Prisma.XOR<Prisma.DeckCreateWithoutGroupInput, Prisma.DeckUncheckedCreateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type DeckUpdateWithWhereUniqueWithoutGroupInput = {
|
||||
where: Prisma.DeckWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.DeckUpdateWithoutGroupInput, Prisma.DeckUncheckedUpdateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type DeckUpdateManyWithWhereWithoutGroupInput = {
|
||||
where: Prisma.DeckScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.DeckUpdateManyMutationInput, Prisma.DeckUncheckedUpdateManyWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type DeckCreateManyClassInput = {
|
||||
id?: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
}
|
||||
|
||||
export type DeckUpdateWithoutClassInput = {
|
||||
|
|
@ -759,6 +890,7 @@ export type DeckUpdateWithoutClassInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
||||
cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput
|
||||
|
|
@ -770,6 +902,7 @@ export type DeckUncheckedUpdateWithoutClassInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput
|
||||
|
|
@ -781,6 +914,49 @@ export type DeckUncheckedUpdateManyWithoutClassInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
}
|
||||
|
||||
export type DeckCreateManyGroupInput = {
|
||||
id?: string
|
||||
classId: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
export type DeckUpdateWithoutGroupInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutDecksNestedInput
|
||||
cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput
|
||||
}
|
||||
|
||||
export type DeckUncheckedUpdateWithoutGroupInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
classId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput
|
||||
}
|
||||
|
||||
export type DeckUncheckedUpdateManyWithoutGroupInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
classId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -830,7 +1006,9 @@ export type DeckSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
|||
description?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
groupId?: boolean
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.Deck$groupArgs<ExtArgs>
|
||||
cards?: boolean | Prisma.Deck$cardsArgs<ExtArgs>
|
||||
shareLink?: boolean | Prisma.Deck$shareLinkArgs<ExtArgs>
|
||||
progress?: boolean | Prisma.Deck$progressArgs<ExtArgs>
|
||||
|
|
@ -844,7 +1022,9 @@ export type DeckSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensio
|
|||
description?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
groupId?: boolean
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.Deck$groupArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["deck"]>
|
||||
|
||||
export type DeckSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
|
|
@ -854,7 +1034,9 @@ export type DeckSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensio
|
|||
description?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
groupId?: boolean
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.Deck$groupArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["deck"]>
|
||||
|
||||
export type DeckSelectScalar = {
|
||||
|
|
@ -864,11 +1046,13 @@ export type DeckSelectScalar = {
|
|||
description?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
groupId?: boolean
|
||||
}
|
||||
|
||||
export type DeckOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "classId" | "name" | "description" | "sortOrder" | "createdAt", ExtArgs["result"]["deck"]>
|
||||
export type DeckOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "classId" | "name" | "description" | "sortOrder" | "createdAt" | "groupId", ExtArgs["result"]["deck"]>
|
||||
export type DeckInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.Deck$groupArgs<ExtArgs>
|
||||
cards?: boolean | Prisma.Deck$cardsArgs<ExtArgs>
|
||||
shareLink?: boolean | Prisma.Deck$shareLinkArgs<ExtArgs>
|
||||
progress?: boolean | Prisma.Deck$progressArgs<ExtArgs>
|
||||
|
|
@ -876,15 +1060,18 @@ export type DeckInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||
}
|
||||
export type DeckIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.Deck$groupArgs<ExtArgs>
|
||||
}
|
||||
export type DeckIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.Deck$groupArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $DeckPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Deck"
|
||||
objects: {
|
||||
class: Prisma.$ClassPayload<ExtArgs>
|
||||
group: Prisma.$MaterialGroupPayload<ExtArgs> | null
|
||||
cards: Prisma.$FlashcardPayload<ExtArgs>[]
|
||||
shareLink: Prisma.$ShareLinkPayload<ExtArgs> | null
|
||||
progress: Prisma.$StudyProgressPayload<ExtArgs>[]
|
||||
|
|
@ -896,6 +1083,7 @@ export type $DeckPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||
description: string | null
|
||||
sortOrder: number
|
||||
createdAt: Date
|
||||
groupId: string | null
|
||||
}, ExtArgs["result"]["deck"]>
|
||||
composites: {}
|
||||
}
|
||||
|
|
@ -1291,6 +1479,7 @@ readonly fields: DeckFieldRefs;
|
|||
export interface Prisma__DeckClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
class<T extends Prisma.ClassDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ClassDefaultArgs<ExtArgs>>): Prisma.Prisma__ClassClient<runtime.Types.Result.GetResult<Prisma.$ClassPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
group<T extends Prisma.Deck$groupArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Deck$groupArgs<ExtArgs>>): Prisma.Prisma__MaterialGroupClient<runtime.Types.Result.GetResult<Prisma.$MaterialGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
cards<T extends Prisma.Deck$cardsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Deck$cardsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
shareLink<T extends Prisma.Deck$shareLinkArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Deck$shareLinkArgs<ExtArgs>>): Prisma.Prisma__ShareLinkClient<runtime.Types.Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
progress<T extends Prisma.Deck$progressArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Deck$progressArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StudyProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
|
|
@ -1329,6 +1518,7 @@ export interface DeckFieldRefs {
|
|||
readonly description: Prisma.FieldRef<"Deck", 'String'>
|
||||
readonly sortOrder: Prisma.FieldRef<"Deck", 'Int'>
|
||||
readonly createdAt: Prisma.FieldRef<"Deck", 'DateTime'>
|
||||
readonly groupId: Prisma.FieldRef<"Deck", 'String'>
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1727,6 +1917,25 @@ export type DeckDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Deck.group
|
||||
*/
|
||||
export type Deck$groupArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the MaterialGroup
|
||||
*/
|
||||
select?: Prisma.MaterialGroupSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the MaterialGroup
|
||||
*/
|
||||
omit?: Prisma.MaterialGroupOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.MaterialGroupInclude<ExtArgs> | null
|
||||
where?: Prisma.MaterialGroupWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* Deck.cards
|
||||
*/
|
||||
|
|
|
|||
1806
src/generated/prisma/models/MaterialGroup.ts
Normal file
1806
src/generated/prisma/models/MaterialGroup.ts
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -41,6 +41,7 @@ export type QuizSetMinAggregateOutputType = {
|
|||
description: string | null
|
||||
sortOrder: number | null
|
||||
createdAt: Date | null
|
||||
groupId: string | null
|
||||
}
|
||||
|
||||
export type QuizSetMaxAggregateOutputType = {
|
||||
|
|
@ -50,6 +51,7 @@ export type QuizSetMaxAggregateOutputType = {
|
|||
description: string | null
|
||||
sortOrder: number | null
|
||||
createdAt: Date | null
|
||||
groupId: string | null
|
||||
}
|
||||
|
||||
export type QuizSetCountAggregateOutputType = {
|
||||
|
|
@ -59,6 +61,7 @@ export type QuizSetCountAggregateOutputType = {
|
|||
description: number
|
||||
sortOrder: number
|
||||
createdAt: number
|
||||
groupId: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
|
@ -78,6 +81,7 @@ export type QuizSetMinAggregateInputType = {
|
|||
description?: true
|
||||
sortOrder?: true
|
||||
createdAt?: true
|
||||
groupId?: true
|
||||
}
|
||||
|
||||
export type QuizSetMaxAggregateInputType = {
|
||||
|
|
@ -87,6 +91,7 @@ export type QuizSetMaxAggregateInputType = {
|
|||
description?: true
|
||||
sortOrder?: true
|
||||
createdAt?: true
|
||||
groupId?: true
|
||||
}
|
||||
|
||||
export type QuizSetCountAggregateInputType = {
|
||||
|
|
@ -96,6 +101,7 @@ export type QuizSetCountAggregateInputType = {
|
|||
description?: true
|
||||
sortOrder?: true
|
||||
createdAt?: true
|
||||
groupId?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
|
|
@ -192,6 +198,7 @@ export type QuizSetGroupByOutputType = {
|
|||
description: string | null
|
||||
sortOrder: number
|
||||
createdAt: Date
|
||||
groupId: string | null
|
||||
_count: QuizSetCountAggregateOutputType | null
|
||||
_avg: QuizSetAvgAggregateOutputType | null
|
||||
_sum: QuizSetSumAggregateOutputType | null
|
||||
|
|
@ -224,7 +231,9 @@ export type QuizSetWhereInput = {
|
|||
description?: Prisma.StringNullableFilter<"QuizSet"> | string | null
|
||||
sortOrder?: Prisma.IntFilter<"QuizSet"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"QuizSet"> | Date | string
|
||||
groupId?: Prisma.StringNullableFilter<"QuizSet"> | string | null
|
||||
class?: Prisma.XOR<Prisma.ClassScalarRelationFilter, Prisma.ClassWhereInput>
|
||||
group?: Prisma.XOR<Prisma.MaterialGroupNullableScalarRelationFilter, Prisma.MaterialGroupWhereInput> | null
|
||||
questions?: Prisma.QuestionListRelationFilter
|
||||
attempts?: Prisma.QuizAttemptListRelationFilter
|
||||
shareLink?: Prisma.XOR<Prisma.ShareLinkNullableScalarRelationFilter, Prisma.ShareLinkWhereInput> | null
|
||||
|
|
@ -238,7 +247,9 @@ export type QuizSetOrderByWithRelationInput = {
|
|||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
class?: Prisma.ClassOrderByWithRelationInput
|
||||
group?: Prisma.MaterialGroupOrderByWithRelationInput
|
||||
questions?: Prisma.QuestionOrderByRelationAggregateInput
|
||||
attempts?: Prisma.QuizAttemptOrderByRelationAggregateInput
|
||||
shareLink?: Prisma.ShareLinkOrderByWithRelationInput
|
||||
|
|
@ -255,7 +266,9 @@ export type QuizSetWhereUniqueInput = Prisma.AtLeast<{
|
|||
description?: Prisma.StringNullableFilter<"QuizSet"> | string | null
|
||||
sortOrder?: Prisma.IntFilter<"QuizSet"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"QuizSet"> | Date | string
|
||||
groupId?: Prisma.StringNullableFilter<"QuizSet"> | string | null
|
||||
class?: Prisma.XOR<Prisma.ClassScalarRelationFilter, Prisma.ClassWhereInput>
|
||||
group?: Prisma.XOR<Prisma.MaterialGroupNullableScalarRelationFilter, Prisma.MaterialGroupWhereInput> | null
|
||||
questions?: Prisma.QuestionListRelationFilter
|
||||
attempts?: Prisma.QuizAttemptListRelationFilter
|
||||
shareLink?: Prisma.XOR<Prisma.ShareLinkNullableScalarRelationFilter, Prisma.ShareLinkWhereInput> | null
|
||||
|
|
@ -269,6 +282,7 @@ export type QuizSetOrderByWithAggregationInput = {
|
|||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.QuizSetCountOrderByAggregateInput
|
||||
_avg?: Prisma.QuizSetAvgOrderByAggregateInput
|
||||
_max?: Prisma.QuizSetMaxOrderByAggregateInput
|
||||
|
|
@ -286,6 +300,7 @@ export type QuizSetScalarWhereWithAggregatesInput = {
|
|||
description?: Prisma.StringNullableWithAggregatesFilter<"QuizSet"> | string | null
|
||||
sortOrder?: Prisma.IntWithAggregatesFilter<"QuizSet"> | number
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"QuizSet"> | Date | string
|
||||
groupId?: Prisma.StringNullableWithAggregatesFilter<"QuizSet"> | string | null
|
||||
}
|
||||
|
||||
export type QuizSetCreateInput = {
|
||||
|
|
@ -295,6 +310,7 @@ export type QuizSetCreateInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutQuizSetsInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutQuizSetsInput
|
||||
questions?: Prisma.QuestionCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutQuizSetInput
|
||||
|
|
@ -308,6 +324,7 @@ export type QuizSetUncheckedCreateInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
questions?: Prisma.QuestionUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutQuizSetInput
|
||||
|
|
@ -321,6 +338,7 @@ export type QuizSetUpdateInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutQuizSetsNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutQuizSetsNestedInput
|
||||
questions?: Prisma.QuestionUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutQuizSetNestedInput
|
||||
|
|
@ -334,6 +352,7 @@ export type QuizSetUncheckedUpdateInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
questions?: Prisma.QuestionUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutQuizSetNestedInput
|
||||
|
|
@ -347,6 +366,7 @@ export type QuizSetCreateManyInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
}
|
||||
|
||||
export type QuizSetUpdateManyMutationInput = {
|
||||
|
|
@ -364,6 +384,7 @@ export type QuizSetUncheckedUpdateManyInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
}
|
||||
|
||||
export type QuizSetListRelationFilter = {
|
||||
|
|
@ -383,6 +404,7 @@ export type QuizSetCountOrderByAggregateInput = {
|
|||
description?: Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type QuizSetAvgOrderByAggregateInput = {
|
||||
|
|
@ -396,6 +418,7 @@ export type QuizSetMaxOrderByAggregateInput = {
|
|||
description?: Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type QuizSetMinOrderByAggregateInput = {
|
||||
|
|
@ -405,6 +428,7 @@ export type QuizSetMinOrderByAggregateInput = {
|
|||
description?: Prisma.SortOrder
|
||||
sortOrder?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type QuizSetSumOrderByAggregateInput = {
|
||||
|
|
@ -523,12 +547,55 @@ export type QuizSetUpdateOneWithoutShareLinkNestedInput = {
|
|||
update?: Prisma.XOR<Prisma.XOR<Prisma.QuizSetUpdateToOneWithWhereWithoutShareLinkInput, Prisma.QuizSetUpdateWithoutShareLinkInput>, Prisma.QuizSetUncheckedUpdateWithoutShareLinkInput>
|
||||
}
|
||||
|
||||
export type QuizSetCreateNestedManyWithoutGroupInput = {
|
||||
create?: Prisma.XOR<Prisma.QuizSetCreateWithoutGroupInput, Prisma.QuizSetUncheckedCreateWithoutGroupInput> | Prisma.QuizSetCreateWithoutGroupInput[] | Prisma.QuizSetUncheckedCreateWithoutGroupInput[]
|
||||
connectOrCreate?: Prisma.QuizSetCreateOrConnectWithoutGroupInput | Prisma.QuizSetCreateOrConnectWithoutGroupInput[]
|
||||
createMany?: Prisma.QuizSetCreateManyGroupInputEnvelope
|
||||
connect?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type QuizSetUncheckedCreateNestedManyWithoutGroupInput = {
|
||||
create?: Prisma.XOR<Prisma.QuizSetCreateWithoutGroupInput, Prisma.QuizSetUncheckedCreateWithoutGroupInput> | Prisma.QuizSetCreateWithoutGroupInput[] | Prisma.QuizSetUncheckedCreateWithoutGroupInput[]
|
||||
connectOrCreate?: Prisma.QuizSetCreateOrConnectWithoutGroupInput | Prisma.QuizSetCreateOrConnectWithoutGroupInput[]
|
||||
createMany?: Prisma.QuizSetCreateManyGroupInputEnvelope
|
||||
connect?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type QuizSetUpdateManyWithoutGroupNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.QuizSetCreateWithoutGroupInput, Prisma.QuizSetUncheckedCreateWithoutGroupInput> | Prisma.QuizSetCreateWithoutGroupInput[] | Prisma.QuizSetUncheckedCreateWithoutGroupInput[]
|
||||
connectOrCreate?: Prisma.QuizSetCreateOrConnectWithoutGroupInput | Prisma.QuizSetCreateOrConnectWithoutGroupInput[]
|
||||
upsert?: Prisma.QuizSetUpsertWithWhereUniqueWithoutGroupInput | Prisma.QuizSetUpsertWithWhereUniqueWithoutGroupInput[]
|
||||
createMany?: Prisma.QuizSetCreateManyGroupInputEnvelope
|
||||
set?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
disconnect?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
delete?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
connect?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
update?: Prisma.QuizSetUpdateWithWhereUniqueWithoutGroupInput | Prisma.QuizSetUpdateWithWhereUniqueWithoutGroupInput[]
|
||||
updateMany?: Prisma.QuizSetUpdateManyWithWhereWithoutGroupInput | Prisma.QuizSetUpdateManyWithWhereWithoutGroupInput[]
|
||||
deleteMany?: Prisma.QuizSetScalarWhereInput | Prisma.QuizSetScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type QuizSetUncheckedUpdateManyWithoutGroupNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.QuizSetCreateWithoutGroupInput, Prisma.QuizSetUncheckedCreateWithoutGroupInput> | Prisma.QuizSetCreateWithoutGroupInput[] | Prisma.QuizSetUncheckedCreateWithoutGroupInput[]
|
||||
connectOrCreate?: Prisma.QuizSetCreateOrConnectWithoutGroupInput | Prisma.QuizSetCreateOrConnectWithoutGroupInput[]
|
||||
upsert?: Prisma.QuizSetUpsertWithWhereUniqueWithoutGroupInput | Prisma.QuizSetUpsertWithWhereUniqueWithoutGroupInput[]
|
||||
createMany?: Prisma.QuizSetCreateManyGroupInputEnvelope
|
||||
set?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
disconnect?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
delete?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
connect?: Prisma.QuizSetWhereUniqueInput | Prisma.QuizSetWhereUniqueInput[]
|
||||
update?: Prisma.QuizSetUpdateWithWhereUniqueWithoutGroupInput | Prisma.QuizSetUpdateWithWhereUniqueWithoutGroupInput[]
|
||||
updateMany?: Prisma.QuizSetUpdateManyWithWhereWithoutGroupInput | Prisma.QuizSetUpdateManyWithWhereWithoutGroupInput[]
|
||||
deleteMany?: Prisma.QuizSetScalarWhereInput | Prisma.QuizSetScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type QuizSetCreateWithoutClassInput = {
|
||||
id?: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutQuizSetsInput
|
||||
questions?: Prisma.QuestionCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutQuizSetInput
|
||||
|
|
@ -541,6 +608,7 @@ export type QuizSetUncheckedCreateWithoutClassInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
questions?: Prisma.QuestionUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutQuizSetInput
|
||||
|
|
@ -582,6 +650,7 @@ export type QuizSetScalarWhereInput = {
|
|||
description?: Prisma.StringNullableFilter<"QuizSet"> | string | null
|
||||
sortOrder?: Prisma.IntFilter<"QuizSet"> | number
|
||||
createdAt?: Prisma.DateTimeFilter<"QuizSet"> | Date | string
|
||||
groupId?: Prisma.StringNullableFilter<"QuizSet"> | string | null
|
||||
}
|
||||
|
||||
export type QuizSetCreateWithoutQuestionsInput = {
|
||||
|
|
@ -591,6 +660,7 @@ export type QuizSetCreateWithoutQuestionsInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutQuizSetsInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutQuizSetsInput
|
||||
attempts?: Prisma.QuizAttemptCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutQuizSetInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutQuizSetInput
|
||||
|
|
@ -603,6 +673,7 @@ export type QuizSetUncheckedCreateWithoutQuestionsInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
attempts?: Prisma.QuizAttemptUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutQuizSetInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
|
|
@ -631,6 +702,7 @@ export type QuizSetUpdateWithoutQuestionsInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutQuizSetsNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutQuizSetsNestedInput
|
||||
attempts?: Prisma.QuizAttemptUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutQuizSetNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutQuizSetNestedInput
|
||||
|
|
@ -643,6 +715,7 @@ export type QuizSetUncheckedUpdateWithoutQuestionsInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
attempts?: Prisma.QuizAttemptUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutQuizSetNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
|
|
@ -655,6 +728,7 @@ export type QuizSetCreateWithoutProgressInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutQuizSetsInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutQuizSetsInput
|
||||
questions?: Prisma.QuestionCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutQuizSetInput
|
||||
|
|
@ -667,6 +741,7 @@ export type QuizSetUncheckedCreateWithoutProgressInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
questions?: Prisma.QuestionUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutQuizSetInput
|
||||
|
|
@ -695,6 +770,7 @@ export type QuizSetUpdateWithoutProgressInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutQuizSetsNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutQuizSetsNestedInput
|
||||
questions?: Prisma.QuestionUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutQuizSetNestedInput
|
||||
|
|
@ -707,6 +783,7 @@ export type QuizSetUncheckedUpdateWithoutProgressInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
questions?: Prisma.QuestionUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutQuizSetNestedInput
|
||||
|
|
@ -719,6 +796,7 @@ export type QuizSetCreateWithoutAttemptsInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutQuizSetsInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutQuizSetsInput
|
||||
questions?: Prisma.QuestionCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutQuizSetInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutQuizSetInput
|
||||
|
|
@ -731,6 +809,7 @@ export type QuizSetUncheckedCreateWithoutAttemptsInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
questions?: Prisma.QuestionUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutQuizSetInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
|
|
@ -759,6 +838,7 @@ export type QuizSetUpdateWithoutAttemptsInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutQuizSetsNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutQuizSetsNestedInput
|
||||
questions?: Prisma.QuestionUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutQuizSetNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutQuizSetNestedInput
|
||||
|
|
@ -771,6 +851,7 @@ export type QuizSetUncheckedUpdateWithoutAttemptsInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
questions?: Prisma.QuestionUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutQuizSetNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
|
|
@ -783,6 +864,7 @@ export type QuizSetCreateWithoutShareLinkInput = {
|
|||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutQuizSetsInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutQuizSetsInput
|
||||
questions?: Prisma.QuestionCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptCreateNestedManyWithoutQuizSetInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutQuizSetInput
|
||||
|
|
@ -795,6 +877,7 @@ export type QuizSetUncheckedCreateWithoutShareLinkInput = {
|
|||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
questions?: Prisma.QuestionUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
|
|
@ -823,6 +906,7 @@ export type QuizSetUpdateWithoutShareLinkInput = {
|
|||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutQuizSetsNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutQuizSetsNestedInput
|
||||
questions?: Prisma.QuestionUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUpdateManyWithoutQuizSetNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutQuizSetNestedInput
|
||||
|
|
@ -835,17 +919,70 @@ export type QuizSetUncheckedUpdateWithoutShareLinkInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
questions?: Prisma.QuestionUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
}
|
||||
|
||||
export type QuizSetCreateWithoutGroupInput = {
|
||||
id?: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
class: Prisma.ClassCreateNestedOneWithoutQuizSetsInput
|
||||
questions?: Prisma.QuestionCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutQuizSetInput
|
||||
progress?: Prisma.StudyProgressCreateNestedManyWithoutQuizSetInput
|
||||
}
|
||||
|
||||
export type QuizSetUncheckedCreateWithoutGroupInput = {
|
||||
id?: string
|
||||
classId: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
questions?: Prisma.QuestionUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutQuizSetInput
|
||||
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutQuizSetInput
|
||||
}
|
||||
|
||||
export type QuizSetCreateOrConnectWithoutGroupInput = {
|
||||
where: Prisma.QuizSetWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.QuizSetCreateWithoutGroupInput, Prisma.QuizSetUncheckedCreateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type QuizSetCreateManyGroupInputEnvelope = {
|
||||
data: Prisma.QuizSetCreateManyGroupInput | Prisma.QuizSetCreateManyGroupInput[]
|
||||
}
|
||||
|
||||
export type QuizSetUpsertWithWhereUniqueWithoutGroupInput = {
|
||||
where: Prisma.QuizSetWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.QuizSetUpdateWithoutGroupInput, Prisma.QuizSetUncheckedUpdateWithoutGroupInput>
|
||||
create: Prisma.XOR<Prisma.QuizSetCreateWithoutGroupInput, Prisma.QuizSetUncheckedCreateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type QuizSetUpdateWithWhereUniqueWithoutGroupInput = {
|
||||
where: Prisma.QuizSetWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.QuizSetUpdateWithoutGroupInput, Prisma.QuizSetUncheckedUpdateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type QuizSetUpdateManyWithWhereWithoutGroupInput = {
|
||||
where: Prisma.QuizSetScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.QuizSetUpdateManyMutationInput, Prisma.QuizSetUncheckedUpdateManyWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type QuizSetCreateManyClassInput = {
|
||||
id?: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
groupId?: string | null
|
||||
}
|
||||
|
||||
export type QuizSetUpdateWithoutClassInput = {
|
||||
|
|
@ -854,6 +991,7 @@ export type QuizSetUpdateWithoutClassInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutQuizSetsNestedInput
|
||||
questions?: Prisma.QuestionUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutQuizSetNestedInput
|
||||
|
|
@ -866,6 +1004,7 @@ export type QuizSetUncheckedUpdateWithoutClassInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
questions?: Prisma.QuestionUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutQuizSetNestedInput
|
||||
|
|
@ -878,6 +1017,51 @@ export type QuizSetUncheckedUpdateManyWithoutClassInput = {
|
|||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
}
|
||||
|
||||
export type QuizSetCreateManyGroupInput = {
|
||||
id?: string
|
||||
classId: string
|
||||
name: string
|
||||
description?: string | null
|
||||
sortOrder?: number
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
export type QuizSetUpdateWithoutGroupInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
class?: Prisma.ClassUpdateOneRequiredWithoutQuizSetsNestedInput
|
||||
questions?: Prisma.QuestionUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUpdateOneWithoutQuizSetNestedInput
|
||||
progress?: Prisma.StudyProgressUpdateManyWithoutQuizSetNestedInput
|
||||
}
|
||||
|
||||
export type QuizSetUncheckedUpdateWithoutGroupInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
classId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
questions?: Prisma.QuestionUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
attempts?: Prisma.QuizAttemptUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutQuizSetNestedInput
|
||||
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutQuizSetNestedInput
|
||||
}
|
||||
|
||||
export type QuizSetUncheckedUpdateManyWithoutGroupInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
classId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -936,7 +1120,9 @@ export type QuizSetSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||
description?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
groupId?: boolean
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.QuizSet$groupArgs<ExtArgs>
|
||||
questions?: boolean | Prisma.QuizSet$questionsArgs<ExtArgs>
|
||||
attempts?: boolean | Prisma.QuizSet$attemptsArgs<ExtArgs>
|
||||
shareLink?: boolean | Prisma.QuizSet$shareLinkArgs<ExtArgs>
|
||||
|
|
@ -951,7 +1137,9 @@ export type QuizSetSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|||
description?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
groupId?: boolean
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.QuizSet$groupArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["quizSet"]>
|
||||
|
||||
export type QuizSetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
|
|
@ -961,7 +1149,9 @@ export type QuizSetSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|||
description?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
groupId?: boolean
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.QuizSet$groupArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["quizSet"]>
|
||||
|
||||
export type QuizSetSelectScalar = {
|
||||
|
|
@ -971,11 +1161,13 @@ export type QuizSetSelectScalar = {
|
|||
description?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
groupId?: boolean
|
||||
}
|
||||
|
||||
export type QuizSetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "classId" | "name" | "description" | "sortOrder" | "createdAt", ExtArgs["result"]["quizSet"]>
|
||||
export type QuizSetOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "classId" | "name" | "description" | "sortOrder" | "createdAt" | "groupId", ExtArgs["result"]["quizSet"]>
|
||||
export type QuizSetInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.QuizSet$groupArgs<ExtArgs>
|
||||
questions?: boolean | Prisma.QuizSet$questionsArgs<ExtArgs>
|
||||
attempts?: boolean | Prisma.QuizSet$attemptsArgs<ExtArgs>
|
||||
shareLink?: boolean | Prisma.QuizSet$shareLinkArgs<ExtArgs>
|
||||
|
|
@ -984,15 +1176,18 @@ export type QuizSetInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||
}
|
||||
export type QuizSetIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.QuizSet$groupArgs<ExtArgs>
|
||||
}
|
||||
export type QuizSetIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
class?: boolean | Prisma.ClassDefaultArgs<ExtArgs>
|
||||
group?: boolean | Prisma.QuizSet$groupArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $QuizSetPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "QuizSet"
|
||||
objects: {
|
||||
class: Prisma.$ClassPayload<ExtArgs>
|
||||
group: Prisma.$MaterialGroupPayload<ExtArgs> | null
|
||||
questions: Prisma.$QuestionPayload<ExtArgs>[]
|
||||
attempts: Prisma.$QuizAttemptPayload<ExtArgs>[]
|
||||
shareLink: Prisma.$ShareLinkPayload<ExtArgs> | null
|
||||
|
|
@ -1005,6 +1200,7 @@ export type $QuizSetPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|||
description: string | null
|
||||
sortOrder: number
|
||||
createdAt: Date
|
||||
groupId: string | null
|
||||
}, ExtArgs["result"]["quizSet"]>
|
||||
composites: {}
|
||||
}
|
||||
|
|
@ -1400,6 +1596,7 @@ readonly fields: QuizSetFieldRefs;
|
|||
export interface Prisma__QuizSetClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
class<T extends Prisma.ClassDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ClassDefaultArgs<ExtArgs>>): Prisma.Prisma__ClassClient<runtime.Types.Result.GetResult<Prisma.$ClassPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
group<T extends Prisma.QuizSet$groupArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.QuizSet$groupArgs<ExtArgs>>): Prisma.Prisma__MaterialGroupClient<runtime.Types.Result.GetResult<Prisma.$MaterialGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
questions<T extends Prisma.QuizSet$questionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.QuizSet$questionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
attempts<T extends Prisma.QuizSet$attemptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.QuizSet$attemptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$QuizAttemptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
shareLink<T extends Prisma.QuizSet$shareLinkArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.QuizSet$shareLinkArgs<ExtArgs>>): Prisma.Prisma__ShareLinkClient<runtime.Types.Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
|
|
@ -1439,6 +1636,7 @@ export interface QuizSetFieldRefs {
|
|||
readonly description: Prisma.FieldRef<"QuizSet", 'String'>
|
||||
readonly sortOrder: Prisma.FieldRef<"QuizSet", 'Int'>
|
||||
readonly createdAt: Prisma.FieldRef<"QuizSet", 'DateTime'>
|
||||
readonly groupId: Prisma.FieldRef<"QuizSet", 'String'>
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1837,6 +2035,25 @@ export type QuizSetDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* QuizSet.group
|
||||
*/
|
||||
export type QuizSet$groupArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the MaterialGroup
|
||||
*/
|
||||
select?: Prisma.MaterialGroupSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the MaterialGroup
|
||||
*/
|
||||
omit?: Prisma.MaterialGroupOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.MaterialGroupInclude<ExtArgs> | null
|
||||
where?: Prisma.MaterialGroupWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* QuizSet.questions
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ export type ShareLinkMinAggregateOutputType = {
|
|||
targetType: string | null
|
||||
deckId: string | null
|
||||
quizSetId: string | null
|
||||
groupId: string | null
|
||||
createdAt: Date | null
|
||||
}
|
||||
|
||||
|
|
@ -37,6 +38,7 @@ export type ShareLinkMaxAggregateOutputType = {
|
|||
targetType: string | null
|
||||
deckId: string | null
|
||||
quizSetId: string | null
|
||||
groupId: string | null
|
||||
createdAt: Date | null
|
||||
}
|
||||
|
||||
|
|
@ -45,6 +47,7 @@ export type ShareLinkCountAggregateOutputType = {
|
|||
targetType: number
|
||||
deckId: number
|
||||
quizSetId: number
|
||||
groupId: number
|
||||
createdAt: number
|
||||
_all: number
|
||||
}
|
||||
|
|
@ -55,6 +58,7 @@ export type ShareLinkMinAggregateInputType = {
|
|||
targetType?: true
|
||||
deckId?: true
|
||||
quizSetId?: true
|
||||
groupId?: true
|
||||
createdAt?: true
|
||||
}
|
||||
|
||||
|
|
@ -63,6 +67,7 @@ export type ShareLinkMaxAggregateInputType = {
|
|||
targetType?: true
|
||||
deckId?: true
|
||||
quizSetId?: true
|
||||
groupId?: true
|
||||
createdAt?: true
|
||||
}
|
||||
|
||||
|
|
@ -71,6 +76,7 @@ export type ShareLinkCountAggregateInputType = {
|
|||
targetType?: true
|
||||
deckId?: true
|
||||
quizSetId?: true
|
||||
groupId?: true
|
||||
createdAt?: true
|
||||
_all?: true
|
||||
}
|
||||
|
|
@ -152,6 +158,7 @@ export type ShareLinkGroupByOutputType = {
|
|||
targetType: string
|
||||
deckId: string | null
|
||||
quizSetId: string | null
|
||||
groupId: string | null
|
||||
createdAt: Date
|
||||
_count: ShareLinkCountAggregateOutputType | null
|
||||
_min: ShareLinkMinAggregateOutputType | null
|
||||
|
|
@ -181,9 +188,11 @@ export type ShareLinkWhereInput = {
|
|||
targetType?: Prisma.StringFilter<"ShareLink"> | string
|
||||
deckId?: Prisma.StringNullableFilter<"ShareLink"> | string | null
|
||||
quizSetId?: Prisma.StringNullableFilter<"ShareLink"> | string | null
|
||||
groupId?: Prisma.StringNullableFilter<"ShareLink"> | string | null
|
||||
createdAt?: Prisma.DateTimeFilter<"ShareLink"> | Date | string
|
||||
deck?: Prisma.XOR<Prisma.DeckNullableScalarRelationFilter, Prisma.DeckWhereInput> | null
|
||||
quizSet?: Prisma.XOR<Prisma.QuizSetNullableScalarRelationFilter, Prisma.QuizSetWhereInput> | null
|
||||
group?: Prisma.XOR<Prisma.MaterialGroupNullableScalarRelationFilter, Prisma.MaterialGroupWhereInput> | null
|
||||
}
|
||||
|
||||
export type ShareLinkOrderByWithRelationInput = {
|
||||
|
|
@ -191,15 +200,18 @@ export type ShareLinkOrderByWithRelationInput = {
|
|||
targetType?: Prisma.SortOrder
|
||||
deckId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
quizSetId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
deck?: Prisma.DeckOrderByWithRelationInput
|
||||
quizSet?: Prisma.QuizSetOrderByWithRelationInput
|
||||
group?: Prisma.MaterialGroupOrderByWithRelationInput
|
||||
}
|
||||
|
||||
export type ShareLinkWhereUniqueInput = Prisma.AtLeast<{
|
||||
id?: string
|
||||
deckId?: string
|
||||
quizSetId?: string
|
||||
groupId?: string
|
||||
AND?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[]
|
||||
OR?: Prisma.ShareLinkWhereInput[]
|
||||
NOT?: Prisma.ShareLinkWhereInput | Prisma.ShareLinkWhereInput[]
|
||||
|
|
@ -207,13 +219,15 @@ export type ShareLinkWhereUniqueInput = Prisma.AtLeast<{
|
|||
createdAt?: Prisma.DateTimeFilter<"ShareLink"> | Date | string
|
||||
deck?: Prisma.XOR<Prisma.DeckNullableScalarRelationFilter, Prisma.DeckWhereInput> | null
|
||||
quizSet?: Prisma.XOR<Prisma.QuizSetNullableScalarRelationFilter, Prisma.QuizSetWhereInput> | null
|
||||
}, "id" | "deckId" | "quizSetId">
|
||||
group?: Prisma.XOR<Prisma.MaterialGroupNullableScalarRelationFilter, Prisma.MaterialGroupWhereInput> | null
|
||||
}, "id" | "deckId" | "quizSetId" | "groupId">
|
||||
|
||||
export type ShareLinkOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
targetType?: Prisma.SortOrder
|
||||
deckId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
quizSetId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
_count?: Prisma.ShareLinkCountOrderByAggregateInput
|
||||
_max?: Prisma.ShareLinkMaxOrderByAggregateInput
|
||||
|
|
@ -228,6 +242,7 @@ export type ShareLinkScalarWhereWithAggregatesInput = {
|
|||
targetType?: Prisma.StringWithAggregatesFilter<"ShareLink"> | string
|
||||
deckId?: Prisma.StringNullableWithAggregatesFilter<"ShareLink"> | string | null
|
||||
quizSetId?: Prisma.StringNullableWithAggregatesFilter<"ShareLink"> | string | null
|
||||
groupId?: Prisma.StringNullableWithAggregatesFilter<"ShareLink"> | string | null
|
||||
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ShareLink"> | Date | string
|
||||
}
|
||||
|
||||
|
|
@ -237,6 +252,7 @@ export type ShareLinkCreateInput = {
|
|||
createdAt?: Date | string
|
||||
deck?: Prisma.DeckCreateNestedOneWithoutShareLinkInput
|
||||
quizSet?: Prisma.QuizSetCreateNestedOneWithoutShareLinkInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutShareLinkInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedCreateInput = {
|
||||
|
|
@ -244,6 +260,7 @@ export type ShareLinkUncheckedCreateInput = {
|
|||
targetType: string
|
||||
deckId?: string | null
|
||||
quizSetId?: string | null
|
||||
groupId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
|
|
@ -253,6 +270,7 @@ export type ShareLinkUpdateInput = {
|
|||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deck?: Prisma.DeckUpdateOneWithoutShareLinkNestedInput
|
||||
quizSet?: Prisma.QuizSetUpdateOneWithoutShareLinkNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutShareLinkNestedInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedUpdateInput = {
|
||||
|
|
@ -260,6 +278,7 @@ export type ShareLinkUncheckedUpdateInput = {
|
|||
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
deckId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
quizSetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
|
|
@ -268,6 +287,7 @@ export type ShareLinkCreateManyInput = {
|
|||
targetType: string
|
||||
deckId?: string | null
|
||||
quizSetId?: string | null
|
||||
groupId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
|
|
@ -282,6 +302,7 @@ export type ShareLinkUncheckedUpdateManyInput = {
|
|||
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
deckId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
quizSetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
|
|
@ -295,6 +316,7 @@ export type ShareLinkCountOrderByAggregateInput = {
|
|||
targetType?: Prisma.SortOrder
|
||||
deckId?: Prisma.SortOrder
|
||||
quizSetId?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
|
@ -303,6 +325,7 @@ export type ShareLinkMaxOrderByAggregateInput = {
|
|||
targetType?: Prisma.SortOrder
|
||||
deckId?: Prisma.SortOrder
|
||||
quizSetId?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
|
@ -311,6 +334,7 @@ export type ShareLinkMinOrderByAggregateInput = {
|
|||
targetType?: Prisma.SortOrder
|
||||
deckId?: Prisma.SortOrder
|
||||
quizSetId?: Prisma.SortOrder
|
||||
groupId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
|
|
@ -378,17 +402,51 @@ export type ShareLinkUncheckedUpdateOneWithoutQuizSetNestedInput = {
|
|||
update?: Prisma.XOR<Prisma.XOR<Prisma.ShareLinkUpdateToOneWithWhereWithoutQuizSetInput, Prisma.ShareLinkUpdateWithoutQuizSetInput>, Prisma.ShareLinkUncheckedUpdateWithoutQuizSetInput>
|
||||
}
|
||||
|
||||
export type ShareLinkCreateNestedOneWithoutGroupInput = {
|
||||
create?: Prisma.XOR<Prisma.ShareLinkCreateWithoutGroupInput, Prisma.ShareLinkUncheckedCreateWithoutGroupInput>
|
||||
connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutGroupInput
|
||||
connect?: Prisma.ShareLinkWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedCreateNestedOneWithoutGroupInput = {
|
||||
create?: Prisma.XOR<Prisma.ShareLinkCreateWithoutGroupInput, Prisma.ShareLinkUncheckedCreateWithoutGroupInput>
|
||||
connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutGroupInput
|
||||
connect?: Prisma.ShareLinkWhereUniqueInput
|
||||
}
|
||||
|
||||
export type ShareLinkUpdateOneWithoutGroupNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ShareLinkCreateWithoutGroupInput, Prisma.ShareLinkUncheckedCreateWithoutGroupInput>
|
||||
connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutGroupInput
|
||||
upsert?: Prisma.ShareLinkUpsertWithoutGroupInput
|
||||
disconnect?: Prisma.ShareLinkWhereInput | boolean
|
||||
delete?: Prisma.ShareLinkWhereInput | boolean
|
||||
connect?: Prisma.ShareLinkWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ShareLinkUpdateToOneWithWhereWithoutGroupInput, Prisma.ShareLinkUpdateWithoutGroupInput>, Prisma.ShareLinkUncheckedUpdateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedUpdateOneWithoutGroupNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ShareLinkCreateWithoutGroupInput, Prisma.ShareLinkUncheckedCreateWithoutGroupInput>
|
||||
connectOrCreate?: Prisma.ShareLinkCreateOrConnectWithoutGroupInput
|
||||
upsert?: Prisma.ShareLinkUpsertWithoutGroupInput
|
||||
disconnect?: Prisma.ShareLinkWhereInput | boolean
|
||||
delete?: Prisma.ShareLinkWhereInput | boolean
|
||||
connect?: Prisma.ShareLinkWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.ShareLinkUpdateToOneWithWhereWithoutGroupInput, Prisma.ShareLinkUpdateWithoutGroupInput>, Prisma.ShareLinkUncheckedUpdateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type ShareLinkCreateWithoutDeckInput = {
|
||||
id?: string
|
||||
targetType: string
|
||||
createdAt?: Date | string
|
||||
quizSet?: Prisma.QuizSetCreateNestedOneWithoutShareLinkInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutShareLinkInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedCreateWithoutDeckInput = {
|
||||
id?: string
|
||||
targetType: string
|
||||
quizSetId?: string | null
|
||||
groupId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
|
|
@ -413,12 +471,14 @@ export type ShareLinkUpdateWithoutDeckInput = {
|
|||
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
quizSet?: Prisma.QuizSetUpdateOneWithoutShareLinkNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutShareLinkNestedInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedUpdateWithoutDeckInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
quizSetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
|
|
@ -427,12 +487,14 @@ export type ShareLinkCreateWithoutQuizSetInput = {
|
|||
targetType: string
|
||||
createdAt?: Date | string
|
||||
deck?: Prisma.DeckCreateNestedOneWithoutShareLinkInput
|
||||
group?: Prisma.MaterialGroupCreateNestedOneWithoutShareLinkInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedCreateWithoutQuizSetInput = {
|
||||
id?: string
|
||||
targetType: string
|
||||
deckId?: string | null
|
||||
groupId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
|
|
@ -457,12 +519,62 @@ export type ShareLinkUpdateWithoutQuizSetInput = {
|
|||
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deck?: Prisma.DeckUpdateOneWithoutShareLinkNestedInput
|
||||
group?: Prisma.MaterialGroupUpdateOneWithoutShareLinkNestedInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedUpdateWithoutQuizSetInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
deckId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type ShareLinkCreateWithoutGroupInput = {
|
||||
id?: string
|
||||
targetType: string
|
||||
createdAt?: Date | string
|
||||
deck?: Prisma.DeckCreateNestedOneWithoutShareLinkInput
|
||||
quizSet?: Prisma.QuizSetCreateNestedOneWithoutShareLinkInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedCreateWithoutGroupInput = {
|
||||
id?: string
|
||||
targetType: string
|
||||
deckId?: string | null
|
||||
quizSetId?: string | null
|
||||
createdAt?: Date | string
|
||||
}
|
||||
|
||||
export type ShareLinkCreateOrConnectWithoutGroupInput = {
|
||||
where: Prisma.ShareLinkWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ShareLinkCreateWithoutGroupInput, Prisma.ShareLinkUncheckedCreateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type ShareLinkUpsertWithoutGroupInput = {
|
||||
update: Prisma.XOR<Prisma.ShareLinkUpdateWithoutGroupInput, Prisma.ShareLinkUncheckedUpdateWithoutGroupInput>
|
||||
create: Prisma.XOR<Prisma.ShareLinkCreateWithoutGroupInput, Prisma.ShareLinkUncheckedCreateWithoutGroupInput>
|
||||
where?: Prisma.ShareLinkWhereInput
|
||||
}
|
||||
|
||||
export type ShareLinkUpdateToOneWithWhereWithoutGroupInput = {
|
||||
where?: Prisma.ShareLinkWhereInput
|
||||
data: Prisma.XOR<Prisma.ShareLinkUpdateWithoutGroupInput, Prisma.ShareLinkUncheckedUpdateWithoutGroupInput>
|
||||
}
|
||||
|
||||
export type ShareLinkUpdateWithoutGroupInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deck?: Prisma.DeckUpdateOneWithoutShareLinkNestedInput
|
||||
quizSet?: Prisma.QuizSetUpdateOneWithoutShareLinkNestedInput
|
||||
}
|
||||
|
||||
export type ShareLinkUncheckedUpdateWithoutGroupInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
deckId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
quizSetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
|
|
@ -473,9 +585,11 @@ export type ShareLinkSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|||
targetType?: boolean
|
||||
deckId?: boolean
|
||||
quizSetId?: boolean
|
||||
groupId?: boolean
|
||||
createdAt?: boolean
|
||||
deck?: boolean | Prisma.ShareLink$deckArgs<ExtArgs>
|
||||
quizSet?: boolean | Prisma.ShareLink$quizSetArgs<ExtArgs>
|
||||
group?: boolean | Prisma.ShareLink$groupArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["shareLink"]>
|
||||
|
||||
export type ShareLinkSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
|
|
@ -483,9 +597,11 @@ export type ShareLinkSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
|||
targetType?: boolean
|
||||
deckId?: boolean
|
||||
quizSetId?: boolean
|
||||
groupId?: boolean
|
||||
createdAt?: boolean
|
||||
deck?: boolean | Prisma.ShareLink$deckArgs<ExtArgs>
|
||||
quizSet?: boolean | Prisma.ShareLink$quizSetArgs<ExtArgs>
|
||||
group?: boolean | Prisma.ShareLink$groupArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["shareLink"]>
|
||||
|
||||
export type ShareLinkSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
|
|
@ -493,9 +609,11 @@ export type ShareLinkSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ext
|
|||
targetType?: boolean
|
||||
deckId?: boolean
|
||||
quizSetId?: boolean
|
||||
groupId?: boolean
|
||||
createdAt?: boolean
|
||||
deck?: boolean | Prisma.ShareLink$deckArgs<ExtArgs>
|
||||
quizSet?: boolean | Prisma.ShareLink$quizSetArgs<ExtArgs>
|
||||
group?: boolean | Prisma.ShareLink$groupArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["shareLink"]>
|
||||
|
||||
export type ShareLinkSelectScalar = {
|
||||
|
|
@ -503,21 +621,25 @@ export type ShareLinkSelectScalar = {
|
|||
targetType?: boolean
|
||||
deckId?: boolean
|
||||
quizSetId?: boolean
|
||||
groupId?: boolean
|
||||
createdAt?: boolean
|
||||
}
|
||||
|
||||
export type ShareLinkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "targetType" | "deckId" | "quizSetId" | "createdAt", ExtArgs["result"]["shareLink"]>
|
||||
export type ShareLinkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "targetType" | "deckId" | "quizSetId" | "groupId" | "createdAt", ExtArgs["result"]["shareLink"]>
|
||||
export type ShareLinkInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
deck?: boolean | Prisma.ShareLink$deckArgs<ExtArgs>
|
||||
quizSet?: boolean | Prisma.ShareLink$quizSetArgs<ExtArgs>
|
||||
group?: boolean | Prisma.ShareLink$groupArgs<ExtArgs>
|
||||
}
|
||||
export type ShareLinkIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
deck?: boolean | Prisma.ShareLink$deckArgs<ExtArgs>
|
||||
quizSet?: boolean | Prisma.ShareLink$quizSetArgs<ExtArgs>
|
||||
group?: boolean | Prisma.ShareLink$groupArgs<ExtArgs>
|
||||
}
|
||||
export type ShareLinkIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
deck?: boolean | Prisma.ShareLink$deckArgs<ExtArgs>
|
||||
quizSet?: boolean | Prisma.ShareLink$quizSetArgs<ExtArgs>
|
||||
group?: boolean | Prisma.ShareLink$groupArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $ShareLinkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
|
|
@ -525,12 +647,14 @@ export type $ShareLinkPayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||
objects: {
|
||||
deck: Prisma.$DeckPayload<ExtArgs> | null
|
||||
quizSet: Prisma.$QuizSetPayload<ExtArgs> | null
|
||||
group: Prisma.$MaterialGroupPayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
targetType: string
|
||||
deckId: string | null
|
||||
quizSetId: string | null
|
||||
groupId: string | null
|
||||
createdAt: Date
|
||||
}, ExtArgs["result"]["shareLink"]>
|
||||
composites: {}
|
||||
|
|
@ -928,6 +1052,7 @@ export interface Prisma__ShareLinkClient<T, Null = never, ExtArgs extends runtim
|
|||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
deck<T extends Prisma.ShareLink$deckArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShareLink$deckArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
quizSet<T extends Prisma.ShareLink$quizSetArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShareLink$quizSetArgs<ExtArgs>>): Prisma.Prisma__QuizSetClient<runtime.Types.Result.GetResult<Prisma.$QuizSetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
group<T extends Prisma.ShareLink$groupArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShareLink$groupArgs<ExtArgs>>): Prisma.Prisma__MaterialGroupClient<runtime.Types.Result.GetResult<Prisma.$MaterialGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
|
|
@ -961,6 +1086,7 @@ export interface ShareLinkFieldRefs {
|
|||
readonly targetType: Prisma.FieldRef<"ShareLink", 'String'>
|
||||
readonly deckId: Prisma.FieldRef<"ShareLink", 'String'>
|
||||
readonly quizSetId: Prisma.FieldRef<"ShareLink", 'String'>
|
||||
readonly groupId: Prisma.FieldRef<"ShareLink", 'String'>
|
||||
readonly createdAt: Prisma.FieldRef<"ShareLink", 'DateTime'>
|
||||
}
|
||||
|
||||
|
|
@ -1398,6 +1524,25 @@ export type ShareLink$quizSetArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||
where?: Prisma.QuizSetWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* ShareLink.group
|
||||
*/
|
||||
export type ShareLink$groupArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the MaterialGroup
|
||||
*/
|
||||
select?: Prisma.MaterialGroupSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the MaterialGroup
|
||||
*/
|
||||
omit?: Prisma.MaterialGroupOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.MaterialGroupInclude<ExtArgs> | null
|
||||
where?: Prisma.MaterialGroupWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* ShareLink without action
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue