| 1 | efrain | 1 | <?xml version="1.0" encoding="UTF-8" ?>
 | 
        
           |  |  | 2 | <XMLDB PATH="question/type/randomsamatch/db" VERSION="20120122" COMMENT="XMLDB file for Moodle question/type/randomsamatch"
 | 
        
           |  |  | 3 |     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
        
           |  |  | 4 |     xsi:noNamespaceSchemaLocation="../../../../lib/xmldb/xmldb.xsd"
 | 
        
           |  |  | 5 | >
 | 
        
           |  |  | 6 |   <TABLES>
 | 
        
           |  |  | 7 |     <TABLE NAME="qtype_randomsamatch_options" COMMENT="Info about a random short-answer matching question">
 | 
        
           |  |  | 8 |       <FIELDS>
 | 
        
           |  |  | 9 |         <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
 | 
        
           |  |  | 10 |         <FIELD NAME="questionid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Foreign key references question.id."/>
 | 
        
           |  |  | 11 |         <FIELD NAME="choose" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="4" SEQUENCE="false" COMMENT="Number of subquestions to randomly generate."/>
 | 
        
           |  |  | 12 |         <FIELD NAME="subcats" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="1" SEQUENCE="false" COMMENT="Whether to include or not the subcategories."/>
 | 
        
           |  |  | 13 |         <FIELD NAME="correctfeedback" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="Feedback shown for any correct response."/>
 | 
        
           |  |  | 14 |         <FIELD NAME="correctfeedbackformat" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
 | 
        
           |  |  | 15 |         <FIELD NAME="partiallycorrectfeedback" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="Feedback shown for any partially correct response."/>
 | 
        
           |  |  | 16 |         <FIELD NAME="partiallycorrectfeedbackformat" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
 | 
        
           |  |  | 17 |         <FIELD NAME="incorrectfeedback" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="Feedback shown for any incorrect response."/>
 | 
        
           |  |  | 18 |         <FIELD NAME="incorrectfeedbackformat" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
 | 
        
           |  |  | 19 |         <FIELD NAME="shownumcorrect" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="If true, then when the user gets the question partially correct, tell them how many choices they got correct alongside the feedback."/>
 | 
        
           |  |  | 20 |       </FIELDS>
 | 
        
           |  |  | 21 |       <KEYS>
 | 
        
           |  |  | 22 |         <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
 | 
        
           |  |  | 23 |         <KEY NAME="questionid" TYPE="foreign-unique" FIELDS="questionid" REFTABLE="question" REFFIELDS="id"/>
 | 
        
           |  |  | 24 |       </KEYS>
 | 
        
           |  |  | 25 |     </TABLE>
 | 
        
           |  |  | 26 |   </TABLES>
 | 
        
           |  |  | 27 | </XMLDB>
 |