All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m22s
2004 lines
87 KiB
TypeScript
2004 lines
87 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 `SpacedRepetitionCardState` 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 SpacedRepetitionCardState
|
|
*
|
|
*/
|
|
export type SpacedRepetitionCardStateModel = runtime.Types.Result.DefaultSelection<Prisma.$SpacedRepetitionCardStatePayload>
|
|
|
|
export type AggregateSpacedRepetitionCardState = {
|
|
_count: SpacedRepetitionCardStateCountAggregateOutputType | null
|
|
_avg: SpacedRepetitionCardStateAvgAggregateOutputType | null
|
|
_sum: SpacedRepetitionCardStateSumAggregateOutputType | null
|
|
_min: SpacedRepetitionCardStateMinAggregateOutputType | null
|
|
_max: SpacedRepetitionCardStateMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateAvgAggregateOutputType = {
|
|
stability: number | null
|
|
difficulty: number | null
|
|
elapsedDays: number | null
|
|
scheduledDays: number | null
|
|
learningSteps: number | null
|
|
reps: number | null
|
|
lapses: number | null
|
|
state: number | null
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateSumAggregateOutputType = {
|
|
stability: number | null
|
|
difficulty: number | null
|
|
elapsedDays: number | null
|
|
scheduledDays: number | null
|
|
learningSteps: number | null
|
|
reps: number | null
|
|
lapses: number | null
|
|
state: number | null
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateMinAggregateOutputType = {
|
|
id: string | null
|
|
setId: string | null
|
|
flashcardId: string | null
|
|
due: Date | null
|
|
stability: number | null
|
|
difficulty: number | null
|
|
elapsedDays: number | null
|
|
scheduledDays: number | null
|
|
learningSteps: number | null
|
|
reps: number | null
|
|
lapses: number | null
|
|
state: number | null
|
|
firstReviewedAt: Date | null
|
|
lastReview: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateMaxAggregateOutputType = {
|
|
id: string | null
|
|
setId: string | null
|
|
flashcardId: string | null
|
|
due: Date | null
|
|
stability: number | null
|
|
difficulty: number | null
|
|
elapsedDays: number | null
|
|
scheduledDays: number | null
|
|
learningSteps: number | null
|
|
reps: number | null
|
|
lapses: number | null
|
|
state: number | null
|
|
firstReviewedAt: Date | null
|
|
lastReview: Date | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCountAggregateOutputType = {
|
|
id: number
|
|
setId: number
|
|
flashcardId: number
|
|
due: number
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt: number
|
|
lastReview: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SpacedRepetitionCardStateAvgAggregateInputType = {
|
|
stability?: true
|
|
difficulty?: true
|
|
elapsedDays?: true
|
|
scheduledDays?: true
|
|
learningSteps?: true
|
|
reps?: true
|
|
lapses?: true
|
|
state?: true
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateSumAggregateInputType = {
|
|
stability?: true
|
|
difficulty?: true
|
|
elapsedDays?: true
|
|
scheduledDays?: true
|
|
learningSteps?: true
|
|
reps?: true
|
|
lapses?: true
|
|
state?: true
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateMinAggregateInputType = {
|
|
id?: true
|
|
setId?: true
|
|
flashcardId?: true
|
|
due?: true
|
|
stability?: true
|
|
difficulty?: true
|
|
elapsedDays?: true
|
|
scheduledDays?: true
|
|
learningSteps?: true
|
|
reps?: true
|
|
lapses?: true
|
|
state?: true
|
|
firstReviewedAt?: true
|
|
lastReview?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateMaxAggregateInputType = {
|
|
id?: true
|
|
setId?: true
|
|
flashcardId?: true
|
|
due?: true
|
|
stability?: true
|
|
difficulty?: true
|
|
elapsedDays?: true
|
|
scheduledDays?: true
|
|
learningSteps?: true
|
|
reps?: true
|
|
lapses?: true
|
|
state?: true
|
|
firstReviewedAt?: true
|
|
lastReview?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCountAggregateInputType = {
|
|
id?: true
|
|
setId?: true
|
|
flashcardId?: true
|
|
due?: true
|
|
stability?: true
|
|
difficulty?: true
|
|
elapsedDays?: true
|
|
scheduledDays?: true
|
|
learningSteps?: true
|
|
reps?: true
|
|
lapses?: true
|
|
state?: true
|
|
firstReviewedAt?: true
|
|
lastReview?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SpacedRepetitionCardState to aggregate.
|
|
*/
|
|
where?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SpacedRepetitionCardStates to fetch.
|
|
*/
|
|
orderBy?: Prisma.SpacedRepetitionCardStateOrderByWithRelationInput | Prisma.SpacedRepetitionCardStateOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SpacedRepetitionCardStates 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` SpacedRepetitionCardStates.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SpacedRepetitionCardStates
|
|
**/
|
|
_count?: true | SpacedRepetitionCardStateCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SpacedRepetitionCardStateAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SpacedRepetitionCardStateSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SpacedRepetitionCardStateMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SpacedRepetitionCardStateMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSpacedRepetitionCardStateAggregateType<T extends SpacedRepetitionCardStateAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSpacedRepetitionCardState]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSpacedRepetitionCardState[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSpacedRepetitionCardState[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SpacedRepetitionCardStateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
orderBy?: Prisma.SpacedRepetitionCardStateOrderByWithAggregationInput | Prisma.SpacedRepetitionCardStateOrderByWithAggregationInput[]
|
|
by: Prisma.SpacedRepetitionCardStateScalarFieldEnum[] | Prisma.SpacedRepetitionCardStateScalarFieldEnum
|
|
having?: Prisma.SpacedRepetitionCardStateScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SpacedRepetitionCardStateCountAggregateInputType | true
|
|
_avg?: SpacedRepetitionCardStateAvgAggregateInputType
|
|
_sum?: SpacedRepetitionCardStateSumAggregateInputType
|
|
_min?: SpacedRepetitionCardStateMinAggregateInputType
|
|
_max?: SpacedRepetitionCardStateMaxAggregateInputType
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateGroupByOutputType = {
|
|
id: string
|
|
setId: string
|
|
flashcardId: string
|
|
due: Date
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt: Date
|
|
lastReview: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: SpacedRepetitionCardStateCountAggregateOutputType | null
|
|
_avg: SpacedRepetitionCardStateAvgAggregateOutputType | null
|
|
_sum: SpacedRepetitionCardStateSumAggregateOutputType | null
|
|
_min: SpacedRepetitionCardStateMinAggregateOutputType | null
|
|
_max: SpacedRepetitionCardStateMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetSpacedRepetitionCardStateGroupByPayload<T extends SpacedRepetitionCardStateGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SpacedRepetitionCardStateGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SpacedRepetitionCardStateGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SpacedRepetitionCardStateGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SpacedRepetitionCardStateGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type SpacedRepetitionCardStateWhereInput = {
|
|
AND?: Prisma.SpacedRepetitionCardStateWhereInput | Prisma.SpacedRepetitionCardStateWhereInput[]
|
|
OR?: Prisma.SpacedRepetitionCardStateWhereInput[]
|
|
NOT?: Prisma.SpacedRepetitionCardStateWhereInput | Prisma.SpacedRepetitionCardStateWhereInput[]
|
|
id?: Prisma.StringFilter<"SpacedRepetitionCardState"> | string
|
|
setId?: Prisma.StringFilter<"SpacedRepetitionCardState"> | string
|
|
flashcardId?: Prisma.StringFilter<"SpacedRepetitionCardState"> | string
|
|
due?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
stability?: Prisma.FloatFilter<"SpacedRepetitionCardState"> | number
|
|
difficulty?: Prisma.FloatFilter<"SpacedRepetitionCardState"> | number
|
|
elapsedDays?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
scheduledDays?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
learningSteps?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
reps?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
lapses?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
state?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
firstReviewedAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
lastReview?: Prisma.DateTimeNullableFilter<"SpacedRepetitionCardState"> | Date | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
set?: Prisma.XOR<Prisma.SpacedRepetitionSetScalarRelationFilter, Prisma.SpacedRepetitionSetWhereInput>
|
|
flashcard?: Prisma.XOR<Prisma.FlashcardScalarRelationFilter, Prisma.FlashcardWhereInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
setId?: Prisma.SortOrder
|
|
flashcardId?: Prisma.SortOrder
|
|
due?: Prisma.SortOrder
|
|
stability?: Prisma.SortOrder
|
|
difficulty?: Prisma.SortOrder
|
|
elapsedDays?: Prisma.SortOrder
|
|
scheduledDays?: Prisma.SortOrder
|
|
learningSteps?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
lapses?: Prisma.SortOrder
|
|
state?: Prisma.SortOrder
|
|
firstReviewedAt?: Prisma.SortOrder
|
|
lastReview?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
set?: Prisma.SpacedRepetitionSetOrderByWithRelationInput
|
|
flashcard?: Prisma.FlashcardOrderByWithRelationInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
setId_flashcardId?: Prisma.SpacedRepetitionCardStateSetIdFlashcardIdCompoundUniqueInput
|
|
AND?: Prisma.SpacedRepetitionCardStateWhereInput | Prisma.SpacedRepetitionCardStateWhereInput[]
|
|
OR?: Prisma.SpacedRepetitionCardStateWhereInput[]
|
|
NOT?: Prisma.SpacedRepetitionCardStateWhereInput | Prisma.SpacedRepetitionCardStateWhereInput[]
|
|
setId?: Prisma.StringFilter<"SpacedRepetitionCardState"> | string
|
|
flashcardId?: Prisma.StringFilter<"SpacedRepetitionCardState"> | string
|
|
due?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
stability?: Prisma.FloatFilter<"SpacedRepetitionCardState"> | number
|
|
difficulty?: Prisma.FloatFilter<"SpacedRepetitionCardState"> | number
|
|
elapsedDays?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
scheduledDays?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
learningSteps?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
reps?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
lapses?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
state?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
firstReviewedAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
lastReview?: Prisma.DateTimeNullableFilter<"SpacedRepetitionCardState"> | Date | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
set?: Prisma.XOR<Prisma.SpacedRepetitionSetScalarRelationFilter, Prisma.SpacedRepetitionSetWhereInput>
|
|
flashcard?: Prisma.XOR<Prisma.FlashcardScalarRelationFilter, Prisma.FlashcardWhereInput>
|
|
}, "id" | "setId_flashcardId">
|
|
|
|
export type SpacedRepetitionCardStateOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
setId?: Prisma.SortOrder
|
|
flashcardId?: Prisma.SortOrder
|
|
due?: Prisma.SortOrder
|
|
stability?: Prisma.SortOrder
|
|
difficulty?: Prisma.SortOrder
|
|
elapsedDays?: Prisma.SortOrder
|
|
scheduledDays?: Prisma.SortOrder
|
|
learningSteps?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
lapses?: Prisma.SortOrder
|
|
state?: Prisma.SortOrder
|
|
firstReviewedAt?: Prisma.SortOrder
|
|
lastReview?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.SpacedRepetitionCardStateCountOrderByAggregateInput
|
|
_avg?: Prisma.SpacedRepetitionCardStateAvgOrderByAggregateInput
|
|
_max?: Prisma.SpacedRepetitionCardStateMaxOrderByAggregateInput
|
|
_min?: Prisma.SpacedRepetitionCardStateMinOrderByAggregateInput
|
|
_sum?: Prisma.SpacedRepetitionCardStateSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.SpacedRepetitionCardStateScalarWhereWithAggregatesInput | Prisma.SpacedRepetitionCardStateScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SpacedRepetitionCardStateScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.SpacedRepetitionCardStateScalarWhereWithAggregatesInput | Prisma.SpacedRepetitionCardStateScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"SpacedRepetitionCardState"> | string
|
|
setId?: Prisma.StringWithAggregatesFilter<"SpacedRepetitionCardState"> | string
|
|
flashcardId?: Prisma.StringWithAggregatesFilter<"SpacedRepetitionCardState"> | string
|
|
due?: Prisma.DateTimeWithAggregatesFilter<"SpacedRepetitionCardState"> | Date | string
|
|
stability?: Prisma.FloatWithAggregatesFilter<"SpacedRepetitionCardState"> | number
|
|
difficulty?: Prisma.FloatWithAggregatesFilter<"SpacedRepetitionCardState"> | number
|
|
elapsedDays?: Prisma.IntWithAggregatesFilter<"SpacedRepetitionCardState"> | number
|
|
scheduledDays?: Prisma.IntWithAggregatesFilter<"SpacedRepetitionCardState"> | number
|
|
learningSteps?: Prisma.IntWithAggregatesFilter<"SpacedRepetitionCardState"> | number
|
|
reps?: Prisma.IntWithAggregatesFilter<"SpacedRepetitionCardState"> | number
|
|
lapses?: Prisma.IntWithAggregatesFilter<"SpacedRepetitionCardState"> | number
|
|
state?: Prisma.IntWithAggregatesFilter<"SpacedRepetitionCardState"> | number
|
|
firstReviewedAt?: Prisma.DateTimeWithAggregatesFilter<"SpacedRepetitionCardState"> | Date | string
|
|
lastReview?: Prisma.DateTimeNullableWithAggregatesFilter<"SpacedRepetitionCardState"> | Date | string | null
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SpacedRepetitionCardState"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SpacedRepetitionCardState"> | Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateInput = {
|
|
id?: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
set: Prisma.SpacedRepetitionSetCreateNestedOneWithoutCardStatesInput
|
|
flashcard: Prisma.FlashcardCreateNestedOneWithoutSpacedRepetitionStatesInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedCreateInput = {
|
|
id?: string
|
|
setId: string
|
|
flashcardId: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
set?: Prisma.SpacedRepetitionSetUpdateOneRequiredWithoutCardStatesNestedInput
|
|
flashcard?: Prisma.FlashcardUpdateOneRequiredWithoutSpacedRepetitionStatesNestedInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
setId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
flashcardId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateManyInput = {
|
|
id?: string
|
|
setId: string
|
|
flashcardId: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
setId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
flashcardId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateListRelationFilter = {
|
|
every?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
some?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
none?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateSetIdFlashcardIdCompoundUniqueInput = {
|
|
setId: string
|
|
flashcardId: string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
setId?: Prisma.SortOrder
|
|
flashcardId?: Prisma.SortOrder
|
|
due?: Prisma.SortOrder
|
|
stability?: Prisma.SortOrder
|
|
difficulty?: Prisma.SortOrder
|
|
elapsedDays?: Prisma.SortOrder
|
|
scheduledDays?: Prisma.SortOrder
|
|
learningSteps?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
lapses?: Prisma.SortOrder
|
|
state?: Prisma.SortOrder
|
|
firstReviewedAt?: Prisma.SortOrder
|
|
lastReview?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateAvgOrderByAggregateInput = {
|
|
stability?: Prisma.SortOrder
|
|
difficulty?: Prisma.SortOrder
|
|
elapsedDays?: Prisma.SortOrder
|
|
scheduledDays?: Prisma.SortOrder
|
|
learningSteps?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
lapses?: Prisma.SortOrder
|
|
state?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
setId?: Prisma.SortOrder
|
|
flashcardId?: Prisma.SortOrder
|
|
due?: Prisma.SortOrder
|
|
stability?: Prisma.SortOrder
|
|
difficulty?: Prisma.SortOrder
|
|
elapsedDays?: Prisma.SortOrder
|
|
scheduledDays?: Prisma.SortOrder
|
|
learningSteps?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
lapses?: Prisma.SortOrder
|
|
state?: Prisma.SortOrder
|
|
firstReviewedAt?: Prisma.SortOrder
|
|
lastReview?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
setId?: Prisma.SortOrder
|
|
flashcardId?: Prisma.SortOrder
|
|
due?: Prisma.SortOrder
|
|
stability?: Prisma.SortOrder
|
|
difficulty?: Prisma.SortOrder
|
|
elapsedDays?: Prisma.SortOrder
|
|
scheduledDays?: Prisma.SortOrder
|
|
learningSteps?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
lapses?: Prisma.SortOrder
|
|
state?: Prisma.SortOrder
|
|
firstReviewedAt?: Prisma.SortOrder
|
|
lastReview?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateSumOrderByAggregateInput = {
|
|
stability?: Prisma.SortOrder
|
|
difficulty?: Prisma.SortOrder
|
|
elapsedDays?: Prisma.SortOrder
|
|
scheduledDays?: Prisma.SortOrder
|
|
learningSteps?: Prisma.SortOrder
|
|
reps?: Prisma.SortOrder
|
|
lapses?: Prisma.SortOrder
|
|
state?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateNestedManyWithoutFlashcardInput = {
|
|
create?: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput> | Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput[] | Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput[]
|
|
connectOrCreate?: Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput[]
|
|
createMany?: Prisma.SpacedRepetitionCardStateCreateManyFlashcardInputEnvelope
|
|
connect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedCreateNestedManyWithoutFlashcardInput = {
|
|
create?: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput> | Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput[] | Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput[]
|
|
connectOrCreate?: Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput[]
|
|
createMany?: Prisma.SpacedRepetitionCardStateCreateManyFlashcardInputEnvelope
|
|
connect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateManyWithoutFlashcardNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput> | Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput[] | Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput[]
|
|
connectOrCreate?: Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput[]
|
|
upsert?: Prisma.SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutFlashcardInput[]
|
|
createMany?: Prisma.SpacedRepetitionCardStateCreateManyFlashcardInputEnvelope
|
|
set?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
disconnect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
delete?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
connect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
update?: Prisma.SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutFlashcardInput[]
|
|
updateMany?: Prisma.SpacedRepetitionCardStateUpdateManyWithWhereWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateUpdateManyWithWhereWithoutFlashcardInput[]
|
|
deleteMany?: Prisma.SpacedRepetitionCardStateScalarWhereInput | Prisma.SpacedRepetitionCardStateScalarWhereInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedUpdateManyWithoutFlashcardNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput> | Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput[] | Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput[]
|
|
connectOrCreate?: Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput[]
|
|
upsert?: Prisma.SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutFlashcardInput[]
|
|
createMany?: Prisma.SpacedRepetitionCardStateCreateManyFlashcardInputEnvelope
|
|
set?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
disconnect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
delete?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
connect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
update?: Prisma.SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutFlashcardInput[]
|
|
updateMany?: Prisma.SpacedRepetitionCardStateUpdateManyWithWhereWithoutFlashcardInput | Prisma.SpacedRepetitionCardStateUpdateManyWithWhereWithoutFlashcardInput[]
|
|
deleteMany?: Prisma.SpacedRepetitionCardStateScalarWhereInput | Prisma.SpacedRepetitionCardStateScalarWhereInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateNestedManyWithoutSetInput = {
|
|
create?: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutSetInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput> | Prisma.SpacedRepetitionCardStateCreateWithoutSetInput[] | Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput[]
|
|
connectOrCreate?: Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutSetInput | Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutSetInput[]
|
|
createMany?: Prisma.SpacedRepetitionCardStateCreateManySetInputEnvelope
|
|
connect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedCreateNestedManyWithoutSetInput = {
|
|
create?: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutSetInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput> | Prisma.SpacedRepetitionCardStateCreateWithoutSetInput[] | Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput[]
|
|
connectOrCreate?: Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutSetInput | Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutSetInput[]
|
|
createMany?: Prisma.SpacedRepetitionCardStateCreateManySetInputEnvelope
|
|
connect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateManyWithoutSetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutSetInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput> | Prisma.SpacedRepetitionCardStateCreateWithoutSetInput[] | Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput[]
|
|
connectOrCreate?: Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutSetInput | Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutSetInput[]
|
|
upsert?: Prisma.SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutSetInput | Prisma.SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutSetInput[]
|
|
createMany?: Prisma.SpacedRepetitionCardStateCreateManySetInputEnvelope
|
|
set?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
disconnect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
delete?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
connect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
update?: Prisma.SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutSetInput | Prisma.SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutSetInput[]
|
|
updateMany?: Prisma.SpacedRepetitionCardStateUpdateManyWithWhereWithoutSetInput | Prisma.SpacedRepetitionCardStateUpdateManyWithWhereWithoutSetInput[]
|
|
deleteMany?: Prisma.SpacedRepetitionCardStateScalarWhereInput | Prisma.SpacedRepetitionCardStateScalarWhereInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedUpdateManyWithoutSetNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutSetInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput> | Prisma.SpacedRepetitionCardStateCreateWithoutSetInput[] | Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput[]
|
|
connectOrCreate?: Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutSetInput | Prisma.SpacedRepetitionCardStateCreateOrConnectWithoutSetInput[]
|
|
upsert?: Prisma.SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutSetInput | Prisma.SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutSetInput[]
|
|
createMany?: Prisma.SpacedRepetitionCardStateCreateManySetInputEnvelope
|
|
set?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
disconnect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
delete?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
connect?: Prisma.SpacedRepetitionCardStateWhereUniqueInput | Prisma.SpacedRepetitionCardStateWhereUniqueInput[]
|
|
update?: Prisma.SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutSetInput | Prisma.SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutSetInput[]
|
|
updateMany?: Prisma.SpacedRepetitionCardStateUpdateManyWithWhereWithoutSetInput | Prisma.SpacedRepetitionCardStateUpdateManyWithWhereWithoutSetInput[]
|
|
deleteMany?: Prisma.SpacedRepetitionCardStateScalarWhereInput | Prisma.SpacedRepetitionCardStateScalarWhereInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateWithoutFlashcardInput = {
|
|
id?: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
set: Prisma.SpacedRepetitionSetCreateNestedOneWithoutCardStatesInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput = {
|
|
id?: string
|
|
setId: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateOrConnectWithoutFlashcardInput = {
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateManyFlashcardInputEnvelope = {
|
|
data: Prisma.SpacedRepetitionCardStateCreateManyFlashcardInput | Prisma.SpacedRepetitionCardStateCreateManyFlashcardInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutFlashcardInput = {
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateWithoutFlashcardInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateWithoutFlashcardInput>
|
|
create: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutFlashcardInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutFlashcardInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutFlashcardInput = {
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateWithoutFlashcardInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateWithoutFlashcardInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateManyWithWhereWithoutFlashcardInput = {
|
|
where: Prisma.SpacedRepetitionCardStateScalarWhereInput
|
|
data: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateManyMutationInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateManyWithoutFlashcardInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateScalarWhereInput = {
|
|
AND?: Prisma.SpacedRepetitionCardStateScalarWhereInput | Prisma.SpacedRepetitionCardStateScalarWhereInput[]
|
|
OR?: Prisma.SpacedRepetitionCardStateScalarWhereInput[]
|
|
NOT?: Prisma.SpacedRepetitionCardStateScalarWhereInput | Prisma.SpacedRepetitionCardStateScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"SpacedRepetitionCardState"> | string
|
|
setId?: Prisma.StringFilter<"SpacedRepetitionCardState"> | string
|
|
flashcardId?: Prisma.StringFilter<"SpacedRepetitionCardState"> | string
|
|
due?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
stability?: Prisma.FloatFilter<"SpacedRepetitionCardState"> | number
|
|
difficulty?: Prisma.FloatFilter<"SpacedRepetitionCardState"> | number
|
|
elapsedDays?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
scheduledDays?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
learningSteps?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
reps?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
lapses?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
state?: Prisma.IntFilter<"SpacedRepetitionCardState"> | number
|
|
firstReviewedAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
lastReview?: Prisma.DateTimeNullableFilter<"SpacedRepetitionCardState"> | Date | string | null
|
|
createdAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"SpacedRepetitionCardState"> | Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateWithoutSetInput = {
|
|
id?: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
flashcard: Prisma.FlashcardCreateNestedOneWithoutSpacedRepetitionStatesInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedCreateWithoutSetInput = {
|
|
id?: string
|
|
flashcardId: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateOrConnectWithoutSetInput = {
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutSetInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateManySetInputEnvelope = {
|
|
data: Prisma.SpacedRepetitionCardStateCreateManySetInput | Prisma.SpacedRepetitionCardStateCreateManySetInput[]
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpsertWithWhereUniqueWithoutSetInput = {
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateWithoutSetInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateWithoutSetInput>
|
|
create: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateWithoutSetInput, Prisma.SpacedRepetitionCardStateUncheckedCreateWithoutSetInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateWithWhereUniqueWithoutSetInput = {
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateWithoutSetInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateWithoutSetInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateManyWithWhereWithoutSetInput = {
|
|
where: Prisma.SpacedRepetitionCardStateScalarWhereInput
|
|
data: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateManyMutationInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateManyWithoutSetInput>
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateManyFlashcardInput = {
|
|
id?: string
|
|
setId: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateWithoutFlashcardInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
set?: Prisma.SpacedRepetitionSetUpdateOneRequiredWithoutCardStatesNestedInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedUpdateWithoutFlashcardInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
setId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedUpdateManyWithoutFlashcardInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
setId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateCreateManySetInput = {
|
|
id?: string
|
|
flashcardId: string
|
|
due: Date | string
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps?: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt?: Date | string
|
|
lastReview?: Date | string | null
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUpdateWithoutSetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
flashcard?: Prisma.FlashcardUpdateOneRequiredWithoutSpacedRepetitionStatesNestedInput
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedUpdateWithoutSetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
flashcardId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateUncheckedUpdateManyWithoutSetInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
flashcardId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
due?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
stability?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
difficulty?: Prisma.FloatFieldUpdateOperationsInput | number
|
|
elapsedDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduledDays?: Prisma.IntFieldUpdateOperationsInput | number
|
|
learningSteps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
reps?: Prisma.IntFieldUpdateOperationsInput | number
|
|
lapses?: Prisma.IntFieldUpdateOperationsInput | number
|
|
state?: Prisma.IntFieldUpdateOperationsInput | number
|
|
firstReviewedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastReview?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type SpacedRepetitionCardStateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
setId?: boolean
|
|
flashcardId?: boolean
|
|
due?: boolean
|
|
stability?: boolean
|
|
difficulty?: boolean
|
|
elapsedDays?: boolean
|
|
scheduledDays?: boolean
|
|
learningSteps?: boolean
|
|
reps?: boolean
|
|
lapses?: boolean
|
|
state?: boolean
|
|
firstReviewedAt?: boolean
|
|
lastReview?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
set?: boolean | Prisma.SpacedRepetitionSetDefaultArgs<ExtArgs>
|
|
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["spacedRepetitionCardState"]>
|
|
|
|
export type SpacedRepetitionCardStateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
setId?: boolean
|
|
flashcardId?: boolean
|
|
due?: boolean
|
|
stability?: boolean
|
|
difficulty?: boolean
|
|
elapsedDays?: boolean
|
|
scheduledDays?: boolean
|
|
learningSteps?: boolean
|
|
reps?: boolean
|
|
lapses?: boolean
|
|
state?: boolean
|
|
firstReviewedAt?: boolean
|
|
lastReview?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
set?: boolean | Prisma.SpacedRepetitionSetDefaultArgs<ExtArgs>
|
|
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["spacedRepetitionCardState"]>
|
|
|
|
export type SpacedRepetitionCardStateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
setId?: boolean
|
|
flashcardId?: boolean
|
|
due?: boolean
|
|
stability?: boolean
|
|
difficulty?: boolean
|
|
elapsedDays?: boolean
|
|
scheduledDays?: boolean
|
|
learningSteps?: boolean
|
|
reps?: boolean
|
|
lapses?: boolean
|
|
state?: boolean
|
|
firstReviewedAt?: boolean
|
|
lastReview?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
set?: boolean | Prisma.SpacedRepetitionSetDefaultArgs<ExtArgs>
|
|
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["spacedRepetitionCardState"]>
|
|
|
|
export type SpacedRepetitionCardStateSelectScalar = {
|
|
id?: boolean
|
|
setId?: boolean
|
|
flashcardId?: boolean
|
|
due?: boolean
|
|
stability?: boolean
|
|
difficulty?: boolean
|
|
elapsedDays?: boolean
|
|
scheduledDays?: boolean
|
|
learningSteps?: boolean
|
|
reps?: boolean
|
|
lapses?: boolean
|
|
state?: boolean
|
|
firstReviewedAt?: boolean
|
|
lastReview?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "setId" | "flashcardId" | "due" | "stability" | "difficulty" | "elapsedDays" | "scheduledDays" | "learningSteps" | "reps" | "lapses" | "state" | "firstReviewedAt" | "lastReview" | "createdAt" | "updatedAt", ExtArgs["result"]["spacedRepetitionCardState"]>
|
|
export type SpacedRepetitionCardStateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
set?: boolean | Prisma.SpacedRepetitionSetDefaultArgs<ExtArgs>
|
|
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>
|
|
}
|
|
export type SpacedRepetitionCardStateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
set?: boolean | Prisma.SpacedRepetitionSetDefaultArgs<ExtArgs>
|
|
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>
|
|
}
|
|
export type SpacedRepetitionCardStateIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
set?: boolean | Prisma.SpacedRepetitionSetDefaultArgs<ExtArgs>
|
|
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SpacedRepetitionCardStatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "SpacedRepetitionCardState"
|
|
objects: {
|
|
set: Prisma.$SpacedRepetitionSetPayload<ExtArgs>
|
|
flashcard: Prisma.$FlashcardPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
setId: string
|
|
flashcardId: string
|
|
due: Date
|
|
stability: number
|
|
difficulty: number
|
|
elapsedDays: number
|
|
scheduledDays: number
|
|
learningSteps: number
|
|
reps: number
|
|
lapses: number
|
|
state: number
|
|
firstReviewedAt: Date
|
|
lastReview: Date | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["spacedRepetitionCardState"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type SpacedRepetitionCardStateGetPayload<S extends boolean | null | undefined | SpacedRepetitionCardStateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload, S>
|
|
|
|
export type SpacedRepetitionCardStateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<SpacedRepetitionCardStateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SpacedRepetitionCardStateCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SpacedRepetitionCardStateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SpacedRepetitionCardState'], meta: { name: 'SpacedRepetitionCardState' } }
|
|
/**
|
|
* Find zero or one SpacedRepetitionCardState that matches the filter.
|
|
* @param {SpacedRepetitionCardStateFindUniqueArgs} args - Arguments to find a SpacedRepetitionCardState
|
|
* @example
|
|
* // Get one SpacedRepetitionCardState
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SpacedRepetitionCardStateFindUniqueArgs>(args: Prisma.SelectSubset<T, SpacedRepetitionCardStateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionCardStateClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one SpacedRepetitionCardState that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SpacedRepetitionCardStateFindUniqueOrThrowArgs} args - Arguments to find a SpacedRepetitionCardState
|
|
* @example
|
|
* // Get one SpacedRepetitionCardState
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SpacedRepetitionCardStateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SpacedRepetitionCardStateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionCardStateClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SpacedRepetitionCardState 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 {SpacedRepetitionCardStateFindFirstArgs} args - Arguments to find a SpacedRepetitionCardState
|
|
* @example
|
|
* // Get one SpacedRepetitionCardState
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SpacedRepetitionCardStateFindFirstArgs>(args?: Prisma.SelectSubset<T, SpacedRepetitionCardStateFindFirstArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionCardStateClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SpacedRepetitionCardState 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 {SpacedRepetitionCardStateFindFirstOrThrowArgs} args - Arguments to find a SpacedRepetitionCardState
|
|
* @example
|
|
* // Get one SpacedRepetitionCardState
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SpacedRepetitionCardStateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SpacedRepetitionCardStateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionCardStateClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more SpacedRepetitionCardStates 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 {SpacedRepetitionCardStateFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SpacedRepetitionCardStates
|
|
* const spacedRepetitionCardStates = await prisma.spacedRepetitionCardState.findMany()
|
|
*
|
|
* // Get first 10 SpacedRepetitionCardStates
|
|
* const spacedRepetitionCardStates = await prisma.spacedRepetitionCardState.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const spacedRepetitionCardStateWithIdOnly = await prisma.spacedRepetitionCardState.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SpacedRepetitionCardStateFindManyArgs>(args?: Prisma.SelectSubset<T, SpacedRepetitionCardStateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a SpacedRepetitionCardState.
|
|
* @param {SpacedRepetitionCardStateCreateArgs} args - Arguments to create a SpacedRepetitionCardState.
|
|
* @example
|
|
* // Create one SpacedRepetitionCardState
|
|
* const SpacedRepetitionCardState = await prisma.spacedRepetitionCardState.create({
|
|
* data: {
|
|
* // ... data to create a SpacedRepetitionCardState
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SpacedRepetitionCardStateCreateArgs>(args: Prisma.SelectSubset<T, SpacedRepetitionCardStateCreateArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionCardStateClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many SpacedRepetitionCardStates.
|
|
* @param {SpacedRepetitionCardStateCreateManyArgs} args - Arguments to create many SpacedRepetitionCardStates.
|
|
* @example
|
|
* // Create many SpacedRepetitionCardStates
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SpacedRepetitionCardStateCreateManyArgs>(args?: Prisma.SelectSubset<T, SpacedRepetitionCardStateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many SpacedRepetitionCardStates and returns the data saved in the database.
|
|
* @param {SpacedRepetitionCardStateCreateManyAndReturnArgs} args - Arguments to create many SpacedRepetitionCardStates.
|
|
* @example
|
|
* // Create many SpacedRepetitionCardStates
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many SpacedRepetitionCardStates and only return the `id`
|
|
* const spacedRepetitionCardStateWithIdOnly = await prisma.spacedRepetitionCardState.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 SpacedRepetitionCardStateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SpacedRepetitionCardStateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a SpacedRepetitionCardState.
|
|
* @param {SpacedRepetitionCardStateDeleteArgs} args - Arguments to delete one SpacedRepetitionCardState.
|
|
* @example
|
|
* // Delete one SpacedRepetitionCardState
|
|
* const SpacedRepetitionCardState = await prisma.spacedRepetitionCardState.delete({
|
|
* where: {
|
|
* // ... filter to delete one SpacedRepetitionCardState
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SpacedRepetitionCardStateDeleteArgs>(args: Prisma.SelectSubset<T, SpacedRepetitionCardStateDeleteArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionCardStateClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one SpacedRepetitionCardState.
|
|
* @param {SpacedRepetitionCardStateUpdateArgs} args - Arguments to update one SpacedRepetitionCardState.
|
|
* @example
|
|
* // Update one SpacedRepetitionCardState
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SpacedRepetitionCardStateUpdateArgs>(args: Prisma.SelectSubset<T, SpacedRepetitionCardStateUpdateArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionCardStateClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more SpacedRepetitionCardStates.
|
|
* @param {SpacedRepetitionCardStateDeleteManyArgs} args - Arguments to filter SpacedRepetitionCardStates to delete.
|
|
* @example
|
|
* // Delete a few SpacedRepetitionCardStates
|
|
* const { count } = await prisma.spacedRepetitionCardState.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SpacedRepetitionCardStateDeleteManyArgs>(args?: Prisma.SelectSubset<T, SpacedRepetitionCardStateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SpacedRepetitionCardStates.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SpacedRepetitionCardStateUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SpacedRepetitionCardStates
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SpacedRepetitionCardStateUpdateManyArgs>(args: Prisma.SelectSubset<T, SpacedRepetitionCardStateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SpacedRepetitionCardStates and returns the data updated in the database.
|
|
* @param {SpacedRepetitionCardStateUpdateManyAndReturnArgs} args - Arguments to update many SpacedRepetitionCardStates.
|
|
* @example
|
|
* // Update many SpacedRepetitionCardStates
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more SpacedRepetitionCardStates and only return the `id`
|
|
* const spacedRepetitionCardStateWithIdOnly = await prisma.spacedRepetitionCardState.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 SpacedRepetitionCardStateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SpacedRepetitionCardStateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one SpacedRepetitionCardState.
|
|
* @param {SpacedRepetitionCardStateUpsertArgs} args - Arguments to update or create a SpacedRepetitionCardState.
|
|
* @example
|
|
* // Update or create a SpacedRepetitionCardState
|
|
* const spacedRepetitionCardState = await prisma.spacedRepetitionCardState.upsert({
|
|
* create: {
|
|
* // ... data to create a SpacedRepetitionCardState
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SpacedRepetitionCardState we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SpacedRepetitionCardStateUpsertArgs>(args: Prisma.SelectSubset<T, SpacedRepetitionCardStateUpsertArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionCardStateClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionCardStatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of SpacedRepetitionCardStates.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SpacedRepetitionCardStateCountArgs} args - Arguments to filter SpacedRepetitionCardStates to count.
|
|
* @example
|
|
* // Count the number of SpacedRepetitionCardStates
|
|
* const count = await prisma.spacedRepetitionCardState.count({
|
|
* where: {
|
|
* // ... the filter for the SpacedRepetitionCardStates we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SpacedRepetitionCardStateCountArgs>(
|
|
args?: Prisma.Subset<T, SpacedRepetitionCardStateCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SpacedRepetitionCardStateCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SpacedRepetitionCardState.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SpacedRepetitionCardStateAggregateArgs} 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 SpacedRepetitionCardStateAggregateArgs>(args: Prisma.Subset<T, SpacedRepetitionCardStateAggregateArgs>): Prisma.PrismaPromise<GetSpacedRepetitionCardStateAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SpacedRepetitionCardState.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SpacedRepetitionCardStateGroupByArgs} 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 SpacedRepetitionCardStateGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SpacedRepetitionCardStateGroupByArgs['orderBy'] }
|
|
: { orderBy?: SpacedRepetitionCardStateGroupByArgs['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, SpacedRepetitionCardStateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSpacedRepetitionCardStateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SpacedRepetitionCardState model
|
|
*/
|
|
readonly fields: SpacedRepetitionCardStateFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SpacedRepetitionCardState.
|
|
* 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__SpacedRepetitionCardStateClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
set<T extends Prisma.SpacedRepetitionSetDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SpacedRepetitionSetDefaultArgs<ExtArgs>>): Prisma.Prisma__SpacedRepetitionSetClient<runtime.Types.Result.GetResult<Prisma.$SpacedRepetitionSetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
flashcard<T extends Prisma.FlashcardDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FlashcardDefaultArgs<ExtArgs>>): Prisma.Prisma__FlashcardClient<runtime.Types.Result.GetResult<Prisma.$FlashcardPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @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 SpacedRepetitionCardState model
|
|
*/
|
|
export interface SpacedRepetitionCardStateFieldRefs {
|
|
readonly id: Prisma.FieldRef<"SpacedRepetitionCardState", 'String'>
|
|
readonly setId: Prisma.FieldRef<"SpacedRepetitionCardState", 'String'>
|
|
readonly flashcardId: Prisma.FieldRef<"SpacedRepetitionCardState", 'String'>
|
|
readonly due: Prisma.FieldRef<"SpacedRepetitionCardState", 'DateTime'>
|
|
readonly stability: Prisma.FieldRef<"SpacedRepetitionCardState", 'Float'>
|
|
readonly difficulty: Prisma.FieldRef<"SpacedRepetitionCardState", 'Float'>
|
|
readonly elapsedDays: Prisma.FieldRef<"SpacedRepetitionCardState", 'Int'>
|
|
readonly scheduledDays: Prisma.FieldRef<"SpacedRepetitionCardState", 'Int'>
|
|
readonly learningSteps: Prisma.FieldRef<"SpacedRepetitionCardState", 'Int'>
|
|
readonly reps: Prisma.FieldRef<"SpacedRepetitionCardState", 'Int'>
|
|
readonly lapses: Prisma.FieldRef<"SpacedRepetitionCardState", 'Int'>
|
|
readonly state: Prisma.FieldRef<"SpacedRepetitionCardState", 'Int'>
|
|
readonly firstReviewedAt: Prisma.FieldRef<"SpacedRepetitionCardState", 'DateTime'>
|
|
readonly lastReview: Prisma.FieldRef<"SpacedRepetitionCardState", 'DateTime'>
|
|
readonly createdAt: Prisma.FieldRef<"SpacedRepetitionCardState", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"SpacedRepetitionCardState", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SpacedRepetitionCardState findUnique
|
|
*/
|
|
export type SpacedRepetitionCardStateFindUniqueArgs<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
|
|
/**
|
|
* Filter, which SpacedRepetitionCardState to fetch.
|
|
*/
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState findUniqueOrThrow
|
|
*/
|
|
export type SpacedRepetitionCardStateFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which SpacedRepetitionCardState to fetch.
|
|
*/
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState findFirst
|
|
*/
|
|
export type SpacedRepetitionCardStateFindFirstArgs<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
|
|
/**
|
|
* Filter, which SpacedRepetitionCardState to fetch.
|
|
*/
|
|
where?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SpacedRepetitionCardStates to fetch.
|
|
*/
|
|
orderBy?: Prisma.SpacedRepetitionCardStateOrderByWithRelationInput | Prisma.SpacedRepetitionCardStateOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SpacedRepetitionCardStates.
|
|
*/
|
|
cursor?: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SpacedRepetitionCardStates 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` SpacedRepetitionCardStates.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SpacedRepetitionCardStates.
|
|
*/
|
|
distinct?: Prisma.SpacedRepetitionCardStateScalarFieldEnum | Prisma.SpacedRepetitionCardStateScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState findFirstOrThrow
|
|
*/
|
|
export type SpacedRepetitionCardStateFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which SpacedRepetitionCardState to fetch.
|
|
*/
|
|
where?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SpacedRepetitionCardStates to fetch.
|
|
*/
|
|
orderBy?: Prisma.SpacedRepetitionCardStateOrderByWithRelationInput | Prisma.SpacedRepetitionCardStateOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SpacedRepetitionCardStates.
|
|
*/
|
|
cursor?: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SpacedRepetitionCardStates 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` SpacedRepetitionCardStates.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SpacedRepetitionCardStates.
|
|
*/
|
|
distinct?: Prisma.SpacedRepetitionCardStateScalarFieldEnum | Prisma.SpacedRepetitionCardStateScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState findMany
|
|
*/
|
|
export type SpacedRepetitionCardStateFindManyArgs<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
|
|
/**
|
|
* Filter, which SpacedRepetitionCardStates to fetch.
|
|
*/
|
|
where?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SpacedRepetitionCardStates to fetch.
|
|
*/
|
|
orderBy?: Prisma.SpacedRepetitionCardStateOrderByWithRelationInput | Prisma.SpacedRepetitionCardStateOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SpacedRepetitionCardStates.
|
|
*/
|
|
cursor?: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SpacedRepetitionCardStates 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` SpacedRepetitionCardStates.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SpacedRepetitionCardStates.
|
|
*/
|
|
distinct?: Prisma.SpacedRepetitionCardStateScalarFieldEnum | Prisma.SpacedRepetitionCardStateScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState create
|
|
*/
|
|
export type SpacedRepetitionCardStateCreateArgs<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
|
|
/**
|
|
* The data needed to create a SpacedRepetitionCardState.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateInput, Prisma.SpacedRepetitionCardStateUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState createMany
|
|
*/
|
|
export type SpacedRepetitionCardStateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SpacedRepetitionCardStates.
|
|
*/
|
|
data: Prisma.SpacedRepetitionCardStateCreateManyInput | Prisma.SpacedRepetitionCardStateCreateManyInput[]
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState createManyAndReturn
|
|
*/
|
|
export type SpacedRepetitionCardStateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SpacedRepetitionCardState
|
|
*/
|
|
select?: Prisma.SpacedRepetitionCardStateSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SpacedRepetitionCardState
|
|
*/
|
|
omit?: Prisma.SpacedRepetitionCardStateOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many SpacedRepetitionCardStates.
|
|
*/
|
|
data: Prisma.SpacedRepetitionCardStateCreateManyInput | Prisma.SpacedRepetitionCardStateCreateManyInput[]
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SpacedRepetitionCardStateIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState update
|
|
*/
|
|
export type SpacedRepetitionCardStateUpdateArgs<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
|
|
/**
|
|
* The data needed to update a SpacedRepetitionCardState.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SpacedRepetitionCardState to update.
|
|
*/
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState updateMany
|
|
*/
|
|
export type SpacedRepetitionCardStateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SpacedRepetitionCardStates.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateManyMutationInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SpacedRepetitionCardStates to update
|
|
*/
|
|
where?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
/**
|
|
* Limit how many SpacedRepetitionCardStates to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState updateManyAndReturn
|
|
*/
|
|
export type SpacedRepetitionCardStateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SpacedRepetitionCardState
|
|
*/
|
|
select?: Prisma.SpacedRepetitionCardStateSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SpacedRepetitionCardState
|
|
*/
|
|
omit?: Prisma.SpacedRepetitionCardStateOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update SpacedRepetitionCardStates.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateManyMutationInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SpacedRepetitionCardStates to update
|
|
*/
|
|
where?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
/**
|
|
* Limit how many SpacedRepetitionCardStates to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SpacedRepetitionCardStateIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState upsert
|
|
*/
|
|
export type SpacedRepetitionCardStateUpsertArgs<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
|
|
/**
|
|
* The filter to search for the SpacedRepetitionCardState to update in case it exists.
|
|
*/
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
/**
|
|
* In case the SpacedRepetitionCardState found by the `where` argument doesn't exist, create a new SpacedRepetitionCardState with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SpacedRepetitionCardStateCreateInput, Prisma.SpacedRepetitionCardStateUncheckedCreateInput>
|
|
/**
|
|
* In case the SpacedRepetitionCardState was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SpacedRepetitionCardStateUpdateInput, Prisma.SpacedRepetitionCardStateUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState delete
|
|
*/
|
|
export type SpacedRepetitionCardStateDeleteArgs<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
|
|
/**
|
|
* Filter which SpacedRepetitionCardState to delete.
|
|
*/
|
|
where: Prisma.SpacedRepetitionCardStateWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState deleteMany
|
|
*/
|
|
export type SpacedRepetitionCardStateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SpacedRepetitionCardStates to delete
|
|
*/
|
|
where?: Prisma.SpacedRepetitionCardStateWhereInput
|
|
/**
|
|
* Limit how many SpacedRepetitionCardStates to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SpacedRepetitionCardState without action
|
|
*/
|
|
export type SpacedRepetitionCardStateDefaultArgs<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
|
|
}
|