<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="true"SEQUENCE="false"COMMENT="The timestamp when the module was modified"/>
<FIELDNAME="phase"TYPE="int"LENGTH="3"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="The current phase of workshop (0 = not available, 1 = submission, 2 = assessment, 3 = closed)"/>
<FIELDNAME="useexamples"TYPE="int"LENGTH="2"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="optional feature: students practise evaluating on example submissions from teacher"/>
<FIELDNAME="usepeerassessment"TYPE="int"LENGTH="2"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="optional feature: students perform peer assessment of others' work"/>
<FIELDNAME="useselfassessment"TYPE="int"LENGTH="2"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="optional feature: students perform self assessment of their own work"/>
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="false"DEFAULT="80"SEQUENCE="false"DECIMALS="5"COMMENT="The maximum grade for submission"/>
<FIELDNAME="gradinggrade"TYPE="number"LENGTH="10"NOTNULL="false"DEFAULT="20"SEQUENCE="false"DECIMALS="5"COMMENT="The maximum grade for assessment"/>
<FIELDNAME="strategy"TYPE="char"LENGTH="30"NOTNULL="true"SEQUENCE="false"COMMENT="The type of the current grading strategy used in this workshop"/>
<FIELDNAME="evaluation"TYPE="char"LENGTH="30"NOTNULL="true"SEQUENCE="false"COMMENT="The recently used grading evaluation method"/>
<FIELDNAME="gradedecimals"TYPE="int"LENGTH="3"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="Number of digits that should be shown after the decimal point when displaying grades"/>
<FIELDNAME="submissiontypetext"TYPE="int"LENGTH="1"NOTNULL="true"DEFAULT="1"SEQUENCE="false"COMMENT="Can students enter text for their submissions? 0 for no, 1 for optional, 2 for required."/>
<FIELDNAME="submissiontypefile"TYPE="int"LENGTH="1"NOTNULL="true"DEFAULT="1"SEQUENCE="false"COMMENT="Can students attach files for their submissions? 0 for no, 1 for optional, 2 for required."/>
<FIELDNAME="nattachments"TYPE="int"LENGTH="3"NOTNULL="false"DEFAULT="1"SEQUENCE="false"COMMENT="Maximum number of submission attachments"/>
<FIELDNAME="latesubmissions"TYPE="int"LENGTH="2"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="Allow submitting the work after the deadline"/>
<FIELDNAME="maxbytes"TYPE="int"LENGTH="10"NOTNULL="false"DEFAULT="100000"SEQUENCE="false"COMMENT="Maximum size of the one attached file"/>
<FIELDNAME="examplesmode"TYPE="int"LENGTH="3"NOTNULL="false"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"/>
<FIELDNAME="submissionstart"TYPE="int"LENGTH="10"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be started manually, greater than 0 the timestamp of the start of the submission phase"/>
<FIELDNAME="submissionend"TYPE="int"LENGTH="10"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be closed manually, greater than 0 the timestamp of the end of the submission phase"/>
<FIELDNAME="assessmentstart"TYPE="int"LENGTH="10"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be started manually, greater than 0 the timestamp of the start of the assessment phase"/>
<FIELDNAME="assessmentend"TYPE="int"LENGTH="10"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="0 = will be closed manually, greater than 0 the timestamp of the end of the assessment phase"/>
<FIELDNAME="phaseswitchassessment"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="Automatically switch to the assessment phase after the submissions deadline"/>
<FIELDNAME="conclusion"TYPE="text"NOTNULL="false"SEQUENCE="false"COMMENT="A text to be displayed at the end of the workshop."/>
<FIELDNAME="conclusionformat"TYPE="int"LENGTH="3"NOTNULL="true"DEFAULT="1"SEQUENCE="false"COMMENT="The format of the conclusion field content."/>
<FIELDNAME="overallfeedbackmode"TYPE="int"LENGTH="3"NOTNULL="false"DEFAULT="1"SEQUENCE="false"COMMENT="Mode of the overall feedback support."/>
<FIELDNAME="overallfeedbackfiles"TYPE="int"LENGTH="3"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="Number of allowed attachments to the overall feedback."/>
<FIELDNAME="overallfeedbackmaxbytes"TYPE="int"LENGTH="10"NOTNULL="false"DEFAULT="100000"SEQUENCE="false"COMMENT="Maximum size of one file attached to the overall feedback."/>
<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.">
<FIELDNAME="contentformat"TYPE="int"LENGTH="3"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The format of submission text"/>
<FIELDNAME="contenttrust"TYPE="int"LENGTH="3"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The trust mode of the data"/>
<FIELDNAME="attachment"TYPE="int"LENGTH="2"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="Used by File API file_postupdate_standard_filemanager"/>
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="false"SEQUENCE="false"DECIMALS="5"COMMENT="Aggregated grade for the submission. The grade is a decimal number from interval 0..100. If NULL then the grade for submission has not been aggregated yet."/>
<FIELDNAME="gradeover"TYPE="number"LENGTH="10"NOTNULL="false"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."/>
<FIELDNAME="gradeoverby"TYPE="int"LENGTH="10"NOTNULL="false"SEQUENCE="false"COMMENT="The id of the user who has overridden the grade for submission."/>
<FIELDNAME="feedbackauthor"TYPE="text"NOTNULL="false"SEQUENCE="false"COMMENT="Teacher comment/feedback for the author of the submission, for example describing the reasons for the grade overriding"/>
<FIELDNAME="timegraded"TYPE="int"LENGTH="10"NOTNULL="false"SEQUENCE="false"COMMENT="The timestamp when grade or gradeover was recently modified"/>
<FIELDNAME="published"TYPE="int"LENGTH="2"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="Shall the submission be available to other when the workshop is closed"/>
<FIELDNAME="late"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="Has this submission been submitted after the deadline or during the assessment phase?"/>
<TABLENAME="workshop_assessments"COMMENT="Info about the made assessment and automatically calculated grade for it. The proposed grade can be overridden by teacher.">
<FIELDNAME="submissionid"TYPE="int"LENGTH="10"NOTNULL="true"SEQUENCE="false"COMMENT="The id of the assessed submission"/>
<FIELDNAME="reviewerid"TYPE="int"LENGTH="10"NOTNULL="true"SEQUENCE="false"COMMENT="The id of the reviewer who makes this assessment"/>
<FIELDNAME="weight"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="1"SEQUENCE="false"COMMENT="The weight of the assessment for the purposes of aggregation"/>
<FIELDNAME="timecreated"TYPE="int"LENGTH="10"NOTNULL="false"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"/>
<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="false"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"/>
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="false"SEQUENCE="false"DECIMALS="5"COMMENT="The aggregated grade for submission suggested by the reviewer. The grade 0..100 is computed from the values assigned to the assessment dimensions fields. If NULL then it has not been aggregated yet."/>
<FIELDNAME="gradinggrade"TYPE="number"LENGTH="10"NOTNULL="false"SEQUENCE="false"DECIMALS="5"COMMENT="The computed grade 0..100 for this assessment. If NULL then it has not been computed yet."/>
<FIELDNAME="gradinggradeover"TYPE="number"LENGTH="10"NOTNULL="false"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."/>
<FIELDNAME="gradinggradeoverby"TYPE="int"LENGTH="10"NOTNULL="false"SEQUENCE="false"COMMENT="The id of the user who has overridden the grade for submission."/>
<FIELDNAME="feedbackauthor"TYPE="text"NOTNULL="false"SEQUENCE="false"COMMENT="The comment/feedback from the reviewer for the author."/>
<FIELDNAME="feedbackauthorattachment"TYPE="int"LENGTH="3"NOTNULL="false"DEFAULT="0"SEQUENCE="false"COMMENT="Are there some files attached to the feedbackauthor field? Sets to 1 by file_postupdate_standard_filemanager()."/>
<FIELDNAME="feedbackreviewer"TYPE="text"NOTNULL="false"SEQUENCE="false"COMMENT="The comment/feedback from the teacher for the reviewer. For example the reason why the grade for assessment was overridden"/>
<FIELDNAME="dimensionid"TYPE="int"LENGTH="10"NOTNULL="true"SEQUENCE="false"COMMENT="Foreign key. References dimension id in one of the grading strategy tables."/>
<KEYNAME="formfield_uk"TYPE="unique"FIELDS="assessmentid, strategy, dimensionid"COMMENT="The combination of assessmentid, strategy and dimensionid must be unique"/>
<TABLENAME="workshop_aggregations"COMMENT="Aggregated grades for assessment are stored here. The aggregated grade for submission is stored in workshop_submissions">
<FIELDNAME="workshopid"TYPE="int"LENGTH="10"NOTNULL="true"SEQUENCE="false"COMMENT="the id of the workshop instance"/>
<FIELDNAME="userid"TYPE="int"LENGTH="10"NOTNULL="true"SEQUENCE="false"COMMENT="The id of the user which aggregated grades are calculated for"/>
<FIELDNAME="gradinggrade"TYPE="number"LENGTH="10"NOTNULL="false"SEQUENCE="false"DECIMALS="5"COMMENT="The aggregated grade for all assessments made by this reviewer. The grade is a number from interval 0..100. If NULL then the grade for assessments has not been aggregated yet."/>
<FIELDNAME="timegraded"TYPE="int"LENGTH="10"NOTNULL="false"SEQUENCE="false"COMMENT="The timestamp of when the participant's gradinggrade was recently aggregated."/>