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