<FIELDNAME="reviewattempt"TYPE="int"LENGTH="6"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Whether users are allowed to review their quiz attempts at various times. This is a bit field, decoded by the mod_quiz_display_options class. It is formed by ORing together the constants defined there."PREVIOUS="questiondecimalpoints"NEXT="reviewcorrectness"/>
<FIELDNAME="reviewcorrectness"TYPE="int"LENGTH="6"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt."PREVIOUS="reviewattempt"NEXT="reviewmarks"/>
<FIELDNAME="reviewmarks"TYPE="int"LENGTH="6"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt."PREVIOUS="reviewcorrectness"NEXT="reviewspecificfeedback"/>
<FIELDNAME="reviewspecificfeedback"TYPE="int"LENGTH="6"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt."PREVIOUS="reviewmarks"NEXT="reviewgeneralfeedback"/>
<FIELDNAME="reviewgeneralfeedback"TYPE="int"LENGTH="6"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt."PREVIOUS="reviewspecificfeedback"NEXT="reviewrightanswer"/>
<FIELDNAME="reviewrightanswer"TYPE="int"LENGTH="6"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt."PREVIOUS="reviewgeneralfeedback"NEXT="reviewoverallfeedback"/>
<FIELDNAME="reviewoverallfeedback"TYPE="int"LENGTH="6"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt."PREVIOUS="reviewrightanswer"NEXT="questionsperpage"/>
<FIELDNAME="showuserpicture"TYPE="int"LENGTH="4"NOTNULL="true"UNSIGNED="false"DEFAULT="0"SEQUENCE="false"COMMENT="Option to show the user's picture during the attempt and on the review page."PREVIOUS="delay2"/>
<TABLENAME="quiz_grades"COMMENT="The overall grade for each user on the quiz, based on their individual and the quiz.grademethod setting."PREVIOUS="quiz_attempts"NEXT="quiz_question_instances">
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="true"UNSIGNED="false"DEFAULT="0"SEQUENCE="false"DECIMALS="5"COMMENT="The overall grade from the quiz. Not affected by overrides in the gradebook."PREVIOUS="userid"NEXT="timemodified"/>
<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The last time this grade changed."PREVIOUS="grade"/>
<TABLENAME="quiz_question_instances"COMMENT="Stores the maximum possible grade (weight) for each question used in a quiz."PREVIOUS="quiz_grades"NEXT="quiz_feedback">
<FIELDNAME="grade"TYPE="number"LENGTH="12"NOTNULL="true"UNSIGNED="false"DEFAULT="0"SEQUENCE="false"DECIMALS="7"COMMENT="How many marks this question contributes to quiz.sumgrades."PREVIOUS="question"/>
<TABLENAME="quiz_feedback"COMMENT="Feedback given to students based on which grade band their overall score lies."PREVIOUS="quiz_question_instances"NEXT="quiz_overrides">
<FIELDNAME="feedbacktext"TYPE="text"LENGTH="small"NOTNULL="true"SEQUENCE="false"COMMENT="The feedback to show for a attempt where mingrade <= attempt grade < maxgrade. See function quiz_feedback_for_grade in mod/quiz/locallib.php."PREVIOUS="quizid"NEXT="feedbacktextformat"/>
<FIELDNAME="mingrade"TYPE="number"LENGTH="10"NOTNULL="true"UNSIGNED="false"DEFAULT="0"SEQUENCE="false"DECIMALS="5"COMMENT="The lower limit of this grade band. Inclusive."PREVIOUS="feedbacktextformat"NEXT="maxgrade"/>
<FIELDNAME="maxgrade"TYPE="number"LENGTH="10"NOTNULL="true"UNSIGNED="false"DEFAULT="0"SEQUENCE="false"DECIMALS="5"COMMENT="The upper limit of this grade band. Exclusive."PREVIOUS="mingrade"/>
<FIELDNAME="groupid"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"COMMENT="Foreign key references groups.id. Can be null if this is a per-user override."PREVIOUS="quiz"NEXT="userid"/>
<FIELDNAME="userid"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"COMMENT="Foreign key references user.id. Can be null if this is a per-group override."PREVIOUS="groupid"NEXT="timeopen"/>
<FIELDNAME="timeopen"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"COMMENT="Time at which students may start attempting this quiz. Can be null, in which case the quiz default is used."PREVIOUS="userid"NEXT="timeclose"/>
<FIELDNAME="timeclose"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"COMMENT="Time by which students must have completed their attempt. Can be null, in which case the quiz default is used."PREVIOUS="timeopen"NEXT="timelimit"/>
<FIELDNAME="timelimit"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"COMMENT="Time limit in seconds. Can be null, in which case the quiz default is used."PREVIOUS="timeclose"NEXT="attempts"/>
<FIELDNAME="password"TYPE="char"LENGTH="255"NOTNULL="false"SEQUENCE="false"COMMENT="Quiz password. Can be null, in which case the quiz default is used."PREVIOUS="attempts"/>
<TABLENAME="quiz_reports"COMMENT="Lists all the installed quiz reports and their display order and so on. No need to worry about deleting old records. Only records with an equivalent directory are displayed."PREVIOUS="quiz_overrides">
<FIELDNAME="name"TYPE="char"LENGTH="255"NOTNULL="false"SEQUENCE="false"COMMENT="name of the report, same as the directory name"PREVIOUS="id"NEXT="displayorder"/>
<FIELDNAME="displayorder"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="display order for report tabs"PREVIOUS="name"NEXT="lastcron"/>
<FIELDNAME="lastcron"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="timestamp when cron was last run for this report."PREVIOUS="displayorder"NEXT="cron"/>
<FIELDNAME="cron"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="0 if there is no cron for this report (default) or the time between crons otherwise."PREVIOUS="lastcron"NEXT="capability"/>
<FIELDNAME="capability"TYPE="char"LENGTH="255"NOTNULL="false"SEQUENCE="false"COMMENT="Capability required to see this report. May be blank which means use the default of mod/quiz:viewreport. This is used when deciding which tabs to render."PREVIOUS="cron"/>