<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="question/type/sojunit/db" VERSION="20080314" COMMENT="XMLDB file for Moodle question/type/sojunit">
  <TABLES>
    <TABLE NAME="question_sojunit" COMMENT="Options for junit questions">
    	<FIELDS>
            <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="pk of table" NEXT="questionid"/>
            <FIELD NAME="questionid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="fk to question table" PREVIOUS="id" NEXT="givencode"/>
            <FIELD NAME="givencode" TYPE="text" LENGTH="small" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="the code given by teacher to be filled out by student" PREVIOUS="questionid" NEXT="testclassname"/>
            <FIELD NAME="testclassname" TYPE="text" LENGTH="small" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="the name of the test class needed for this question loaded by teacher " PREVIOUS="givencode" NEXT="useeditor_genfeedb"/>
	     <FIELD NAME="useeditor_genfeedb" TYPE="int" LENGTH="4" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Check-box for using text/HTML-editor for generalfeedback. 0: text-editor, 1: HTML-editor" PREVIOUS="testclassname" NEXT="sourcecode"/>
	     <FIELD NAME="sourcecode" TYPE="int" LENGTH="5" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="select the source code you want to refer to and display in the editing form" PREVIOUS="useeditor_genfeedb"/>
       </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for question_sojunit" NEXT="questionid"/>
            <KEY NAME="questionid" TYPE="foreign" FIELDS="questionid" REFTABLE="questions" REFFIELDS="id" COMMENT="fk to question table" PREVIOUS="primary"/>
        </KEYS>
    </TABLE>
  </TABLES>
</XMLDB>
