install.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <XMLDB PATH="mod/iassign/db" VERSION="20101022" COMMENT="XMLDB file for Moodle mod/iassign" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceScheiaLocation="../../../lib/xmldb/xmldb.xsd">
  3. <TABLES>
  4. <TABLE NAME="iassign_ilm" COMMENT="Info about Interactive Learning Module - iLM" NEXT= "iassign_ilm_config">
  5. <FIELDS>
  6. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="name"/>
  7. <FIELD NAME="name" TYPE="char" LENGTH="20" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Name of the iLM" PREVIOUS="id" NEXT="version"/>
  8. <FIELD NAME="version" TYPE="char" LENGTH="30" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Version of the iLM" PREVIOUS="name" NEXT="version"/>
  9. <FIELD NAME="type" TYPE="char" LENGTH="20" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Type of the iLM" PREVIOUS="version" NEXT="description"/>
  10. <FIELD NAME="description" TYPE="text" LENGTH="medium" NOTNULL="false" SEQUENCE="false" ENUM="false" COMMENT="Description of the iLM" PREVIOUS="type" NEXT="url"/>
  11. <FIELD NAME="url" TYPE="text" LENGTH="small" NOTNULL="false" SEQUENCE="false" ENUM="false" COMMENT="URL of iLM" PREVIOUS="description" NEXT="extension"/>
  12. <FIELD NAME="extension" TYPE="char" LENGTH="30" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" ENUM="false" COMMENT="File extension iLM" PREVIOUS="url" NEXT="parent"/>
  13. <FIELD NAME="parent" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="id iLM parent. 0 - parent" PREVIOUS="extension" NEXT="file_jar"/>
  14. <FIELD NAME="file_jar" TYPE="char" LENGTH="255" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" ENUM="false" COMMENT="File name JAR" PREVIOUS="parent" NEXT="file_class"/>
  15. <FIELD NAME="file_class" TYPE="char" LENGTH="255" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" ENUM="false" COMMENT="File name class" PREVIOUS="file_jar" NEXT="width"/>
  16. <FIELD NAME="width" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="800" ENUM="false" COMMENT="Width of area to display the iLM" PREVIOUS="file_class" NEXT="height"/>
  17. <FIELD NAME="height" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="700" ENUM="false" COMMENT="Heigth of area to display the iLM" PREVIOUS="width" NEXT="enable"/>
  18. <FIELD NAME="enable" TYPE="int" LENGTH="1" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="Status iLM. 0 - disabled / 1 - enabled" PREVIOUS="height" NEXT="timemodified"/>
  19. <FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="Date of last modification" PREVIOUS="enable" NEXT="author"/>
  20. <FIELD NAME="author" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="id of the author of the iLM" PREVIOUS="timemodified" NEXT="timecreated"/>
  21. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="Date of registration of iLM" PREVIOUS="author" NEXT="evaluate"/>
  22. <FIELD NAME="evaluate" TYPE="int" LENGTH="1" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="iLM has automatic evaluator? 0-no/1-yes" PREVIOUS="timecreated" NEXT="reevaluate"/>
  23. <FIELD NAME="reevaluate" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="iLM has automatic reevaluator? 0-no/1-yes" PREVIOUS="timecreated" NEXT="editingbehavior" />
  24. <FIELD NAME="editingbehavior" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="Activity editing behavior" PREVIOUS="reevaluate" NEXT="submissionbehavior" />
  25. <FIELD NAME="submissionbehavior" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="0" ENUM="false" COMMENT="Activity submission behavior" PREVIOUS="editingbehavior" NEXT="action_buttons" />
  26. <FIELD NAME="action_buttons" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" DEFAULT="1" ENUM="false" COMMENT="iLM action buttons option - See doc for details" PREVIOUS="submissionbehavior" />
  27. </FIELDS>
  28. <KEYS>
  29. <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
  30. </KEYS>
  31. <INDEXES>
  32. <INDEX NAME="name_version" UNIQUE="true" FIELDS="name,version" NEXT="file_jar"/>
  33. <INDEX NAME="file_jar" UNIQUE="true" FIELDS="file_jar" PREVIOUS="name_version"/>
  34. </INDEXES>
  35. </TABLE>
  36. <TABLE NAME="iassign_ilm_config" COMMENT="Info about config iLM" PREVIOUS="iassign_ilm" NEXT= "iassign">
  37. <FIELDS>
  38. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_ilmid"/>
  39. <FIELD NAME="iassign_ilmid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="id iLM" PREVIOUS="id" NEXT="param_type"/>
  40. <FIELD NAME="param_type" TYPE="char" LENGTH="100" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" ENUM="false" COMMENT="Parameter type" PREVIOUS="iassign_ilmid" NEXT="param_name"/>
  41. <FIELD NAME="param_name" TYPE="char" LENGTH="100" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" ENUM="false" COMMENT="Parameter name" PREVIOUS="param_type" NEXT="param_value"/>
  42. <FIELD NAME="param_value" TYPE="char" LENGTH="100" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" ENUM="false" COMMENT="Parameter value" PREVIOUS="param_name" NEXT="description"/>
  43. <FIELD NAME="description" TYPE="text" LENGTH="medium" NOTNULL="false" SEQUENCE="false" ENUM="false" COMMENT="Parameter description" PREVIOUS="param_value" NEXT="visible"/>
  44. <FIELD NAME="visible" TYPE="int" LENGTH="1" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Parameter visible in the editing activities? 0-no/1-yes" PREVIOUS="description"/>
  45. </FIELDS>
  46. <KEYS>
  47. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_ilmid"/>
  48. <KEY NAME="iassign_ilmid" TYPE="foreign" FIELDS="iassign_ilmid" REFTABLE="iassign_ilm" REFFIELDS="id" PREVIOUS="primary"/>
  49. </KEYS>
  50. </TABLE>
  51. <TABLE NAME="iassign" COMMENT="Instances of the module iAssign" PREVIOUS="iassign_ilm_config" NEXT="iassign_log">
  52. <FIELDS>
  53. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="course"/>
  54. <FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id of the course in which the activity is inserted" PREVIOUS="id" NEXT="name"/>
  55. <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Name of the instance of activity" PREVIOUS="course" NEXT="intro"/>
  56. <FIELD NAME="intro" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="The description of the assignment. This field is used by feature MOD_INTRO." PREVIOUS="name" NEXT="introformat"/>
  57. <FIELD NAME="introformat" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="The format of the description field of the assignment. This field is used by feature MOD_INTRO." PREVIOUS="intro" NEXT="activity_group"/>
  58. <FIELD NAME="activity_group" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" ENUM="false" COMMENT="Type grouping. 0-do not group / 1-group by type of activity" PREVIOUS="introformat" NEXT="grade"/>
  59. <FIELD NAME="grade" TYPE="float" NOTNULL="true" UNSIGNED="false" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Maximum score for activity" PREVIOUS="activity_group" NEXT="timeavailable"/>
  60. <FIELD NAME="timeavailable" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date of opening activity" PREVIOUS="grade" NEXT="timedue"/>
  61. <FIELD NAME="timedue" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Closing date of the activity" PREVIOUS="timeavailable" NEXT="preventlate"/>
  62. <FIELD NAME="preventlate" TYPE="int" LENGTH="2" NOTNULL="false" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" ENUM="false" COMMENT="Allow sending late? 0 - no / 1 - yes" PREVIOUS="timedue" NEXT="test"/>
  63. <FIELD NAME="test" TYPE="int" LENGTH="1" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Activity to release test after closing time? 0 - no / 1 - yes" PREVIOUS="preventlate" NEXT="max_experiment"/>
  64. <FIELD NAME="max_experiment" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Maximum number of attempts. 0 - unlimited" PREVIOUS="test"/>
  65. </FIELDS>
  66. <KEYS>
  67. <KEY NAME="primary" TYPE="primary" FIELDS="id" />
  68. </KEYS>
  69. <INDEXES>
  70. <INDEX NAME="course" UNIQUE="false" FIELDS="course"/>
  71. </INDEXES>
  72. </TABLE>
  73. <TABLE NAME="iassign_log" COMMENT="Logs of the module iAssign" PREVIOUS="iassign" NEXT="iassign_statement">
  74. <FIELDS>
  75. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="time"/>
  76. <FIELD NAME="time" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date of log activity" PREVIOUS="id" NEXT="userid"/>
  77. <FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Id of active user" PREVIOUS="time" NEXT="ip"/>
  78. <FIELD NAME="ip" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Ip of active user" PREVIOUS="userid" NEXT="course"/>
  79. <FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Id of the active course" PREVIOUS="ip" NEXT="cmid"/>
  80. <FIELD NAME="cmid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Id of the active course module" PREVIOUS="course" NEXT="ilmid"/>
  81. <FIELD NAME="ilmid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Id of the iLM " PREVIOUS="cmid" NEXT="action"/>
  82. <FIELD NAME="action" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Action of user in active course" PREVIOUS="ilmid" NEXT="info"/>
  83. <FIELD NAME="info" TYPE="text" LENGTH="medium" NOTNULL="false" SEQUENCE="false" COMMENT="The additional information of log" PREVIOUS="action" NEXT="language"/>
  84. <FIELD NAME="language" TYPE="char" LENGTH="10" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="The language code of active user" PREVIOUS="info" NEXT="user_agent"/>
  85. <FIELD NAME="user_agent" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="User agent of active user" PREVIOUS="language" NEXT="javascript"/>
  86. <FIELD NAME="javascript" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="User agent allow Javascript ? 0 - no / 1 - yes" PREVIOUS="user_agent" NEXT="java"/>
  87. <FIELD NAME="java" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="User agent allow Java ? 0 - no / 1 - yes" PREVIOUS="javascript"/>
  88. </FIELDS>
  89. <KEYS>
  90. <KEY NAME="primary" TYPE="primary" FIELDS="id" />
  91. </KEYS>
  92. <INDEXES>
  93. <INDEX NAME="course" UNIQUE="false" FIELDS="course"/>
  94. </INDEXES>
  95. </TABLE>
  96. <TABLE NAME="iassign_statement" COMMENT="Info about interactive activities" PREVIOUS="iassign_log" NEXT="iassign_submission">
  97. <FIELDS>
  98. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="name"/>
  99. <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Title of activity" PREVIOUS="id" NEXT="iassignid"/>
  100. <FIELD NAME="iassignid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id of the task in which the activity is inserted" PREVIOUS="name" NEXT="type_iassign"/>
  101. <FIELD NAME="type_iassign" TYPE="int" LENGTH="2" NOTNULL="true" UNSIGNED="true" DEFAULT="3" SEQUENCE="false" ENUM="false" COMMENT="Type of activity. 1 - example / 2 - test / 3 - exercise" PREVIOUS="iassignid" NEXT="proposition"/>
  102. <FIELD NAME="proposition" TYPE="text" LENGTH="medium" NOTNULL="false" SEQUENCE="false" ENUM="false" COMMENT="Proposition the activity" PREVIOUS="type_iassign" NEXT="author_name"/>
  103. <FIELD NAME="author_name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Author name the activity" PREVIOUS="proposition" NEXT="author_modified_name"/>
  104. <FIELD NAME="author_modified_name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Name of last author to modify the activity" PREVIOUS="author_name" NEXT="iassign_ilmid"/>
  105. <FIELD NAME="iassign_ilmid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" ENUM="false" COMMENT="iLM id used in the activity" PREVIOUS="author_modified_name" NEXT="file"/>
  106. <FIELD NAME="file" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" ENUM="false" COMMENT="Address and file name of the activity" PREVIOUS="iassign_ilmid" NEXT="grade"/>
  107. <FIELD NAME="grade" TYPE="float" NOTNULL="true" UNSIGNED="false" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Maximum score for activity" PREVIOUS="file" NEXT="timemodified"/>
  108. <FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date of last modification" PREVIOUS="grade" NEXT="timecreated"/>
  109. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date of creation" PREVIOUS="timemodified" NEXT="timeavailable"/>
  110. <FIELD NAME="timeavailable" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date of opening activity" PREVIOUS="timecreated" NEXT="timedue"/>
  111. <FIELD NAME="timedue" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Closing date of the activity" PREVIOUS="timeavailable" NEXT="preventlate"/>
  112. <FIELD NAME="preventlate" TYPE="int" LENGTH="2" NOTNULL="false" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" ENUM="false" COMMENT="Allow sending late? 0 - no / 1 - yes" PREVIOUS="timedue" NEXT="test"/>
  113. <FIELD NAME="test" TYPE="int" LENGTH="1" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Activity to release test after closing time? 0 - no / 1 - yes" PREVIOUS="preventlate" NEXT="special_param1"/>
  114. <FIELD NAME="special_param1" TYPE="int" LENGTH="1" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Activity contains algorithm? 0 - no / 1 - yes" PREVIOUS="test" NEXT="position" />
  115. <FIELD NAME="position" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Position of activity within the group" PREVIOUS="special_param1" NEXT="visible"/>
  116. <FIELD NAME="visible" TYPE="int" LENGTH="1" NOTNULL="false" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" ENUM="false" COMMENT="Status of viewing activity. 0 – hide / 1 - show" PREVIOUS="position" NEXT="max_experiment"/>
  117. <FIELD NAME="max_experiment" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Maximum number of attempts. 0 - unlimited" PREVIOUS="visible" NEXT="dependency"/>
  118. <FIELD NAME="dependency" TYPE="char" LENGTH="255" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="List the activities that this activity depends. 0 - independent" PREVIOUS="max_experiment" NEXT="automatic_evaluate"/>
  119. <FIELD NAME="automatic_evaluate" TYPE="int" LENGTH="1" NOTNULL="false" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" ENUM="false" COMMENT="Using automatic evaluation activity?0 - no / 1 - yes" PREVIOUS="dependency" NEXT="show_answer"/>
  120. <FIELD NAME="show_answer" TYPE="int" LENGTH="1" NOTNULL="false" UNSIGNED="true" DEFAULT="1" SEQUENCE="false" ENUM="false" COMMENT="Show automatic evaluation results to students? 0 - no / 1 - yes" PREVIOUS="automatic_evaluate" NEXT="store_all_submissions"/>
  121. <FIELD NAME="store_all_submissions" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="If all submissions must be stored" PREVIOUS="show_answer" />
  122. </FIELDS>
  123. <KEYS>
  124. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassignid"/>
  125. <KEY NAME="iassignid" TYPE="foreign" FIELDS="iassignid" REFTABLE="iassign" REFFIELDS="id" PREVIOUS="primary" NEXT="iassign_ilmid"/>
  126. <KEY NAME="iassign_ilmid" TYPE="foreign" FIELDS="iassign_ilmid" REFTABLE="iassign_ilm" REFFIELDS="id" PREVIOUS="iassignid"/>
  127. </KEYS>
  128. </TABLE>
  129. <TABLE NAME="iassign_submission" COMMENT="Info about submissions of interactive activities" PREVIOUS="iassign_statement" NEXT="iassign_submission_comment">
  130. <FIELDS>
  131. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_statementid"/>
  132. <FIELD NAME="iassign_statementid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id interactive activity" PREVIOUS="id" NEXT="userid"/>
  133. <FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id of submitting author" PREVIOUS="iassign_statementid" NEXT="timecreated"/>
  134. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date of first submission" PREVIOUS="userid" NEXT="timemodified"/>
  135. <FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date last modified" PREVIOUS="timecreated" NEXT="grade"/>
  136. <FIELD NAME="grade" TYPE="float" NOTNULL="true" UNSIGNED="false" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Grade of evaluation" PREVIOUS="timemodified" NEXT="previous_grade"/>
  137. <FIELD NAME="previous_grade" TYPE="float" NOTNULL="true" UNSIGNED="false" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Previous grade of evaluation" PREVIOUS="grade" NEXT="teacher"/>
  138. <FIELD NAME="teacher" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id teacher" PREVIOUS="previous_grade" NEXT="answer"/>
  139. <FIELD NAME="answer" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="String with the last solution sent by the student" PREVIOUS="teacher" NEXT="experiment"/>
  140. <FIELD NAME="experiment" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Total of submissions" PREVIOUS="answer" NEXT="status"/>
  141. <FIELD NAME="status" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Status of activities. 0-not submitted/1-submitted/2-evaluated as incorrect/3-evaluated as correct" PREVIOUS="experiment"/>
  142. </FIELDS>
  143. <KEYS>
  144. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_statementid"/>
  145. <KEY NAME="iassign_statementid" TYPE="foreign" FIELDS="iassign_statementid" REFTABLE="iassign_statement" REFFIELDS="id" PREVIOUS="primary"/>
  146. </KEYS>
  147. <INDEXES>
  148. <INDEX NAME="userid" UNIQUE="false" FIELDS="userid"/>
  149. </INDEXES>
  150. </TABLE>
  151. <TABLE NAME="iassign_submission_comment" COMMENT="Comments of interactive activities" PREVIOUS="iassign_submission" NEXT="iassign_security">
  152. <FIELDS>
  153. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_submissionid"/>
  154. <FIELD NAME="iassign_submissionid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id submission comment" PREVIOUS="id" NEXT="comment_authorid"/>
  155. <FIELD NAME="comment_authorid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id author comment" PREVIOUS="iassign_submissionid" NEXT="timecreated"/>
  156. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date of sending the comment" PREVIOUS="comment_authorid" NEXT="comment"/>
  157. <FIELD NAME="comment" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Comment" PREVIOUS="timecreated" NEXT="return_status"/>
  158. <FIELD NAME="return_status" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Status of return. 0 - unread / 1 -read" PREVIOUS="comment" NEXT="receiver"/>
  159. <FIELD NAME="receiver" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="1 - message to teacher. 2 - message to student" PREVIOUS="return_status"/>
  160. </FIELDS>
  161. <KEYS>
  162. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_submissionid"/>
  163. <KEY NAME="iassign_submissionid" TYPE="foreign" FIELDS="iassign_submissionid" REFTABLE="iassign_submission" REFFIELDS="id" PREVIOUS="primary"/>
  164. </KEYS>
  165. </TABLE>
  166. <TABLE NAME="iassign_security" COMMENT="Info about secure access to interactive activities" PREVIOUS="iassign_submission_comment" NEXT="iassign_allsubmissions">
  167. <FIELDS>
  168. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_statementid"/>
  169. <FIELD NAME="iassign_statementid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id interactive activity" PREVIOUS="id" NEXT="userid"/>
  170. <FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id of submitting author" PREVIOUS="iassign_statementid" NEXT="file"/>
  171. <FIELD NAME="file" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Origin of activity sent" PREVIOUS="userid" NEXT="timecreated"/>
  172. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Moment that the activity has been invoked" PREVIOUS="file" NEXT="view"/>
  173. <FIELD NAME="view" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Preview control flag of the iLM" PREVIOUS="timecreated"/>
  174. </FIELDS>
  175. <KEYS>
  176. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_statementid"/>
  177. <KEY NAME="iassign_statementid" TYPE="foreign" FIELDS="iassign_statementid" REFTABLE="iassign_statement" REFFIELDS="id" PREVIOUS="primary"/>
  178. </KEYS>
  179. </TABLE>
  180. <TABLE NAME="iassign_allsubmissions" COMMENT="Stores all submissions from students" PREVIOUS="iassign_security">
  181. <FIELDS>
  182. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_statementid"/>
  183. <FIELD NAME="iassign_statementid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id interactive activity" PREVIOUS="id" NEXT="userid"/>
  184. <FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="id of submitting author" PREVIOUS="iassign_statementid" NEXT="timecreated"/>
  185. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Date of first submission" PREVIOUS="userid" NEXT="grade"/>
  186. <FIELD NAME="grade" TYPE="float" NOTNULL="true" UNSIGNED="false" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Grade of evaluation" PREVIOUS="timecreated" NEXT="answer"/>
  187. <FIELD NAME="answer" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="String with the solution sent by the student" PREVIOUS="grade" />
  188. </FIELDS>
  189. <KEYS>
  190. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_statementid"/>
  191. <KEY NAME="iassign_statementid" TYPE="foreign" FIELDS="iassign_statementid" REFTABLE="iassign_statement" REFFIELDS="id" PREVIOUS="primary"/>
  192. </KEYS>
  193. </TABLE>
  194. </TABLES>
  195. </XMLDB>