All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m10s
2022 lines
75 KiB
TypeScript
2022 lines
75 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `Deck` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums"
|
|
import type * as Prisma from "../internal/prismaNamespace"
|
|
|
|
/**
|
|
* Model Deck
|
|
*
|
|
*/
|
|
export type DeckModel = runtime.Types.Result.DefaultSelection<Prisma.$DeckPayload>
|
|
|
|
export type AggregateDeck = {
|
|
_count: DeckCountAggregateOutputType | null
|
|
_avg: DeckAvgAggregateOutputType | null
|
|
_sum: DeckSumAggregateOutputType | null
|
|
_min: DeckMinAggregateOutputType | null
|
|
_max: DeckMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type DeckAvgAggregateOutputType = {
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type DeckSumAggregateOutputType = {
|
|
sortOrder: number | null
|
|
}
|
|
|
|
export type DeckMinAggregateOutputType = {
|
|
id: string | null
|
|
classId: string | null
|
|
name: string | null
|
|
description: string | null
|
|
sortOrder: number | null
|
|
createdAt: Date | null
|
|
groupId: string | null
|
|
}
|
|
|
|
export type DeckMaxAggregateOutputType = {
|
|
id: string | null
|
|
classId: string | null
|
|
name: string | null
|
|
description: string | null
|
|
sortOrder: number | null
|
|
createdAt: Date | null
|
|
groupId: string | null
|
|
}
|
|
|
|
export type DeckCountAggregateOutputType = {
|
|
id: number
|
|
classId: number
|
|
name: number
|
|
description: number
|
|
sortOrder: number
|
|
createdAt: number
|
|
groupId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type DeckAvgAggregateInputType = {
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type DeckSumAggregateInputType = {
|
|
sortOrder?: true
|
|
}
|
|
|
|
export type DeckMinAggregateInputType = {
|
|
id?: true
|
|
classId?: true
|
|
name?: true
|
|
description?: true
|
|
sortOrder?: true
|
|
createdAt?: true
|
|
groupId?: true
|
|
}
|
|
|
|
export type DeckMaxAggregateInputType = {
|
|
id?: true
|
|
classId?: true
|
|
name?: true
|
|
description?: true
|
|
sortOrder?: true
|
|
createdAt?: true
|
|
groupId?: true
|
|
}
|
|
|
|
export type DeckCountAggregateInputType = {
|
|
id?: true
|
|
classId?: true
|
|
name?: true
|
|
description?: true
|
|
sortOrder?: true
|
|
createdAt?: true
|
|
groupId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type DeckAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Deck to aggregate.
|
|
*/
|
|
where?: Prisma.DeckWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Decks to fetch.
|
|
*/
|
|
orderBy?: Prisma.DeckOrderByWithRelationInput | Prisma.DeckOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.DeckWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Decks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Decks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Decks
|
|
**/
|
|
_count?: true | DeckCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: DeckAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: DeckSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: DeckMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: DeckMaxAggregateInputType
|
|
}
|
|
|
|
export type GetDeckAggregateType<T extends DeckAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateDeck]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateDeck[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateDeck[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type DeckGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.DeckWhereInput
|
|
orderBy?: Prisma.DeckOrderByWithAggregationInput | Prisma.DeckOrderByWithAggregationInput[]
|
|
by: Prisma.DeckScalarFieldEnum[] | Prisma.DeckScalarFieldEnum
|
|
having?: Prisma.DeckScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: DeckCountAggregateInputType | true
|
|
_avg?: DeckAvgAggregateInputType
|
|
_sum?: DeckSumAggregateInputType
|
|
_min?: DeckMinAggregateInputType
|
|
_max?: DeckMaxAggregateInputType
|
|
}
|
|
|
|
export type DeckGroupByOutputType = {
|
|
id: string
|
|
classId: string
|
|
name: string
|
|
description: string | null
|
|
sortOrder: number
|
|
createdAt: Date
|
|
groupId: string | null
|
|
_count: DeckCountAggregateOutputType | null
|
|
_avg: DeckAvgAggregateOutputType | null
|
|
_sum: DeckSumAggregateOutputType | null
|
|
_min: DeckMinAggregateOutputType | null
|
|
_max: DeckMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetDeckGroupByPayload<T extends DeckGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<DeckGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof DeckGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], DeckGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], DeckGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type DeckWhereInput = {
|
|
AND?: Prisma.DeckWhereInput | Prisma.DeckWhereInput[]
|
|
OR?: Prisma.DeckWhereInput[]
|
|
NOT?: Prisma.DeckWhereInput | Prisma.DeckWhereInput[]
|
|
id?: Prisma.StringFilter<"Deck"> | string
|
|
classId?: Prisma.StringFilter<"Deck"> | string
|
|
name?: Prisma.StringFilter<"Deck"> | string
|
|
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
|
|
}
|
|
|
|
export type DeckOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
classId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
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
|
|
}
|
|
|
|
export type DeckWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.DeckWhereInput | Prisma.DeckWhereInput[]
|
|
OR?: Prisma.DeckWhereInput[]
|
|
NOT?: Prisma.DeckWhereInput | Prisma.DeckWhereInput[]
|
|
classId?: Prisma.StringFilter<"Deck"> | string
|
|
name?: Prisma.StringFilter<"Deck"> | string
|
|
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
|
|
}, "id">
|
|
|
|
export type DeckOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
classId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
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
|
|
_min?: Prisma.DeckMinOrderByAggregateInput
|
|
_sum?: Prisma.DeckSumOrderByAggregateInput
|
|
}
|
|
|
|
export type DeckScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.DeckScalarWhereWithAggregatesInput | Prisma.DeckScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.DeckScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.DeckScalarWhereWithAggregatesInput | Prisma.DeckScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"Deck"> | string
|
|
classId?: Prisma.StringWithAggregatesFilter<"Deck"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"Deck"> | string
|
|
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 = {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
|
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
|
cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput
|
|
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput
|
|
progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput
|
|
}
|
|
|
|
export type DeckUncheckedCreateInput = {
|
|
id?: string
|
|
classId: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
groupId?: string | null
|
|
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
|
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
|
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
|
}
|
|
|
|
export type DeckUpdateInput = {
|
|
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
|
|
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
|
cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput
|
|
shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput
|
|
progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput
|
|
}
|
|
|
|
export type DeckUncheckedUpdateInput = {
|
|
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
|
|
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput
|
|
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput
|
|
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput
|
|
}
|
|
|
|
export type DeckCreateManyInput = {
|
|
id?: string
|
|
classId: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
groupId?: string | null
|
|
}
|
|
|
|
export type DeckUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type DeckUncheckedUpdateManyInput = {
|
|
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
|
|
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type DeckListRelationFilter = {
|
|
every?: Prisma.DeckWhereInput
|
|
some?: Prisma.DeckWhereInput
|
|
none?: Prisma.DeckWhereInput
|
|
}
|
|
|
|
export type DeckOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeckCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
classId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
groupId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeckAvgOrderByAggregateInput = {
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeckMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
classId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
groupId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeckMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
classId?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
sortOrder?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
groupId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeckSumOrderByAggregateInput = {
|
|
sortOrder?: Prisma.SortOrder
|
|
}
|
|
|
|
export type DeckScalarRelationFilter = {
|
|
is?: Prisma.DeckWhereInput
|
|
isNot?: Prisma.DeckWhereInput
|
|
}
|
|
|
|
export type DeckNullableScalarRelationFilter = {
|
|
is?: Prisma.DeckWhereInput | null
|
|
isNot?: Prisma.DeckWhereInput | null
|
|
}
|
|
|
|
export type DeckCreateNestedManyWithoutClassInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutClassInput, Prisma.DeckUncheckedCreateWithoutClassInput> | Prisma.DeckCreateWithoutClassInput[] | Prisma.DeckUncheckedCreateWithoutClassInput[]
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutClassInput | Prisma.DeckCreateOrConnectWithoutClassInput[]
|
|
createMany?: Prisma.DeckCreateManyClassInputEnvelope
|
|
connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
}
|
|
|
|
export type DeckUncheckedCreateNestedManyWithoutClassInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutClassInput, Prisma.DeckUncheckedCreateWithoutClassInput> | Prisma.DeckCreateWithoutClassInput[] | Prisma.DeckUncheckedCreateWithoutClassInput[]
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutClassInput | Prisma.DeckCreateOrConnectWithoutClassInput[]
|
|
createMany?: Prisma.DeckCreateManyClassInputEnvelope
|
|
connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
}
|
|
|
|
export type DeckUpdateManyWithoutClassNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutClassInput, Prisma.DeckUncheckedCreateWithoutClassInput> | Prisma.DeckCreateWithoutClassInput[] | Prisma.DeckUncheckedCreateWithoutClassInput[]
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutClassInput | Prisma.DeckCreateOrConnectWithoutClassInput[]
|
|
upsert?: Prisma.DeckUpsertWithWhereUniqueWithoutClassInput | Prisma.DeckUpsertWithWhereUniqueWithoutClassInput[]
|
|
createMany?: Prisma.DeckCreateManyClassInputEnvelope
|
|
set?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
disconnect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
delete?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
update?: Prisma.DeckUpdateWithWhereUniqueWithoutClassInput | Prisma.DeckUpdateWithWhereUniqueWithoutClassInput[]
|
|
updateMany?: Prisma.DeckUpdateManyWithWhereWithoutClassInput | Prisma.DeckUpdateManyWithWhereWithoutClassInput[]
|
|
deleteMany?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[]
|
|
}
|
|
|
|
export type DeckUncheckedUpdateManyWithoutClassNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutClassInput, Prisma.DeckUncheckedCreateWithoutClassInput> | Prisma.DeckCreateWithoutClassInput[] | Prisma.DeckUncheckedCreateWithoutClassInput[]
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutClassInput | Prisma.DeckCreateOrConnectWithoutClassInput[]
|
|
upsert?: Prisma.DeckUpsertWithWhereUniqueWithoutClassInput | Prisma.DeckUpsertWithWhereUniqueWithoutClassInput[]
|
|
createMany?: Prisma.DeckCreateManyClassInputEnvelope
|
|
set?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
disconnect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
delete?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
connect?: Prisma.DeckWhereUniqueInput | Prisma.DeckWhereUniqueInput[]
|
|
update?: Prisma.DeckUpdateWithWhereUniqueWithoutClassInput | Prisma.DeckUpdateWithWhereUniqueWithoutClassInput[]
|
|
updateMany?: Prisma.DeckUpdateManyWithWhereWithoutClassInput | Prisma.DeckUpdateManyWithWhereWithoutClassInput[]
|
|
deleteMany?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[]
|
|
}
|
|
|
|
export type NullableStringFieldUpdateOperationsInput = {
|
|
set?: string | null
|
|
}
|
|
|
|
export type DeckCreateNestedOneWithoutCardsInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutCardsInput, Prisma.DeckUncheckedCreateWithoutCardsInput>
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutCardsInput
|
|
connect?: Prisma.DeckWhereUniqueInput
|
|
}
|
|
|
|
export type DeckUpdateOneRequiredWithoutCardsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutCardsInput, Prisma.DeckUncheckedCreateWithoutCardsInput>
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutCardsInput
|
|
upsert?: Prisma.DeckUpsertWithoutCardsInput
|
|
connect?: Prisma.DeckWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.DeckUpdateToOneWithWhereWithoutCardsInput, Prisma.DeckUpdateWithoutCardsInput>, Prisma.DeckUncheckedUpdateWithoutCardsInput>
|
|
}
|
|
|
|
export type DeckCreateNestedOneWithoutProgressInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutProgressInput, Prisma.DeckUncheckedCreateWithoutProgressInput>
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutProgressInput
|
|
connect?: Prisma.DeckWhereUniqueInput
|
|
}
|
|
|
|
export type DeckUpdateOneWithoutProgressNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutProgressInput, Prisma.DeckUncheckedCreateWithoutProgressInput>
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutProgressInput
|
|
upsert?: Prisma.DeckUpsertWithoutProgressInput
|
|
disconnect?: Prisma.DeckWhereInput | boolean
|
|
delete?: Prisma.DeckWhereInput | boolean
|
|
connect?: Prisma.DeckWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.DeckUpdateToOneWithWhereWithoutProgressInput, Prisma.DeckUpdateWithoutProgressInput>, Prisma.DeckUncheckedUpdateWithoutProgressInput>
|
|
}
|
|
|
|
export type DeckCreateNestedOneWithoutShareLinkInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutShareLinkInput, Prisma.DeckUncheckedCreateWithoutShareLinkInput>
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutShareLinkInput
|
|
connect?: Prisma.DeckWhereUniqueInput
|
|
}
|
|
|
|
export type DeckUpdateOneWithoutShareLinkNestedInput = {
|
|
create?: Prisma.XOR<Prisma.DeckCreateWithoutShareLinkInput, Prisma.DeckUncheckedCreateWithoutShareLinkInput>
|
|
connectOrCreate?: Prisma.DeckCreateOrConnectWithoutShareLinkInput
|
|
upsert?: Prisma.DeckUpsertWithoutShareLinkInput
|
|
disconnect?: Prisma.DeckWhereInput | boolean
|
|
delete?: Prisma.DeckWhereInput | boolean
|
|
connect?: Prisma.DeckWhereUniqueInput
|
|
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
|
|
}
|
|
|
|
export type DeckUncheckedCreateWithoutClassInput = {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
groupId?: string | null
|
|
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
|
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
|
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
|
}
|
|
|
|
export type DeckCreateOrConnectWithoutClassInput = {
|
|
where: Prisma.DeckWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.DeckCreateWithoutClassInput, Prisma.DeckUncheckedCreateWithoutClassInput>
|
|
}
|
|
|
|
export type DeckCreateManyClassInputEnvelope = {
|
|
data: Prisma.DeckCreateManyClassInput | Prisma.DeckCreateManyClassInput[]
|
|
}
|
|
|
|
export type DeckUpsertWithWhereUniqueWithoutClassInput = {
|
|
where: Prisma.DeckWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.DeckUpdateWithoutClassInput, Prisma.DeckUncheckedUpdateWithoutClassInput>
|
|
create: Prisma.XOR<Prisma.DeckCreateWithoutClassInput, Prisma.DeckUncheckedCreateWithoutClassInput>
|
|
}
|
|
|
|
export type DeckUpdateWithWhereUniqueWithoutClassInput = {
|
|
where: Prisma.DeckWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.DeckUpdateWithoutClassInput, Prisma.DeckUncheckedUpdateWithoutClassInput>
|
|
}
|
|
|
|
export type DeckUpdateManyWithWhereWithoutClassInput = {
|
|
where: Prisma.DeckScalarWhereInput
|
|
data: Prisma.XOR<Prisma.DeckUpdateManyMutationInput, Prisma.DeckUncheckedUpdateManyWithoutClassInput>
|
|
}
|
|
|
|
export type DeckScalarWhereInput = {
|
|
AND?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[]
|
|
OR?: Prisma.DeckScalarWhereInput[]
|
|
NOT?: Prisma.DeckScalarWhereInput | Prisma.DeckScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"Deck"> | string
|
|
classId?: Prisma.StringFilter<"Deck"> | string
|
|
name?: Prisma.StringFilter<"Deck"> | string
|
|
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 = {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
|
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
|
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput
|
|
progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput
|
|
}
|
|
|
|
export type DeckUncheckedCreateWithoutCardsInput = {
|
|
id?: string
|
|
classId: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
groupId?: string | null
|
|
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
|
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
|
}
|
|
|
|
export type DeckCreateOrConnectWithoutCardsInput = {
|
|
where: Prisma.DeckWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.DeckCreateWithoutCardsInput, Prisma.DeckUncheckedCreateWithoutCardsInput>
|
|
}
|
|
|
|
export type DeckUpsertWithoutCardsInput = {
|
|
update: Prisma.XOR<Prisma.DeckUpdateWithoutCardsInput, Prisma.DeckUncheckedUpdateWithoutCardsInput>
|
|
create: Prisma.XOR<Prisma.DeckCreateWithoutCardsInput, Prisma.DeckUncheckedCreateWithoutCardsInput>
|
|
where?: Prisma.DeckWhereInput
|
|
}
|
|
|
|
export type DeckUpdateToOneWithWhereWithoutCardsInput = {
|
|
where?: Prisma.DeckWhereInput
|
|
data: Prisma.XOR<Prisma.DeckUpdateWithoutCardsInput, Prisma.DeckUncheckedUpdateWithoutCardsInput>
|
|
}
|
|
|
|
export type DeckUpdateWithoutCardsInput = {
|
|
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
|
|
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
|
shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput
|
|
progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput
|
|
}
|
|
|
|
export type DeckUncheckedUpdateWithoutCardsInput = {
|
|
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
|
|
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput
|
|
progress?: Prisma.StudyProgressUncheckedUpdateManyWithoutDeckNestedInput
|
|
}
|
|
|
|
export type DeckCreateWithoutProgressInput = {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
|
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
|
cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput
|
|
shareLink?: Prisma.ShareLinkCreateNestedOneWithoutDeckInput
|
|
}
|
|
|
|
export type DeckUncheckedCreateWithoutProgressInput = {
|
|
id?: string
|
|
classId: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
groupId?: string | null
|
|
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
|
shareLink?: Prisma.ShareLinkUncheckedCreateNestedOneWithoutDeckInput
|
|
}
|
|
|
|
export type DeckCreateOrConnectWithoutProgressInput = {
|
|
where: Prisma.DeckWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.DeckCreateWithoutProgressInput, Prisma.DeckUncheckedCreateWithoutProgressInput>
|
|
}
|
|
|
|
export type DeckUpsertWithoutProgressInput = {
|
|
update: Prisma.XOR<Prisma.DeckUpdateWithoutProgressInput, Prisma.DeckUncheckedUpdateWithoutProgressInput>
|
|
create: Prisma.XOR<Prisma.DeckCreateWithoutProgressInput, Prisma.DeckUncheckedCreateWithoutProgressInput>
|
|
where?: Prisma.DeckWhereInput
|
|
}
|
|
|
|
export type DeckUpdateToOneWithWhereWithoutProgressInput = {
|
|
where?: Prisma.DeckWhereInput
|
|
data: Prisma.XOR<Prisma.DeckUpdateWithoutProgressInput, Prisma.DeckUncheckedUpdateWithoutProgressInput>
|
|
}
|
|
|
|
export type DeckUpdateWithoutProgressInput = {
|
|
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
|
|
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
|
cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput
|
|
shareLink?: Prisma.ShareLinkUpdateOneWithoutDeckNestedInput
|
|
}
|
|
|
|
export type DeckUncheckedUpdateWithoutProgressInput = {
|
|
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
|
|
groupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
cards?: Prisma.FlashcardUncheckedUpdateManyWithoutDeckNestedInput
|
|
shareLink?: Prisma.ShareLinkUncheckedUpdateOneWithoutDeckNestedInput
|
|
}
|
|
|
|
export type DeckCreateWithoutShareLinkInput = {
|
|
id?: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
class: Prisma.ClassCreateNestedOneWithoutDecksInput
|
|
group?: Prisma.MaterialGroupCreateNestedOneWithoutDecksInput
|
|
cards?: Prisma.FlashcardCreateNestedManyWithoutDeckInput
|
|
progress?: Prisma.StudyProgressCreateNestedManyWithoutDeckInput
|
|
}
|
|
|
|
export type DeckUncheckedCreateWithoutShareLinkInput = {
|
|
id?: string
|
|
classId: string
|
|
name: string
|
|
description?: string | null
|
|
sortOrder?: number
|
|
createdAt?: Date | string
|
|
groupId?: string | null
|
|
cards?: Prisma.FlashcardUncheckedCreateNestedManyWithoutDeckInput
|
|
progress?: Prisma.StudyProgressUncheckedCreateNestedManyWithoutDeckInput
|
|
}
|
|
|
|
export type DeckCreateOrConnectWithoutShareLinkInput = {
|
|
where: Prisma.DeckWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.DeckCreateWithoutShareLinkInput, Prisma.DeckUncheckedCreateWithoutShareLinkInput>
|
|
}
|
|
|
|
export type DeckUpsertWithoutShareLinkInput = {
|
|
update: Prisma.XOR<Prisma.DeckUpdateWithoutShareLinkInput, Prisma.DeckUncheckedUpdateWithoutShareLinkInput>
|
|
create: Prisma.XOR<Prisma.DeckCreateWithoutShareLinkInput, Prisma.DeckUncheckedCreateWithoutShareLinkInput>
|
|
where?: Prisma.DeckWhereInput
|
|
}
|
|
|
|
export type DeckUpdateToOneWithWhereWithoutShareLinkInput = {
|
|
where?: Prisma.DeckWhereInput
|
|
data: Prisma.XOR<Prisma.DeckUpdateWithoutShareLinkInput, Prisma.DeckUncheckedUpdateWithoutShareLinkInput>
|
|
}
|
|
|
|
export type DeckUpdateWithoutShareLinkInput = {
|
|
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
|
|
group?: Prisma.MaterialGroupUpdateOneWithoutDecksNestedInput
|
|
cards?: Prisma.FlashcardUpdateManyWithoutDeckNestedInput
|
|
progress?: Prisma.StudyProgressUpdateManyWithoutDeckNestedInput
|
|
}
|
|
|
|
export type DeckUncheckedUpdateWithoutShareLinkInput = {
|
|
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
|
|
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 = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
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
|
|
}
|
|
|
|
export type DeckUncheckedUpdateWithoutClassInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
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
|
|
}
|
|
|
|
export type DeckUncheckedUpdateManyWithoutClassInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
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
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type DeckCountOutputType
|
|
*/
|
|
|
|
export type DeckCountOutputType = {
|
|
cards: number
|
|
progress: number
|
|
}
|
|
|
|
export type DeckCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
cards?: boolean | DeckCountOutputTypeCountCardsArgs
|
|
progress?: boolean | DeckCountOutputTypeCountProgressArgs
|
|
}
|
|
|
|
/**
|
|
* DeckCountOutputType without action
|
|
*/
|
|
export type DeckCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the DeckCountOutputType
|
|
*/
|
|
select?: Prisma.DeckCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* DeckCountOutputType without action
|
|
*/
|
|
export type DeckCountOutputTypeCountCardsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FlashcardWhereInput
|
|
}
|
|
|
|
/**
|
|
* DeckCountOutputType without action
|
|
*/
|
|
export type DeckCountOutputTypeCountProgressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.StudyProgressWhereInput
|
|
}
|
|
|
|
|
|
export type DeckSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
classId?: boolean
|
|
name?: boolean
|
|
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>
|
|
_count?: boolean | Prisma.DeckCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["deck"]>
|
|
|
|
export type DeckSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
classId?: boolean
|
|
name?: boolean
|
|
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<{
|
|
id?: boolean
|
|
classId?: boolean
|
|
name?: boolean
|
|
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 = {
|
|
id?: boolean
|
|
classId?: boolean
|
|
name?: boolean
|
|
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" | "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>
|
|
_count?: boolean | Prisma.DeckCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
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>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
classId: string
|
|
name: string
|
|
description: string | null
|
|
sortOrder: number
|
|
createdAt: Date
|
|
groupId: string | null
|
|
}, ExtArgs["result"]["deck"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type DeckGetPayload<S extends boolean | null | undefined | DeckDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DeckPayload, S>
|
|
|
|
export type DeckCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<DeckFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: DeckCountAggregateInputType | true
|
|
}
|
|
|
|
export interface DeckDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Deck'], meta: { name: 'Deck' } }
|
|
/**
|
|
* Find zero or one Deck that matches the filter.
|
|
* @param {DeckFindUniqueArgs} args - Arguments to find a Deck
|
|
* @example
|
|
* // Get one Deck
|
|
* const deck = await prisma.deck.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends DeckFindUniqueArgs>(args: Prisma.SelectSubset<T, DeckFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Deck that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {DeckFindUniqueOrThrowArgs} args - Arguments to find a Deck
|
|
* @example
|
|
* // Get one Deck
|
|
* const deck = await prisma.deck.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends DeckFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DeckFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Deck that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeckFindFirstArgs} args - Arguments to find a Deck
|
|
* @example
|
|
* // Get one Deck
|
|
* const deck = await prisma.deck.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends DeckFindFirstArgs>(args?: Prisma.SelectSubset<T, DeckFindFirstArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Deck that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeckFindFirstOrThrowArgs} args - Arguments to find a Deck
|
|
* @example
|
|
* // Get one Deck
|
|
* const deck = await prisma.deck.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends DeckFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DeckFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Decks that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeckFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Decks
|
|
* const decks = await prisma.deck.findMany()
|
|
*
|
|
* // Get first 10 Decks
|
|
* const decks = await prisma.deck.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const deckWithIdOnly = await prisma.deck.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends DeckFindManyArgs>(args?: Prisma.SelectSubset<T, DeckFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Deck.
|
|
* @param {DeckCreateArgs} args - Arguments to create a Deck.
|
|
* @example
|
|
* // Create one Deck
|
|
* const Deck = await prisma.deck.create({
|
|
* data: {
|
|
* // ... data to create a Deck
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends DeckCreateArgs>(args: Prisma.SelectSubset<T, DeckCreateArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Decks.
|
|
* @param {DeckCreateManyArgs} args - Arguments to create many Decks.
|
|
* @example
|
|
* // Create many Decks
|
|
* const deck = await prisma.deck.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends DeckCreateManyArgs>(args?: Prisma.SelectSubset<T, DeckCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Decks and returns the data saved in the database.
|
|
* @param {DeckCreateManyAndReturnArgs} args - Arguments to create many Decks.
|
|
* @example
|
|
* // Create many Decks
|
|
* const deck = await prisma.deck.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Decks and only return the `id`
|
|
* const deckWithIdOnly = await prisma.deck.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends DeckCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DeckCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Deck.
|
|
* @param {DeckDeleteArgs} args - Arguments to delete one Deck.
|
|
* @example
|
|
* // Delete one Deck
|
|
* const Deck = await prisma.deck.delete({
|
|
* where: {
|
|
* // ... filter to delete one Deck
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends DeckDeleteArgs>(args: Prisma.SelectSubset<T, DeckDeleteArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Deck.
|
|
* @param {DeckUpdateArgs} args - Arguments to update one Deck.
|
|
* @example
|
|
* // Update one Deck
|
|
* const deck = await prisma.deck.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends DeckUpdateArgs>(args: Prisma.SelectSubset<T, DeckUpdateArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Decks.
|
|
* @param {DeckDeleteManyArgs} args - Arguments to filter Decks to delete.
|
|
* @example
|
|
* // Delete a few Decks
|
|
* const { count } = await prisma.deck.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends DeckDeleteManyArgs>(args?: Prisma.SelectSubset<T, DeckDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Decks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeckUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Decks
|
|
* const deck = await prisma.deck.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends DeckUpdateManyArgs>(args: Prisma.SelectSubset<T, DeckUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Decks and returns the data updated in the database.
|
|
* @param {DeckUpdateManyAndReturnArgs} args - Arguments to update many Decks.
|
|
* @example
|
|
* // Update many Decks
|
|
* const deck = await prisma.deck.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Decks and only return the `id`
|
|
* const deckWithIdOnly = await prisma.deck.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends DeckUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DeckUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Deck.
|
|
* @param {DeckUpsertArgs} args - Arguments to update or create a Deck.
|
|
* @example
|
|
* // Update or create a Deck
|
|
* const deck = await prisma.deck.upsert({
|
|
* create: {
|
|
* // ... data to create a Deck
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Deck we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends DeckUpsertArgs>(args: Prisma.SelectSubset<T, DeckUpsertArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Decks.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeckCountArgs} args - Arguments to filter Decks to count.
|
|
* @example
|
|
* // Count the number of Decks
|
|
* const count = await prisma.deck.count({
|
|
* where: {
|
|
* // ... the filter for the Decks we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends DeckCountArgs>(
|
|
args?: Prisma.Subset<T, DeckCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], DeckCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Deck.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeckAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends DeckAggregateArgs>(args: Prisma.Subset<T, DeckAggregateArgs>): Prisma.PrismaPromise<GetDeckAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Deck.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {DeckGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends DeckGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: DeckGroupByArgs['orderBy'] }
|
|
: { orderBy?: DeckGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, DeckGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDeckGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Deck model
|
|
*/
|
|
readonly fields: DeckFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Deck.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__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>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Deck model
|
|
*/
|
|
export interface DeckFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Deck", 'String'>
|
|
readonly classId: Prisma.FieldRef<"Deck", 'String'>
|
|
readonly name: Prisma.FieldRef<"Deck", 'String'>
|
|
readonly description: Prisma.FieldRef<"Deck", 'String'>
|
|
readonly sortOrder: Prisma.FieldRef<"Deck", 'Int'>
|
|
readonly createdAt: Prisma.FieldRef<"Deck", 'DateTime'>
|
|
readonly groupId: Prisma.FieldRef<"Deck", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Deck findUnique
|
|
*/
|
|
export type DeckFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Deck to fetch.
|
|
*/
|
|
where: Prisma.DeckWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Deck findUniqueOrThrow
|
|
*/
|
|
export type DeckFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Deck to fetch.
|
|
*/
|
|
where: Prisma.DeckWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Deck findFirst
|
|
*/
|
|
export type DeckFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Deck to fetch.
|
|
*/
|
|
where?: Prisma.DeckWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Decks to fetch.
|
|
*/
|
|
orderBy?: Prisma.DeckOrderByWithRelationInput | Prisma.DeckOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Decks.
|
|
*/
|
|
cursor?: Prisma.DeckWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Decks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Decks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Decks.
|
|
*/
|
|
distinct?: Prisma.DeckScalarFieldEnum | Prisma.DeckScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Deck findFirstOrThrow
|
|
*/
|
|
export type DeckFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Deck to fetch.
|
|
*/
|
|
where?: Prisma.DeckWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Decks to fetch.
|
|
*/
|
|
orderBy?: Prisma.DeckOrderByWithRelationInput | Prisma.DeckOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Decks.
|
|
*/
|
|
cursor?: Prisma.DeckWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Decks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Decks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Decks.
|
|
*/
|
|
distinct?: Prisma.DeckScalarFieldEnum | Prisma.DeckScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Deck findMany
|
|
*/
|
|
export type DeckFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Decks to fetch.
|
|
*/
|
|
where?: Prisma.DeckWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Decks to fetch.
|
|
*/
|
|
orderBy?: Prisma.DeckOrderByWithRelationInput | Prisma.DeckOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Decks.
|
|
*/
|
|
cursor?: Prisma.DeckWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Decks from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Decks.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Decks.
|
|
*/
|
|
distinct?: Prisma.DeckScalarFieldEnum | Prisma.DeckScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Deck create
|
|
*/
|
|
export type DeckCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Deck.
|
|
*/
|
|
data: Prisma.XOR<Prisma.DeckCreateInput, Prisma.DeckUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Deck createMany
|
|
*/
|
|
export type DeckCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Decks.
|
|
*/
|
|
data: Prisma.DeckCreateManyInput | Prisma.DeckCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* Deck createManyAndReturn
|
|
*/
|
|
export type DeckCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Decks.
|
|
*/
|
|
data: Prisma.DeckCreateManyInput | Prisma.DeckCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Deck update
|
|
*/
|
|
export type DeckUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Deck.
|
|
*/
|
|
data: Prisma.XOR<Prisma.DeckUpdateInput, Prisma.DeckUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Deck to update.
|
|
*/
|
|
where: Prisma.DeckWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Deck updateMany
|
|
*/
|
|
export type DeckUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Decks.
|
|
*/
|
|
data: Prisma.XOR<Prisma.DeckUpdateManyMutationInput, Prisma.DeckUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Decks to update
|
|
*/
|
|
where?: Prisma.DeckWhereInput
|
|
/**
|
|
* Limit how many Decks to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Deck updateManyAndReturn
|
|
*/
|
|
export type DeckUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Decks.
|
|
*/
|
|
data: Prisma.XOR<Prisma.DeckUpdateManyMutationInput, Prisma.DeckUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Decks to update
|
|
*/
|
|
where?: Prisma.DeckWhereInput
|
|
/**
|
|
* Limit how many Decks to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Deck upsert
|
|
*/
|
|
export type DeckUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Deck to update in case it exists.
|
|
*/
|
|
where: Prisma.DeckWhereUniqueInput
|
|
/**
|
|
* In case the Deck found by the `where` argument doesn't exist, create a new Deck with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.DeckCreateInput, Prisma.DeckUncheckedCreateInput>
|
|
/**
|
|
* In case the Deck was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.DeckUpdateInput, Prisma.DeckUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Deck delete
|
|
*/
|
|
export type DeckDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Deck to delete.
|
|
*/
|
|
where: Prisma.DeckWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Deck deleteMany
|
|
*/
|
|
export type DeckDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Decks to delete
|
|
*/
|
|
where?: Prisma.DeckWhereInput
|
|
/**
|
|
* Limit how many Decks to delete.
|
|
*/
|
|
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
|
|
*/
|
|
export type Deck$cardsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Flashcard
|
|
*/
|
|
select?: Prisma.FlashcardSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Flashcard
|
|
*/
|
|
omit?: Prisma.FlashcardOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FlashcardInclude<ExtArgs> | null
|
|
where?: Prisma.FlashcardWhereInput
|
|
orderBy?: Prisma.FlashcardOrderByWithRelationInput | Prisma.FlashcardOrderByWithRelationInput[]
|
|
cursor?: Prisma.FlashcardWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.FlashcardScalarFieldEnum | Prisma.FlashcardScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Deck.shareLink
|
|
*/
|
|
export type Deck$shareLinkArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the ShareLink
|
|
*/
|
|
select?: Prisma.ShareLinkSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the ShareLink
|
|
*/
|
|
omit?: Prisma.ShareLinkOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ShareLinkInclude<ExtArgs> | null
|
|
where?: Prisma.ShareLinkWhereInput
|
|
}
|
|
|
|
/**
|
|
* Deck.progress
|
|
*/
|
|
export type Deck$progressArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the StudyProgress
|
|
*/
|
|
select?: Prisma.StudyProgressSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the StudyProgress
|
|
*/
|
|
omit?: Prisma.StudyProgressOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.StudyProgressInclude<ExtArgs> | null
|
|
where?: Prisma.StudyProgressWhereInput
|
|
orderBy?: Prisma.StudyProgressOrderByWithRelationInput | Prisma.StudyProgressOrderByWithRelationInput[]
|
|
cursor?: Prisma.StudyProgressWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.StudyProgressScalarFieldEnum | Prisma.StudyProgressScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Deck without action
|
|
*/
|
|
export type DeckDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Deck
|
|
*/
|
|
select?: Prisma.DeckSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Deck
|
|
*/
|
|
omit?: Prisma.DeckOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.DeckInclude<ExtArgs> | null
|
|
}
|