install.xml 29 KB

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