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)

Columns of the quiz_answers table
ColumnTypeConstraintsDescription
iduuidprimary key
attempt_iduuidnot null, references quiz_attempts.id
question_iduuidnot null, references quiz_questions.id
selected_option_iduuidreferences question_options.id
text_answertext
is_correctboolean
points_awardeddecimal(6,2)

Indexes (1)

  • (attempt_id, question_id)

Relationships