21
1 mdl_assignment – Defines assignments ========================================================================= Field Name Type Len Dec ---------- ---- --- --- id course name description format resubmit type maxbytes timedue grade timeodified ------------------------------ Total Bytes Indexes: mdl_assignment_submissions - Info about submitted assignments ========================================================================= Field Name Type Len Dec ---------- ---- --- --- id assignment userid timecreated timemodified numfiles grade comment teacher timemarked mailed ------------------------------ Total Bytes Indexes: mdl_backup_files - To store and recode ids to user and course files ========================================================================= Field Name Type Len Dec ---------- ---- --- --- backup_code file_type path old_id new_id

Mdl Database Schema

Embed Size (px)

Citation preview

Page 1: Mdl Database Schema

1

mdl_assignment – Defines assignments=========================================================================Field Name Type Len Dec---------- ---- --- ---idcoursenamedescriptionformatresubmittypemaxbytestimeduegradetimeodified------------------------------Total Bytes

Indexes:

mdl_assignment_submissions - Info about submitted assignments=========================================================================Field Name Type Len Dec---------- ---- --- ---idassignmentuseridtimecreatedtimemodifiednumfilesgradecommentteachertimemarkedmailed------------------------------Total Bytes

Indexes:

mdl_backup_files - To store and recode ids to user and course files=========================================================================Field Name Type Len Dec---------- ---- --- ---backup_codefile_typepathold_idnew_id

------------------------------Total Bytes

Indexes:

mdl_backup_ids - To store and convert ids in backup/restore=========================================================================Field Name Type Len Dec---------- ---- --- ---backup_code

Page 2: Mdl Database Schema

2

table_nameold_idnew_idinfo------------------------------Total Bytes

Indexes:

mdl_chat - Each of these is a chat room=========================================================================Field Name Type Len Dec---------- ---- --- ---idcoursenameintrokeepdaysstudentlogschattimescheduletimemodified------------------------------Total Bytes

Indexes:

mdl_chat_messages - Stores all the actual chat messages=========================================================================Field Name Type Len Dec---------- ---- --- ---idchatiduseridsystemmessagetimestamp------------------------------Total Bytes

Indexes:

mdl_chat_users - Keeps track of which users are in which chatrooms=========================================================================Field Name Type Len Dec---------- ---- --- ---idchatiduseridversionipfirstpinglastpinglastmessagepingsid------------------------------Total Bytes

Indexes:

Page 3: Mdl Database Schema

3

mdl_choice - Available choices are stored here=========================================================================Field Name Type Len Dec---------- ---- --- ---idcoursetextformatanswer1answer2answer3answer4answer5answer6publishtimemodified------------------------------Total Bytes

Indexes:

mdl_choice_answers=========================================================================Field Name Type Len Dec---------- ---- --- ---idchoiceuseridanswertimemodified------------------------------Total Bytes

Indexes:id Primary

mdl_config - Moodle configuration variables=========================================================================Field Name Type Len Dec---------- ---- --- ---idnamevalue------------------------------Total Bytes

Indexes:name Primary

mdl_course - Course information=========================================================================Field Name Type Len Dec---------- ---- --- ---idcategorysortorderpasswordfullnameshortname

Page 4: Mdl Database Schema

4

summaryformatshowgradesmodinfonewsitemsteacherteachersstudentstudentsgueststartdatenumsectionsshowrecentmarkervisibletimecreatedtimemodified------------------------------Total Bytes

Indexes:category Primary

mdl_course_category - Course categories=========================================================================Field Name Type Len Dec---------- ---- --- ---idnamedescriptionparentsortordercoursecountvisibletimemodified------------------------------Total Bytes

Indexes:id Primary

mdl_course_display - Stores info about how to display the course=========================================================================Field Name Type Len Dec---------- ---- --- ---idcourseuseriddisplay------------------------------Total Bytes

Indexes:id Primary

mdl_course_modules - Stores info about active course modules=========================================================================Field Name Type Len Dec---------- ---- --- ---id

Page 5: Mdl Database Schema

5

coursemoduleinstancesectionaddeddeletedscorevisible------------------------------Total Bytes

Indexes:id Primary

