Phase 4: upload, LLM extraction, import review flow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user