<FIELDNAME="name"TYPE="char"LENGTH="255"NOTNULL="true"SEQUENCE="false"COMMENT="The name of the instance of the assignment. Displayed at the top of each page."PREVIOUS="course"NEXT="intro"/>
<FIELDNAME="intro"TYPE="text"NOTNULL="true"SEQUENCE="false"COMMENT="The description of the assignment. This field is used by feature MOD_INTRO."PREVIOUS="name"NEXT="introformat"/>
<FIELDNAME="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="alwaysshowdescription"/>
<FIELDNAME="alwaysshowdescription"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="If false the assignment intro will only be displayed after the allowsubmissionsfrom date. If true it will always be displayed."PREVIOUS="introformat"NEXT="nosubmissions"/>
<FIELDNAME="nosubmissions"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="This field is a cache for is_any_submission_plugin_enabled() which allows Moodle pages to distinguish offline assignment types without loading the assignment class."PREVIOUS="alwaysshowdescription"NEXT="submissiondrafts"/>
<FIELDNAME="submissiondrafts"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="If true, assignment submissions will be considered drafts until the student clicks on the submit assignmnet button."PREVIOUS="nosubmissions"NEXT="sendnotifications"/>
<FIELDNAME="sendnotifications"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="Allows the disabling of email notifications in the assign module."PREVIOUS="submissiondrafts"NEXT="sendlatenotifications"/>
<FIELDNAME="sendlatenotifications"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="Allows separate enabling of notifications for late assignment submissions."PREVIOUS="sendnotifications"NEXT="duedate"/>
<FIELDNAME="duedate"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The due date for the assignment. Displayed to students."PREVIOUS="sendlatenotifications"NEXT="allowsubmissionsfromdate"/>
<FIELDNAME="allowsubmissionsfromdate"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="If set, submissions will only be accepted after this date."PREVIOUS="duedate"NEXT="grade"/>
<FIELDNAME="grade"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The maximum grade for this assignment. Can be negative to indicate the use of a scale."PREVIOUS="allowsubmissionsfromdate"NEXT="timemodified"/>
<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The time the settings for this assign module instance were last modified."PREVIOUS="grade"NEXT="requiresubmissionstatement"/>
<FIELDNAME="requiresubmissionstatement"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="Forces the student to accept a submission statement when submitting an assignment"PREVIOUS="timemodified"NEXT="completionsubmit"/>
<FIELDNAME="completionsubmit"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="If this field is set to 1, then the activity will be automatically marked as 'complete' once the user submits their assignment."PREVIOUS="requiresubmissionstatement"NEXT="cutoffdate"/>
<FIELDNAME="cutoffdate"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The final date after which submissions will no longer be accepted for this assignment without an extensions."PREVIOUS="completionsubmit"NEXT="teamsubmission"/>
<FIELDNAME="teamsubmission"TYPE="int"LENGTH="2"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="Do students submit in teams?"PREVIOUS="cutoffdate"NEXT="requireallteammemberssubmit"/>
<FIELDNAME="requireallteammemberssubmit"TYPE="int"LENGTH="2"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="If enabled, a submission will not be accepted until all team members have submitted it."PREVIOUS="teamsubmission"NEXT="teamsubmissiongroupingid"/>
<FIELDNAME="teamsubmissiongroupingid"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="A grouping id to get groups for team submissions"PREVIOUS="requireallteammemberssubmit"NEXT="blindmarking"/>
<FIELDNAME="blindmarking"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="Hide student/grader identities until the reveal identities action is performed"PREVIOUS="teamsubmissiongroupingid"NEXT="revealidentities"/>
<FIELDNAME="revealidentities"TYPE="int"LENGTH="2"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="Show identities for a blind marking assignment"PREVIOUS="blindmarking"/>
<TABLENAME="assign_submission"COMMENT="This table keeps information about student interactions with the mod/assign. This is limited to metadata about a student submission but does not include the submission itself which is stored by plugins."PREVIOUS="assign"NEXT="assign_grades">
<FIELDNAME="timecreated"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The time of the first student submission to this assignment."PREVIOUS="userid"NEXT="timemodified"/>
<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The last time this assignment submission was modified by a student."PREVIOUS="timecreated"NEXT="status"/>
<FIELDNAME="status"TYPE="char"LENGTH="10"NOTNULL="false"SEQUENCE="false"COMMENT="The status of this assignment submission. The current statuses are DRAFT and SUBMITTED."PREVIOUS="timemodified"NEXT="groupid"/>
<FIELDNAME="groupid"TYPE="int"LENGTH="10"NOTNULL="true"UNSIGNED="true"DEFAULT="0"SEQUENCE="false"COMMENT="The group id for team submissions"PREVIOUS="status"/>
<KEYNAME="primary"TYPE="primary"FIELDS="id"COMMENT="The unique id for this assignment submission."NEXT="assignment"/>
<KEYNAME="assignment"TYPE="foreign"FIELDS="assignment"REFTABLE="assign"REFFIELDS="id"COMMENT="The instance of mod_assign this submission belongs to."PREVIOUS="primary"/>
<FIELDNAME="timecreated"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The time the assignment submission was first modified by a grader."PREVIOUS="userid"NEXT="timemodified"/>
<FIELDNAME="timemodified"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="The most recent modification time for the assignment submission by a grader."PREVIOUS="timecreated"NEXT="grader"/>
<FIELDNAME="grade"TYPE="number"LENGTH="10"NOTNULL="false"DEFAULT="0"SEQUENCE="false"DECIMALS="5"COMMENT="The numerical grade for this assignment submission. Can be determined by scales/advancedgradingforms etc but will always be converted back to a floating point number."PREVIOUS="grader"NEXT="locked"/>
<FIELDNAME="locked"TYPE="int"LENGTH="1"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="A flag to prevent changes for a single student submission."PREVIOUS="grade"NEXT="mailed"/>
<FIELDNAME="mailed"TYPE="int"LENGTH="1"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="Has the student been sent a notification about this grade update?"PREVIOUS="locked"NEXT="extensionduedate"/>
<FIELDNAME="extensionduedate"TYPE="int"LENGTH="10"NOTNULL="true"DEFAULT="0"SEQUENCE="false"COMMENT="An extension date assigned to an individual student"PREVIOUS="mailed"/>
<KEYNAME="primary"TYPE="primary"FIELDS="id"COMMENT="The unique id for this grade."NEXT="assignment"/>
<KEYNAME="assignment"TYPE="foreign"FIELDS="assignment"REFTABLE="assign"REFFIELDS="id"COMMENT="The assignment instance this grade belongs to."PREVIOUS="primary"/>
</KEYS>
<INDEXES>
<INDEXNAME="userid"UNIQUE="false"FIELDS="userid"COMMENT="The userid for the submission relating to this grade."NEXT="mailed"/>
<INDEXNAME="mailed"UNIQUE="false"FIELDS="mailed"COMMENT="True if notifications have been sent about the most recent grader update about this submission."PREVIOUS="userid"/>
<TABLENAME="assign_plugin_config"COMMENT="Config data for an instance of a plugin in an assignment."PREVIOUS="assign_grades"NEXT="assign_user_mapping">
<FIELDNAME="value"TYPE="text"NOTNULL="false"SEQUENCE="false"COMMENT="The value of the config setting. Stored as text but can be interpreted by the plugin however it likes."PREVIOUS="name"/>
</FIELDS>
<KEYS>
<KEYNAME="primary"TYPE="primary"FIELDS="id"COMMENT="Unique id to identify this plugin setting value."NEXT="assignment"/>
<KEYNAME="assignment"TYPE="foreign"FIELDS="assignment"REFTABLE="assign"REFFIELDS="id"COMMENT="The assignment instance this config value relates to."PREVIOUS="primary"/>
</KEYS>
<INDEXES>
<INDEXNAME="plugin"UNIQUE="false"FIELDS="plugin"COMMENT="The type of this plugin."NEXT="subtype"/>
<INDEXNAME="subtype"UNIQUE="false"FIELDS="subtype"COMMENT="The subtype of this plugin (assign_submission or assign_feedback)."PREVIOUS="plugin"NEXT="name"/>
<INDEXNAME="name"UNIQUE="false"FIELDS="name"COMMENT="The name of this plugin setting."PREVIOUS="subtype"/>