mdl_course_sections - Stores info about individual course sections=========================================================================Field Name Type Len Dec---------- ---- --- ---idcoursesectionsummarysequencevisible------------------------------Total Bytes

Indexes:

mdl_forum - Forums contain and structure discussion=========================================================================Field Name Type Len Dec---------- ---- --- ---idcoursetypenameintroopenassessedassesstimefinishscaleforcesubscribetimemodified------------------------------Total Bytes

Indexes:id Primary

mdl_forum_discussions - Forums are composed of discussions=========================================================================Field Name Type Len Dec---------- ---- --- ---idcourseforumnamefirstpostassessed

Page 6: Mdl Database Schema

6

timemodified------------------------------Total Bytes

Indexes:

mdl_forum_posts - All posts are stored in this table=========================================================================Field Name Type Len Dec---------- ---- --- ---iddiscussionparentuseridcreatedmodifiedmailedsubjectmessageformatattachmenttotalscore------------------------------Total Bytes

Indexes:

mdl_forum_ratings - Contains user ratings for individual posts=========================================================================Field Name Type Len Dec---------- ---- --- ---iduseridposttimerating------------------------------Total Bytes

Indexes:

mdl_forum_subscriptions - Keeps track of who is subscribed to what forum=========================================================================Field Name Type Len Dec---------- ---- --- ---iduseridforum------------------------------Total Bytes

Indexes:id Primary

mdl_journal - Stores info about user journals=========================================================================Field Name Type Len Dec---------- ---- --- ---id

Page 7: Mdl Database Schema

7

coursenameintrodaysassessedtimemodified------------------------------Total Bytes

Indexes:

mdl_journal_entries - All the journal entries of all people=========================================================================Field Name Type Len Dec---------- ---- --- ---idjournaluseridmodifiedtextformatratingcommentteachertimemarkedmailed------------------------------Total Bytes

Indexes:

mdl_log - Every action is logged as far as possible=========================================================================Field Name Type Len Dec---------- ---- --- ---idtimeuseridipcoursemoduleactionurlinfo------------------------------Total Bytes

Indexes:

mdl_log_display - For a particular module/action, specifies a moodle table/file=========================================================================Field Name Type Len Dec---------- ---- --- ---moduleactionmtablefield------------------------------Total Bytes

Page 8: Mdl Database Schema

8

Indexes:

mdl_modules - Stores info about each module loaded into moodle=========================================================================Field Name Type Len Dec---------- ---- --- ---idnameversioncronlastcronsearchvisible------------------------------Total Bytes

Indexes:

mdl_quiz - Main information about each quiz=========================================================================Field Name Type Len Dec---------- ---- --- ---id Quiz id - unique number quiz attemptedcourse Course the quiz is forname Name of quizintro Message to user displayed under nametimeopen Time quiz is first available to usertimeclose Time quiz closesattempts Number of attempts allowedattemptonlast Attempt builds on last: yes/nofeedback Display feedback upon completion: yes/nocorrectanswers Show correct answers in feedback: yes/nogrademethod Grading method: i.e. highest, averagereview Allow users to review their answers:

yes/noshuffleanswers Shuffle answers so order is unique to

each user: yes/noquestionssumgradesgradetimecreated Time quiz was createdtimemodified Time quiz was last modified------------------------------Total Bytes

Indexes:

mdl_quiz_answers - Answers with a fractional grade (0-1) and feedback=========================================================================Field Name Type Len Dec---------- ---- --- ---id Quiz id - unique number quiz attemptedquestion Question idanswer Correct answerfraction How right the answer is (0-1)feedback Feedback to display on grade report------------------------------Total Bytes

Indexes:

Page 9: Mdl Database Schema

9

mdl_quiz_attempts - Stores various attempts on a quiz=========================================================================Field Name Type Len Dec---------- ---- --- ---id INT 10 Quiz id - unique number quiz attemptedquiz Quiz numberuserid INT 10 User id of studentsumgrades Number of questions answered correctlytimestart INT 10 Time quiz startedtimefinish INT 10 Time quiz finishedtimemodified INT 10 Most recent time quiz grade modified------------------------------Total Bytes

Indexes:

mdl_quiz_categories - Categories are for grouping questions=========================================================================Field Name Type Len Dec---------- ---- --- ---idcoursenameinfopublishstamp------------------------------Total Bytes

