question_options table

The question_options table in the Learning Management System Database Schema schema has 5 columns, keyed by id, with 1 foreign key to quiz_questions. 1 column in quiz_answers references it.

Multiple correct options are allowed, which is how multi-select questions work without a second table.

Columns (5)

Columns of the question_options table
ColumnTypeConstraintsDescription
iduuidprimary key
question_iduuidnot null, references quiz_questions.id
labelvarchar(1000)not null
is_correctbooleannot null
positionsmallintnot null

Indexes (1)

  • (question_id, position) unique

Relationships