Study/src/generated/prisma/models/Flashcard.ts
Elijah 7b90409f2e
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m22s
Add deck generation and study flow improvements
2026-07-13 14:56:33 -07:00

1523 lines
56 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 `Flashcard` 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 Flashcard
*
*/
export type FlashcardModel = runtime.Types.Result.DefaultSelection<Prisma.$FlashcardPayload>
export type AggregateFlashcard = {
_count: FlashcardCountAggregateOutputType | null
_avg: FlashcardAvgAggregateOutputType | null
_sum: FlashcardSumAggregateOutputType | null
_min: FlashcardMinAggregateOutputType | null
_max: FlashcardMaxAggregateOutputType | null
}
export type FlashcardAvgAggregateOutputType = {
sortOrder: number | null
}
export type FlashcardSumAggregateOutputType = {
sortOrder: number | null
}
export type FlashcardMinAggregateOutputType = {
id: string | null
deckId: string | null
front: string | null
back: string | null
sortOrder: number | null
}
export type FlashcardMaxAggregateOutputType = {
id: string | null
deckId: string | null
front: string | null
back: string | null
sortOrder: number | null
}
export type FlashcardCountAggregateOutputType = {
id: number
deckId: number
front: number
back: number
sortOrder: number
_all: number
}
export type FlashcardAvgAggregateInputType = {
sortOrder?: true
}
export type FlashcardSumAggregateInputType = {
sortOrder?: true
}
export type FlashcardMinAggregateInputType = {
id?: true
deckId?: true
front?: true
back?: true
sortOrder?: true
}
export type FlashcardMaxAggregateInputType = {
id?: true
deckId?: true
front?: true
back?: true
sortOrder?: true
}
export type FlashcardCountAggregateInputType = {
id?: true
deckId?: true
front?: true
back?: true
sortOrder?: true
_all?: true
}
export type FlashcardAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Flashcard to aggregate.
*/
where?: Prisma.FlashcardWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Flashcards to fetch.
*/
orderBy?: Prisma.FlashcardOrderByWithRelationInput | Prisma.FlashcardOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.FlashcardWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Flashcards 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` Flashcards.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Flashcards
**/
_count?: true | FlashcardCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: FlashcardAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: FlashcardSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: FlashcardMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: FlashcardMaxAggregateInputType
}
export type GetFlashcardAggregateType<T extends FlashcardAggregateArgs> = {
[P in keyof T & keyof AggregateFlashcard]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateFlashcard[P]>
: Prisma.GetScalarType<T[P], AggregateFlashcard[P]>
}
export type FlashcardGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.FlashcardWhereInput
orderBy?: Prisma.FlashcardOrderByWithAggregationInput | Prisma.FlashcardOrderByWithAggregationInput[]
by: Prisma.FlashcardScalarFieldEnum[] | Prisma.FlashcardScalarFieldEnum
having?: Prisma.FlashcardScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: FlashcardCountAggregateInputType | true
_avg?: FlashcardAvgAggregateInputType
_sum?: FlashcardSumAggregateInputType
_min?: FlashcardMinAggregateInputType
_max?: FlashcardMaxAggregateInputType
}
export type FlashcardGroupByOutputType = {
id: string
deckId: string
front: string
back: string
sortOrder: number
_count: FlashcardCountAggregateOutputType | null
_avg: FlashcardAvgAggregateOutputType | null
_sum: FlashcardSumAggregateOutputType | null
_min: FlashcardMinAggregateOutputType | null
_max: FlashcardMaxAggregateOutputType | null
}
export type GetFlashcardGroupByPayload<T extends FlashcardGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<FlashcardGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof FlashcardGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], FlashcardGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], FlashcardGroupByOutputType[P]>
}
>
>
export type FlashcardWhereInput = {
AND?: Prisma.FlashcardWhereInput | Prisma.FlashcardWhereInput[]
OR?: Prisma.FlashcardWhereInput[]
NOT?: Prisma.FlashcardWhereInput | Prisma.FlashcardWhereInput[]
id?: Prisma.StringFilter<"Flashcard"> | string
deckId?: Prisma.StringFilter<"Flashcard"> | string
front?: Prisma.StringFilter<"Flashcard"> | string
back?: Prisma.StringFilter<"Flashcard"> | string
sortOrder?: Prisma.IntFilter<"Flashcard"> | number
deck?: Prisma.XOR<Prisma.DeckScalarRelationFilter, Prisma.DeckWhereInput>
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateListRelationFilter
}
export type FlashcardOrderByWithRelationInput = {
id?: Prisma.SortOrder
deckId?: Prisma.SortOrder
front?: Prisma.SortOrder
back?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
deck?: Prisma.DeckOrderByWithRelationInput
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateOrderByRelationAggregateInput
}
export type FlashcardWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.FlashcardWhereInput | Prisma.FlashcardWhereInput[]
OR?: Prisma.FlashcardWhereInput[]
NOT?: Prisma.FlashcardWhereInput | Prisma.FlashcardWhereInput[]
deckId?: Prisma.StringFilter<"Flashcard"> | string
front?: Prisma.StringFilter<"Flashcard"> | string
back?: Prisma.StringFilter<"Flashcard"> | string
sortOrder?: Prisma.IntFilter<"Flashcard"> | number
deck?: Prisma.XOR<Prisma.DeckScalarRelationFilter, Prisma.DeckWhereInput>
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateListRelationFilter
}, "id">
export type FlashcardOrderByWithAggregationInput = {
id?: Prisma.SortOrder
deckId?: Prisma.SortOrder
front?: Prisma.SortOrder
back?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
_count?: Prisma.FlashcardCountOrderByAggregateInput
_avg?: Prisma.FlashcardAvgOrderByAggregateInput
_max?: Prisma.FlashcardMaxOrderByAggregateInput
_min?: Prisma.FlashcardMinOrderByAggregateInput
_sum?: Prisma.FlashcardSumOrderByAggregateInput
}
export type FlashcardScalarWhereWithAggregatesInput = {
AND?: Prisma.FlashcardScalarWhereWithAggregatesInput | Prisma.FlashcardScalarWhereWithAggregatesInput[]
OR?: Prisma.FlashcardScalarWhereWithAggregatesInput[]
NOT?: Prisma.FlashcardScalarWhereWithAggregatesInput | Prisma.FlashcardScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Flashcard"> | string
deckId?: Prisma.StringWithAggregatesFilter<"Flashcard"> | string
front?: Prisma.StringWithAggregatesFilter<"Flashcard"> | string
back?: Prisma.StringWithAggregatesFilter<"Flashcard"> | string
sortOrder?: Prisma.IntWithAggregatesFilter<"Flashcard"> | number
}
export type FlashcardCreateInput = {
id?: string
front: string
back: string
sortOrder?: number
deck: Prisma.DeckCreateNestedOneWithoutCardsInput
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateCreateNestedManyWithoutFlashcardInput
}
export type FlashcardUncheckedCreateInput = {
id?: string
deckId: string
front: string
back: string
sortOrder?: number
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateUncheckedCreateNestedManyWithoutFlashcardInput
}
export type FlashcardUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
deck?: Prisma.DeckUpdateOneRequiredWithoutCardsNestedInput
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateUpdateManyWithoutFlashcardNestedInput
}
export type FlashcardUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
deckId?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateUncheckedUpdateManyWithoutFlashcardNestedInput
}
export type FlashcardCreateManyInput = {
id?: string
deckId: string
front: string
back: string
sortOrder?: number
}
export type FlashcardUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
}
export type FlashcardUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
deckId?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
}
export type FlashcardListRelationFilter = {
every?: Prisma.FlashcardWhereInput
some?: Prisma.FlashcardWhereInput
none?: Prisma.FlashcardWhereInput
}
export type FlashcardOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type FlashcardCountOrderByAggregateInput = {
id?: Prisma.SortOrder
deckId?: Prisma.SortOrder
front?: Prisma.SortOrder
back?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
}
export type FlashcardAvgOrderByAggregateInput = {
sortOrder?: Prisma.SortOrder
}
export type FlashcardMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
deckId?: Prisma.SortOrder
front?: Prisma.SortOrder
back?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
}
export type FlashcardMinOrderByAggregateInput = {
id?: Prisma.SortOrder
deckId?: Prisma.SortOrder
front?: Prisma.SortOrder
back?: Prisma.SortOrder
sortOrder?: Prisma.SortOrder
}
export type FlashcardSumOrderByAggregateInput = {
sortOrder?: Prisma.SortOrder
}
export type FlashcardScalarRelationFilter = {
is?: Prisma.FlashcardWhereInput
isNot?: Prisma.FlashcardWhereInput
}
export type FlashcardCreateNestedManyWithoutDeckInput = {
create?: Prisma.XOR<Prisma.FlashcardCreateWithoutDeckInput, Prisma.FlashcardUncheckedCreateWithoutDeckInput> | Prisma.FlashcardCreateWithoutDeckInput[] | Prisma.FlashcardUncheckedCreateWithoutDeckInput[]
connectOrCreate?: Prisma.FlashcardCreateOrConnectWithoutDeckInput | Prisma.FlashcardCreateOrConnectWithoutDeckInput[]
createMany?: Prisma.FlashcardCreateManyDeckInputEnvelope
connect?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
}
export type FlashcardUncheckedCreateNestedManyWithoutDeckInput = {
create?: Prisma.XOR<Prisma.FlashcardCreateWithoutDeckInput, Prisma.FlashcardUncheckedCreateWithoutDeckInput> | Prisma.FlashcardCreateWithoutDeckInput[] | Prisma.FlashcardUncheckedCreateWithoutDeckInput[]
connectOrCreate?: Prisma.FlashcardCreateOrConnectWithoutDeckInput | Prisma.FlashcardCreateOrConnectWithoutDeckInput[]
createMany?: Prisma.FlashcardCreateManyDeckInputEnvelope
connect?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
}
export type FlashcardUpdateManyWithoutDeckNestedInput = {
create?: Prisma.XOR<Prisma.FlashcardCreateWithoutDeckInput, Prisma.FlashcardUncheckedCreateWithoutDeckInput> | Prisma.FlashcardCreateWithoutDeckInput[] | Prisma.FlashcardUncheckedCreateWithoutDeckInput[]
connectOrCreate?: Prisma.FlashcardCreateOrConnectWithoutDeckInput | Prisma.FlashcardCreateOrConnectWithoutDeckInput[]
upsert?: Prisma.FlashcardUpsertWithWhereUniqueWithoutDeckInput | Prisma.FlashcardUpsertWithWhereUniqueWithoutDeckInput[]
createMany?: Prisma.FlashcardCreateManyDeckInputEnvelope
set?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
disconnect?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
delete?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
connect?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
update?: Prisma.FlashcardUpdateWithWhereUniqueWithoutDeckInput | Prisma.FlashcardUpdateWithWhereUniqueWithoutDeckInput[]
updateMany?: Prisma.FlashcardUpdateManyWithWhereWithoutDeckInput | Prisma.FlashcardUpdateManyWithWhereWithoutDeckInput[]
deleteMany?: Prisma.FlashcardScalarWhereInput | Prisma.FlashcardScalarWhereInput[]
}
export type FlashcardUncheckedUpdateManyWithoutDeckNestedInput = {
create?: Prisma.XOR<Prisma.FlashcardCreateWithoutDeckInput, Prisma.FlashcardUncheckedCreateWithoutDeckInput> | Prisma.FlashcardCreateWithoutDeckInput[] | Prisma.FlashcardUncheckedCreateWithoutDeckInput[]
connectOrCreate?: Prisma.FlashcardCreateOrConnectWithoutDeckInput | Prisma.FlashcardCreateOrConnectWithoutDeckInput[]
upsert?: Prisma.FlashcardUpsertWithWhereUniqueWithoutDeckInput | Prisma.FlashcardUpsertWithWhereUniqueWithoutDeckInput[]
createMany?: Prisma.FlashcardCreateManyDeckInputEnvelope
set?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
disconnect?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
delete?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
connect?: Prisma.FlashcardWhereUniqueInput | Prisma.FlashcardWhereUniqueInput[]
update?: Prisma.FlashcardUpdateWithWhereUniqueWithoutDeckInput | Prisma.FlashcardUpdateWithWhereUniqueWithoutDeckInput[]
updateMany?: Prisma.FlashcardUpdateManyWithWhereWithoutDeckInput | Prisma.FlashcardUpdateManyWithWhereWithoutDeckInput[]
deleteMany?: Prisma.FlashcardScalarWhereInput | Prisma.FlashcardScalarWhereInput[]
}
export type FlashcardCreateNestedOneWithoutSpacedRepetitionStatesInput = {
create?: Prisma.XOR<Prisma.FlashcardCreateWithoutSpacedRepetitionStatesInput, Prisma.FlashcardUncheckedCreateWithoutSpacedRepetitionStatesInput>
connectOrCreate?: Prisma.FlashcardCreateOrConnectWithoutSpacedRepetitionStatesInput
connect?: Prisma.FlashcardWhereUniqueInput
}
export type FlashcardUpdateOneRequiredWithoutSpacedRepetitionStatesNestedInput = {
create?: Prisma.XOR<Prisma.FlashcardCreateWithoutSpacedRepetitionStatesInput, Prisma.FlashcardUncheckedCreateWithoutSpacedRepetitionStatesInput>
connectOrCreate?: Prisma.FlashcardCreateOrConnectWithoutSpacedRepetitionStatesInput
upsert?: Prisma.FlashcardUpsertWithoutSpacedRepetitionStatesInput
connect?: Prisma.FlashcardWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.FlashcardUpdateToOneWithWhereWithoutSpacedRepetitionStatesInput, Prisma.FlashcardUpdateWithoutSpacedRepetitionStatesInput>, Prisma.FlashcardUncheckedUpdateWithoutSpacedRepetitionStatesInput>
}
export type FlashcardCreateWithoutDeckInput = {
id?: string
front: string
back: string
sortOrder?: number
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateCreateNestedManyWithoutFlashcardInput
}
export type FlashcardUncheckedCreateWithoutDeckInput = {
id?: string
front: string
back: string
sortOrder?: number
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateUncheckedCreateNestedManyWithoutFlashcardInput
}
export type FlashcardCreateOrConnectWithoutDeckInput = {
where: Prisma.FlashcardWhereUniqueInput
create: Prisma.XOR<Prisma.FlashcardCreateWithoutDeckInput, Prisma.FlashcardUncheckedCreateWithoutDeckInput>
}
export type FlashcardCreateManyDeckInputEnvelope = {
data: Prisma.FlashcardCreateManyDeckInput | Prisma.FlashcardCreateManyDeckInput[]
}
export type FlashcardUpsertWithWhereUniqueWithoutDeckInput = {
where: Prisma.FlashcardWhereUniqueInput
update: Prisma.XOR<Prisma.FlashcardUpdateWithoutDeckInput, Prisma.FlashcardUncheckedUpdateWithoutDeckInput>
create: Prisma.XOR<Prisma.FlashcardCreateWithoutDeckInput, Prisma.FlashcardUncheckedCreateWithoutDeckInput>
}
export type FlashcardUpdateWithWhereUniqueWithoutDeckInput = {
where: Prisma.FlashcardWhereUniqueInput
data: Prisma.XOR<Prisma.FlashcardUpdateWithoutDeckInput, Prisma.FlashcardUncheckedUpdateWithoutDeckInput>
}
export type FlashcardUpdateManyWithWhereWithoutDeckInput = {
where: Prisma.FlashcardScalarWhereInput
data: Prisma.XOR<Prisma.FlashcardUpdateManyMutationInput, Prisma.FlashcardUncheckedUpdateManyWithoutDeckInput>
}
export type FlashcardScalarWhereInput = {
AND?: Prisma.FlashcardScalarWhereInput | Prisma.FlashcardScalarWhereInput[]
OR?: Prisma.FlashcardScalarWhereInput[]
NOT?: Prisma.FlashcardScalarWhereInput | Prisma.FlashcardScalarWhereInput[]
id?: Prisma.StringFilter<"Flashcard"> | string
deckId?: Prisma.StringFilter<"Flashcard"> | string
front?: Prisma.StringFilter<"Flashcard"> | string
back?: Prisma.StringFilter<"Flashcard"> | string
sortOrder?: Prisma.IntFilter<"Flashcard"> | number
}
export type FlashcardCreateWithoutSpacedRepetitionStatesInput = {
id?: string
front: string
back: string
sortOrder?: number
deck: Prisma.DeckCreateNestedOneWithoutCardsInput
}
export type FlashcardUncheckedCreateWithoutSpacedRepetitionStatesInput = {
id?: string
deckId: string
front: string
back: string
sortOrder?: number
}
export type FlashcardCreateOrConnectWithoutSpacedRepetitionStatesInput = {
where: Prisma.FlashcardWhereUniqueInput
create: Prisma.XOR<Prisma.FlashcardCreateWithoutSpacedRepetitionStatesInput, Prisma.FlashcardUncheckedCreateWithoutSpacedRepetitionStatesInput>
}
export type FlashcardUpsertWithoutSpacedRepetitionStatesInput = {
update: Prisma.XOR<Prisma.FlashcardUpdateWithoutSpacedRepetitionStatesInput, Prisma.FlashcardUncheckedUpdateWithoutSpacedRepetitionStatesInput>
create: Prisma.XOR<Prisma.FlashcardCreateWithoutSpacedRepetitionStatesInput, Prisma.FlashcardUncheckedCreateWithoutSpacedRepetitionStatesInput>
where?: Prisma.FlashcardWhereInput
}
export type FlashcardUpdateToOneWithWhereWithoutSpacedRepetitionStatesInput = {
where?: Prisma.FlashcardWhereInput
data: Prisma.XOR<Prisma.FlashcardUpdateWithoutSpacedRepetitionStatesInput, Prisma.FlashcardUncheckedUpdateWithoutSpacedRepetitionStatesInput>
}
export type FlashcardUpdateWithoutSpacedRepetitionStatesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
deck?: Prisma.DeckUpdateOneRequiredWithoutCardsNestedInput
}
export type FlashcardUncheckedUpdateWithoutSpacedRepetitionStatesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
deckId?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
}
export type FlashcardCreateManyDeckInput = {
id?: string
front: string
back: string
sortOrder?: number
}
export type FlashcardUpdateWithoutDeckInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateUpdateManyWithoutFlashcardNestedInput
}
export type FlashcardUncheckedUpdateWithoutDeckInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
spacedRepetitionStates?: Prisma.SpacedRepetitionCardStateUncheckedUpdateManyWithoutFlashcardNestedInput
}
export type FlashcardUncheckedUpdateManyWithoutDeckInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
front?: Prisma.StringFieldUpdateOperationsInput | string
back?: Prisma.StringFieldUpdateOperationsInput | string
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
}
/**
* Count Type FlashcardCountOutputType
*/
export type FlashcardCountOutputType = {
spacedRepetitionStates: number
}
export type FlashcardCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
spacedRepetitionStates?: boolean | FlashcardCountOutputTypeCountSpacedRepetitionStatesArgs
}
/**
* FlashcardCountOutputType without action
*/
export type FlashcardCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the FlashcardCountOutputType
*/
select?: Prisma.FlashcardCountOutputTypeSelect<ExtArgs> | null
}
/**
* FlashcardCountOutputType without action
*/
export type FlashcardCountOutputTypeCountSpacedRepetitionStatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SpacedRepetitionCardStateWhereInput
}
export type FlashcardSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
deckId?: boolean
front?: boolean
back?: boolean
sortOrder?: boolean
deck?: boolean | Prisma.DeckDefaultArgs<ExtArgs>
spacedRepetitionStates?: boolean | Prisma.Flashcard$spacedRepetitionStatesArgs<ExtArgs>
_count?: boolean | Prisma.FlashcardCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["flashcard"]>
export type FlashcardSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
deckId?: boolean
front?: boolean
back?: boolean
sortOrder?: boolean
deck?: boolean | Prisma.DeckDefaultArgs<ExtArgs>
}, ExtArgs["result"]["flashcard"]>
export type FlashcardSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
deckId?: boolean
front?: boolean
back?: boolean
sortOrder?: boolean
deck?: boolean | Prisma.DeckDefaultArgs<ExtArgs>
}, ExtArgs["result"]["flashcard"]>
export type FlashcardSelectScalar = {
id?: boolean
deckId?: boolean
front?: boolean
back?: boolean
sortOrder?: boolean
}
export type FlashcardOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "deckId" | "front" | "back" | "sortOrder", ExtArgs["result"]["flashcard"]>
export type FlashcardInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
deck?: boolean | Prisma.DeckDefaultArgs<ExtArgs>
spacedRepetitionStates?: boolean | Prisma.Flashcard$spacedRepetitionStatesArgs<ExtArgs>
_count?: boolean | Prisma.FlashcardCountOutputTypeDefaultArgs<ExtArgs>
}
export type FlashcardIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
deck?: boolean | Prisma.DeckDefaultArgs<ExtArgs>
}
export type FlashcardIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
deck?: boolean | Prisma.DeckDefaultArgs<ExtArgs>
}
export type $FlashcardPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Flashcard"
objects: {
deck: Prisma.$DeckPayload<ExtArgs>
spacedRepetitionStates: Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
deckId: string
front: string
back: string
sortOrder: number
}, ExtArgs["result"]["flashcard"]>
composites: {}
}
export type FlashcardGetPayload<S extends boolean | null | undefined | FlashcardDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FlashcardPayload, S>
export type FlashcardCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<FlashcardFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: FlashcardCountAggregateInputType | true
}
export interface FlashcardDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Flashcard'], meta: { name: 'Flashcard' } }
/**
* Find zero or one Flashcard that matches the filter.
* @param {FlashcardFindUniqueArgs} args - Arguments to find a Flashcard
* @example
* // Get one Flashcard
* const flashcard = await prisma.flashcard.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends FlashcardFindUniqueArgs>(args: Prisma.SelectSubset<T, FlashcardFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Flashcard that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {FlashcardFindUniqueOrThrowArgs} args - Arguments to find a Flashcard
* @example
* // Get one Flashcard
* const flashcard = await prisma.flashcard.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends FlashcardFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FlashcardFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Flashcard 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 {FlashcardFindFirstArgs} args - Arguments to find a Flashcard
* @example
* // Get one Flashcard
* const flashcard = await prisma.flashcard.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends FlashcardFindFirstArgs>(args?: Prisma.SelectSubset<T, FlashcardFindFirstArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Flashcard 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 {FlashcardFindFirstOrThrowArgs} args - Arguments to find a Flashcard
* @example
* // Get one Flashcard
* const flashcard = await prisma.flashcard.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends FlashcardFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FlashcardFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Flashcards 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 {FlashcardFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Flashcards
* const flashcards = await prisma.flashcard.findMany()
*
* // Get first 10 Flashcards
* const flashcards = await prisma.flashcard.findMany({ take: 10 })
*
* // Only select the `id`
* const flashcardWithIdOnly = await prisma.flashcard.findMany({ select: { id: true } })
*
*/
findMany<T extends FlashcardFindManyArgs>(args?: Prisma.SelectSubset<T, FlashcardFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Flashcard.
* @param {FlashcardCreateArgs} args - Arguments to create a Flashcard.
* @example
* // Create one Flashcard
* const Flashcard = await prisma.flashcard.create({
* data: {
* // ... data to create a Flashcard
* }
* })
*
*/
create<T extends FlashcardCreateArgs>(args: Prisma.SelectSubset<T, FlashcardCreateArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Flashcards.
* @param {FlashcardCreateManyArgs} args - Arguments to create many Flashcards.
* @example
* // Create many Flashcards
* const flashcard = await prisma.flashcard.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends FlashcardCreateManyArgs>(args?: Prisma.SelectSubset<T, FlashcardCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Flashcards and returns the data saved in the database.
* @param {FlashcardCreateManyAndReturnArgs} args - Arguments to create many Flashcards.
* @example
* // Create many Flashcards
* const flashcard = await prisma.flashcard.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Flashcards and only return the `id`
* const flashcardWithIdOnly = await prisma.flashcard.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 FlashcardCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FlashcardCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Flashcard.
* @param {FlashcardDeleteArgs} args - Arguments to delete one Flashcard.
* @example
* // Delete one Flashcard
* const Flashcard = await prisma.flashcard.delete({
* where: {
* // ... filter to delete one Flashcard
* }
* })
*
*/
delete<T extends FlashcardDeleteArgs>(args: Prisma.SelectSubset<T, FlashcardDeleteArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Flashcard.
* @param {FlashcardUpdateArgs} args - Arguments to update one Flashcard.
* @example
* // Update one Flashcard
* const flashcard = await prisma.flashcard.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends FlashcardUpdateArgs>(args: Prisma.SelectSubset<T, FlashcardUpdateArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Flashcards.
* @param {FlashcardDeleteManyArgs} args - Arguments to filter Flashcards to delete.
* @example
* // Delete a few Flashcards
* const { count } = await prisma.flashcard.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends FlashcardDeleteManyArgs>(args?: Prisma.SelectSubset<T, FlashcardDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Flashcards.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FlashcardUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Flashcards
* const flashcard = await prisma.flashcard.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends FlashcardUpdateManyArgs>(args: Prisma.SelectSubset<T, FlashcardUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Flashcards and returns the data updated in the database.
* @param {FlashcardUpdateManyAndReturnArgs} args - Arguments to update many Flashcards.
* @example
* // Update many Flashcards
* const flashcard = await prisma.flashcard.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Flashcards and only return the `id`
* const flashcardWithIdOnly = await prisma.flashcard.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 FlashcardUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FlashcardUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Flashcard.
* @param {FlashcardUpsertArgs} args - Arguments to update or create a Flashcard.
* @example
* // Update or create a Flashcard
* const flashcard = await prisma.flashcard.upsert({
* create: {
* // ... data to create a Flashcard
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Flashcard we want to update
* }
* })
*/
upsert<T extends FlashcardUpsertArgs>(args: Prisma.SelectSubset<T, FlashcardUpsertArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Flashcards.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FlashcardCountArgs} args - Arguments to filter Flashcards to count.
* @example
* // Count the number of Flashcards
* const count = await prisma.flashcard.count({
* where: {
* // ... the filter for the Flashcards we want to count
* }
* })
**/
count<T extends FlashcardCountArgs>(
args?: Prisma.Subset<T, FlashcardCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], FlashcardCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Flashcard.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FlashcardAggregateArgs} 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 FlashcardAggregateArgs>(args: Prisma.Subset<T, FlashcardAggregateArgs>): Prisma.PrismaPromise<GetFlashcardAggregateType<T>>
/**
* Group by Flashcard.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {FlashcardGroupByArgs} 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 FlashcardGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: FlashcardGroupByArgs['orderBy'] }
: { orderBy?: FlashcardGroupByArgs['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, FlashcardGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFlashcardGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Flashcard model
*/
readonly fields: FlashcardFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Flashcard.
* 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__FlashcardClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
deck<T extends Prisma.DeckDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DeckDefaultArgs<ExtArgs>>): Prisma.Prisma__DeckClient<runtime.Types.Result.GetResult<Prisma.$DeckPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
spacedRepetitionStates<T extends Prisma.Flashcard$spacedRepetitionStatesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Flashcard$spacedRepetitionStatesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<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 Flashcard model
*/
export interface FlashcardFieldRefs {
readonly id: Prisma.FieldRef<"Flashcard", 'String'>
readonly deckId: Prisma.FieldRef<"Flashcard", 'String'>
readonly front: Prisma.FieldRef<"Flashcard", 'String'>
readonly back: Prisma.FieldRef<"Flashcard", 'String'>
readonly sortOrder: Prisma.FieldRef<"Flashcard", 'Int'>
}
// Custom InputTypes
/**
* Flashcard findUnique
*/
export type FlashcardFindUniqueArgs<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
/**
* Filter, which Flashcard to fetch.
*/
where: Prisma.FlashcardWhereUniqueInput
}
/**
* Flashcard findUniqueOrThrow
*/
export type FlashcardFindUniqueOrThrowArgs<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
/**
* Filter, which Flashcard to fetch.
*/
where: Prisma.FlashcardWhereUniqueInput
}
/**
* Flashcard findFirst
*/
export type FlashcardFindFirstArgs<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
/**
* Filter, which Flashcard to fetch.
*/
where?: Prisma.FlashcardWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Flashcards to fetch.
*/
orderBy?: Prisma.FlashcardOrderByWithRelationInput | Prisma.FlashcardOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Flashcards.
*/
cursor?: Prisma.FlashcardWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Flashcards 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` Flashcards.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Flashcards.
*/
distinct?: Prisma.FlashcardScalarFieldEnum | Prisma.FlashcardScalarFieldEnum[]
}
/**
* Flashcard findFirstOrThrow
*/
export type FlashcardFindFirstOrThrowArgs<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
/**
* Filter, which Flashcard to fetch.
*/
where?: Prisma.FlashcardWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Flashcards to fetch.
*/
orderBy?: Prisma.FlashcardOrderByWithRelationInput | Prisma.FlashcardOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Flashcards.
*/
cursor?: Prisma.FlashcardWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Flashcards 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` Flashcards.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Flashcards.
*/
distinct?: Prisma.FlashcardScalarFieldEnum | Prisma.FlashcardScalarFieldEnum[]
}
/**
* Flashcard findMany
*/
export type FlashcardFindManyArgs<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
/**
* Filter, which Flashcards to fetch.
*/
where?: Prisma.FlashcardWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Flashcards to fetch.
*/
orderBy?: Prisma.FlashcardOrderByWithRelationInput | Prisma.FlashcardOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Flashcards.
*/
cursor?: Prisma.FlashcardWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Flashcards 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` Flashcards.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Flashcards.
*/
distinct?: Prisma.FlashcardScalarFieldEnum | Prisma.FlashcardScalarFieldEnum[]
}
/**
* Flashcard create
*/
export type FlashcardCreateArgs<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
/**
* The data needed to create a Flashcard.
*/
data: Prisma.XOR<Prisma.FlashcardCreateInput, Prisma.FlashcardUncheckedCreateInput>
}
/**
* Flashcard createMany
*/
export type FlashcardCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Flashcards.
*/
data: Prisma.FlashcardCreateManyInput | Prisma.FlashcardCreateManyInput[]
}
/**
* Flashcard createManyAndReturn
*/
export type FlashcardCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Flashcard
*/
select?: Prisma.FlashcardSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Flashcard
*/
omit?: Prisma.FlashcardOmit<ExtArgs> | null
/**
* The data used to create many Flashcards.
*/
data: Prisma.FlashcardCreateManyInput | Prisma.FlashcardCreateManyInput[]
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FlashcardIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Flashcard update
*/
export type FlashcardUpdateArgs<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
/**
* The data needed to update a Flashcard.
*/
data: Prisma.XOR<Prisma.FlashcardUpdateInput, Prisma.FlashcardUncheckedUpdateInput>
/**
* Choose, which Flashcard to update.
*/
where: Prisma.FlashcardWhereUniqueInput
}
/**
* Flashcard updateMany
*/
export type FlashcardUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Flashcards.
*/
data: Prisma.XOR<Prisma.FlashcardUpdateManyMutationInput, Prisma.FlashcardUncheckedUpdateManyInput>
/**
* Filter which Flashcards to update
*/
where?: Prisma.FlashcardWhereInput
/**
* Limit how many Flashcards to update.
*/
limit?: number
}
/**
* Flashcard updateManyAndReturn
*/
export type FlashcardUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Flashcard
*/
select?: Prisma.FlashcardSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Flashcard
*/
omit?: Prisma.FlashcardOmit<ExtArgs> | null
/**
* The data used to update Flashcards.
*/
data: Prisma.XOR<Prisma.FlashcardUpdateManyMutationInput, Prisma.FlashcardUncheckedUpdateManyInput>
/**
* Filter which Flashcards to update
*/
where?: Prisma.FlashcardWhereInput
/**
* Limit how many Flashcards to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.FlashcardIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Flashcard upsert
*/
export type FlashcardUpsertArgs<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
/**
* The filter to search for the Flashcard to update in case it exists.
*/
where: Prisma.FlashcardWhereUniqueInput
/**
* In case the Flashcard found by the `where` argument doesn't exist, create a new Flashcard with this data.
*/
create: Prisma.XOR<Prisma.FlashcardCreateInput, Prisma.FlashcardUncheckedCreateInput>
/**
* In case the Flashcard was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.FlashcardUpdateInput, Prisma.FlashcardUncheckedUpdateInput>
}
/**
* Flashcard delete
*/
export type FlashcardDeleteArgs<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
/**
* Filter which Flashcard to delete.
*/
where: Prisma.FlashcardWhereUniqueInput
}
/**
* Flashcard deleteMany
*/
export type FlashcardDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Flashcards to delete
*/
where?: Prisma.FlashcardWhereInput
/**
* Limit how many Flashcards to delete.
*/
limit?: number
}
/**
* Flashcard.spacedRepetitionStates
*/
export type Flashcard$spacedRepetitionStatesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SpacedRepetitionCardState
*/
select?: Prisma.SpacedRepetitionCardStateSelect<ExtArgs> | null
/**
* Omit specific fields from the SpacedRepetitionCardState
*/
omit?: Prisma.SpacedRepetitionCardStateOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.SpacedRepetitionCardStateInclude<ExtArgs> | null
where?: Prisma.SpacedRepetitionCardStateWhereInput
orderBy?: Prisma.SpacedRepetitionCardStateOrderByWithRelationInput | Prisma.SpacedRepetitionCardStateOrderByWithRelationInput[]
cursor?: Prisma.SpacedRepetitionCardStateWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.SpacedRepetitionCardStateScalarFieldEnum | Prisma.SpacedRepetitionCardStateScalarFieldEnum[]
}
/**
* Flashcard without action
*/
export type FlashcardDefaultArgs<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
}