Indexes:

mdl_quiz_grades - Final quiz grade (may be best of several attempts)=========================================================================Field Name Type Len Dec---------- ---- --- ---id Unique number quiz attemptedquiz Quiz numberuserid User id of studentgrade Final quiz grade displayed as a

percentagetimemodified Most recent time quiz grade modified------------------------------Total Bytes

Indexes:

mdl_quiz_match - Defines fixed matching questions=========================================================================Field Name Type Len Dec---------- ---- --- ---idquestionsubquestions------------------------------Total Bytes

Indexes:question Primary

Page 10: Mdl Database Schema

10

mdl_quiz_match_sub - Defines subquestions that make up a matching question=========================================================================Field Name Type Len Dec---------- ---- --- ---id Quiz id numberquestionquestiontext Text of question as it appears to

studentanswertext Corresponding text of answer as it

appears to student------------------------------Total Bytes

Indexes:question Primary

mdl_quiz_multianswers - Options for multianswer questions=========================================================================Field Name Type Len Dec---------- ---- --- ---id Quiz id numberquestionanswerspositionkeyanswertypenorm------------------------------Total Bytes

Indexes:question Primary

mdl_quiz_multichoice - Options for multiple choice questions=========================================================================Field Name Type Len Dec---------- ---- --- ---idquestionlayoutanswerssingle------------------------------Total Bytes

Indexes:question Primary

mdl_quiz_numerical - Options for numerical questions=========================================================================Field Name Type Len Dec---------- ---- --- ---idquestionanswerminmax------------------------------Total Bytes

Page 11: Mdl Database Schema

11

Indexes:answer Primary

mdl_quiz_question_grades - The grade for a question in a quiz=========================================================================Field Name Type Len Dec---------- ---- --- ---idquizquestiongrade------------------------------Total Bytes

Indexes:

mdl_quiz_questions - The quiz questions themselves=========================================================================Field Name Type Len Dec---------- ---- --- ---idcategorynamequestiontextimagedefaultgradeqtypestampversion------------------------------Total Bytes

Indexes:

mdl_quiz_randomsamatch - Info about random short-answer matching questions=========================================================================Field Name Type Len Dec---------- ---- --- ---idquestionchoose

------------------------------Total Bytes

Indexes:question Primary

mdl_quiz_responses - Stores user responses to a quiz, and percentage grades=========================================================================Field Name Type Len Dec---------- ---- --- ---idattemptquestionanswergrade------------------------------

Page 12: Mdl Database Schema

12

Total Bytes

Indexes:

mdl_quiz_shortanswer - Options for short answer questions=========================================================================Field Name Type Len Dec---------- ---- --- ---idquestionanswersusecase------------------------------Total Bytes

Indexes:question Primary

mdl_quiz_truefalse - Options for true/false questions=========================================================================Field Name Type Len Dec---------- ---- --- ---idquestiontrueanswerfalseanswer------------------------------Total Bytes

Indexes:question Primary

mdl_resource=========================================================================Field Name Type Len Dec---------- ---- --- ---idcoursenametypereferencesummaryalltexttimemodified------------------------------Total Bytes

Indexes:id Primary

mdl_scale - Defines grading scales=========================================================================Field Name Type Len Dec---------- ---- --- ---id Grade scale idcourseid Course id numberuserid User id numbernamescale

Page 13: Mdl Database Schema

13

description Description of the rgade scaletimemodified Most recent time grade scale modified------------------------------Total Bytes

Indexes:

mdl_survey - Contains data for all surveys=========================================================================Field Name Type Len Dec---------- ---- --- ---idcoursetemplatedaystimecreatedtimemodifiednameintroquestions------------------------------Total Bytes

Indexes:

mdl_survey_analysis=========================================================================Field Name Type Len Dec---------- ---- --- ---idsurveyuseridnotes------------------------------Total Bytes

Indexes:id Primary

mdl_survey_answers - Holds each user’s answers to the survey=========================================================================Field Name Type Len Dec---------- ---- --- ---iduseridsurveyquestiontimeanswer1answer2------------------------------Total Bytes

Indexes:id Primary

mdl_survey_questions - Holds questions for each survey=========================================================================

Page 14: Mdl Database Schema

14

