quiz_answers table
The quiz_answers table in the Learning Management System Database Schema schema has 7 columns, keyed by id, with 3 foreign keys to quiz_attempts, quiz_questions and question_options.
selected_option_id for choice questions, text_answer for free response. is_correct null means it is awaiting manual marking.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| attempt_id | uuid | not null, references quiz_attempts.id | |
| question_id | uuid | not null, references quiz_questions.id | |
| selected_option_id | uuid | references question_options.id | |
| text_answer | text | ||
| is_correct | boolean | ||
| points_awarded | decimal(6,2) |
Indexes (1)
(attempt_id, question_id)
Relationships
quiz_answers.attempt_idreferencesquiz_attempts.idquiz_answers.question_idreferencesquiz_questions.idquiz_answers.selected_option_idreferencesquestion_options.id