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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| question_id | uuid | not null, references quiz_questions.id | |
| label | varchar(1000) | not null | |
| is_correct | boolean | not null | |
| position | smallint | not null |
Indexes (1)
(question_id, position)unique
Relationships
question_options.question_idreferencesquiz_questions.idquiz_answers.selected_option_idreferencesquestion_options