Field Name Type Len Dec---------- ---- --- ---idtextshorttextmultiintrotypeoptions------------------------------Total Bytes

Indexes:

mdl_user - Holds user information for for each person=========================================================================Field Name Type Len Dec---------- ---- --- ---id User id numberconfirmed Confirmed enrollment via e-mail: 1/0deleted Deleted user: 1/0username Usernamepassword Encrypted passwordidnumberfirstname User’s first namelastname User’s last nameemail User’s e-mail addressicq User’s icq chat namephone1 User’s primary phone numberphone2 User’s secondary phone numberinstitutiondepartmentaddress User’s street adresscity User’s citycountry User’s countrylang Language preferences chosen by usertimezone Timezone user is located in: used for

time updates and quiz records/logsfirstaccess Date and time user first accessed online

accountlastaccess Last time the user was logged incurrentlogin Time user currently logged inlastIP Location of most recent log insecret Answer to user’s secret question in case

of lost paswordpicture Location/filename of user’s pictureurldescription Descripton of user, entered by user upon

account activationmailformat HTML or plaintext: 1/0maildisplayhtmleditor HTML commands valid in user text fields:

1/0autosubscribe Automatically subscribe user to forums

visited: 1/0timemodified Most recent time user recor modified------------------------------Total Bytes

Indexes:id Primary

Page 15: Mdl Database Schema

15

mdl_user_admins - One record per administrative user=========================================================================Field Name Type Len Dec---------- ---- --- ---iduserid User id number for administrator------------------------------Total Bytes

Indexes:id Primary

mdl_user_coursecreators - One record per course creator=========================================================================Field Name Type Len Dec---------- ---- --- ---iduserid User id number for course creator------------------------------Total Bytes

Indexes:id Primary

mdl_user_students - Holds student information=========================================================================Field Name Type Len Dec---------- ---- --- ---iduserid Student id numbercourse Course student enrolled intimestarttimeendtime------------------------------Total Bytes

Indexes:id Primary

mdl_user_teachers - One record per teacher per course=========================================================================Field Name Type Len Dec---------- ---- --- ---iduserid User id numbercourse Course user ‘teaches’authorityroleeditalltimemodified Most recent time teacher record modified------------------------------Total Bytes

Indexes:

mdl_workshop - Defines workshop=========================================================================

Page 16: Mdl Database Schema

16

Field Name Type Len Dec---------- ---- --- ---idcoursenamedescriptionnelementsphaseformatgradingstrategyresubmitagreeassessmentshidegradesanonymousincludeselfmaxbytesdeadlinegradentassessmentsnsassessmentstimemodified------------------------------Total Bytes

Indexes:

mdl_workshop_assessments - Info about assessments by teacher and students=========================================================================Field Name Type Len Dec---------- ---- --- ---idworkshopidsubmissioniduseridtimecreatedtimegradedtimeagreedgradegradinggrademailedgeneralcommentteachercomment------------------------------Total Bytes

Indexes:

mdl_workshop_comments - Defines comments=========================================================================Field Name Type Len Dec---------- ---- --- ---idworkshopidassessmentiduseridtimecreatedmailedcomments------------------------------Total Bytes

Page 17: Mdl Database Schema

17

Indexes:

mdl_workshop_elements - Info about marking scheme of assignments=========================================================================Field Name Type Len Dec---------- ---- --- ---idworkshopidelementnodescriptionscalemaxscoreweight------------------------------Total Bytes

Indexes:

mdl_workshop_grades - Info about individual grades given to each element=========================================================================Field Name Type Len Dec---------- ---- --- ---idworkshopidassessmentidelementnofeedbackgrade------------------------------Total Bytes

Indexes:

mdl_workshop_rubrics - Info about the rubrics marking scheme=========================================================================Field Name Type Len Dec---------- ---- --- ---idworkshopidelementnorubricnodescription------------------------------Total Bytes

Indexes:

mdl_workshop_submissions - Info about submitted work from teacher and students=========================================================================Field Name Type Len Dec---------- ---- --- ---idworkshopiduseridtitletimecreatedmailedteachergradepeergrade

Page 18: Mdl Database Schema

18

biasgradereliabilitygradegradinggradefinalgrade------------------------------Total Bytes

Indexes:title Primary