summaryrefslogtreecommitdiff
path: root/internal/models
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/models.go25
1 files changed, 12 insertions, 13 deletions
diff --git a/internal/models/models.go b/internal/models/models.go
index c525466..8e30a6c 100644
--- a/internal/models/models.go
+++ b/internal/models/models.go
@@ -2,18 +2,17 @@ package models
type (
Question struct {
- ID uint32
- Text string
- Options []string
- CorrectIndex uint8
- TopicID uint32
- Feedback string
- FeedbackClass string
- }
- //
- Topic struct {
- ID uint32
- Name string
- Level uint32
+ ID uint32 `db:"id"`
+ Text string `db:"text"`
+ Option1 string `db:"option1"`
+ Option2 string `db:"option2"`
+ Option3 string `db:"option3"`
+ Option4 string `db:"option4"`
+ CorrectIndex uint8 `db:"correct_index"`
+ Requirement string `db:"requirement"`
+ Explanation string `db:"explanation"`
+ Status int `db:"status"`
+ ExamID uint32 `db:"exam_id"`
+ MixedID uint32 `db:"mixed_id"`
}
)