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
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue