1
0

install.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <XMLDB PATH="mod/gradeimporter/db" VERSION="20191002" COMMENT="XMLDB file for Moodle mod/gradeimporter"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
  5. >
  6. <TABLES>
  7. <TABLE NAME="gradeimporter" COMMENT="gradeimporter instance table, this table links the submissions to the course." NEXT="grade_importer_submission">
  8. <FIELDS>
  9. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="primary key" NEXT="course"/>
  10. <FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" COMMENT="The id of the course this instance is placed on"
  11. PREVIOUS="id" NEXT="name"/>
  12. <FIELD NAME="name" TYPE="char" LENGTH="256" NOTNULL="true" SEQUENCE="false" ENUM="false" COMMENT="Instance name" PREVIOUS="course" NEXT="intro"/>
  13. <FIELD NAME="intro" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Description of the grades that are going to be available on the module"
  14. PREVIOUS="NAME" NEXT="timecreated"/>
  15. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Time stamp from when the instance was first created"
  16. PREVIOUS="intro" NEXT="timemodified"/>
  17. <FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Last time the instance was modified"
  18. PREVIOUS="timecreated" NEXT="usermodified"/>
  19. <FIELD NAME="usermodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="timemodified"/>
  20. </FIELDS>
  21. <KEYS>
  22. <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
  23. <KEY NAME="usermodified" TYPE="foreign" FIELDS="usermodified" REFTABLE="user" REFFIELDS="id"/>
  24. </KEYS>
  25. </TABLE>
  26. <TABLE NAME="gradeimporter_submission" COMMENT="submission table, relates the submission to the gradeimporter, feedback files and student." PREVIOUS="gradeimporter" NEXT="gradeimporter_submissiontype" >
  27. <FIELDS>
  28. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" NEXT="gradeimporter"/>
  29. <FIELD NAME="gradeimporterid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"
  30. COMMENT="Which gradeimporter instance this submission is related to" PREVIOUS="id" NEXT="type"/>
  31. <FIELD NAME="type" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Type of the submission (exam, exercise list,"
  32. PREVIOUS="gradeimporter" NEXT="gradebook"/>
  33. <FIELD NAME="gradebook" TYPE="int" LENGTH="1" NOTNULL="true" SEQUENCE="false" COMMENT="Register if the submission is going to the gradebook"
  34. PREVIOUS="type" NEXT="timecreated"/>
  35. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"
  36. PREVIOUS="gradebook" NEXT="timemodified"/>
  37. <FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"
  38. PREVIOUS="timecreated" NEXT="usermodified"/>
  39. <FIELD NAME="usermodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"
  40. PREVIOUS="timemodified" NEXT="name"/>
  41. <FIELD NAME="name" TYPE="char" LENGTH="256" NOTNULL="true" SEQUENCE="false" COMMENT="submission name"
  42. PREVIOUS="usermodified" NEXT="info"/>
  43. <FIELD NAME="description" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Description of the submission type ex: exam 1 given on day YYYY/MM/DD"
  44. PREVIOUS="name" NEXT="descriptionformat"/>
  45. <FIELD NAME="descriptionformat" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="description" NEXT="position"/>
  46. <FIELD NAME="position" TYPE="int" LENGTH="3" NOTNULL="true" SEQUENCE="false" COMMENT="Position relative to other submissions"
  47. PREVIOUS="descriptionformat" NEXT="visibility"/>
  48. <FIELD NAME="visibility" TYPE="int" LENGTH="1" NOTNULL="true" SEQUENCE="false" COMMENT="Registers if students can see this submission."
  49. PREVIOUS="position"/>
  50. </FIELDS>
  51. <KEYS>
  52. <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
  53. <KEY NAME="usermodified" TYPE="foreign" FIELDS="usermodified" REFTABLE="user" REFFIELDS="id"/>
  54. <KEY NAME="type" TYPE="foreign" FIELDS="type" REFTABLE="gradeimporter_submissiontype" REFFIELDS="id"/>
  55. <KEY NAME="gradeimporterid" TYPE="foreign" FIELDS="gradeimporterid" REFTABLE="gradeimporter" REFFIELDS="id"/>
  56. </KEYS>
  57. </TABLE>
  58. <TABLE NAME="gradeimporter_submissiontype" COMMENT="Submission types are recorded by this table, eg: exam, exercises list, etc." PREVIOUS="gradeimporter_submission" NEXT="gradeimporter_feedback">
  59. <FIELDS>
  60. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" NEXT="gradeimporterid"/>
  61. <FIELD NAME="gradeimporterid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Which gradeimporter instance this submission is related to" PREVIOUS="id" NEXT="name"/>
  62. <FIELD NAME="name" TYPE="char" LENGTH="20" NOTNULL="true" SEQUENCE="false" COMMENT="Type name (exam, exercises list, etc)."
  63. PREVIOUS="gradeimporterid" NEXT="info"/>
  64. <FIELD NAME="description" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Submission type description. eg for exam type: exams given in class."
  65. PREVIOUS="name" NEXT="descriptionformat"/>
  66. <FIELD NAME="descriptionformat" TYPE="char" LENGTH="10" NOTNULL="false" DEFAULT="plaintext" SEQUENCE="false" COMMENT="Type description format (html, plaintext, etc.)"/>
  67. </FIELDS>
  68. <KEYS>
  69. <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
  70. <KEY NAME="gradeimporterid" TYPE="foreign" FIELDS="gradeimporterid" REFTABLE="gradeimporter" REFFIELDS="id"/>
  71. </KEYS>
  72. </TABLE>
  73. <TABLE NAME="gradeimporter_feedback" COMMENT="This table is responsible to link the feedback files from a certain submission to the student" PREVIOUS="gradeimporter_submissiontype">
  74. <FIELDS>
  75. <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" NEXT="submissionid"/>
  76. <FIELD NAME="submissionid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Which submission this feedback is related to"
  77. PREVIOUS="id" NEXT="student"/>
  78. <FIELD NAME="studentid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Student moodle user id. Related the feedback files to the student"
  79. PREVIOUS="submissionid" NEXT="grade"/>
  80. <FIELD NAME="grade" TYPE="number" LENGTH="4" NOTNULL="false" SEQUENCE="false" DECIMALS="2" COMMENT="Student grade on the submission"
  81. PREVIOUS="studentid" NEXT="comment"/>
  82. <FIELD NAME="comment" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Teacher comment about the feedback"
  83. PREVIOUS="grade" NEXT="fileid"/>
  84. <FIELD NAME="fileid" TYPE="int" LENGTH="10" NOTNULL="false" DEFAULT="0" SEQUENCE="false" COMMENT="id from filesplugin, where the feedback files are recorded"
  85. PREVIOUS="comment" NEXT="usermodified"/>
  86. <FIELD NAME="usermodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"
  87. PREVIOUS="fileid" NEXT="timecreated"/>
  88. <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"
  89. PREVIOUS="usermodified" NEXT="timemodified"/>
  90. <FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"
  91. PREVIOUS="timecreated" NEXT="contextid"/>
  92. <FIELD NAME="contextid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"
  93. PREVIOUS="timemodified" NEXT="filename"/>
  94. <FIELD NAME="name" TYPE="char" LENGTH="30" NOTNULL="true" SEQUENCE="false" COMMENT="File name to fetch at pluginfile."
  95. PREVIOUS="contextid"/>
  96. </FIELDS>
  97. <KEYS>
  98. <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
  99. <KEY NAME="usermodified" TYPE="foreign" FIELDS="usermodified" REFTABLE="user" REFFIELDS="id"/>
  100. <KEY NAME="submissionid" TYPE="foreign" FIELDS="submissionid" REFTABLE="gradeimporter_submission" REFFIELDS="id"/>
  101. </KEYS>
  102. </TABLE>
  103. </TABLES>
  104. </XMLDB>