All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m22s
297 lines
8.1 KiB
TypeScript
297 lines
8.1 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* WARNING: This is an internal file that is subject to change!
|
|
*
|
|
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
*
|
|
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
*
|
|
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
* model files in the `model` directory!
|
|
*/
|
|
|
|
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
|
|
export type * from '../models'
|
|
export type * from './prismaNamespace'
|
|
|
|
export const Decimal = runtime.Decimal
|
|
|
|
|
|
export const NullTypes = {
|
|
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
}
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull = runtime.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull = runtime.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull = runtime.AnyNull
|
|
|
|
|
|
export const ModelName = {
|
|
Class: 'Class',
|
|
Deck: 'Deck',
|
|
Flashcard: 'Flashcard',
|
|
QuizSet: 'QuizSet',
|
|
Question: 'Question',
|
|
AnswerOption: 'AnswerOption',
|
|
StudyProgress: 'StudyProgress',
|
|
QuizAttempt: 'QuizAttempt',
|
|
ShareLink: 'ShareLink',
|
|
AuthSecurity: 'AuthSecurity',
|
|
Setting: 'Setting',
|
|
StudyActivity: 'StudyActivity',
|
|
MaterialGroup: 'MaterialGroup',
|
|
SpacedRepetitionSet: 'SpacedRepetitionSet',
|
|
SpacedRepetitionSetDeck: 'SpacedRepetitionSetDeck',
|
|
SpacedRepetitionCardState: 'SpacedRepetitionCardState'
|
|
} as const
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
/*
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel = runtime.makeStrictEnum({
|
|
Serializable: 'Serializable'
|
|
} as const)
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const ClassScalarFieldEnum = {
|
|
id: 'id',
|
|
slug: 'slug',
|
|
name: 'name',
|
|
sortOrder: 'sortOrder',
|
|
createdAt: 'createdAt'
|
|
} as const
|
|
|
|
export type ClassScalarFieldEnum = (typeof ClassScalarFieldEnum)[keyof typeof ClassScalarFieldEnum]
|
|
|
|
|
|
export const DeckScalarFieldEnum = {
|
|
id: 'id',
|
|
classId: 'classId',
|
|
name: 'name',
|
|
description: 'description',
|
|
sortOrder: 'sortOrder',
|
|
createdAt: 'createdAt',
|
|
groupId: 'groupId'
|
|
} as const
|
|
|
|
export type DeckScalarFieldEnum = (typeof DeckScalarFieldEnum)[keyof typeof DeckScalarFieldEnum]
|
|
|
|
|
|
export const FlashcardScalarFieldEnum = {
|
|
id: 'id',
|
|
deckId: 'deckId',
|
|
front: 'front',
|
|
back: 'back',
|
|
sortOrder: 'sortOrder'
|
|
} as const
|
|
|
|
export type FlashcardScalarFieldEnum = (typeof FlashcardScalarFieldEnum)[keyof typeof FlashcardScalarFieldEnum]
|
|
|
|
|
|
export const QuizSetScalarFieldEnum = {
|
|
id: 'id',
|
|
classId: 'classId',
|
|
name: 'name',
|
|
description: 'description',
|
|
sortOrder: 'sortOrder',
|
|
createdAt: 'createdAt',
|
|
groupId: 'groupId'
|
|
} as const
|
|
|
|
export type QuizSetScalarFieldEnum = (typeof QuizSetScalarFieldEnum)[keyof typeof QuizSetScalarFieldEnum]
|
|
|
|
|
|
export const QuestionScalarFieldEnum = {
|
|
id: 'id',
|
|
quizSetId: 'quizSetId',
|
|
type: 'type',
|
|
prompt: 'prompt',
|
|
rationale: 'rationale',
|
|
category: 'category',
|
|
sortOrder: 'sortOrder'
|
|
} as const
|
|
|
|
export type QuestionScalarFieldEnum = (typeof QuestionScalarFieldEnum)[keyof typeof QuestionScalarFieldEnum]
|
|
|
|
|
|
export const AnswerOptionScalarFieldEnum = {
|
|
id: 'id',
|
|
questionId: 'questionId',
|
|
text: 'text',
|
|
isCorrect: 'isCorrect',
|
|
sortOrder: 'sortOrder'
|
|
} as const
|
|
|
|
export type AnswerOptionScalarFieldEnum = (typeof AnswerOptionScalarFieldEnum)[keyof typeof AnswerOptionScalarFieldEnum]
|
|
|
|
|
|
export const StudyProgressScalarFieldEnum = {
|
|
id: 'id',
|
|
contentType: 'contentType',
|
|
deckId: 'deckId',
|
|
quizSetId: 'quizSetId',
|
|
mode: 'mode',
|
|
currentIndex: 'currentIndex',
|
|
orderJson: 'orderJson',
|
|
answersJson: 'answersJson',
|
|
cardResultsJson: 'cardResultsJson',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type StudyProgressScalarFieldEnum = (typeof StudyProgressScalarFieldEnum)[keyof typeof StudyProgressScalarFieldEnum]
|
|
|
|
|
|
export const QuizAttemptScalarFieldEnum = {
|
|
id: 'id',
|
|
quizSetId: 'quizSetId',
|
|
score: 'score',
|
|
maxScore: 'maxScore',
|
|
answersJson: 'answersJson',
|
|
isPartialRetake: 'isPartialRetake',
|
|
completedAt: 'completedAt'
|
|
} as const
|
|
|
|
export type QuizAttemptScalarFieldEnum = (typeof QuizAttemptScalarFieldEnum)[keyof typeof QuizAttemptScalarFieldEnum]
|
|
|
|
|
|
export const ShareLinkScalarFieldEnum = {
|
|
id: 'id',
|
|
targetType: 'targetType',
|
|
deckId: 'deckId',
|
|
quizSetId: 'quizSetId',
|
|
groupId: 'groupId',
|
|
createdAt: 'createdAt'
|
|
} as const
|
|
|
|
export type ShareLinkScalarFieldEnum = (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
|
|
|
|
|
|
export const AuthSecurityScalarFieldEnum = {
|
|
id: 'id',
|
|
failedAttempts: 'failedAttempts',
|
|
lockedUntil: 'lockedUntil',
|
|
lastAttemptAt: 'lastAttemptAt'
|
|
} as const
|
|
|
|
export type AuthSecurityScalarFieldEnum = (typeof AuthSecurityScalarFieldEnum)[keyof typeof AuthSecurityScalarFieldEnum]
|
|
|
|
|
|
export const SettingScalarFieldEnum = {
|
|
key: 'key',
|
|
value: 'value'
|
|
} as const
|
|
|
|
export type SettingScalarFieldEnum = (typeof SettingScalarFieldEnum)[keyof typeof SettingScalarFieldEnum]
|
|
|
|
|
|
export const StudyActivityScalarFieldEnum = {
|
|
id: 'id',
|
|
type: 'type',
|
|
occurredAt: 'occurredAt'
|
|
} as const
|
|
|
|
export type StudyActivityScalarFieldEnum = (typeof StudyActivityScalarFieldEnum)[keyof typeof StudyActivityScalarFieldEnum]
|
|
|
|
|
|
export const MaterialGroupScalarFieldEnum = {
|
|
id: 'id',
|
|
classId: 'classId',
|
|
name: 'name',
|
|
type: 'type',
|
|
sortOrder: 'sortOrder',
|
|
createdAt: 'createdAt'
|
|
} as const
|
|
|
|
export type MaterialGroupScalarFieldEnum = (typeof MaterialGroupScalarFieldEnum)[keyof typeof MaterialGroupScalarFieldEnum]
|
|
|
|
|
|
export const SpacedRepetitionSetScalarFieldEnum = {
|
|
id: 'id',
|
|
classId: 'classId',
|
|
name: 'name',
|
|
description: 'description',
|
|
newCardsPerDay: 'newCardsPerDay',
|
|
sortOrder: 'sortOrder',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type SpacedRepetitionSetScalarFieldEnum = (typeof SpacedRepetitionSetScalarFieldEnum)[keyof typeof SpacedRepetitionSetScalarFieldEnum]
|
|
|
|
|
|
export const SpacedRepetitionSetDeckScalarFieldEnum = {
|
|
setId: 'setId',
|
|
deckId: 'deckId',
|
|
sortOrder: 'sortOrder',
|
|
addedAt: 'addedAt'
|
|
} as const
|
|
|
|
export type SpacedRepetitionSetDeckScalarFieldEnum = (typeof SpacedRepetitionSetDeckScalarFieldEnum)[keyof typeof SpacedRepetitionSetDeckScalarFieldEnum]
|
|
|
|
|
|
export const SpacedRepetitionCardStateScalarFieldEnum = {
|
|
id: 'id',
|
|
setId: 'setId',
|
|
flashcardId: 'flashcardId',
|
|
due: 'due',
|
|
stability: 'stability',
|
|
difficulty: 'difficulty',
|
|
elapsedDays: 'elapsedDays',
|
|
scheduledDays: 'scheduledDays',
|
|
learningSteps: 'learningSteps',
|
|
reps: 'reps',
|
|
lapses: 'lapses',
|
|
state: 'state',
|
|
firstReviewedAt: 'firstReviewedAt',
|
|
lastReview: 'lastReview',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type SpacedRepetitionCardStateScalarFieldEnum = (typeof SpacedRepetitionCardStateScalarFieldEnum)[keyof typeof SpacedRepetitionCardStateScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
} as const
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
} as const
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|