install.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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"/>
  24. </FIELDS>
  25. <KEYS>
  26. <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
  27. </KEYS>
  28. <INDEXES>
  29. <INDEX NAME="name_version" UNIQUE="true" FIELDS="name,version" NEXT="file_jar"/>
  30. <INDEX NAME="file_jar" UNIQUE="true" FIELDS="file_jar" PREVIOUS="name_version"/>
  31. </INDEXES>
  32. </TABLE>
  33. <TABLE NAME="iassign_ilm_config" COMMENT="Info about config iLM" PREVIOUS="iassign_ilm" NEXT= "iassign">
  34. <FIELDS>
  35. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_ilmid"/>
  36. <FIELD NAME="iassign_ilmid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="id iLM" PREVIOUS="id" NEXT="param_type"/>
  37. <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"/>
  38. <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"/>
  39. <FIELD NAME="param_value" TYPE="char" LENGTH="100" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" ENUM="false" COMMENT="Parameter value" PREVIOUS="param_name" NEXT="description"/>
  40. <FIELD NAME="description" TYPE="text" LENGTH="medium" NOTNULL="false" SEQUENCE="false" ENUM="false" COMMENT="Parameter description" PREVIOUS="param_value" NEXT="visible"/>
  41. <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"/>
  42. </FIELDS>
  43. <KEYS>
  44. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_ilmid"/>
  45. <KEY NAME="iassign_ilmid" TYPE="foreign" FIELDS="iassign_ilmid" REFTABLE="iassign_ilm" REFFIELDS="id" PREVIOUS="primary"/>
  46. </KEYS>
  47. </TABLE>
  48. <TABLE NAME="iassign" COMMENT="Instances of the module iAssign" PREVIOUS="iassign_ilm_config" NEXT="iassign_log">
  49. <FIELDS>
  50. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="course"/>
  51. <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"/>
  52. <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Name of the instance of activity" PREVIOUS="course" NEXT="intro"/>
  53. <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"/>
  54. <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"/>
  55. <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"/>
  56. <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"/>
  57. <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"/>
  58. <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"/>
  59. <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"/>
  60. <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"/>
  61. <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"/>
  62. </FIELDS>
  63. <KEYS>
  64. <KEY NAME="primary" TYPE="primary" FIELDS="id" />
  65. </KEYS>
  66. <INDEXES>
  67. <INDEX NAME="course" UNIQUE="false" FIELDS="course"/>
  68. </INDEXES>
  69. </TABLE>
  70. <TABLE NAME="iassign_log" COMMENT="Logs of the module iAssign" PREVIOUS="iassign" NEXT="iassign_statement">
  71. <FIELDS>
  72. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="time"/>
  73. <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"/>
  74. <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"/>
  75. <FIELD NAME="ip" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Ip of active user" PREVIOUS="userid" NEXT="course"/>
  76. <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"/>
  77. <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"/>
  78. <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"/>
  79. <FIELD NAME="action" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Action of user in active course" PREVIOUS="ilmid" NEXT="info"/>
  80. <FIELD NAME="info" TYPE="text" LENGTH="medium" NOTNULL="false" SEQUENCE="false" COMMENT="The additional information of log" PREVIOUS="action" NEXT="language"/>
  81. <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"/>
  82. <FIELD NAME="user_agent" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="User agent of active user" PREVIOUS="language" NEXT="javascript"/>
  83. <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"/>
  84. <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"/>
  85. </FIELDS>
  86. <KEYS>
  87. <KEY NAME="primary" TYPE="primary" FIELDS="id" />
  88. </KEYS>
  89. <INDEXES>
  90. <INDEX NAME="course" UNIQUE="false" FIELDS="course"/>
  91. </INDEXES>
  92. </TABLE>
  93. <TABLE NAME="iassign_statement" COMMENT="Info about interactive activities" PREVIOUS="iassign_log" NEXT="iassign_submission">
  94. <FIELDS>
  95. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="name"/>
  96. <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Title of activity" PREVIOUS="id" NEXT="iassignid"/>
  97. <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"/>
  98. <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"/>
  99. <FIELD NAME="proposition" TYPE="text" LENGTH="medium" NOTNULL="false" SEQUENCE="false" ENUM="false" COMMENT="Proposition the activity" PREVIOUS="type_iassign" NEXT="author_name"/>
  100. <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"/>
  101. <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"/>
  102. <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"/>
  103. <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"/>
  104. <FIELD NAME="grade" TYPE="float" NOTNULL="true" UNSIGNED="false" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Maximum score for activity" PREVIOUS="file" NEXT="timemodified"/>
  105. <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"/>
  106. <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"/>
  107. <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"/>
  108. <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"/>
  109. <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"/>
  110. <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"/>
  111. <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" />
  112. <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"/>
  113. <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"/>
  114. <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"/>
  115. <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"/>
  116. <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"/>
  117. <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"/>
  118. </FIELDS>
  119. <KEYS>
  120. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassignid"/>
  121. <KEY NAME="iassignid" TYPE="foreign" FIELDS="iassignid" REFTABLE="iassign" REFFIELDS="id" PREVIOUS="primary" NEXT="iassign_ilmid"/>
  122. <KEY NAME="iassign_ilmid" TYPE="foreign" FIELDS="iassign_ilmid" REFTABLE="iassign_ilm" REFFIELDS="id" PREVIOUS="iassignid"/>
  123. </KEYS>
  124. </TABLE>
  125. <TABLE NAME="iassign_submission" COMMENT="Info about submissions of interactive activities" PREVIOUS="iassign_statement" NEXT="iassign_submission_comment">
  126. <FIELDS>
  127. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_statementid"/>
  128. <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"/>
  129. <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"/>
  130. <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"/>
  131. <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"/>
  132. <FIELD NAME="grade" TYPE="float" NOTNULL="true" UNSIGNED="false" DEFAULT="0" SEQUENCE="false" ENUM="false" COMMENT="Grade of evaluation" PREVIOUS="timemodified" NEXT="previous_grade"/>
  133. <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"/>
  134. <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"/>
  135. <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"/>
  136. <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"/>
  137. <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"/>
  138. </FIELDS>
  139. <KEYS>
  140. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_statementid"/>
  141. <KEY NAME="iassign_statementid" TYPE="foreign" FIELDS="iassign_statementid" REFTABLE="iassign_statement" REFFIELDS="id" PREVIOUS="primary"/>
  142. </KEYS>
  143. <INDEXES>
  144. <INDEX NAME="userid" UNIQUE="false" FIELDS="userid"/>
  145. </INDEXES>
  146. </TABLE>
  147. <TABLE NAME="iassign_submission_comment" COMMENT="Comments of interactive activities" PREVIOUS="iassign_submission" NEXT="iassign_security">
  148. <FIELDS>
  149. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_submissionid"/>
  150. <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"/>
  151. <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"/>
  152. <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"/>
  153. <FIELD NAME="comment" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Comment" PREVIOUS="timecreated" NEXT="return_status"/>
  154. <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"/>
  155. <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"/>
  156. </FIELDS>
  157. <KEYS>
  158. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_submissionid"/>
  159. <KEY NAME="iassign_submissionid" TYPE="foreign" FIELDS="iassign_submissionid" REFTABLE="iassign_submission" REFFIELDS="id" PREVIOUS="primary"/>
  160. </KEYS>
  161. </TABLE>
  162. <TABLE NAME="iassign_security" COMMENT="Info about secure access to interactive activities" PREVIOUS="iassign_submission_comment">
  163. <FIELDS>
  164. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="Primary key of table" NEXT="iassign_statementid"/>
  165. <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"/>
  166. <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"/>
  167. <FIELD NAME="file" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Origin of activity sent" PREVIOUS="userid" NEXT="timecreated"/>
  168. <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"/>
  169. <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"/>
  170. </FIELDS>
  171. <KEYS>
  172. <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="iassign_statementid"/>
  173. <KEY NAME="iassign_statementid" TYPE="foreign" FIELDS="iassign_statementid" REFTABLE="iassign_statement" REFFIELDS="id" PREVIOUS="primary"/>
  174. </KEYS>
  175. </TABLE>
  176. </TABLES>
  177. </XMLDB>