Phase 4: upload, LLM extraction, import review flow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jānis Kacēns
2026-05-11 13:15:04 +03:00
parent e53e7662e9
commit 5199c1fa16
10 changed files with 447 additions and 6 deletions
+19
View File
@@ -44,6 +44,25 @@ type TestAnswer struct {
AnsweredAt sql.NullTime
}
// Draft holds LLM-extracted questions pending user review before import.
type Draft struct {
ID string
UserID int64
Source string
Questions []DraftQuestion
CreatedAt time.Time
}
type DraftQuestion struct {
Text string `json:"text"`
Answers []DraftAnswer `json:"answers"`
}
type DraftAnswer struct {
Text string `json:"text"`
IsCorrect bool `json:"is_correct"`
}
type UserQuestionStat struct {
UserID int64
QuestionID string