@goscribe/server 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context.d.ts +14 -1
- package/dist/context.js +23 -2
- package/dist/generated/prisma/client.d.ts +224 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +941 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +67 -0
- package/dist/generated/prisma/enums.js +66 -0
- package/dist/generated/prisma/internal/class.d.ts +539 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +3924 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +557 -0
- package/dist/generated/prisma/models/ActivityLog.d.ts +1847 -0
- package/dist/generated/prisma/models/ActivityLog.js +1 -0
- package/dist/generated/prisma/models/Artifact.d.ts +2345 -0
- package/dist/generated/prisma/models/Artifact.js +1 -0
- package/dist/generated/prisma/models/ArtifactVersion.d.ts +1550 -0
- package/dist/generated/prisma/models/ArtifactVersion.js +1 -0
- package/dist/generated/prisma/models/Channel.d.ts +1257 -0
- package/dist/generated/prisma/models/Channel.js +1 -0
- package/dist/generated/prisma/models/Chat.d.ts +1339 -0
- package/dist/generated/prisma/models/Chat.js +1 -0
- package/dist/generated/prisma/models/CopilotConversation.d.ts +1450 -0
- package/dist/generated/prisma/models/CopilotConversation.js +1 -0
- package/dist/generated/prisma/models/CopilotMessage.d.ts +1179 -0
- package/dist/generated/prisma/models/CopilotMessage.js +1 -0
- package/dist/generated/prisma/models/FileAsset.d.ts +1832 -0
- package/dist/generated/prisma/models/FileAsset.js +1 -0
- package/dist/generated/prisma/models/Flashcard.d.ts +1460 -0
- package/dist/generated/prisma/models/Flashcard.js +1 -0
- package/dist/generated/prisma/models/FlashcardProgress.d.ts +1782 -0
- package/dist/generated/prisma/models/FlashcardProgress.js +1 -0
- package/dist/generated/prisma/models/Folder.d.ts +1685 -0
- package/dist/generated/prisma/models/Folder.js +1 -0
- package/dist/generated/prisma/models/IdempotencyRecord.d.ts +1319 -0
- package/dist/generated/prisma/models/IdempotencyRecord.js +1 -0
- package/dist/generated/prisma/models/Invoice.d.ts +1586 -0
- package/dist/generated/prisma/models/Invoice.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBase.d.ts +1721 -0
- package/dist/generated/prisma/models/KnowledgeBase.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseChunk.d.ts +1333 -0
- package/dist/generated/prisma/models/KnowledgeBaseChunk.js +1 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.d.ts +1695 -0
- package/dist/generated/prisma/models/KnowledgeBaseDocument.js +1 -0
- package/dist/generated/prisma/models/Notification.d.ts +1992 -0
- package/dist/generated/prisma/models/Notification.js +1 -0
- package/dist/generated/prisma/models/PasswordResetToken.d.ts +1210 -0
- package/dist/generated/prisma/models/PasswordResetToken.js +1 -0
- package/dist/generated/prisma/models/Plan.d.ts +1431 -0
- package/dist/generated/prisma/models/Plan.js +1 -0
- package/dist/generated/prisma/models/PlanLimit.d.ts +1328 -0
- package/dist/generated/prisma/models/PlanLimit.js +1 -0
- package/dist/generated/prisma/models/PodcastSegment.d.ts +1564 -0
- package/dist/generated/prisma/models/PodcastSegment.js +1 -0
- package/dist/generated/prisma/models/ResourcePrice.d.ts +1008 -0
- package/dist/generated/prisma/models/ResourcePrice.js +1 -0
- package/dist/generated/prisma/models/Role.d.ts +1065 -0
- package/dist/generated/prisma/models/Role.js +1 -0
- package/dist/generated/prisma/models/Session.d.ts +1105 -0
- package/dist/generated/prisma/models/Session.js +1 -0
- package/dist/generated/prisma/models/StripeEvent.d.ts +1081 -0
- package/dist/generated/prisma/models/StripeEvent.js +1 -0
- package/dist/generated/prisma/models/StudyGuideComment.d.ts +1321 -0
- package/dist/generated/prisma/models/StudyGuideComment.js +1 -0
- package/dist/generated/prisma/models/StudyGuideHighlight.d.ts +1629 -0
- package/dist/generated/prisma/models/StudyGuideHighlight.js +1 -0
- package/dist/generated/prisma/models/Subscription.d.ts +1677 -0
- package/dist/generated/prisma/models/Subscription.js +1 -0
- package/dist/generated/prisma/models/User.d.ts +7559 -0
- package/dist/generated/prisma/models/User.js +1 -0
- package/dist/generated/prisma/models/UserCredit.d.ts +1249 -0
- package/dist/generated/prisma/models/UserCredit.js +1 -0
- package/dist/generated/prisma/models/VerificationToken.d.ts +946 -0
- package/dist/generated/prisma/models/VerificationToken.js +1 -0
- package/dist/generated/prisma/models/WorksheetPreset.d.ts +1433 -0
- package/dist/generated/prisma/models/WorksheetPreset.js +1 -0
- package/dist/generated/prisma/models/WorksheetQuestion.d.ts +1491 -0
- package/dist/generated/prisma/models/WorksheetQuestion.js +1 -0
- package/dist/generated/prisma/models/WorksheetQuestionProgress.d.ts +1620 -0
- package/dist/generated/prisma/models/WorksheetQuestionProgress.js +1 -0
- package/dist/generated/prisma/models/Workspace.d.ts +3620 -0
- package/dist/generated/prisma/models/Workspace.js +1 -0
- package/dist/generated/prisma/models/WorkspaceInvitation.d.ts +1490 -0
- package/dist/generated/prisma/models/WorkspaceInvitation.js +1 -0
- package/dist/generated/prisma/models/WorkspaceKnowledgeBase.d.ts +1410 -0
- package/dist/generated/prisma/models/WorkspaceKnowledgeBase.js +1 -0
- package/dist/generated/prisma/models/WorkspaceMember.d.ts +1326 -0
- package/dist/generated/prisma/models/WorkspaceMember.js +1 -0
- package/dist/generated/prisma/models.d.ts +39 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/lib/ai/index.d.ts +3 -2
- package/dist/lib/ai/index.js +3 -2
- package/dist/lib/ai/llm-client.d.ts +1 -0
- package/dist/lib/ai/llm-client.js +17 -0
- package/dist/routers/_app.d.ts +40 -80
- package/dist/routers/auth.js +1 -1
- package/dist/routers/flashcards.d.ts +12 -1
- package/dist/routers/payment.d.ts +1 -12
- package/dist/routers/workspace.d.ts +27 -67
- package/dist/routers/workspace.js +1 -0
- package/dist/services/billing/payment.service.d.ts +1 -12
- package/dist/services/billing/payment.service.js +3 -6
- package/dist/services/billing/usage.service.d.ts +30 -10
- package/dist/services/billing/usage.service.js +87 -15
- package/dist/services/content/copilot.service.js +15 -29
- package/dist/services/content/flashcard-progress.service.js +9 -9
- package/dist/services/content/flashcard.service.d.ts +45 -1
- package/dist/services/content/flashcard.service.js +81 -68
- package/dist/services/content/media-analysis.service.js +27 -27
- package/dist/services/content/worksheet-generation.service.test.js +2 -2
- package/dist/services/workspace/workspace.service.d.ts +23 -67
- package/dist/services/workspace/workspace.service.js +69 -62
- package/dist/src/context.d.ts +27 -0
- package/dist/src/context.js +33 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +1 -0
- package/dist/src/lib/ai/config.d.ts +20 -0
- package/dist/src/lib/ai/config.js +31 -0
- package/dist/src/lib/ai/embedding-client.d.ts +8 -0
- package/dist/src/lib/ai/embedding-client.js +30 -0
- package/dist/src/lib/ai/index.d.ts +48 -0
- package/dist/src/lib/ai/index.js +29 -0
- package/dist/src/lib/ai/inference-backend/client.d.ts +28 -0
- package/dist/src/lib/ai/inference-backend/client.js +301 -0
- package/dist/src/lib/ai/inference-backend/mocks.d.ts +12 -0
- package/dist/src/lib/ai/inference-backend/mocks.js +133 -0
- package/dist/src/lib/ai/inference-backend/types.d.ts +44 -0
- package/dist/src/lib/ai/inference-backend/types.js +1 -0
- package/dist/src/lib/ai/json-parse.d.ts +2 -0
- package/dist/src/lib/ai/json-parse.js +34 -0
- package/dist/src/lib/ai/llm-client.d.ts +7 -0
- package/dist/src/lib/ai/llm-client.js +36 -0
- package/dist/src/lib/ai/mock.d.ts +2 -0
- package/dist/src/lib/ai/mock.js +10 -0
- package/dist/src/lib/ai/types.d.ts +9 -0
- package/dist/src/lib/ai/types.js +1 -0
- package/dist/src/lib/auth.d.ts +36 -0
- package/dist/src/lib/auth.js +117 -0
- package/dist/src/lib/chunking.d.ts +19 -0
- package/dist/src/lib/chunking.js +47 -0
- package/dist/src/lib/constants.d.ts +13 -0
- package/dist/src/lib/constants.js +12 -0
- package/dist/src/lib/curated-kb-seed.d.ts +12 -0
- package/dist/src/lib/curated-kb-seed.js +155 -0
- package/dist/src/lib/email.d.ts +11 -0
- package/dist/src/lib/email.js +152 -0
- package/dist/src/lib/embeddings.d.ts +2 -0
- package/dist/src/lib/embeddings.js +1 -0
- package/dist/src/lib/ensure-curated-kb-catalog.d.ts +6 -0
- package/dist/src/lib/ensure-curated-kb-catalog.js +53 -0
- package/dist/src/lib/env.d.ts +41 -0
- package/dist/src/lib/env.js +57 -0
- package/dist/src/lib/errors.d.ts +33 -0
- package/dist/src/lib/errors.js +78 -0
- package/dist/src/lib/file.d.ts +0 -0
- package/dist/src/lib/file.js +1 -0
- package/dist/src/lib/inference.d.ts +1 -0
- package/dist/src/lib/inference.js +1 -0
- package/dist/src/lib/kb-meta.d.ts +8 -0
- package/dist/src/lib/kb-meta.js +77 -0
- package/dist/src/lib/logger.d.ts +62 -0
- package/dist/src/lib/logger.js +364 -0
- package/dist/src/lib/pdf.d.ts +11 -0
- package/dist/src/lib/pdf.js +11 -0
- package/dist/src/lib/prisma.d.ts +3 -0
- package/dist/src/lib/prisma.js +15 -0
- package/dist/src/lib/pusher.d.ts +38 -0
- package/dist/src/lib/pusher.js +170 -0
- package/dist/src/lib/retry.d.ts +15 -0
- package/dist/src/lib/retry.js +37 -0
- package/dist/src/lib/storage.d.ts +11 -0
- package/dist/src/lib/storage.js +71 -0
- package/dist/src/lib/stripe.d.ts +10 -0
- package/dist/src/lib/stripe.js +36 -0
- package/dist/src/lib/validation.d.ts +51 -0
- package/dist/src/lib/validation.js +64 -0
- package/dist/src/lib/workspace-kb.d.ts +5 -0
- package/dist/src/lib/workspace-kb.js +7 -0
- package/dist/src/repositories/artifact.repository.d.ts +64 -0
- package/dist/src/repositories/artifact.repository.js +40 -0
- package/dist/src/repositories/base.repository.d.ts +14 -0
- package/dist/src/repositories/base.repository.js +14 -0
- package/dist/src/repositories/invitation.repository.d.ts +104 -0
- package/dist/src/repositories/invitation.repository.js +44 -0
- package/dist/src/repositories/notification.repository.d.ts +76 -0
- package/dist/src/repositories/notification.repository.js +44 -0
- package/dist/src/repositories/user.repository.d.ts +84 -0
- package/dist/src/repositories/user.repository.js +37 -0
- package/dist/src/repositories/workspace-member.repository.d.ts +35 -0
- package/dist/src/repositories/workspace-member.repository.js +31 -0
- package/dist/src/repositories/workspace.repository.d.ts +101 -0
- package/dist/src/repositories/workspace.repository.js +79 -0
- package/dist/src/routers/_app.d.ts +3464 -0
- package/dist/src/routers/_app.js +36 -0
- package/dist/src/routers/admin.d.ts +358 -0
- package/dist/src/routers/admin.js +105 -0
- package/dist/src/routers/annotations.d.ts +219 -0
- package/dist/src/routers/annotations.js +29 -0
- package/dist/src/routers/artifactVersions.d.ts +65 -0
- package/dist/src/routers/artifactVersions.js +14 -0
- package/dist/src/routers/auth.d.ts +161 -0
- package/dist/src/routers/auth.js +97 -0
- package/dist/src/routers/chat.d.ts +170 -0
- package/dist/src/routers/chat.js +32 -0
- package/dist/src/routers/copilot.d.ts +200 -0
- package/dist/src/routers/copilot.js +52 -0
- package/dist/src/routers/flashcards.d.ts +336 -0
- package/dist/src/routers/flashcards.js +93 -0
- package/dist/src/routers/knowledgeBase.d.ts +421 -0
- package/dist/src/routers/knowledgeBase.js +118 -0
- package/dist/src/routers/members.d.ts +169 -0
- package/dist/src/routers/members.js +47 -0
- package/dist/src/routers/notifications.d.ts +99 -0
- package/dist/src/routers/notifications.js +25 -0
- package/dist/src/routers/payment.d.ts +80 -0
- package/dist/src/routers/payment.js +21 -0
- package/dist/src/routers/podcast.d.ts +287 -0
- package/dist/src/routers/podcast.js +34 -0
- package/dist/src/routers/studyguide.d.ts +36 -0
- package/dist/src/routers/studyguide.js +8 -0
- package/dist/src/routers/worksheets.d.ts +429 -0
- package/dist/src/routers/worksheets.js +139 -0
- package/dist/src/routers/workspace.d.ts +563 -0
- package/dist/src/routers/workspace.js +104 -0
- package/dist/src/scripts/purge-deleted-users.d.ts +1 -0
- package/dist/src/scripts/purge-deleted-users.js +148 -0
- package/dist/src/server.d.ts +1 -0
- package/dist/src/server.js +190 -0
- package/dist/src/services/activity/activity-human-description.service.d.ts +13 -0
- package/dist/src/services/activity/activity-human-description.service.js +221 -0
- package/dist/src/services/activity/activity-human-description.service.test.d.ts +1 -0
- package/dist/src/services/activity/activity-human-description.service.test.js +16 -0
- package/dist/src/services/activity/activity-log.service.d.ts +87 -0
- package/dist/src/services/activity/activity-log.service.js +276 -0
- package/dist/src/services/activity/activity-log.service.test.d.ts +1 -0
- package/dist/src/services/activity/activity-log.service.test.js +27 -0
- package/dist/src/services/admin/admin.service.d.ts +270 -0
- package/dist/src/services/admin/admin.service.js +476 -0
- package/dist/src/services/ai/ai-session.service.d.ts +5 -0
- package/dist/src/services/ai/ai-session.service.js +4 -0
- package/dist/src/services/artifacts/annotation.service.d.ts +177 -0
- package/dist/src/services/artifacts/annotation.service.js +154 -0
- package/dist/src/services/artifacts/artifact-version.service.d.ts +38 -0
- package/dist/src/services/artifacts/artifact-version.service.js +129 -0
- package/dist/src/services/artifacts/chat.service.d.ts +127 -0
- package/dist/src/services/artifacts/chat.service.js +182 -0
- package/dist/src/services/artifacts/study-guide.service.d.ts +18 -0
- package/dist/src/services/artifacts/study-guide.service.js +65 -0
- package/dist/src/services/auth/auth.service.d.ts +94 -0
- package/dist/src/services/auth/auth.service.js +368 -0
- package/dist/src/services/base.service.d.ts +14 -0
- package/dist/src/services/base.service.js +14 -0
- package/dist/src/services/billing/payment.service.d.ts +44 -0
- package/dist/src/services/billing/payment.service.js +365 -0
- package/dist/src/services/billing/subscription.service.d.ts +37 -0
- package/dist/src/services/billing/subscription.service.js +654 -0
- package/dist/src/services/billing/usage.service.d.ts +47 -0
- package/dist/src/services/billing/usage.service.js +149 -0
- package/dist/src/services/content/copilot.service.d.ts +113 -0
- package/dist/src/services/content/copilot.service.js +439 -0
- package/dist/src/services/content/flashcard-progress.service.d.ts +159 -0
- package/dist/src/services/content/flashcard-progress.service.js +432 -0
- package/dist/src/services/content/flashcard.service.d.ts +184 -0
- package/dist/src/services/content/flashcard.service.js +339 -0
- package/dist/src/services/content/media-analysis.service.d.ts +23 -0
- package/dist/src/services/content/media-analysis.service.js +404 -0
- package/dist/src/services/content/podcast.service.d.ts +267 -0
- package/dist/src/services/content/podcast.service.js +653 -0
- package/dist/src/services/content/worksheet-content.service.d.ts +37 -0
- package/dist/src/services/content/worksheet-content.service.js +84 -0
- package/dist/src/services/content/worksheet-content.service.test.d.ts +1 -0
- package/dist/src/services/content/worksheet-content.service.test.js +69 -0
- package/dist/src/services/content/worksheet-generation.service.d.ts +91 -0
- package/dist/src/services/content/worksheet-generation.service.js +95 -0
- package/dist/src/services/content/worksheet-generation.service.test.d.ts +1 -0
- package/dist/src/services/content/worksheet-generation.service.test.js +20 -0
- package/dist/src/services/content/worksheet.service.d.ts +347 -0
- package/dist/src/services/content/worksheet.service.js +599 -0
- package/dist/src/services/knowledge/knowledge-base.service.d.ts +316 -0
- package/dist/src/services/knowledge/knowledge-base.service.js +544 -0
- package/dist/src/services/members/invitation.service.d.ts +66 -0
- package/dist/src/services/members/invitation.service.js +348 -0
- package/dist/src/services/members/member.service.d.ts +36 -0
- package/dist/src/services/members/member.service.js +193 -0
- package/dist/src/services/notifications/notification.service.d.ts +214 -0
- package/dist/src/services/notifications/notification.service.js +550 -0
- package/dist/src/services/notifications/notification.service.test.d.ts +1 -0
- package/dist/src/services/notifications/notification.service.test.js +87 -0
- package/dist/src/services/workspace/workspace-analytics.service.d.ts +24 -0
- package/dist/src/services/workspace/workspace-analytics.service.js +95 -0
- package/dist/src/services/workspace/workspace-kb.service.d.ts +40 -0
- package/dist/src/services/workspace/workspace-kb.service.js +184 -0
- package/dist/src/services/workspace/workspace.service.d.ts +263 -0
- package/dist/src/services/workspace/workspace.service.js +401 -0
- package/dist/src/trpc.d.ts +60 -0
- package/dist/src/trpc.js +217 -0
- package/dist/src/types/index.d.ts +126 -0
- package/dist/src/types/index.js +1 -0
- package/dist/trpc.d.ts +12 -4
- package/dist/trpc.js +5 -11
- package/package.json +8 -9
- package/prisma/schema.prisma +3 -4
- package/prisma/seed.mjs +5 -2
- package/prisma.config.ts +16 -0
- package/src/context.ts +33 -3
- package/src/lib/ai/index.ts +3 -0
- package/src/lib/ai/llm-client.ts +23 -0
- package/src/lib/prisma.ts +18 -9
- package/src/routers/auth.ts +1 -1
- package/src/routers/workspace.ts +4 -0
- package/src/scripts/purge-deleted-users.ts +1 -3
- package/src/services/billing/payment.service.ts +3 -6
- package/src/services/billing/usage.service.ts +190 -77
- package/src/services/content/copilot.service.ts +23 -32
- package/src/services/content/flashcard-progress.service.ts +12 -9
- package/src/services/content/flashcard.service.ts +89 -66
- package/src/services/content/media-analysis.service.ts +34 -29
- package/src/services/content/worksheet-generation.service.test.ts +2 -2
- package/src/services/workspace/workspace.service.ts +73 -66
- package/src/trpc.ts +5 -13
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,1782 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model FlashcardProgress
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type FlashcardProgressModel = runtime.Types.Result.DefaultSelection<Prisma.$FlashcardProgressPayload>;
|
|
8
|
+
export type AggregateFlashcardProgress = {
|
|
9
|
+
_count: FlashcardProgressCountAggregateOutputType | null;
|
|
10
|
+
_avg: FlashcardProgressAvgAggregateOutputType | null;
|
|
11
|
+
_sum: FlashcardProgressSumAggregateOutputType | null;
|
|
12
|
+
_min: FlashcardProgressMinAggregateOutputType | null;
|
|
13
|
+
_max: FlashcardProgressMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type FlashcardProgressAvgAggregateOutputType = {
|
|
16
|
+
timesStudied: number | null;
|
|
17
|
+
timesCorrect: number | null;
|
|
18
|
+
timesIncorrect: number | null;
|
|
19
|
+
timesIncorrectConsecutive: number | null;
|
|
20
|
+
easeFactor: number | null;
|
|
21
|
+
interval: number | null;
|
|
22
|
+
repetitions: number | null;
|
|
23
|
+
masteryLevel: number | null;
|
|
24
|
+
};
|
|
25
|
+
export type FlashcardProgressSumAggregateOutputType = {
|
|
26
|
+
timesStudied: number | null;
|
|
27
|
+
timesCorrect: number | null;
|
|
28
|
+
timesIncorrect: number | null;
|
|
29
|
+
timesIncorrectConsecutive: number | null;
|
|
30
|
+
easeFactor: number | null;
|
|
31
|
+
interval: number | null;
|
|
32
|
+
repetitions: number | null;
|
|
33
|
+
masteryLevel: number | null;
|
|
34
|
+
};
|
|
35
|
+
export type FlashcardProgressMinAggregateOutputType = {
|
|
36
|
+
id: string | null;
|
|
37
|
+
userId: string | null;
|
|
38
|
+
flashcardId: string | null;
|
|
39
|
+
timesStudied: number | null;
|
|
40
|
+
timesCorrect: number | null;
|
|
41
|
+
timesIncorrect: number | null;
|
|
42
|
+
timesIncorrectConsecutive: number | null;
|
|
43
|
+
easeFactor: number | null;
|
|
44
|
+
interval: number | null;
|
|
45
|
+
repetitions: number | null;
|
|
46
|
+
masteryLevel: number | null;
|
|
47
|
+
lastStudiedAt: Date | null;
|
|
48
|
+
nextReviewAt: Date | null;
|
|
49
|
+
createdAt: Date | null;
|
|
50
|
+
updatedAt: Date | null;
|
|
51
|
+
};
|
|
52
|
+
export type FlashcardProgressMaxAggregateOutputType = {
|
|
53
|
+
id: string | null;
|
|
54
|
+
userId: string | null;
|
|
55
|
+
flashcardId: string | null;
|
|
56
|
+
timesStudied: number | null;
|
|
57
|
+
timesCorrect: number | null;
|
|
58
|
+
timesIncorrect: number | null;
|
|
59
|
+
timesIncorrectConsecutive: number | null;
|
|
60
|
+
easeFactor: number | null;
|
|
61
|
+
interval: number | null;
|
|
62
|
+
repetitions: number | null;
|
|
63
|
+
masteryLevel: number | null;
|
|
64
|
+
lastStudiedAt: Date | null;
|
|
65
|
+
nextReviewAt: Date | null;
|
|
66
|
+
createdAt: Date | null;
|
|
67
|
+
updatedAt: Date | null;
|
|
68
|
+
};
|
|
69
|
+
export type FlashcardProgressCountAggregateOutputType = {
|
|
70
|
+
id: number;
|
|
71
|
+
userId: number;
|
|
72
|
+
flashcardId: number;
|
|
73
|
+
timesStudied: number;
|
|
74
|
+
timesCorrect: number;
|
|
75
|
+
timesIncorrect: number;
|
|
76
|
+
timesIncorrectConsecutive: number;
|
|
77
|
+
easeFactor: number;
|
|
78
|
+
interval: number;
|
|
79
|
+
repetitions: number;
|
|
80
|
+
masteryLevel: number;
|
|
81
|
+
lastStudiedAt: number;
|
|
82
|
+
nextReviewAt: number;
|
|
83
|
+
createdAt: number;
|
|
84
|
+
updatedAt: number;
|
|
85
|
+
_all: number;
|
|
86
|
+
};
|
|
87
|
+
export type FlashcardProgressAvgAggregateInputType = {
|
|
88
|
+
timesStudied?: true;
|
|
89
|
+
timesCorrect?: true;
|
|
90
|
+
timesIncorrect?: true;
|
|
91
|
+
timesIncorrectConsecutive?: true;
|
|
92
|
+
easeFactor?: true;
|
|
93
|
+
interval?: true;
|
|
94
|
+
repetitions?: true;
|
|
95
|
+
masteryLevel?: true;
|
|
96
|
+
};
|
|
97
|
+
export type FlashcardProgressSumAggregateInputType = {
|
|
98
|
+
timesStudied?: true;
|
|
99
|
+
timesCorrect?: true;
|
|
100
|
+
timesIncorrect?: true;
|
|
101
|
+
timesIncorrectConsecutive?: true;
|
|
102
|
+
easeFactor?: true;
|
|
103
|
+
interval?: true;
|
|
104
|
+
repetitions?: true;
|
|
105
|
+
masteryLevel?: true;
|
|
106
|
+
};
|
|
107
|
+
export type FlashcardProgressMinAggregateInputType = {
|
|
108
|
+
id?: true;
|
|
109
|
+
userId?: true;
|
|
110
|
+
flashcardId?: true;
|
|
111
|
+
timesStudied?: true;
|
|
112
|
+
timesCorrect?: true;
|
|
113
|
+
timesIncorrect?: true;
|
|
114
|
+
timesIncorrectConsecutive?: true;
|
|
115
|
+
easeFactor?: true;
|
|
116
|
+
interval?: true;
|
|
117
|
+
repetitions?: true;
|
|
118
|
+
masteryLevel?: true;
|
|
119
|
+
lastStudiedAt?: true;
|
|
120
|
+
nextReviewAt?: true;
|
|
121
|
+
createdAt?: true;
|
|
122
|
+
updatedAt?: true;
|
|
123
|
+
};
|
|
124
|
+
export type FlashcardProgressMaxAggregateInputType = {
|
|
125
|
+
id?: true;
|
|
126
|
+
userId?: true;
|
|
127
|
+
flashcardId?: true;
|
|
128
|
+
timesStudied?: true;
|
|
129
|
+
timesCorrect?: true;
|
|
130
|
+
timesIncorrect?: true;
|
|
131
|
+
timesIncorrectConsecutive?: true;
|
|
132
|
+
easeFactor?: true;
|
|
133
|
+
interval?: true;
|
|
134
|
+
repetitions?: true;
|
|
135
|
+
masteryLevel?: true;
|
|
136
|
+
lastStudiedAt?: true;
|
|
137
|
+
nextReviewAt?: true;
|
|
138
|
+
createdAt?: true;
|
|
139
|
+
updatedAt?: true;
|
|
140
|
+
};
|
|
141
|
+
export type FlashcardProgressCountAggregateInputType = {
|
|
142
|
+
id?: true;
|
|
143
|
+
userId?: true;
|
|
144
|
+
flashcardId?: true;
|
|
145
|
+
timesStudied?: true;
|
|
146
|
+
timesCorrect?: true;
|
|
147
|
+
timesIncorrect?: true;
|
|
148
|
+
timesIncorrectConsecutive?: true;
|
|
149
|
+
easeFactor?: true;
|
|
150
|
+
interval?: true;
|
|
151
|
+
repetitions?: true;
|
|
152
|
+
masteryLevel?: true;
|
|
153
|
+
lastStudiedAt?: true;
|
|
154
|
+
nextReviewAt?: true;
|
|
155
|
+
createdAt?: true;
|
|
156
|
+
updatedAt?: true;
|
|
157
|
+
_all?: true;
|
|
158
|
+
};
|
|
159
|
+
export type FlashcardProgressAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
160
|
+
/**
|
|
161
|
+
* Filter which FlashcardProgress to aggregate.
|
|
162
|
+
*/
|
|
163
|
+
where?: Prisma.FlashcardProgressWhereInput;
|
|
164
|
+
/**
|
|
165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
166
|
+
*
|
|
167
|
+
* Determine the order of FlashcardProgresses to fetch.
|
|
168
|
+
*/
|
|
169
|
+
orderBy?: Prisma.FlashcardProgressOrderByWithRelationInput | Prisma.FlashcardProgressOrderByWithRelationInput[];
|
|
170
|
+
/**
|
|
171
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
172
|
+
*
|
|
173
|
+
* Sets the start position
|
|
174
|
+
*/
|
|
175
|
+
cursor?: Prisma.FlashcardProgressWhereUniqueInput;
|
|
176
|
+
/**
|
|
177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
178
|
+
*
|
|
179
|
+
* Take `±n` FlashcardProgresses from the position of the cursor.
|
|
180
|
+
*/
|
|
181
|
+
take?: number;
|
|
182
|
+
/**
|
|
183
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
184
|
+
*
|
|
185
|
+
* Skip the first `n` FlashcardProgresses.
|
|
186
|
+
*/
|
|
187
|
+
skip?: number;
|
|
188
|
+
/**
|
|
189
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
190
|
+
*
|
|
191
|
+
* Count returned FlashcardProgresses
|
|
192
|
+
**/
|
|
193
|
+
_count?: true | FlashcardProgressCountAggregateInputType;
|
|
194
|
+
/**
|
|
195
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
196
|
+
*
|
|
197
|
+
* Select which fields to average
|
|
198
|
+
**/
|
|
199
|
+
_avg?: FlashcardProgressAvgAggregateInputType;
|
|
200
|
+
/**
|
|
201
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
202
|
+
*
|
|
203
|
+
* Select which fields to sum
|
|
204
|
+
**/
|
|
205
|
+
_sum?: FlashcardProgressSumAggregateInputType;
|
|
206
|
+
/**
|
|
207
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
208
|
+
*
|
|
209
|
+
* Select which fields to find the minimum value
|
|
210
|
+
**/
|
|
211
|
+
_min?: FlashcardProgressMinAggregateInputType;
|
|
212
|
+
/**
|
|
213
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
214
|
+
*
|
|
215
|
+
* Select which fields to find the maximum value
|
|
216
|
+
**/
|
|
217
|
+
_max?: FlashcardProgressMaxAggregateInputType;
|
|
218
|
+
};
|
|
219
|
+
export type GetFlashcardProgressAggregateType<T extends FlashcardProgressAggregateArgs> = {
|
|
220
|
+
[P in keyof T & keyof AggregateFlashcardProgress]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateFlashcardProgress[P]> : Prisma.GetScalarType<T[P], AggregateFlashcardProgress[P]>;
|
|
221
|
+
};
|
|
222
|
+
export type FlashcardProgressGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
223
|
+
where?: Prisma.FlashcardProgressWhereInput;
|
|
224
|
+
orderBy?: Prisma.FlashcardProgressOrderByWithAggregationInput | Prisma.FlashcardProgressOrderByWithAggregationInput[];
|
|
225
|
+
by: Prisma.FlashcardProgressScalarFieldEnum[] | Prisma.FlashcardProgressScalarFieldEnum;
|
|
226
|
+
having?: Prisma.FlashcardProgressScalarWhereWithAggregatesInput;
|
|
227
|
+
take?: number;
|
|
228
|
+
skip?: number;
|
|
229
|
+
_count?: FlashcardProgressCountAggregateInputType | true;
|
|
230
|
+
_avg?: FlashcardProgressAvgAggregateInputType;
|
|
231
|
+
_sum?: FlashcardProgressSumAggregateInputType;
|
|
232
|
+
_min?: FlashcardProgressMinAggregateInputType;
|
|
233
|
+
_max?: FlashcardProgressMaxAggregateInputType;
|
|
234
|
+
};
|
|
235
|
+
export type FlashcardProgressGroupByOutputType = {
|
|
236
|
+
id: string;
|
|
237
|
+
userId: string;
|
|
238
|
+
flashcardId: string;
|
|
239
|
+
timesStudied: number;
|
|
240
|
+
timesCorrect: number;
|
|
241
|
+
timesIncorrect: number;
|
|
242
|
+
timesIncorrectConsecutive: number;
|
|
243
|
+
easeFactor: number;
|
|
244
|
+
interval: number;
|
|
245
|
+
repetitions: number;
|
|
246
|
+
masteryLevel: number;
|
|
247
|
+
lastStudiedAt: Date | null;
|
|
248
|
+
nextReviewAt: Date | null;
|
|
249
|
+
createdAt: Date;
|
|
250
|
+
updatedAt: Date;
|
|
251
|
+
_count: FlashcardProgressCountAggregateOutputType | null;
|
|
252
|
+
_avg: FlashcardProgressAvgAggregateOutputType | null;
|
|
253
|
+
_sum: FlashcardProgressSumAggregateOutputType | null;
|
|
254
|
+
_min: FlashcardProgressMinAggregateOutputType | null;
|
|
255
|
+
_max: FlashcardProgressMaxAggregateOutputType | null;
|
|
256
|
+
};
|
|
257
|
+
export type GetFlashcardProgressGroupByPayload<T extends FlashcardProgressGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<FlashcardProgressGroupByOutputType, T['by']> & {
|
|
258
|
+
[P in ((keyof T) & (keyof FlashcardProgressGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], FlashcardProgressGroupByOutputType[P]> : Prisma.GetScalarType<T[P], FlashcardProgressGroupByOutputType[P]>;
|
|
259
|
+
}>>;
|
|
260
|
+
export type FlashcardProgressWhereInput = {
|
|
261
|
+
AND?: Prisma.FlashcardProgressWhereInput | Prisma.FlashcardProgressWhereInput[];
|
|
262
|
+
OR?: Prisma.FlashcardProgressWhereInput[];
|
|
263
|
+
NOT?: Prisma.FlashcardProgressWhereInput | Prisma.FlashcardProgressWhereInput[];
|
|
264
|
+
id?: Prisma.StringFilter<"FlashcardProgress"> | string;
|
|
265
|
+
userId?: Prisma.StringFilter<"FlashcardProgress"> | string;
|
|
266
|
+
flashcardId?: Prisma.StringFilter<"FlashcardProgress"> | string;
|
|
267
|
+
timesStudied?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
268
|
+
timesCorrect?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
269
|
+
timesIncorrect?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
270
|
+
timesIncorrectConsecutive?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
271
|
+
easeFactor?: Prisma.FloatFilter<"FlashcardProgress"> | number;
|
|
272
|
+
interval?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
273
|
+
repetitions?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
274
|
+
masteryLevel?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
275
|
+
lastStudiedAt?: Prisma.DateTimeNullableFilter<"FlashcardProgress"> | Date | string | null;
|
|
276
|
+
nextReviewAt?: Prisma.DateTimeNullableFilter<"FlashcardProgress"> | Date | string | null;
|
|
277
|
+
createdAt?: Prisma.DateTimeFilter<"FlashcardProgress"> | Date | string;
|
|
278
|
+
updatedAt?: Prisma.DateTimeFilter<"FlashcardProgress"> | Date | string;
|
|
279
|
+
flashcard?: Prisma.XOR<Prisma.FlashcardScalarRelationFilter, Prisma.FlashcardWhereInput>;
|
|
280
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
281
|
+
};
|
|
282
|
+
export type FlashcardProgressOrderByWithRelationInput = {
|
|
283
|
+
id?: Prisma.SortOrder;
|
|
284
|
+
userId?: Prisma.SortOrder;
|
|
285
|
+
flashcardId?: Prisma.SortOrder;
|
|
286
|
+
timesStudied?: Prisma.SortOrder;
|
|
287
|
+
timesCorrect?: Prisma.SortOrder;
|
|
288
|
+
timesIncorrect?: Prisma.SortOrder;
|
|
289
|
+
timesIncorrectConsecutive?: Prisma.SortOrder;
|
|
290
|
+
easeFactor?: Prisma.SortOrder;
|
|
291
|
+
interval?: Prisma.SortOrder;
|
|
292
|
+
repetitions?: Prisma.SortOrder;
|
|
293
|
+
masteryLevel?: Prisma.SortOrder;
|
|
294
|
+
lastStudiedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
295
|
+
nextReviewAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
296
|
+
createdAt?: Prisma.SortOrder;
|
|
297
|
+
updatedAt?: Prisma.SortOrder;
|
|
298
|
+
flashcard?: Prisma.FlashcardOrderByWithRelationInput;
|
|
299
|
+
user?: Prisma.UserOrderByWithRelationInput;
|
|
300
|
+
};
|
|
301
|
+
export type FlashcardProgressWhereUniqueInput = Prisma.AtLeast<{
|
|
302
|
+
id?: string;
|
|
303
|
+
userId_flashcardId?: Prisma.FlashcardProgressUserIdFlashcardIdCompoundUniqueInput;
|
|
304
|
+
AND?: Prisma.FlashcardProgressWhereInput | Prisma.FlashcardProgressWhereInput[];
|
|
305
|
+
OR?: Prisma.FlashcardProgressWhereInput[];
|
|
306
|
+
NOT?: Prisma.FlashcardProgressWhereInput | Prisma.FlashcardProgressWhereInput[];
|
|
307
|
+
userId?: Prisma.StringFilter<"FlashcardProgress"> | string;
|
|
308
|
+
flashcardId?: Prisma.StringFilter<"FlashcardProgress"> | string;
|
|
309
|
+
timesStudied?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
310
|
+
timesCorrect?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
311
|
+
timesIncorrect?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
312
|
+
timesIncorrectConsecutive?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
313
|
+
easeFactor?: Prisma.FloatFilter<"FlashcardProgress"> | number;
|
|
314
|
+
interval?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
315
|
+
repetitions?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
316
|
+
masteryLevel?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
317
|
+
lastStudiedAt?: Prisma.DateTimeNullableFilter<"FlashcardProgress"> | Date | string | null;
|
|
318
|
+
nextReviewAt?: Prisma.DateTimeNullableFilter<"FlashcardProgress"> | Date | string | null;
|
|
319
|
+
createdAt?: Prisma.DateTimeFilter<"FlashcardProgress"> | Date | string;
|
|
320
|
+
updatedAt?: Prisma.DateTimeFilter<"FlashcardProgress"> | Date | string;
|
|
321
|
+
flashcard?: Prisma.XOR<Prisma.FlashcardScalarRelationFilter, Prisma.FlashcardWhereInput>;
|
|
322
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
323
|
+
}, "id" | "userId_flashcardId">;
|
|
324
|
+
export type FlashcardProgressOrderByWithAggregationInput = {
|
|
325
|
+
id?: Prisma.SortOrder;
|
|
326
|
+
userId?: Prisma.SortOrder;
|
|
327
|
+
flashcardId?: Prisma.SortOrder;
|
|
328
|
+
timesStudied?: Prisma.SortOrder;
|
|
329
|
+
timesCorrect?: Prisma.SortOrder;
|
|
330
|
+
timesIncorrect?: Prisma.SortOrder;
|
|
331
|
+
timesIncorrectConsecutive?: Prisma.SortOrder;
|
|
332
|
+
easeFactor?: Prisma.SortOrder;
|
|
333
|
+
interval?: Prisma.SortOrder;
|
|
334
|
+
repetitions?: Prisma.SortOrder;
|
|
335
|
+
masteryLevel?: Prisma.SortOrder;
|
|
336
|
+
lastStudiedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
337
|
+
nextReviewAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
338
|
+
createdAt?: Prisma.SortOrder;
|
|
339
|
+
updatedAt?: Prisma.SortOrder;
|
|
340
|
+
_count?: Prisma.FlashcardProgressCountOrderByAggregateInput;
|
|
341
|
+
_avg?: Prisma.FlashcardProgressAvgOrderByAggregateInput;
|
|
342
|
+
_max?: Prisma.FlashcardProgressMaxOrderByAggregateInput;
|
|
343
|
+
_min?: Prisma.FlashcardProgressMinOrderByAggregateInput;
|
|
344
|
+
_sum?: Prisma.FlashcardProgressSumOrderByAggregateInput;
|
|
345
|
+
};
|
|
346
|
+
export type FlashcardProgressScalarWhereWithAggregatesInput = {
|
|
347
|
+
AND?: Prisma.FlashcardProgressScalarWhereWithAggregatesInput | Prisma.FlashcardProgressScalarWhereWithAggregatesInput[];
|
|
348
|
+
OR?: Prisma.FlashcardProgressScalarWhereWithAggregatesInput[];
|
|
349
|
+
NOT?: Prisma.FlashcardProgressScalarWhereWithAggregatesInput | Prisma.FlashcardProgressScalarWhereWithAggregatesInput[];
|
|
350
|
+
id?: Prisma.StringWithAggregatesFilter<"FlashcardProgress"> | string;
|
|
351
|
+
userId?: Prisma.StringWithAggregatesFilter<"FlashcardProgress"> | string;
|
|
352
|
+
flashcardId?: Prisma.StringWithAggregatesFilter<"FlashcardProgress"> | string;
|
|
353
|
+
timesStudied?: Prisma.IntWithAggregatesFilter<"FlashcardProgress"> | number;
|
|
354
|
+
timesCorrect?: Prisma.IntWithAggregatesFilter<"FlashcardProgress"> | number;
|
|
355
|
+
timesIncorrect?: Prisma.IntWithAggregatesFilter<"FlashcardProgress"> | number;
|
|
356
|
+
timesIncorrectConsecutive?: Prisma.IntWithAggregatesFilter<"FlashcardProgress"> | number;
|
|
357
|
+
easeFactor?: Prisma.FloatWithAggregatesFilter<"FlashcardProgress"> | number;
|
|
358
|
+
interval?: Prisma.IntWithAggregatesFilter<"FlashcardProgress"> | number;
|
|
359
|
+
repetitions?: Prisma.IntWithAggregatesFilter<"FlashcardProgress"> | number;
|
|
360
|
+
masteryLevel?: Prisma.IntWithAggregatesFilter<"FlashcardProgress"> | number;
|
|
361
|
+
lastStudiedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FlashcardProgress"> | Date | string | null;
|
|
362
|
+
nextReviewAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FlashcardProgress"> | Date | string | null;
|
|
363
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"FlashcardProgress"> | Date | string;
|
|
364
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"FlashcardProgress"> | Date | string;
|
|
365
|
+
};
|
|
366
|
+
export type FlashcardProgressCreateInput = {
|
|
367
|
+
id?: string;
|
|
368
|
+
timesStudied?: number;
|
|
369
|
+
timesCorrect?: number;
|
|
370
|
+
timesIncorrect?: number;
|
|
371
|
+
timesIncorrectConsecutive?: number;
|
|
372
|
+
easeFactor?: number;
|
|
373
|
+
interval?: number;
|
|
374
|
+
repetitions?: number;
|
|
375
|
+
masteryLevel?: number;
|
|
376
|
+
lastStudiedAt?: Date | string | null;
|
|
377
|
+
nextReviewAt?: Date | string | null;
|
|
378
|
+
createdAt?: Date | string;
|
|
379
|
+
updatedAt?: Date | string;
|
|
380
|
+
flashcard: Prisma.FlashcardCreateNestedOneWithoutProgressInput;
|
|
381
|
+
user: Prisma.UserCreateNestedOneWithoutFlashcardProgressInput;
|
|
382
|
+
};
|
|
383
|
+
export type FlashcardProgressUncheckedCreateInput = {
|
|
384
|
+
id?: string;
|
|
385
|
+
userId: string;
|
|
386
|
+
flashcardId: string;
|
|
387
|
+
timesStudied?: number;
|
|
388
|
+
timesCorrect?: number;
|
|
389
|
+
timesIncorrect?: number;
|
|
390
|
+
timesIncorrectConsecutive?: number;
|
|
391
|
+
easeFactor?: number;
|
|
392
|
+
interval?: number;
|
|
393
|
+
repetitions?: number;
|
|
394
|
+
masteryLevel?: number;
|
|
395
|
+
lastStudiedAt?: Date | string | null;
|
|
396
|
+
nextReviewAt?: Date | string | null;
|
|
397
|
+
createdAt?: Date | string;
|
|
398
|
+
updatedAt?: Date | string;
|
|
399
|
+
};
|
|
400
|
+
export type FlashcardProgressUpdateInput = {
|
|
401
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
402
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
403
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
404
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
405
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
406
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
407
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
408
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
409
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
410
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
411
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
412
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
413
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
414
|
+
flashcard?: Prisma.FlashcardUpdateOneRequiredWithoutProgressNestedInput;
|
|
415
|
+
user?: Prisma.UserUpdateOneRequiredWithoutFlashcardProgressNestedInput;
|
|
416
|
+
};
|
|
417
|
+
export type FlashcardProgressUncheckedUpdateInput = {
|
|
418
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
419
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
420
|
+
flashcardId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
421
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
422
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
423
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
424
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
425
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
426
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
427
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
428
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
429
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
430
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
431
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
432
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
433
|
+
};
|
|
434
|
+
export type FlashcardProgressCreateManyInput = {
|
|
435
|
+
id?: string;
|
|
436
|
+
userId: string;
|
|
437
|
+
flashcardId: string;
|
|
438
|
+
timesStudied?: number;
|
|
439
|
+
timesCorrect?: number;
|
|
440
|
+
timesIncorrect?: number;
|
|
441
|
+
timesIncorrectConsecutive?: number;
|
|
442
|
+
easeFactor?: number;
|
|
443
|
+
interval?: number;
|
|
444
|
+
repetitions?: number;
|
|
445
|
+
masteryLevel?: number;
|
|
446
|
+
lastStudiedAt?: Date | string | null;
|
|
447
|
+
nextReviewAt?: Date | string | null;
|
|
448
|
+
createdAt?: Date | string;
|
|
449
|
+
updatedAt?: Date | string;
|
|
450
|
+
};
|
|
451
|
+
export type FlashcardProgressUpdateManyMutationInput = {
|
|
452
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
453
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
454
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
455
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
456
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
457
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
458
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
459
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
460
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
461
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
462
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
463
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
464
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
465
|
+
};
|
|
466
|
+
export type FlashcardProgressUncheckedUpdateManyInput = {
|
|
467
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
468
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
469
|
+
flashcardId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
470
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
471
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
472
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
473
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
474
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
475
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
476
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
477
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
478
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
479
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
480
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
481
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
482
|
+
};
|
|
483
|
+
export type FlashcardProgressListRelationFilter = {
|
|
484
|
+
every?: Prisma.FlashcardProgressWhereInput;
|
|
485
|
+
some?: Prisma.FlashcardProgressWhereInput;
|
|
486
|
+
none?: Prisma.FlashcardProgressWhereInput;
|
|
487
|
+
};
|
|
488
|
+
export type FlashcardProgressOrderByRelationAggregateInput = {
|
|
489
|
+
_count?: Prisma.SortOrder;
|
|
490
|
+
};
|
|
491
|
+
export type FlashcardProgressUserIdFlashcardIdCompoundUniqueInput = {
|
|
492
|
+
userId: string;
|
|
493
|
+
flashcardId: string;
|
|
494
|
+
};
|
|
495
|
+
export type FlashcardProgressCountOrderByAggregateInput = {
|
|
496
|
+
id?: Prisma.SortOrder;
|
|
497
|
+
userId?: Prisma.SortOrder;
|
|
498
|
+
flashcardId?: Prisma.SortOrder;
|
|
499
|
+
timesStudied?: Prisma.SortOrder;
|
|
500
|
+
timesCorrect?: Prisma.SortOrder;
|
|
501
|
+
timesIncorrect?: Prisma.SortOrder;
|
|
502
|
+
timesIncorrectConsecutive?: Prisma.SortOrder;
|
|
503
|
+
easeFactor?: Prisma.SortOrder;
|
|
504
|
+
interval?: Prisma.SortOrder;
|
|
505
|
+
repetitions?: Prisma.SortOrder;
|
|
506
|
+
masteryLevel?: Prisma.SortOrder;
|
|
507
|
+
lastStudiedAt?: Prisma.SortOrder;
|
|
508
|
+
nextReviewAt?: Prisma.SortOrder;
|
|
509
|
+
createdAt?: Prisma.SortOrder;
|
|
510
|
+
updatedAt?: Prisma.SortOrder;
|
|
511
|
+
};
|
|
512
|
+
export type FlashcardProgressAvgOrderByAggregateInput = {
|
|
513
|
+
timesStudied?: Prisma.SortOrder;
|
|
514
|
+
timesCorrect?: Prisma.SortOrder;
|
|
515
|
+
timesIncorrect?: Prisma.SortOrder;
|
|
516
|
+
timesIncorrectConsecutive?: Prisma.SortOrder;
|
|
517
|
+
easeFactor?: Prisma.SortOrder;
|
|
518
|
+
interval?: Prisma.SortOrder;
|
|
519
|
+
repetitions?: Prisma.SortOrder;
|
|
520
|
+
masteryLevel?: Prisma.SortOrder;
|
|
521
|
+
};
|
|
522
|
+
export type FlashcardProgressMaxOrderByAggregateInput = {
|
|
523
|
+
id?: Prisma.SortOrder;
|
|
524
|
+
userId?: Prisma.SortOrder;
|
|
525
|
+
flashcardId?: Prisma.SortOrder;
|
|
526
|
+
timesStudied?: Prisma.SortOrder;
|
|
527
|
+
timesCorrect?: Prisma.SortOrder;
|
|
528
|
+
timesIncorrect?: Prisma.SortOrder;
|
|
529
|
+
timesIncorrectConsecutive?: Prisma.SortOrder;
|
|
530
|
+
easeFactor?: Prisma.SortOrder;
|
|
531
|
+
interval?: Prisma.SortOrder;
|
|
532
|
+
repetitions?: Prisma.SortOrder;
|
|
533
|
+
masteryLevel?: Prisma.SortOrder;
|
|
534
|
+
lastStudiedAt?: Prisma.SortOrder;
|
|
535
|
+
nextReviewAt?: Prisma.SortOrder;
|
|
536
|
+
createdAt?: Prisma.SortOrder;
|
|
537
|
+
updatedAt?: Prisma.SortOrder;
|
|
538
|
+
};
|
|
539
|
+
export type FlashcardProgressMinOrderByAggregateInput = {
|
|
540
|
+
id?: Prisma.SortOrder;
|
|
541
|
+
userId?: Prisma.SortOrder;
|
|
542
|
+
flashcardId?: Prisma.SortOrder;
|
|
543
|
+
timesStudied?: Prisma.SortOrder;
|
|
544
|
+
timesCorrect?: Prisma.SortOrder;
|
|
545
|
+
timesIncorrect?: Prisma.SortOrder;
|
|
546
|
+
timesIncorrectConsecutive?: Prisma.SortOrder;
|
|
547
|
+
easeFactor?: Prisma.SortOrder;
|
|
548
|
+
interval?: Prisma.SortOrder;
|
|
549
|
+
repetitions?: Prisma.SortOrder;
|
|
550
|
+
masteryLevel?: Prisma.SortOrder;
|
|
551
|
+
lastStudiedAt?: Prisma.SortOrder;
|
|
552
|
+
nextReviewAt?: Prisma.SortOrder;
|
|
553
|
+
createdAt?: Prisma.SortOrder;
|
|
554
|
+
updatedAt?: Prisma.SortOrder;
|
|
555
|
+
};
|
|
556
|
+
export type FlashcardProgressSumOrderByAggregateInput = {
|
|
557
|
+
timesStudied?: Prisma.SortOrder;
|
|
558
|
+
timesCorrect?: Prisma.SortOrder;
|
|
559
|
+
timesIncorrect?: Prisma.SortOrder;
|
|
560
|
+
timesIncorrectConsecutive?: Prisma.SortOrder;
|
|
561
|
+
easeFactor?: Prisma.SortOrder;
|
|
562
|
+
interval?: Prisma.SortOrder;
|
|
563
|
+
repetitions?: Prisma.SortOrder;
|
|
564
|
+
masteryLevel?: Prisma.SortOrder;
|
|
565
|
+
};
|
|
566
|
+
export type FlashcardProgressCreateNestedManyWithoutUserInput = {
|
|
567
|
+
create?: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutUserInput, Prisma.FlashcardProgressUncheckedCreateWithoutUserInput> | Prisma.FlashcardProgressCreateWithoutUserInput[] | Prisma.FlashcardProgressUncheckedCreateWithoutUserInput[];
|
|
568
|
+
connectOrCreate?: Prisma.FlashcardProgressCreateOrConnectWithoutUserInput | Prisma.FlashcardProgressCreateOrConnectWithoutUserInput[];
|
|
569
|
+
createMany?: Prisma.FlashcardProgressCreateManyUserInputEnvelope;
|
|
570
|
+
connect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
571
|
+
};
|
|
572
|
+
export type FlashcardProgressUncheckedCreateNestedManyWithoutUserInput = {
|
|
573
|
+
create?: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutUserInput, Prisma.FlashcardProgressUncheckedCreateWithoutUserInput> | Prisma.FlashcardProgressCreateWithoutUserInput[] | Prisma.FlashcardProgressUncheckedCreateWithoutUserInput[];
|
|
574
|
+
connectOrCreate?: Prisma.FlashcardProgressCreateOrConnectWithoutUserInput | Prisma.FlashcardProgressCreateOrConnectWithoutUserInput[];
|
|
575
|
+
createMany?: Prisma.FlashcardProgressCreateManyUserInputEnvelope;
|
|
576
|
+
connect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
577
|
+
};
|
|
578
|
+
export type FlashcardProgressUpdateManyWithoutUserNestedInput = {
|
|
579
|
+
create?: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutUserInput, Prisma.FlashcardProgressUncheckedCreateWithoutUserInput> | Prisma.FlashcardProgressCreateWithoutUserInput[] | Prisma.FlashcardProgressUncheckedCreateWithoutUserInput[];
|
|
580
|
+
connectOrCreate?: Prisma.FlashcardProgressCreateOrConnectWithoutUserInput | Prisma.FlashcardProgressCreateOrConnectWithoutUserInput[];
|
|
581
|
+
upsert?: Prisma.FlashcardProgressUpsertWithWhereUniqueWithoutUserInput | Prisma.FlashcardProgressUpsertWithWhereUniqueWithoutUserInput[];
|
|
582
|
+
createMany?: Prisma.FlashcardProgressCreateManyUserInputEnvelope;
|
|
583
|
+
set?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
584
|
+
disconnect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
585
|
+
delete?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
586
|
+
connect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
587
|
+
update?: Prisma.FlashcardProgressUpdateWithWhereUniqueWithoutUserInput | Prisma.FlashcardProgressUpdateWithWhereUniqueWithoutUserInput[];
|
|
588
|
+
updateMany?: Prisma.FlashcardProgressUpdateManyWithWhereWithoutUserInput | Prisma.FlashcardProgressUpdateManyWithWhereWithoutUserInput[];
|
|
589
|
+
deleteMany?: Prisma.FlashcardProgressScalarWhereInput | Prisma.FlashcardProgressScalarWhereInput[];
|
|
590
|
+
};
|
|
591
|
+
export type FlashcardProgressUncheckedUpdateManyWithoutUserNestedInput = {
|
|
592
|
+
create?: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutUserInput, Prisma.FlashcardProgressUncheckedCreateWithoutUserInput> | Prisma.FlashcardProgressCreateWithoutUserInput[] | Prisma.FlashcardProgressUncheckedCreateWithoutUserInput[];
|
|
593
|
+
connectOrCreate?: Prisma.FlashcardProgressCreateOrConnectWithoutUserInput | Prisma.FlashcardProgressCreateOrConnectWithoutUserInput[];
|
|
594
|
+
upsert?: Prisma.FlashcardProgressUpsertWithWhereUniqueWithoutUserInput | Prisma.FlashcardProgressUpsertWithWhereUniqueWithoutUserInput[];
|
|
595
|
+
createMany?: Prisma.FlashcardProgressCreateManyUserInputEnvelope;
|
|
596
|
+
set?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
597
|
+
disconnect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
598
|
+
delete?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
599
|
+
connect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
600
|
+
update?: Prisma.FlashcardProgressUpdateWithWhereUniqueWithoutUserInput | Prisma.FlashcardProgressUpdateWithWhereUniqueWithoutUserInput[];
|
|
601
|
+
updateMany?: Prisma.FlashcardProgressUpdateManyWithWhereWithoutUserInput | Prisma.FlashcardProgressUpdateManyWithWhereWithoutUserInput[];
|
|
602
|
+
deleteMany?: Prisma.FlashcardProgressScalarWhereInput | Prisma.FlashcardProgressScalarWhereInput[];
|
|
603
|
+
};
|
|
604
|
+
export type FlashcardProgressCreateNestedManyWithoutFlashcardInput = {
|
|
605
|
+
create?: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutFlashcardInput, Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput> | Prisma.FlashcardProgressCreateWithoutFlashcardInput[] | Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput[];
|
|
606
|
+
connectOrCreate?: Prisma.FlashcardProgressCreateOrConnectWithoutFlashcardInput | Prisma.FlashcardProgressCreateOrConnectWithoutFlashcardInput[];
|
|
607
|
+
createMany?: Prisma.FlashcardProgressCreateManyFlashcardInputEnvelope;
|
|
608
|
+
connect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
609
|
+
};
|
|
610
|
+
export type FlashcardProgressUncheckedCreateNestedManyWithoutFlashcardInput = {
|
|
611
|
+
create?: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutFlashcardInput, Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput> | Prisma.FlashcardProgressCreateWithoutFlashcardInput[] | Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput[];
|
|
612
|
+
connectOrCreate?: Prisma.FlashcardProgressCreateOrConnectWithoutFlashcardInput | Prisma.FlashcardProgressCreateOrConnectWithoutFlashcardInput[];
|
|
613
|
+
createMany?: Prisma.FlashcardProgressCreateManyFlashcardInputEnvelope;
|
|
614
|
+
connect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
615
|
+
};
|
|
616
|
+
export type FlashcardProgressUpdateManyWithoutFlashcardNestedInput = {
|
|
617
|
+
create?: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutFlashcardInput, Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput> | Prisma.FlashcardProgressCreateWithoutFlashcardInput[] | Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput[];
|
|
618
|
+
connectOrCreate?: Prisma.FlashcardProgressCreateOrConnectWithoutFlashcardInput | Prisma.FlashcardProgressCreateOrConnectWithoutFlashcardInput[];
|
|
619
|
+
upsert?: Prisma.FlashcardProgressUpsertWithWhereUniqueWithoutFlashcardInput | Prisma.FlashcardProgressUpsertWithWhereUniqueWithoutFlashcardInput[];
|
|
620
|
+
createMany?: Prisma.FlashcardProgressCreateManyFlashcardInputEnvelope;
|
|
621
|
+
set?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
622
|
+
disconnect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
623
|
+
delete?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
624
|
+
connect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
625
|
+
update?: Prisma.FlashcardProgressUpdateWithWhereUniqueWithoutFlashcardInput | Prisma.FlashcardProgressUpdateWithWhereUniqueWithoutFlashcardInput[];
|
|
626
|
+
updateMany?: Prisma.FlashcardProgressUpdateManyWithWhereWithoutFlashcardInput | Prisma.FlashcardProgressUpdateManyWithWhereWithoutFlashcardInput[];
|
|
627
|
+
deleteMany?: Prisma.FlashcardProgressScalarWhereInput | Prisma.FlashcardProgressScalarWhereInput[];
|
|
628
|
+
};
|
|
629
|
+
export type FlashcardProgressUncheckedUpdateManyWithoutFlashcardNestedInput = {
|
|
630
|
+
create?: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutFlashcardInput, Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput> | Prisma.FlashcardProgressCreateWithoutFlashcardInput[] | Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput[];
|
|
631
|
+
connectOrCreate?: Prisma.FlashcardProgressCreateOrConnectWithoutFlashcardInput | Prisma.FlashcardProgressCreateOrConnectWithoutFlashcardInput[];
|
|
632
|
+
upsert?: Prisma.FlashcardProgressUpsertWithWhereUniqueWithoutFlashcardInput | Prisma.FlashcardProgressUpsertWithWhereUniqueWithoutFlashcardInput[];
|
|
633
|
+
createMany?: Prisma.FlashcardProgressCreateManyFlashcardInputEnvelope;
|
|
634
|
+
set?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
635
|
+
disconnect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
636
|
+
delete?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
637
|
+
connect?: Prisma.FlashcardProgressWhereUniqueInput | Prisma.FlashcardProgressWhereUniqueInput[];
|
|
638
|
+
update?: Prisma.FlashcardProgressUpdateWithWhereUniqueWithoutFlashcardInput | Prisma.FlashcardProgressUpdateWithWhereUniqueWithoutFlashcardInput[];
|
|
639
|
+
updateMany?: Prisma.FlashcardProgressUpdateManyWithWhereWithoutFlashcardInput | Prisma.FlashcardProgressUpdateManyWithWhereWithoutFlashcardInput[];
|
|
640
|
+
deleteMany?: Prisma.FlashcardProgressScalarWhereInput | Prisma.FlashcardProgressScalarWhereInput[];
|
|
641
|
+
};
|
|
642
|
+
export type FloatFieldUpdateOperationsInput = {
|
|
643
|
+
set?: number;
|
|
644
|
+
increment?: number;
|
|
645
|
+
decrement?: number;
|
|
646
|
+
multiply?: number;
|
|
647
|
+
divide?: number;
|
|
648
|
+
};
|
|
649
|
+
export type FlashcardProgressCreateWithoutUserInput = {
|
|
650
|
+
id?: string;
|
|
651
|
+
timesStudied?: number;
|
|
652
|
+
timesCorrect?: number;
|
|
653
|
+
timesIncorrect?: number;
|
|
654
|
+
timesIncorrectConsecutive?: number;
|
|
655
|
+
easeFactor?: number;
|
|
656
|
+
interval?: number;
|
|
657
|
+
repetitions?: number;
|
|
658
|
+
masteryLevel?: number;
|
|
659
|
+
lastStudiedAt?: Date | string | null;
|
|
660
|
+
nextReviewAt?: Date | string | null;
|
|
661
|
+
createdAt?: Date | string;
|
|
662
|
+
updatedAt?: Date | string;
|
|
663
|
+
flashcard: Prisma.FlashcardCreateNestedOneWithoutProgressInput;
|
|
664
|
+
};
|
|
665
|
+
export type FlashcardProgressUncheckedCreateWithoutUserInput = {
|
|
666
|
+
id?: string;
|
|
667
|
+
flashcardId: string;
|
|
668
|
+
timesStudied?: number;
|
|
669
|
+
timesCorrect?: number;
|
|
670
|
+
timesIncorrect?: number;
|
|
671
|
+
timesIncorrectConsecutive?: number;
|
|
672
|
+
easeFactor?: number;
|
|
673
|
+
interval?: number;
|
|
674
|
+
repetitions?: number;
|
|
675
|
+
masteryLevel?: number;
|
|
676
|
+
lastStudiedAt?: Date | string | null;
|
|
677
|
+
nextReviewAt?: Date | string | null;
|
|
678
|
+
createdAt?: Date | string;
|
|
679
|
+
updatedAt?: Date | string;
|
|
680
|
+
};
|
|
681
|
+
export type FlashcardProgressCreateOrConnectWithoutUserInput = {
|
|
682
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
683
|
+
create: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutUserInput, Prisma.FlashcardProgressUncheckedCreateWithoutUserInput>;
|
|
684
|
+
};
|
|
685
|
+
export type FlashcardProgressCreateManyUserInputEnvelope = {
|
|
686
|
+
data: Prisma.FlashcardProgressCreateManyUserInput | Prisma.FlashcardProgressCreateManyUserInput[];
|
|
687
|
+
skipDuplicates?: boolean;
|
|
688
|
+
};
|
|
689
|
+
export type FlashcardProgressUpsertWithWhereUniqueWithoutUserInput = {
|
|
690
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
691
|
+
update: Prisma.XOR<Prisma.FlashcardProgressUpdateWithoutUserInput, Prisma.FlashcardProgressUncheckedUpdateWithoutUserInput>;
|
|
692
|
+
create: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutUserInput, Prisma.FlashcardProgressUncheckedCreateWithoutUserInput>;
|
|
693
|
+
};
|
|
694
|
+
export type FlashcardProgressUpdateWithWhereUniqueWithoutUserInput = {
|
|
695
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
696
|
+
data: Prisma.XOR<Prisma.FlashcardProgressUpdateWithoutUserInput, Prisma.FlashcardProgressUncheckedUpdateWithoutUserInput>;
|
|
697
|
+
};
|
|
698
|
+
export type FlashcardProgressUpdateManyWithWhereWithoutUserInput = {
|
|
699
|
+
where: Prisma.FlashcardProgressScalarWhereInput;
|
|
700
|
+
data: Prisma.XOR<Prisma.FlashcardProgressUpdateManyMutationInput, Prisma.FlashcardProgressUncheckedUpdateManyWithoutUserInput>;
|
|
701
|
+
};
|
|
702
|
+
export type FlashcardProgressScalarWhereInput = {
|
|
703
|
+
AND?: Prisma.FlashcardProgressScalarWhereInput | Prisma.FlashcardProgressScalarWhereInput[];
|
|
704
|
+
OR?: Prisma.FlashcardProgressScalarWhereInput[];
|
|
705
|
+
NOT?: Prisma.FlashcardProgressScalarWhereInput | Prisma.FlashcardProgressScalarWhereInput[];
|
|
706
|
+
id?: Prisma.StringFilter<"FlashcardProgress"> | string;
|
|
707
|
+
userId?: Prisma.StringFilter<"FlashcardProgress"> | string;
|
|
708
|
+
flashcardId?: Prisma.StringFilter<"FlashcardProgress"> | string;
|
|
709
|
+
timesStudied?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
710
|
+
timesCorrect?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
711
|
+
timesIncorrect?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
712
|
+
timesIncorrectConsecutive?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
713
|
+
easeFactor?: Prisma.FloatFilter<"FlashcardProgress"> | number;
|
|
714
|
+
interval?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
715
|
+
repetitions?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
716
|
+
masteryLevel?: Prisma.IntFilter<"FlashcardProgress"> | number;
|
|
717
|
+
lastStudiedAt?: Prisma.DateTimeNullableFilter<"FlashcardProgress"> | Date | string | null;
|
|
718
|
+
nextReviewAt?: Prisma.DateTimeNullableFilter<"FlashcardProgress"> | Date | string | null;
|
|
719
|
+
createdAt?: Prisma.DateTimeFilter<"FlashcardProgress"> | Date | string;
|
|
720
|
+
updatedAt?: Prisma.DateTimeFilter<"FlashcardProgress"> | Date | string;
|
|
721
|
+
};
|
|
722
|
+
export type FlashcardProgressCreateWithoutFlashcardInput = {
|
|
723
|
+
id?: string;
|
|
724
|
+
timesStudied?: number;
|
|
725
|
+
timesCorrect?: number;
|
|
726
|
+
timesIncorrect?: number;
|
|
727
|
+
timesIncorrectConsecutive?: number;
|
|
728
|
+
easeFactor?: number;
|
|
729
|
+
interval?: number;
|
|
730
|
+
repetitions?: number;
|
|
731
|
+
masteryLevel?: number;
|
|
732
|
+
lastStudiedAt?: Date | string | null;
|
|
733
|
+
nextReviewAt?: Date | string | null;
|
|
734
|
+
createdAt?: Date | string;
|
|
735
|
+
updatedAt?: Date | string;
|
|
736
|
+
user: Prisma.UserCreateNestedOneWithoutFlashcardProgressInput;
|
|
737
|
+
};
|
|
738
|
+
export type FlashcardProgressUncheckedCreateWithoutFlashcardInput = {
|
|
739
|
+
id?: string;
|
|
740
|
+
userId: string;
|
|
741
|
+
timesStudied?: number;
|
|
742
|
+
timesCorrect?: number;
|
|
743
|
+
timesIncorrect?: number;
|
|
744
|
+
timesIncorrectConsecutive?: number;
|
|
745
|
+
easeFactor?: number;
|
|
746
|
+
interval?: number;
|
|
747
|
+
repetitions?: number;
|
|
748
|
+
masteryLevel?: number;
|
|
749
|
+
lastStudiedAt?: Date | string | null;
|
|
750
|
+
nextReviewAt?: Date | string | null;
|
|
751
|
+
createdAt?: Date | string;
|
|
752
|
+
updatedAt?: Date | string;
|
|
753
|
+
};
|
|
754
|
+
export type FlashcardProgressCreateOrConnectWithoutFlashcardInput = {
|
|
755
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
756
|
+
create: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutFlashcardInput, Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput>;
|
|
757
|
+
};
|
|
758
|
+
export type FlashcardProgressCreateManyFlashcardInputEnvelope = {
|
|
759
|
+
data: Prisma.FlashcardProgressCreateManyFlashcardInput | Prisma.FlashcardProgressCreateManyFlashcardInput[];
|
|
760
|
+
skipDuplicates?: boolean;
|
|
761
|
+
};
|
|
762
|
+
export type FlashcardProgressUpsertWithWhereUniqueWithoutFlashcardInput = {
|
|
763
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
764
|
+
update: Prisma.XOR<Prisma.FlashcardProgressUpdateWithoutFlashcardInput, Prisma.FlashcardProgressUncheckedUpdateWithoutFlashcardInput>;
|
|
765
|
+
create: Prisma.XOR<Prisma.FlashcardProgressCreateWithoutFlashcardInput, Prisma.FlashcardProgressUncheckedCreateWithoutFlashcardInput>;
|
|
766
|
+
};
|
|
767
|
+
export type FlashcardProgressUpdateWithWhereUniqueWithoutFlashcardInput = {
|
|
768
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
769
|
+
data: Prisma.XOR<Prisma.FlashcardProgressUpdateWithoutFlashcardInput, Prisma.FlashcardProgressUncheckedUpdateWithoutFlashcardInput>;
|
|
770
|
+
};
|
|
771
|
+
export type FlashcardProgressUpdateManyWithWhereWithoutFlashcardInput = {
|
|
772
|
+
where: Prisma.FlashcardProgressScalarWhereInput;
|
|
773
|
+
data: Prisma.XOR<Prisma.FlashcardProgressUpdateManyMutationInput, Prisma.FlashcardProgressUncheckedUpdateManyWithoutFlashcardInput>;
|
|
774
|
+
};
|
|
775
|
+
export type FlashcardProgressCreateManyUserInput = {
|
|
776
|
+
id?: string;
|
|
777
|
+
flashcardId: string;
|
|
778
|
+
timesStudied?: number;
|
|
779
|
+
timesCorrect?: number;
|
|
780
|
+
timesIncorrect?: number;
|
|
781
|
+
timesIncorrectConsecutive?: number;
|
|
782
|
+
easeFactor?: number;
|
|
783
|
+
interval?: number;
|
|
784
|
+
repetitions?: number;
|
|
785
|
+
masteryLevel?: number;
|
|
786
|
+
lastStudiedAt?: Date | string | null;
|
|
787
|
+
nextReviewAt?: Date | string | null;
|
|
788
|
+
createdAt?: Date | string;
|
|
789
|
+
updatedAt?: Date | string;
|
|
790
|
+
};
|
|
791
|
+
export type FlashcardProgressUpdateWithoutUserInput = {
|
|
792
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
793
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
794
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
795
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
796
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
797
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
798
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
799
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
800
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
801
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
802
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
803
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
804
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
805
|
+
flashcard?: Prisma.FlashcardUpdateOneRequiredWithoutProgressNestedInput;
|
|
806
|
+
};
|
|
807
|
+
export type FlashcardProgressUncheckedUpdateWithoutUserInput = {
|
|
808
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
809
|
+
flashcardId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
810
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
811
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
812
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
813
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
814
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
815
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
816
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
817
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
818
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
819
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
820
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
821
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
822
|
+
};
|
|
823
|
+
export type FlashcardProgressUncheckedUpdateManyWithoutUserInput = {
|
|
824
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
825
|
+
flashcardId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
826
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
827
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
828
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
829
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
830
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
831
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
832
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
833
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
834
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
835
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
836
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
837
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
838
|
+
};
|
|
839
|
+
export type FlashcardProgressCreateManyFlashcardInput = {
|
|
840
|
+
id?: string;
|
|
841
|
+
userId: string;
|
|
842
|
+
timesStudied?: number;
|
|
843
|
+
timesCorrect?: number;
|
|
844
|
+
timesIncorrect?: number;
|
|
845
|
+
timesIncorrectConsecutive?: number;
|
|
846
|
+
easeFactor?: number;
|
|
847
|
+
interval?: number;
|
|
848
|
+
repetitions?: number;
|
|
849
|
+
masteryLevel?: number;
|
|
850
|
+
lastStudiedAt?: Date | string | null;
|
|
851
|
+
nextReviewAt?: Date | string | null;
|
|
852
|
+
createdAt?: Date | string;
|
|
853
|
+
updatedAt?: Date | string;
|
|
854
|
+
};
|
|
855
|
+
export type FlashcardProgressUpdateWithoutFlashcardInput = {
|
|
856
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
857
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
858
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
859
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
860
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
861
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
862
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
863
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
864
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
865
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
866
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
867
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
868
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
869
|
+
user?: Prisma.UserUpdateOneRequiredWithoutFlashcardProgressNestedInput;
|
|
870
|
+
};
|
|
871
|
+
export type FlashcardProgressUncheckedUpdateWithoutFlashcardInput = {
|
|
872
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
873
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
874
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
875
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
876
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
877
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
878
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
879
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
880
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
881
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
882
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
883
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
884
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
885
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
886
|
+
};
|
|
887
|
+
export type FlashcardProgressUncheckedUpdateManyWithoutFlashcardInput = {
|
|
888
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
889
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
890
|
+
timesStudied?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
891
|
+
timesCorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
892
|
+
timesIncorrect?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
893
|
+
timesIncorrectConsecutive?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
894
|
+
easeFactor?: Prisma.FloatFieldUpdateOperationsInput | number;
|
|
895
|
+
interval?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
896
|
+
repetitions?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
897
|
+
masteryLevel?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
898
|
+
lastStudiedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
899
|
+
nextReviewAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
900
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
901
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
902
|
+
};
|
|
903
|
+
export type FlashcardProgressSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
904
|
+
id?: boolean;
|
|
905
|
+
userId?: boolean;
|
|
906
|
+
flashcardId?: boolean;
|
|
907
|
+
timesStudied?: boolean;
|
|
908
|
+
timesCorrect?: boolean;
|
|
909
|
+
timesIncorrect?: boolean;
|
|
910
|
+
timesIncorrectConsecutive?: boolean;
|
|
911
|
+
easeFactor?: boolean;
|
|
912
|
+
interval?: boolean;
|
|
913
|
+
repetitions?: boolean;
|
|
914
|
+
masteryLevel?: boolean;
|
|
915
|
+
lastStudiedAt?: boolean;
|
|
916
|
+
nextReviewAt?: boolean;
|
|
917
|
+
createdAt?: boolean;
|
|
918
|
+
updatedAt?: boolean;
|
|
919
|
+
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>;
|
|
920
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
921
|
+
}, ExtArgs["result"]["flashcardProgress"]>;
|
|
922
|
+
export type FlashcardProgressSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
923
|
+
id?: boolean;
|
|
924
|
+
userId?: boolean;
|
|
925
|
+
flashcardId?: boolean;
|
|
926
|
+
timesStudied?: boolean;
|
|
927
|
+
timesCorrect?: boolean;
|
|
928
|
+
timesIncorrect?: boolean;
|
|
929
|
+
timesIncorrectConsecutive?: boolean;
|
|
930
|
+
easeFactor?: boolean;
|
|
931
|
+
interval?: boolean;
|
|
932
|
+
repetitions?: boolean;
|
|
933
|
+
masteryLevel?: boolean;
|
|
934
|
+
lastStudiedAt?: boolean;
|
|
935
|
+
nextReviewAt?: boolean;
|
|
936
|
+
createdAt?: boolean;
|
|
937
|
+
updatedAt?: boolean;
|
|
938
|
+
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>;
|
|
939
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
940
|
+
}, ExtArgs["result"]["flashcardProgress"]>;
|
|
941
|
+
export type FlashcardProgressSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
942
|
+
id?: boolean;
|
|
943
|
+
userId?: boolean;
|
|
944
|
+
flashcardId?: boolean;
|
|
945
|
+
timesStudied?: boolean;
|
|
946
|
+
timesCorrect?: boolean;
|
|
947
|
+
timesIncorrect?: boolean;
|
|
948
|
+
timesIncorrectConsecutive?: boolean;
|
|
949
|
+
easeFactor?: boolean;
|
|
950
|
+
interval?: boolean;
|
|
951
|
+
repetitions?: boolean;
|
|
952
|
+
masteryLevel?: boolean;
|
|
953
|
+
lastStudiedAt?: boolean;
|
|
954
|
+
nextReviewAt?: boolean;
|
|
955
|
+
createdAt?: boolean;
|
|
956
|
+
updatedAt?: boolean;
|
|
957
|
+
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>;
|
|
958
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
959
|
+
}, ExtArgs["result"]["flashcardProgress"]>;
|
|
960
|
+
export type FlashcardProgressSelectScalar = {
|
|
961
|
+
id?: boolean;
|
|
962
|
+
userId?: boolean;
|
|
963
|
+
flashcardId?: boolean;
|
|
964
|
+
timesStudied?: boolean;
|
|
965
|
+
timesCorrect?: boolean;
|
|
966
|
+
timesIncorrect?: boolean;
|
|
967
|
+
timesIncorrectConsecutive?: boolean;
|
|
968
|
+
easeFactor?: boolean;
|
|
969
|
+
interval?: boolean;
|
|
970
|
+
repetitions?: boolean;
|
|
971
|
+
masteryLevel?: boolean;
|
|
972
|
+
lastStudiedAt?: boolean;
|
|
973
|
+
nextReviewAt?: boolean;
|
|
974
|
+
createdAt?: boolean;
|
|
975
|
+
updatedAt?: boolean;
|
|
976
|
+
};
|
|
977
|
+
export type FlashcardProgressOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "flashcardId" | "timesStudied" | "timesCorrect" | "timesIncorrect" | "timesIncorrectConsecutive" | "easeFactor" | "interval" | "repetitions" | "masteryLevel" | "lastStudiedAt" | "nextReviewAt" | "createdAt" | "updatedAt", ExtArgs["result"]["flashcardProgress"]>;
|
|
978
|
+
export type FlashcardProgressInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
979
|
+
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>;
|
|
980
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
981
|
+
};
|
|
982
|
+
export type FlashcardProgressIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
983
|
+
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>;
|
|
984
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
985
|
+
};
|
|
986
|
+
export type FlashcardProgressIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
987
|
+
flashcard?: boolean | Prisma.FlashcardDefaultArgs<ExtArgs>;
|
|
988
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
989
|
+
};
|
|
990
|
+
export type $FlashcardProgressPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
991
|
+
name: "FlashcardProgress";
|
|
992
|
+
objects: {
|
|
993
|
+
flashcard: Prisma.$FlashcardPayload<ExtArgs>;
|
|
994
|
+
user: Prisma.$UserPayload<ExtArgs>;
|
|
995
|
+
};
|
|
996
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
997
|
+
id: string;
|
|
998
|
+
userId: string;
|
|
999
|
+
flashcardId: string;
|
|
1000
|
+
timesStudied: number;
|
|
1001
|
+
timesCorrect: number;
|
|
1002
|
+
timesIncorrect: number;
|
|
1003
|
+
timesIncorrectConsecutive: number;
|
|
1004
|
+
easeFactor: number;
|
|
1005
|
+
interval: number;
|
|
1006
|
+
repetitions: number;
|
|
1007
|
+
masteryLevel: number;
|
|
1008
|
+
lastStudiedAt: Date | null;
|
|
1009
|
+
nextReviewAt: Date | null;
|
|
1010
|
+
createdAt: Date;
|
|
1011
|
+
updatedAt: Date;
|
|
1012
|
+
}, ExtArgs["result"]["flashcardProgress"]>;
|
|
1013
|
+
composites: {};
|
|
1014
|
+
};
|
|
1015
|
+
export type FlashcardProgressGetPayload<S extends boolean | null | undefined | FlashcardProgressDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload, S>;
|
|
1016
|
+
export type FlashcardProgressCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<FlashcardProgressFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1017
|
+
select?: FlashcardProgressCountAggregateInputType | true;
|
|
1018
|
+
};
|
|
1019
|
+
export interface FlashcardProgressDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1020
|
+
[K: symbol]: {
|
|
1021
|
+
types: Prisma.TypeMap<ExtArgs>['model']['FlashcardProgress'];
|
|
1022
|
+
meta: {
|
|
1023
|
+
name: 'FlashcardProgress';
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
/**
|
|
1027
|
+
* Find zero or one FlashcardProgress that matches the filter.
|
|
1028
|
+
* @param {FlashcardProgressFindUniqueArgs} args - Arguments to find a FlashcardProgress
|
|
1029
|
+
* @example
|
|
1030
|
+
* // Get one FlashcardProgress
|
|
1031
|
+
* const flashcardProgress = await prisma.flashcardProgress.findUnique({
|
|
1032
|
+
* where: {
|
|
1033
|
+
* // ... provide filter here
|
|
1034
|
+
* }
|
|
1035
|
+
* })
|
|
1036
|
+
*/
|
|
1037
|
+
findUnique<T extends FlashcardProgressFindUniqueArgs>(args: Prisma.SelectSubset<T, FlashcardProgressFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FlashcardProgressClient<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1038
|
+
/**
|
|
1039
|
+
* Find one FlashcardProgress that matches the filter or throw an error with `error.code='P2025'`
|
|
1040
|
+
* if no matches were found.
|
|
1041
|
+
* @param {FlashcardProgressFindUniqueOrThrowArgs} args - Arguments to find a FlashcardProgress
|
|
1042
|
+
* @example
|
|
1043
|
+
* // Get one FlashcardProgress
|
|
1044
|
+
* const flashcardProgress = await prisma.flashcardProgress.findUniqueOrThrow({
|
|
1045
|
+
* where: {
|
|
1046
|
+
* // ... provide filter here
|
|
1047
|
+
* }
|
|
1048
|
+
* })
|
|
1049
|
+
*/
|
|
1050
|
+
findUniqueOrThrow<T extends FlashcardProgressFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FlashcardProgressFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FlashcardProgressClient<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Find the first FlashcardProgress that matches the filter.
|
|
1053
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1054
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1055
|
+
* @param {FlashcardProgressFindFirstArgs} args - Arguments to find a FlashcardProgress
|
|
1056
|
+
* @example
|
|
1057
|
+
* // Get one FlashcardProgress
|
|
1058
|
+
* const flashcardProgress = await prisma.flashcardProgress.findFirst({
|
|
1059
|
+
* where: {
|
|
1060
|
+
* // ... provide filter here
|
|
1061
|
+
* }
|
|
1062
|
+
* })
|
|
1063
|
+
*/
|
|
1064
|
+
findFirst<T extends FlashcardProgressFindFirstArgs>(args?: Prisma.SelectSubset<T, FlashcardProgressFindFirstArgs<ExtArgs>>): Prisma.Prisma__FlashcardProgressClient<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Find the first FlashcardProgress that matches the filter or
|
|
1067
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1068
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1069
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1070
|
+
* @param {FlashcardProgressFindFirstOrThrowArgs} args - Arguments to find a FlashcardProgress
|
|
1071
|
+
* @example
|
|
1072
|
+
* // Get one FlashcardProgress
|
|
1073
|
+
* const flashcardProgress = await prisma.flashcardProgress.findFirstOrThrow({
|
|
1074
|
+
* where: {
|
|
1075
|
+
* // ... provide filter here
|
|
1076
|
+
* }
|
|
1077
|
+
* })
|
|
1078
|
+
*/
|
|
1079
|
+
findFirstOrThrow<T extends FlashcardProgressFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FlashcardProgressFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FlashcardProgressClient<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1080
|
+
/**
|
|
1081
|
+
* Find zero or more FlashcardProgresses that matches the filter.
|
|
1082
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1083
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1084
|
+
* @param {FlashcardProgressFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1085
|
+
* @example
|
|
1086
|
+
* // Get all FlashcardProgresses
|
|
1087
|
+
* const flashcardProgresses = await prisma.flashcardProgress.findMany()
|
|
1088
|
+
*
|
|
1089
|
+
* // Get first 10 FlashcardProgresses
|
|
1090
|
+
* const flashcardProgresses = await prisma.flashcardProgress.findMany({ take: 10 })
|
|
1091
|
+
*
|
|
1092
|
+
* // Only select the `id`
|
|
1093
|
+
* const flashcardProgressWithIdOnly = await prisma.flashcardProgress.findMany({ select: { id: true } })
|
|
1094
|
+
*
|
|
1095
|
+
*/
|
|
1096
|
+
findMany<T extends FlashcardProgressFindManyArgs>(args?: Prisma.SelectSubset<T, FlashcardProgressFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Create a FlashcardProgress.
|
|
1099
|
+
* @param {FlashcardProgressCreateArgs} args - Arguments to create a FlashcardProgress.
|
|
1100
|
+
* @example
|
|
1101
|
+
* // Create one FlashcardProgress
|
|
1102
|
+
* const FlashcardProgress = await prisma.flashcardProgress.create({
|
|
1103
|
+
* data: {
|
|
1104
|
+
* // ... data to create a FlashcardProgress
|
|
1105
|
+
* }
|
|
1106
|
+
* })
|
|
1107
|
+
*
|
|
1108
|
+
*/
|
|
1109
|
+
create<T extends FlashcardProgressCreateArgs>(args: Prisma.SelectSubset<T, FlashcardProgressCreateArgs<ExtArgs>>): Prisma.Prisma__FlashcardProgressClient<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1110
|
+
/**
|
|
1111
|
+
* Create many FlashcardProgresses.
|
|
1112
|
+
* @param {FlashcardProgressCreateManyArgs} args - Arguments to create many FlashcardProgresses.
|
|
1113
|
+
* @example
|
|
1114
|
+
* // Create many FlashcardProgresses
|
|
1115
|
+
* const flashcardProgress = await prisma.flashcardProgress.createMany({
|
|
1116
|
+
* data: [
|
|
1117
|
+
* // ... provide data here
|
|
1118
|
+
* ]
|
|
1119
|
+
* })
|
|
1120
|
+
*
|
|
1121
|
+
*/
|
|
1122
|
+
createMany<T extends FlashcardProgressCreateManyArgs>(args?: Prisma.SelectSubset<T, FlashcardProgressCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Create many FlashcardProgresses and returns the data saved in the database.
|
|
1125
|
+
* @param {FlashcardProgressCreateManyAndReturnArgs} args - Arguments to create many FlashcardProgresses.
|
|
1126
|
+
* @example
|
|
1127
|
+
* // Create many FlashcardProgresses
|
|
1128
|
+
* const flashcardProgress = await prisma.flashcardProgress.createManyAndReturn({
|
|
1129
|
+
* data: [
|
|
1130
|
+
* // ... provide data here
|
|
1131
|
+
* ]
|
|
1132
|
+
* })
|
|
1133
|
+
*
|
|
1134
|
+
* // Create many FlashcardProgresses and only return the `id`
|
|
1135
|
+
* const flashcardProgressWithIdOnly = await prisma.flashcardProgress.createManyAndReturn({
|
|
1136
|
+
* select: { id: true },
|
|
1137
|
+
* data: [
|
|
1138
|
+
* // ... provide data here
|
|
1139
|
+
* ]
|
|
1140
|
+
* })
|
|
1141
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1142
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1143
|
+
*
|
|
1144
|
+
*/
|
|
1145
|
+
createManyAndReturn<T extends FlashcardProgressCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FlashcardProgressCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Delete a FlashcardProgress.
|
|
1148
|
+
* @param {FlashcardProgressDeleteArgs} args - Arguments to delete one FlashcardProgress.
|
|
1149
|
+
* @example
|
|
1150
|
+
* // Delete one FlashcardProgress
|
|
1151
|
+
* const FlashcardProgress = await prisma.flashcardProgress.delete({
|
|
1152
|
+
* where: {
|
|
1153
|
+
* // ... filter to delete one FlashcardProgress
|
|
1154
|
+
* }
|
|
1155
|
+
* })
|
|
1156
|
+
*
|
|
1157
|
+
*/
|
|
1158
|
+
delete<T extends FlashcardProgressDeleteArgs>(args: Prisma.SelectSubset<T, FlashcardProgressDeleteArgs<ExtArgs>>): Prisma.Prisma__FlashcardProgressClient<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1159
|
+
/**
|
|
1160
|
+
* Update one FlashcardProgress.
|
|
1161
|
+
* @param {FlashcardProgressUpdateArgs} args - Arguments to update one FlashcardProgress.
|
|
1162
|
+
* @example
|
|
1163
|
+
* // Update one FlashcardProgress
|
|
1164
|
+
* const flashcardProgress = await prisma.flashcardProgress.update({
|
|
1165
|
+
* where: {
|
|
1166
|
+
* // ... provide filter here
|
|
1167
|
+
* },
|
|
1168
|
+
* data: {
|
|
1169
|
+
* // ... provide data here
|
|
1170
|
+
* }
|
|
1171
|
+
* })
|
|
1172
|
+
*
|
|
1173
|
+
*/
|
|
1174
|
+
update<T extends FlashcardProgressUpdateArgs>(args: Prisma.SelectSubset<T, FlashcardProgressUpdateArgs<ExtArgs>>): Prisma.Prisma__FlashcardProgressClient<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1175
|
+
/**
|
|
1176
|
+
* Delete zero or more FlashcardProgresses.
|
|
1177
|
+
* @param {FlashcardProgressDeleteManyArgs} args - Arguments to filter FlashcardProgresses to delete.
|
|
1178
|
+
* @example
|
|
1179
|
+
* // Delete a few FlashcardProgresses
|
|
1180
|
+
* const { count } = await prisma.flashcardProgress.deleteMany({
|
|
1181
|
+
* where: {
|
|
1182
|
+
* // ... provide filter here
|
|
1183
|
+
* }
|
|
1184
|
+
* })
|
|
1185
|
+
*
|
|
1186
|
+
*/
|
|
1187
|
+
deleteMany<T extends FlashcardProgressDeleteManyArgs>(args?: Prisma.SelectSubset<T, FlashcardProgressDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1188
|
+
/**
|
|
1189
|
+
* Update zero or more FlashcardProgresses.
|
|
1190
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1191
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1192
|
+
* @param {FlashcardProgressUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1193
|
+
* @example
|
|
1194
|
+
* // Update many FlashcardProgresses
|
|
1195
|
+
* const flashcardProgress = await prisma.flashcardProgress.updateMany({
|
|
1196
|
+
* where: {
|
|
1197
|
+
* // ... provide filter here
|
|
1198
|
+
* },
|
|
1199
|
+
* data: {
|
|
1200
|
+
* // ... provide data here
|
|
1201
|
+
* }
|
|
1202
|
+
* })
|
|
1203
|
+
*
|
|
1204
|
+
*/
|
|
1205
|
+
updateMany<T extends FlashcardProgressUpdateManyArgs>(args: Prisma.SelectSubset<T, FlashcardProgressUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
1206
|
+
/**
|
|
1207
|
+
* Update zero or more FlashcardProgresses and returns the data updated in the database.
|
|
1208
|
+
* @param {FlashcardProgressUpdateManyAndReturnArgs} args - Arguments to update many FlashcardProgresses.
|
|
1209
|
+
* @example
|
|
1210
|
+
* // Update many FlashcardProgresses
|
|
1211
|
+
* const flashcardProgress = await prisma.flashcardProgress.updateManyAndReturn({
|
|
1212
|
+
* where: {
|
|
1213
|
+
* // ... provide filter here
|
|
1214
|
+
* },
|
|
1215
|
+
* data: [
|
|
1216
|
+
* // ... provide data here
|
|
1217
|
+
* ]
|
|
1218
|
+
* })
|
|
1219
|
+
*
|
|
1220
|
+
* // Update zero or more FlashcardProgresses and only return the `id`
|
|
1221
|
+
* const flashcardProgressWithIdOnly = await prisma.flashcardProgress.updateManyAndReturn({
|
|
1222
|
+
* select: { id: true },
|
|
1223
|
+
* where: {
|
|
1224
|
+
* // ... provide filter here
|
|
1225
|
+
* },
|
|
1226
|
+
* data: [
|
|
1227
|
+
* // ... provide data here
|
|
1228
|
+
* ]
|
|
1229
|
+
* })
|
|
1230
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1231
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1232
|
+
*
|
|
1233
|
+
*/
|
|
1234
|
+
updateManyAndReturn<T extends FlashcardProgressUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FlashcardProgressUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
1235
|
+
/**
|
|
1236
|
+
* Create or update one FlashcardProgress.
|
|
1237
|
+
* @param {FlashcardProgressUpsertArgs} args - Arguments to update or create a FlashcardProgress.
|
|
1238
|
+
* @example
|
|
1239
|
+
* // Update or create a FlashcardProgress
|
|
1240
|
+
* const flashcardProgress = await prisma.flashcardProgress.upsert({
|
|
1241
|
+
* create: {
|
|
1242
|
+
* // ... data to create a FlashcardProgress
|
|
1243
|
+
* },
|
|
1244
|
+
* update: {
|
|
1245
|
+
* // ... in case it already exists, update
|
|
1246
|
+
* },
|
|
1247
|
+
* where: {
|
|
1248
|
+
* // ... the filter for the FlashcardProgress we want to update
|
|
1249
|
+
* }
|
|
1250
|
+
* })
|
|
1251
|
+
*/
|
|
1252
|
+
upsert<T extends FlashcardProgressUpsertArgs>(args: Prisma.SelectSubset<T, FlashcardProgressUpsertArgs<ExtArgs>>): Prisma.Prisma__FlashcardProgressClient<runtime.Types.Result.GetResult<Prisma.$FlashcardProgressPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1253
|
+
/**
|
|
1254
|
+
* Count the number of FlashcardProgresses.
|
|
1255
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1256
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1257
|
+
* @param {FlashcardProgressCountArgs} args - Arguments to filter FlashcardProgresses to count.
|
|
1258
|
+
* @example
|
|
1259
|
+
* // Count the number of FlashcardProgresses
|
|
1260
|
+
* const count = await prisma.flashcardProgress.count({
|
|
1261
|
+
* where: {
|
|
1262
|
+
* // ... the filter for the FlashcardProgresses we want to count
|
|
1263
|
+
* }
|
|
1264
|
+
* })
|
|
1265
|
+
**/
|
|
1266
|
+
count<T extends FlashcardProgressCountArgs>(args?: Prisma.Subset<T, FlashcardProgressCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], FlashcardProgressCountAggregateOutputType> : number>;
|
|
1267
|
+
/**
|
|
1268
|
+
* Allows you to perform aggregations operations on a FlashcardProgress.
|
|
1269
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1270
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1271
|
+
* @param {FlashcardProgressAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1272
|
+
* @example
|
|
1273
|
+
* // Ordered by age ascending
|
|
1274
|
+
* // Where email contains prisma.io
|
|
1275
|
+
* // Limited to the 10 users
|
|
1276
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1277
|
+
* _avg: {
|
|
1278
|
+
* age: true,
|
|
1279
|
+
* },
|
|
1280
|
+
* where: {
|
|
1281
|
+
* email: {
|
|
1282
|
+
* contains: "prisma.io",
|
|
1283
|
+
* },
|
|
1284
|
+
* },
|
|
1285
|
+
* orderBy: {
|
|
1286
|
+
* age: "asc",
|
|
1287
|
+
* },
|
|
1288
|
+
* take: 10,
|
|
1289
|
+
* })
|
|
1290
|
+
**/
|
|
1291
|
+
aggregate<T extends FlashcardProgressAggregateArgs>(args: Prisma.Subset<T, FlashcardProgressAggregateArgs>): Prisma.PrismaPromise<GetFlashcardProgressAggregateType<T>>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Group by FlashcardProgress.
|
|
1294
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1295
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1296
|
+
* @param {FlashcardProgressGroupByArgs} args - Group by arguments.
|
|
1297
|
+
* @example
|
|
1298
|
+
* // Group by city, order by createdAt, get count
|
|
1299
|
+
* const result = await prisma.user.groupBy({
|
|
1300
|
+
* by: ['city', 'createdAt'],
|
|
1301
|
+
* orderBy: {
|
|
1302
|
+
* createdAt: true
|
|
1303
|
+
* },
|
|
1304
|
+
* _count: {
|
|
1305
|
+
* _all: true
|
|
1306
|
+
* },
|
|
1307
|
+
* })
|
|
1308
|
+
*
|
|
1309
|
+
**/
|
|
1310
|
+
groupBy<T extends FlashcardProgressGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1311
|
+
orderBy: FlashcardProgressGroupByArgs['orderBy'];
|
|
1312
|
+
} : {
|
|
1313
|
+
orderBy?: FlashcardProgressGroupByArgs['orderBy'];
|
|
1314
|
+
}, 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 ? {
|
|
1315
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1316
|
+
Error,
|
|
1317
|
+
'Field ',
|
|
1318
|
+
P,
|
|
1319
|
+
` in "having" needs to be provided in "by"`
|
|
1320
|
+
];
|
|
1321
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1322
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1323
|
+
}[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 ? {} : {
|
|
1324
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1325
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1326
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1327
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, FlashcardProgressGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFlashcardProgressGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Fields of the FlashcardProgress model
|
|
1330
|
+
*/
|
|
1331
|
+
readonly fields: FlashcardProgressFieldRefs;
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* The delegate class that acts as a "Promise-like" for FlashcardProgress.
|
|
1335
|
+
* Why is this prefixed with `Prisma__`?
|
|
1336
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1337
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1338
|
+
*/
|
|
1339
|
+
export interface Prisma__FlashcardProgressClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1340
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1341
|
+
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>;
|
|
1342
|
+
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1345
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1346
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1347
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1348
|
+
*/
|
|
1349
|
+
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>;
|
|
1350
|
+
/**
|
|
1351
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1352
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1353
|
+
* @returns A Promise for the completion of the callback.
|
|
1354
|
+
*/
|
|
1355
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1358
|
+
* resolved value cannot be modified from the callback.
|
|
1359
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1360
|
+
* @returns A Promise for the completion of the callback.
|
|
1361
|
+
*/
|
|
1362
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Fields of the FlashcardProgress model
|
|
1366
|
+
*/
|
|
1367
|
+
export interface FlashcardProgressFieldRefs {
|
|
1368
|
+
readonly id: Prisma.FieldRef<"FlashcardProgress", 'String'>;
|
|
1369
|
+
readonly userId: Prisma.FieldRef<"FlashcardProgress", 'String'>;
|
|
1370
|
+
readonly flashcardId: Prisma.FieldRef<"FlashcardProgress", 'String'>;
|
|
1371
|
+
readonly timesStudied: Prisma.FieldRef<"FlashcardProgress", 'Int'>;
|
|
1372
|
+
readonly timesCorrect: Prisma.FieldRef<"FlashcardProgress", 'Int'>;
|
|
1373
|
+
readonly timesIncorrect: Prisma.FieldRef<"FlashcardProgress", 'Int'>;
|
|
1374
|
+
readonly timesIncorrectConsecutive: Prisma.FieldRef<"FlashcardProgress", 'Int'>;
|
|
1375
|
+
readonly easeFactor: Prisma.FieldRef<"FlashcardProgress", 'Float'>;
|
|
1376
|
+
readonly interval: Prisma.FieldRef<"FlashcardProgress", 'Int'>;
|
|
1377
|
+
readonly repetitions: Prisma.FieldRef<"FlashcardProgress", 'Int'>;
|
|
1378
|
+
readonly masteryLevel: Prisma.FieldRef<"FlashcardProgress", 'Int'>;
|
|
1379
|
+
readonly lastStudiedAt: Prisma.FieldRef<"FlashcardProgress", 'DateTime'>;
|
|
1380
|
+
readonly nextReviewAt: Prisma.FieldRef<"FlashcardProgress", 'DateTime'>;
|
|
1381
|
+
readonly createdAt: Prisma.FieldRef<"FlashcardProgress", 'DateTime'>;
|
|
1382
|
+
readonly updatedAt: Prisma.FieldRef<"FlashcardProgress", 'DateTime'>;
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* FlashcardProgress findUnique
|
|
1386
|
+
*/
|
|
1387
|
+
export type FlashcardProgressFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1388
|
+
/**
|
|
1389
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1390
|
+
*/
|
|
1391
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1392
|
+
/**
|
|
1393
|
+
* Omit specific fields from the FlashcardProgress
|
|
1394
|
+
*/
|
|
1395
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1396
|
+
/**
|
|
1397
|
+
* Choose, which related nodes to fetch as well
|
|
1398
|
+
*/
|
|
1399
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1400
|
+
/**
|
|
1401
|
+
* Filter, which FlashcardProgress to fetch.
|
|
1402
|
+
*/
|
|
1403
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* FlashcardProgress findUniqueOrThrow
|
|
1407
|
+
*/
|
|
1408
|
+
export type FlashcardProgressFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1409
|
+
/**
|
|
1410
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1411
|
+
*/
|
|
1412
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1413
|
+
/**
|
|
1414
|
+
* Omit specific fields from the FlashcardProgress
|
|
1415
|
+
*/
|
|
1416
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1417
|
+
/**
|
|
1418
|
+
* Choose, which related nodes to fetch as well
|
|
1419
|
+
*/
|
|
1420
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* Filter, which FlashcardProgress to fetch.
|
|
1423
|
+
*/
|
|
1424
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
1425
|
+
};
|
|
1426
|
+
/**
|
|
1427
|
+
* FlashcardProgress findFirst
|
|
1428
|
+
*/
|
|
1429
|
+
export type FlashcardProgressFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1430
|
+
/**
|
|
1431
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1432
|
+
*/
|
|
1433
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1434
|
+
/**
|
|
1435
|
+
* Omit specific fields from the FlashcardProgress
|
|
1436
|
+
*/
|
|
1437
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1438
|
+
/**
|
|
1439
|
+
* Choose, which related nodes to fetch as well
|
|
1440
|
+
*/
|
|
1441
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1442
|
+
/**
|
|
1443
|
+
* Filter, which FlashcardProgress to fetch.
|
|
1444
|
+
*/
|
|
1445
|
+
where?: Prisma.FlashcardProgressWhereInput;
|
|
1446
|
+
/**
|
|
1447
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1448
|
+
*
|
|
1449
|
+
* Determine the order of FlashcardProgresses to fetch.
|
|
1450
|
+
*/
|
|
1451
|
+
orderBy?: Prisma.FlashcardProgressOrderByWithRelationInput | Prisma.FlashcardProgressOrderByWithRelationInput[];
|
|
1452
|
+
/**
|
|
1453
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1454
|
+
*
|
|
1455
|
+
* Sets the position for searching for FlashcardProgresses.
|
|
1456
|
+
*/
|
|
1457
|
+
cursor?: Prisma.FlashcardProgressWhereUniqueInput;
|
|
1458
|
+
/**
|
|
1459
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1460
|
+
*
|
|
1461
|
+
* Take `±n` FlashcardProgresses from the position of the cursor.
|
|
1462
|
+
*/
|
|
1463
|
+
take?: number;
|
|
1464
|
+
/**
|
|
1465
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1466
|
+
*
|
|
1467
|
+
* Skip the first `n` FlashcardProgresses.
|
|
1468
|
+
*/
|
|
1469
|
+
skip?: number;
|
|
1470
|
+
/**
|
|
1471
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1472
|
+
*
|
|
1473
|
+
* Filter by unique combinations of FlashcardProgresses.
|
|
1474
|
+
*/
|
|
1475
|
+
distinct?: Prisma.FlashcardProgressScalarFieldEnum | Prisma.FlashcardProgressScalarFieldEnum[];
|
|
1476
|
+
};
|
|
1477
|
+
/**
|
|
1478
|
+
* FlashcardProgress findFirstOrThrow
|
|
1479
|
+
*/
|
|
1480
|
+
export type FlashcardProgressFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1481
|
+
/**
|
|
1482
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1483
|
+
*/
|
|
1484
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1485
|
+
/**
|
|
1486
|
+
* Omit specific fields from the FlashcardProgress
|
|
1487
|
+
*/
|
|
1488
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1489
|
+
/**
|
|
1490
|
+
* Choose, which related nodes to fetch as well
|
|
1491
|
+
*/
|
|
1492
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1493
|
+
/**
|
|
1494
|
+
* Filter, which FlashcardProgress to fetch.
|
|
1495
|
+
*/
|
|
1496
|
+
where?: Prisma.FlashcardProgressWhereInput;
|
|
1497
|
+
/**
|
|
1498
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1499
|
+
*
|
|
1500
|
+
* Determine the order of FlashcardProgresses to fetch.
|
|
1501
|
+
*/
|
|
1502
|
+
orderBy?: Prisma.FlashcardProgressOrderByWithRelationInput | Prisma.FlashcardProgressOrderByWithRelationInput[];
|
|
1503
|
+
/**
|
|
1504
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1505
|
+
*
|
|
1506
|
+
* Sets the position for searching for FlashcardProgresses.
|
|
1507
|
+
*/
|
|
1508
|
+
cursor?: Prisma.FlashcardProgressWhereUniqueInput;
|
|
1509
|
+
/**
|
|
1510
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1511
|
+
*
|
|
1512
|
+
* Take `±n` FlashcardProgresses from the position of the cursor.
|
|
1513
|
+
*/
|
|
1514
|
+
take?: number;
|
|
1515
|
+
/**
|
|
1516
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1517
|
+
*
|
|
1518
|
+
* Skip the first `n` FlashcardProgresses.
|
|
1519
|
+
*/
|
|
1520
|
+
skip?: number;
|
|
1521
|
+
/**
|
|
1522
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1523
|
+
*
|
|
1524
|
+
* Filter by unique combinations of FlashcardProgresses.
|
|
1525
|
+
*/
|
|
1526
|
+
distinct?: Prisma.FlashcardProgressScalarFieldEnum | Prisma.FlashcardProgressScalarFieldEnum[];
|
|
1527
|
+
};
|
|
1528
|
+
/**
|
|
1529
|
+
* FlashcardProgress findMany
|
|
1530
|
+
*/
|
|
1531
|
+
export type FlashcardProgressFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1532
|
+
/**
|
|
1533
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1534
|
+
*/
|
|
1535
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1536
|
+
/**
|
|
1537
|
+
* Omit specific fields from the FlashcardProgress
|
|
1538
|
+
*/
|
|
1539
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1540
|
+
/**
|
|
1541
|
+
* Choose, which related nodes to fetch as well
|
|
1542
|
+
*/
|
|
1543
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1544
|
+
/**
|
|
1545
|
+
* Filter, which FlashcardProgresses to fetch.
|
|
1546
|
+
*/
|
|
1547
|
+
where?: Prisma.FlashcardProgressWhereInput;
|
|
1548
|
+
/**
|
|
1549
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1550
|
+
*
|
|
1551
|
+
* Determine the order of FlashcardProgresses to fetch.
|
|
1552
|
+
*/
|
|
1553
|
+
orderBy?: Prisma.FlashcardProgressOrderByWithRelationInput | Prisma.FlashcardProgressOrderByWithRelationInput[];
|
|
1554
|
+
/**
|
|
1555
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1556
|
+
*
|
|
1557
|
+
* Sets the position for listing FlashcardProgresses.
|
|
1558
|
+
*/
|
|
1559
|
+
cursor?: Prisma.FlashcardProgressWhereUniqueInput;
|
|
1560
|
+
/**
|
|
1561
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1562
|
+
*
|
|
1563
|
+
* Take `±n` FlashcardProgresses from the position of the cursor.
|
|
1564
|
+
*/
|
|
1565
|
+
take?: number;
|
|
1566
|
+
/**
|
|
1567
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1568
|
+
*
|
|
1569
|
+
* Skip the first `n` FlashcardProgresses.
|
|
1570
|
+
*/
|
|
1571
|
+
skip?: number;
|
|
1572
|
+
/**
|
|
1573
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1574
|
+
*
|
|
1575
|
+
* Filter by unique combinations of FlashcardProgresses.
|
|
1576
|
+
*/
|
|
1577
|
+
distinct?: Prisma.FlashcardProgressScalarFieldEnum | Prisma.FlashcardProgressScalarFieldEnum[];
|
|
1578
|
+
};
|
|
1579
|
+
/**
|
|
1580
|
+
* FlashcardProgress create
|
|
1581
|
+
*/
|
|
1582
|
+
export type FlashcardProgressCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1583
|
+
/**
|
|
1584
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1585
|
+
*/
|
|
1586
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1587
|
+
/**
|
|
1588
|
+
* Omit specific fields from the FlashcardProgress
|
|
1589
|
+
*/
|
|
1590
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1591
|
+
/**
|
|
1592
|
+
* Choose, which related nodes to fetch as well
|
|
1593
|
+
*/
|
|
1594
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1595
|
+
/**
|
|
1596
|
+
* The data needed to create a FlashcardProgress.
|
|
1597
|
+
*/
|
|
1598
|
+
data: Prisma.XOR<Prisma.FlashcardProgressCreateInput, Prisma.FlashcardProgressUncheckedCreateInput>;
|
|
1599
|
+
};
|
|
1600
|
+
/**
|
|
1601
|
+
* FlashcardProgress createMany
|
|
1602
|
+
*/
|
|
1603
|
+
export type FlashcardProgressCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1604
|
+
/**
|
|
1605
|
+
* The data used to create many FlashcardProgresses.
|
|
1606
|
+
*/
|
|
1607
|
+
data: Prisma.FlashcardProgressCreateManyInput | Prisma.FlashcardProgressCreateManyInput[];
|
|
1608
|
+
skipDuplicates?: boolean;
|
|
1609
|
+
};
|
|
1610
|
+
/**
|
|
1611
|
+
* FlashcardProgress createManyAndReturn
|
|
1612
|
+
*/
|
|
1613
|
+
export type FlashcardProgressCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1614
|
+
/**
|
|
1615
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1616
|
+
*/
|
|
1617
|
+
select?: Prisma.FlashcardProgressSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1618
|
+
/**
|
|
1619
|
+
* Omit specific fields from the FlashcardProgress
|
|
1620
|
+
*/
|
|
1621
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1622
|
+
/**
|
|
1623
|
+
* The data used to create many FlashcardProgresses.
|
|
1624
|
+
*/
|
|
1625
|
+
data: Prisma.FlashcardProgressCreateManyInput | Prisma.FlashcardProgressCreateManyInput[];
|
|
1626
|
+
skipDuplicates?: boolean;
|
|
1627
|
+
/**
|
|
1628
|
+
* Choose, which related nodes to fetch as well
|
|
1629
|
+
*/
|
|
1630
|
+
include?: Prisma.FlashcardProgressIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1631
|
+
};
|
|
1632
|
+
/**
|
|
1633
|
+
* FlashcardProgress update
|
|
1634
|
+
*/
|
|
1635
|
+
export type FlashcardProgressUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1636
|
+
/**
|
|
1637
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1638
|
+
*/
|
|
1639
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1640
|
+
/**
|
|
1641
|
+
* Omit specific fields from the FlashcardProgress
|
|
1642
|
+
*/
|
|
1643
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1644
|
+
/**
|
|
1645
|
+
* Choose, which related nodes to fetch as well
|
|
1646
|
+
*/
|
|
1647
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1648
|
+
/**
|
|
1649
|
+
* The data needed to update a FlashcardProgress.
|
|
1650
|
+
*/
|
|
1651
|
+
data: Prisma.XOR<Prisma.FlashcardProgressUpdateInput, Prisma.FlashcardProgressUncheckedUpdateInput>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Choose, which FlashcardProgress to update.
|
|
1654
|
+
*/
|
|
1655
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
1656
|
+
};
|
|
1657
|
+
/**
|
|
1658
|
+
* FlashcardProgress updateMany
|
|
1659
|
+
*/
|
|
1660
|
+
export type FlashcardProgressUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1661
|
+
/**
|
|
1662
|
+
* The data used to update FlashcardProgresses.
|
|
1663
|
+
*/
|
|
1664
|
+
data: Prisma.XOR<Prisma.FlashcardProgressUpdateManyMutationInput, Prisma.FlashcardProgressUncheckedUpdateManyInput>;
|
|
1665
|
+
/**
|
|
1666
|
+
* Filter which FlashcardProgresses to update
|
|
1667
|
+
*/
|
|
1668
|
+
where?: Prisma.FlashcardProgressWhereInput;
|
|
1669
|
+
/**
|
|
1670
|
+
* Limit how many FlashcardProgresses to update.
|
|
1671
|
+
*/
|
|
1672
|
+
limit?: number;
|
|
1673
|
+
};
|
|
1674
|
+
/**
|
|
1675
|
+
* FlashcardProgress updateManyAndReturn
|
|
1676
|
+
*/
|
|
1677
|
+
export type FlashcardProgressUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1678
|
+
/**
|
|
1679
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1680
|
+
*/
|
|
1681
|
+
select?: Prisma.FlashcardProgressSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1682
|
+
/**
|
|
1683
|
+
* Omit specific fields from the FlashcardProgress
|
|
1684
|
+
*/
|
|
1685
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1686
|
+
/**
|
|
1687
|
+
* The data used to update FlashcardProgresses.
|
|
1688
|
+
*/
|
|
1689
|
+
data: Prisma.XOR<Prisma.FlashcardProgressUpdateManyMutationInput, Prisma.FlashcardProgressUncheckedUpdateManyInput>;
|
|
1690
|
+
/**
|
|
1691
|
+
* Filter which FlashcardProgresses to update
|
|
1692
|
+
*/
|
|
1693
|
+
where?: Prisma.FlashcardProgressWhereInput;
|
|
1694
|
+
/**
|
|
1695
|
+
* Limit how many FlashcardProgresses to update.
|
|
1696
|
+
*/
|
|
1697
|
+
limit?: number;
|
|
1698
|
+
/**
|
|
1699
|
+
* Choose, which related nodes to fetch as well
|
|
1700
|
+
*/
|
|
1701
|
+
include?: Prisma.FlashcardProgressIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1702
|
+
};
|
|
1703
|
+
/**
|
|
1704
|
+
* FlashcardProgress upsert
|
|
1705
|
+
*/
|
|
1706
|
+
export type FlashcardProgressUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1707
|
+
/**
|
|
1708
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1709
|
+
*/
|
|
1710
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1711
|
+
/**
|
|
1712
|
+
* Omit specific fields from the FlashcardProgress
|
|
1713
|
+
*/
|
|
1714
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1715
|
+
/**
|
|
1716
|
+
* Choose, which related nodes to fetch as well
|
|
1717
|
+
*/
|
|
1718
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1719
|
+
/**
|
|
1720
|
+
* The filter to search for the FlashcardProgress to update in case it exists.
|
|
1721
|
+
*/
|
|
1722
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
1723
|
+
/**
|
|
1724
|
+
* In case the FlashcardProgress found by the `where` argument doesn't exist, create a new FlashcardProgress with this data.
|
|
1725
|
+
*/
|
|
1726
|
+
create: Prisma.XOR<Prisma.FlashcardProgressCreateInput, Prisma.FlashcardProgressUncheckedCreateInput>;
|
|
1727
|
+
/**
|
|
1728
|
+
* In case the FlashcardProgress was found with the provided `where` argument, update it with this data.
|
|
1729
|
+
*/
|
|
1730
|
+
update: Prisma.XOR<Prisma.FlashcardProgressUpdateInput, Prisma.FlashcardProgressUncheckedUpdateInput>;
|
|
1731
|
+
};
|
|
1732
|
+
/**
|
|
1733
|
+
* FlashcardProgress delete
|
|
1734
|
+
*/
|
|
1735
|
+
export type FlashcardProgressDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1736
|
+
/**
|
|
1737
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1738
|
+
*/
|
|
1739
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1740
|
+
/**
|
|
1741
|
+
* Omit specific fields from the FlashcardProgress
|
|
1742
|
+
*/
|
|
1743
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1744
|
+
/**
|
|
1745
|
+
* Choose, which related nodes to fetch as well
|
|
1746
|
+
*/
|
|
1747
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1748
|
+
/**
|
|
1749
|
+
* Filter which FlashcardProgress to delete.
|
|
1750
|
+
*/
|
|
1751
|
+
where: Prisma.FlashcardProgressWhereUniqueInput;
|
|
1752
|
+
};
|
|
1753
|
+
/**
|
|
1754
|
+
* FlashcardProgress deleteMany
|
|
1755
|
+
*/
|
|
1756
|
+
export type FlashcardProgressDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1757
|
+
/**
|
|
1758
|
+
* Filter which FlashcardProgresses to delete
|
|
1759
|
+
*/
|
|
1760
|
+
where?: Prisma.FlashcardProgressWhereInput;
|
|
1761
|
+
/**
|
|
1762
|
+
* Limit how many FlashcardProgresses to delete.
|
|
1763
|
+
*/
|
|
1764
|
+
limit?: number;
|
|
1765
|
+
};
|
|
1766
|
+
/**
|
|
1767
|
+
* FlashcardProgress without action
|
|
1768
|
+
*/
|
|
1769
|
+
export type FlashcardProgressDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1770
|
+
/**
|
|
1771
|
+
* Select specific fields to fetch from the FlashcardProgress
|
|
1772
|
+
*/
|
|
1773
|
+
select?: Prisma.FlashcardProgressSelect<ExtArgs> | null;
|
|
1774
|
+
/**
|
|
1775
|
+
* Omit specific fields from the FlashcardProgress
|
|
1776
|
+
*/
|
|
1777
|
+
omit?: Prisma.FlashcardProgressOmit<ExtArgs> | null;
|
|
1778
|
+
/**
|
|
1779
|
+
* Choose, which related nodes to fetch as well
|
|
1780
|
+
*/
|
|
1781
|
+
include?: Prisma.FlashcardProgressInclude<ExtArgs> | null;
|
|
1782
|
+
};
|