<FIELDNAME="intro"TYPE="text"LENGTH="big"NOTNULL="false"SEQUENCE="false"COMMENT="The introduction or description of the activity"PREVIOUS="name"NEXT="introformat"/>
<FIELDNAME="introformat"TYPE="int"LENGTH="3"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The format of the intro field"PREVIOUS="intro"NEXT="instructauthors"/>
<FIELDNAME="instructauthors"TYPE="text"LENGTH="big"NOTNULL="false"SEQUENCE="false"COMMENT="Instructions for the submission phase"PREVIOUS="introformat"NEXT="instructauthorsformat"/>
<FIELDNAME="instructreviewers"TYPE="text"LENGTH="big"NOTNULL="false"SEQUENCE="false"COMMENT="Instructions for the assessment phase"PREVIOUS="instructauthorsformat"NEXT="instructreviewersformat"/>
<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="The timestamp when the module was modified"PREVIOUS="instructreviewersformat"NEXT="phase"/>
<FIELDNAME="phase"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The current phase of workshop (0 = not available, 1 = submission, 2 = assessment, 3 = closed)"PREVIOUS="timemodified"NEXT="useexamples"/>
<FIELDNAME="useexamples"TYPE="int"LENGTH="2"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="optional feature: students practise evaluating on example submissions from teacher"PREVIOUS="phase"NEXT="usepeerassessment"/>
<FIELDNAME="usepeerassessment"TYPE="int"LENGTH="2"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="optional feature: students perform peer assessment of others' work"PREVIOUS="useexamples"NEXT="useselfassessment"/>
<FIELDNAME="useselfassessment"TYPE="int"LENGTH="2"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="optional feature: students perform self assessment of their own work"PREVIOUS="usepeerassessment"NEXT="grade"/>
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="80"SEQUENCE="false"DECIMALS="5"COMMENT="The maximum grade for submission"PREVIOUS="useselfassessment"NEXT="gradinggrade"/>
<FIELDNAME="gradinggrade"TYPE="number"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="20"SEQUENCE="false"DECIMALS="5"COMMENT="The maximum grade for assessment"PREVIOUS="grade"NEXT="strategy"/>
<FIELDNAME="strategy"TYPE="char"LENGTH="30"NOTNULL="true"SEQUENCE="false"COMMENT="The type of the current grading strategy used in this workshop"PREVIOUS="gradinggrade"NEXT="nattachments"/>
<FIELDNAME="nattachments"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Number of required submission attachments"PREVIOUS="strategy"NEXT="latesubmissions"/>
<FIELDNAME="latesubmissions"TYPE="int"LENGTH="2"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Allow submitting the work after the deadline"PREVIOUS="nattachments"NEXT="maxbytes"/>
<FIELDNAME="maxbytes"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="100000"SEQUENCE="false"COMMENT="Maximum size of the one attached file"PREVIOUS="latesubmissions"NEXT="nexassessments"/>
<FIELDNAME="nexassessments"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="If useexamples == 1: the number of required assessments of teacher examples (0 = all, greater than 0: the number)"PREVIOUS="maxbytes"NEXT="examplesmode"/>
<FIELDNAME="examplesmode"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="0 = example assessments are voluntary, 1 = examples must be assessed before submission, 2 = examples are available after own submission and must be assessed before peer/self assessment phase"PREVIOUS="nexassessments"NEXT="teacherweight"/>
<FIELDNAME="teacherweight"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="1"SEQUENCE="false"COMMENT="The weight of the teacher's assessments"PREVIOUS="examplesmode"NEXT="agreeassessments"/>
<FIELDNAME="agreeassessments"TYPE="int"LENGTH="2"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Boolean - determines if author may comment assessments and agree/disagree with it"PREVIOUS="teacherweight"NEXT="assessmentcomps"/>
<FIELDNAME="assessmentcomps"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="2"SEQUENCE="false"COMMENT="Comparison of assessments = required level of assessment similarity (0 = very lax, 1 = lax, 2 = fair, 3 = strict, 4 = very strict)"PREVIOUS="agreeassessments"NEXT="submissionstart"/>
<FIELDNAME="submissionstart"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be started manually, greater than 0 the timestamp of the start of the submission phase"PREVIOUS="assessmentcomps"NEXT="submissionend"/>
<FIELDNAME="submissionend"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be closed manually, greater than 0 the timestamp of the end of the submission phase"PREVIOUS="submissionstart"NEXT="assessmentstart"/>
<FIELDNAME="assessmentstart"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be started manually, greater than 0 the timestamp of the start of the assessment phase"PREVIOUS="submissionend"NEXT="assessmentend"/>
<FIELDNAME="assessmentend"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be closed manually, greater than 0 the timestamp of the end of the assessment phase"PREVIOUS="assessmentstart"NEXT="releasegrades"/>
<FIELDNAME="releasegrades"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be released manually, greater than 0 the timestamp when final grades are published"PREVIOUS="assessmentend"/>
<TABLENAME="workshop_submissions"COMMENT="Info about the submission and the aggregation of the grade for submission, grade for assessment and final grade. Both grade for submission and grade for assessment can be overridden by teacher. Final grade is always the sum of them. All grades are stored as of 0-100."PREVIOUS="workshop"NEXT="workshop_assessments">
<FIELDNAME="workshopid"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="the id of the workshop instance"PREVIOUS="id"NEXT="example"/>
<FIELDNAME="example"TYPE="int"LENGTH="2"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Is this submission an example from teacher"PREVIOUS="workshopid"NEXT="userid"/>
<FIELDNAME="userid"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="The author of the submission"PREVIOUS="example"NEXT="timecreated"/>
<FIELDNAME="timecreated"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="Timestamp when the work was submitted for the first time"PREVIOUS="userid"NEXT="timemodified"/>
<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="Timestamp when the submission has been updated"PREVIOUS="timecreated"NEXT="title"/>
<FIELDNAME="contentformat"TYPE="int"LENGTH="3"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The format of submission text"PREVIOUS="content"NEXT="contenttrust"/>
<FIELDNAME="contenttrust"TYPE="int"LENGTH="3"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The trust mode of the data"PREVIOUS="contentformat"NEXT="attachment"/>
<FIELDNAME="attachment"TYPE="int"LENGTH="2"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Used by File API file_postupdate_standard_filemanager"PREVIOUS="contenttrust"NEXT="grade"/>
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"DECIMALS="5"COMMENT="Grade for the submission calculated as average of the peer-assessments. The grade is a number from interval 0..100. If NULL then the grade for submission has not been aggregated yet."PREVIOUS="attachment"NEXT="gradeover"/>
<FIELDNAME="gradeover"TYPE="number"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"DECIMALS="5"COMMENT="Grade for the submission manually overridden by a teacher. Grade is always from interval 0..100. If NULL then the grade is not overriden."PREVIOUS="grade"NEXT="gradeoverby"/>
<FIELDNAME="gradeoverby"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"COMMENT="The id of the user who has overridden the grade for submission."PREVIOUS="gradeover"NEXT="gradinggrade"/>
<FIELDNAME="gradinggrade"TYPE="number"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"DECIMALS="5"COMMENT="Grade for the assessment calculated by the module. The grade is a number from interval 0..100. If NULL then the grade for assessment has not been aggregated yet."PREVIOUS="gradeoverby"NEXT="teachercomment"/>
<FIELDNAME="teachercomment"TYPE="text"LENGTH="big"NOTNULL="false"SEQUENCE="false"COMMENT="Teacher comment for the submission, for example describing the reasons for the overriding"PREVIOUS="gradinggrade"NEXT="teachercommentformat"/>
<FIELDNAME="teachercommentformat"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The format of the teachercomment field"PREVIOUS="teachercomment"/>
<TABLENAME="workshop_assessments"COMMENT="Info about the made assessment and automatically calculated grade for it. The proposed grade can be overridden by teacher."PREVIOUS="workshop_submissions"NEXT="workshop_grades">
<FIELDNAME="submissionid"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="The id of the assessed submission"PREVIOUS="id"NEXT="userid"/>
<FIELDNAME="userid"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="The id of the reviewer who created this assessment"PREVIOUS="submissionid"NEXT="timecreated"/>
<FIELDNAME="timecreated"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="If 0 then the assessment was allocated but the reviewer has not assessed yet. If greater than 0 then the timestamp of when the reviewer assessed for the first time"PREVIOUS="userid"NEXT="timemodified"/>
<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="If 0 then the assessment was allocated but the reviewer has not assessed yet. If greater than 0 then the timestamp of when the reviewer assessed for the last time"PREVIOUS="timecreated"NEXT="timeagreed"/>
<FIELDNAME="timeagreed"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="If 0 then the assessment was not agreed by the author. If greater than 0 then the timestamp of when the assessment was agreed by the author"PREVIOUS="timemodified"NEXT="grade"/>
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"DECIMALS="5"COMMENT="The aggregated grade for submission suggested by the reviewer. The grade is computed from the values assigned to the assessment dimensions fields. If NULL then it has not been aggregated yet."PREVIOUS="timeagreed"NEXT="gradinggrade"/>
<FIELDNAME="gradinggrade"TYPE="number"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"DECIMALS="5"COMMENT="The computed grade for this assessment. If NULL then it has not been computed yet."PREVIOUS="grade"NEXT="gradinggradeover"/>
<FIELDNAME="gradinggradeover"TYPE="number"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"DECIMALS="5"COMMENT="Grade for the assessment manually overridden by a teacher. Grade is always from interval 0..100. If NULL then the grade is not overriden."PREVIOUS="gradinggrade"NEXT="gradinggradeoverby"/>
<FIELDNAME="gradinggradeoverby"TYPE="int"LENGTH="10"NOTNULL="false"UNSIGNED="true"SEQUENCE="false"COMMENT="The id of the user who has overridden the grade for submission."PREVIOUS="gradinggradeover"NEXT="generalcomment"/>
<FIELDNAME="generalcomment"TYPE="text"LENGTH="big"NOTNULL="false"SEQUENCE="false"COMMENT="Comment from the reviewer"PREVIOUS="gradinggradeoverby"NEXT="generalcommentformat"/>
<FIELDNAME="generalcommentformat"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The format of generalcomment field"PREVIOUS="generalcomment"NEXT="teachercomment"/>
<FIELDNAME="teachercomment"TYPE="text"LENGTH="big"NOTNULL="false"SEQUENCE="false"COMMENT="The comment from the teacher. For example the reason why the grade for assessment was overridden"PREVIOUS="generalcommentformat"NEXT="teachercommentformat"/>
<FIELDNAME="teachercommentformat"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The format of teachercomment field"PREVIOUS="teachercomment"/>
<FIELDNAME="assessmentid"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="Part of which assessment this grade is of"PREVIOUS="id"NEXT="strategy"/>
<FIELDNAME="dimensionid"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"COMMENT="Foreign key. References dimension id in one of the grading strategy tables."PREVIOUS="strategy"NEXT="grade"/>
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="true"UNSIGNED="true"SEQUENCE="false"DECIMALS="5"COMMENT="Given grade in the referenced assessment dimension."PREVIOUS="dimensionid"NEXT="peercomment"/>
<FIELDNAME="peercomment"TYPE="text"LENGTH="big"NOTNULL="false"SEQUENCE="false"COMMENT="Reviewer's comment to the grade value."PREVIOUS="grade"NEXT="peercommentformat"/>
<FIELDNAME="peercommentformat"TYPE="int"LENGTH="3"NOTNULL="false"UNSIGNED="false"DEFAULT="0"SEQUENCE="false"COMMENT="The format of peercomment field"PREVIOUS="peercomment"/>
<KEYNAME="formfield_uk"TYPE="unique"FIELDS="assessmentid, strategy, dimensionid"COMMENT="The combination of assessmentid, strategy and dimensionid must be unique"PREVIOUS="assessment_fk"/>