From 4674fb02746a587819fff7e39447ba56c0eca40a Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 30 Apr 2015 09:38:02 -0300 Subject: [PATCH] Update models to reflect moodle upgrade to 2.8 --- sigi/apps/mdl/base_models.py | 1446 +++++++++++++++++++++++++++------- sigi/apps/mdl/models.py | 17 +- 2 files changed, 1192 insertions(+), 271 deletions(-) diff --git a/sigi/apps/mdl/base_models.py b/sigi/apps/mdl/base_models.py index fe32390..616182b 100644 --- a/sigi/apps/mdl/base_models.py +++ b/sigi/apps/mdl/base_models.py @@ -2,15 +2,16 @@ # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True -# * Remove `managed = False` lines if you wish to allow Django to create and delete the table +# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table # Feel free to rename the models, but don't rename db_table values or field names. # -# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [appname]' +# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [app_label]' # into your database. from __future__ import unicode_literals from django.db import models + class AdodbLogsql(models.Model): id = models.BigIntegerField(primary_key=True) created = models.DateTimeField() @@ -19,10 +20,12 @@ class AdodbLogsql(models.Model): params = models.TextField(blank=True) tracer = models.TextField(blank=True) timer = models.DecimalField(max_digits=16, decimal_places=6) + class Meta: managed = False db_table = 'adodb_logsql' + class BackupRoleAssignments(models.Model): id = models.BigIntegerField() roleid = models.BigIntegerField() @@ -35,32 +38,40 @@ class BackupRoleAssignments(models.Model): modifierid = models.BigIntegerField() enrol = models.CharField(max_length=20) sortorder = models.BigIntegerField() + class Meta: managed = False db_table = 'backup_role_assignments' + class BkpLista(models.Model): id = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'bkp_lista' + class IbgeMunicipio(models.Model): codigo_ibge = models.IntegerField() nome = models.CharField(max_length=50) uf_id = models.IntegerField() + class Meta: managed = False db_table = 'ibge_municipio' + class IbgeUnidadefederativa(models.Model): codigo_ibge = models.IntegerField() nome = models.CharField(max_length=25) sigla = models.CharField(max_length=2) + class Meta: managed = False db_table = 'ibge_unidadefederativa' + class MdlAssign(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -86,10 +97,15 @@ class MdlAssign(models.Model): revealidentities = models.SmallIntegerField() attemptreopenmethod = models.CharField(max_length=10) maxattempts = models.IntegerField() + markingworkflow = models.SmallIntegerField() + markingallocation = models.SmallIntegerField() + sendstudentnotifications = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_assign' + class MdlAssignGrades(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() @@ -99,10 +115,12 @@ class MdlAssignGrades(models.Model): grader = models.BigIntegerField() grade = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) attemptnumber = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_assign_grades' + class MdlAssignPluginConfig(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() @@ -110,10 +128,12 @@ class MdlAssignPluginConfig(models.Model): subtype = models.CharField(max_length=28) name = models.CharField(max_length=28) value = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_assign_plugin_config' + class MdlAssignSubmission(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() @@ -123,10 +143,13 @@ class MdlAssignSubmission(models.Model): status = models.CharField(max_length=10, blank=True) groupid = models.BigIntegerField() attemptnumber = models.BigIntegerField() + latest = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_assign_submission' + class MdlAssignUserFlags(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -134,37 +157,93 @@ class MdlAssignUserFlags(models.Model): locked = models.BigIntegerField() mailed = models.SmallIntegerField() extensionduedate = models.BigIntegerField() + workflowstate = models.CharField(max_length=20, blank=True) + allocatedmarker = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_assign_user_flags' + class MdlAssignUserMapping(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() userid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_assign_user_mapping' + class MdlAssignfeedbackComments(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() grade = models.BigIntegerField() commenttext = models.TextField(blank=True) commentformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_assignfeedback_comments' + +class MdlAssignfeedbackEditpdfAnnot(models.Model): + id = models.BigIntegerField(primary_key=True) + gradeid = models.BigIntegerField() + pageno = models.BigIntegerField() + x = models.BigIntegerField(blank=True, null=True) + y = models.BigIntegerField(blank=True, null=True) + endx = models.BigIntegerField(blank=True, null=True) + endy = models.BigIntegerField(blank=True, null=True) + path = models.TextField(blank=True) + type = models.CharField(max_length=10, blank=True) + colour = models.CharField(max_length=10, blank=True) + draft = models.SmallIntegerField() + + class Meta: + managed = False + db_table = 'mdl_assignfeedback_editpdf_annot' + + +class MdlAssignfeedbackEditpdfCmnt(models.Model): + id = models.BigIntegerField(primary_key=True) + gradeid = models.BigIntegerField() + x = models.BigIntegerField(blank=True, null=True) + y = models.BigIntegerField(blank=True, null=True) + width = models.BigIntegerField(blank=True, null=True) + rawtext = models.TextField(blank=True) + pageno = models.BigIntegerField() + colour = models.CharField(max_length=10, blank=True) + draft = models.SmallIntegerField() + + class Meta: + managed = False + db_table = 'mdl_assignfeedback_editpdf_cmnt' + + +class MdlAssignfeedbackEditpdfQuick(models.Model): + id = models.BigIntegerField(primary_key=True) + userid = models.BigIntegerField() + rawtext = models.TextField() + width = models.BigIntegerField() + colour = models.CharField(max_length=10, blank=True) + + class Meta: + managed = False + db_table = 'mdl_assignfeedback_editpdf_quick' + + class MdlAssignfeedbackFile(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() grade = models.BigIntegerField() numfiles = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_assignfeedback_file' + class MdlAssignment(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -185,10 +264,12 @@ class MdlAssignment(models.Model): timeavailable = models.BigIntegerField() grade = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_assignment' + class MdlAssignmentSubmissions(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() @@ -204,38 +285,59 @@ class MdlAssignmentSubmissions(models.Model): teacher = models.BigIntegerField() timemarked = models.BigIntegerField() mailed = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_assignment_submissions' + +class MdlAssignmentUpgrade(models.Model): + id = models.BigIntegerField(primary_key=True) + oldcmid = models.BigIntegerField() + oldinstance = models.BigIntegerField() + newcmid = models.BigIntegerField() + newinstance = models.BigIntegerField() + timecreated = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_assignment_upgrade' + + class MdlAssignsubmissionFile(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() submission = models.BigIntegerField() numfiles = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_assignsubmission_file' + class MdlAssignsubmissionOnlinetext(models.Model): id = models.BigIntegerField(primary_key=True) assignment = models.BigIntegerField() submission = models.BigIntegerField() onlinetext = models.TextField(blank=True) onlineformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_assignsubmission_onlinetext' + class MdlAttendance(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() name = models.CharField(max_length=255, blank=True) grade = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_attendance' + class MdlAttendanceLog(models.Model): id = models.BigIntegerField(primary_key=True) sessionid = models.BigIntegerField() @@ -245,10 +347,12 @@ class MdlAttendanceLog(models.Model): timetaken = models.BigIntegerField() takenby = models.BigIntegerField() remarks = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_attendance_log' + class MdlAttendanceSessions(models.Model): id = models.BigIntegerField(primary_key=True) attendanceid = models.BigIntegerField() @@ -260,10 +364,13 @@ class MdlAttendanceSessions(models.Model): timemodified = models.BigIntegerField(blank=True, null=True) description = models.TextField() descriptionformat = models.SmallIntegerField() + studentscanmark = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_attendance_sessions' + class MdlAttendanceStatuses(models.Model): id = models.BigIntegerField(primary_key=True) attendanceid = models.BigIntegerField() @@ -272,10 +379,12 @@ class MdlAttendanceStatuses(models.Model): grade = models.SmallIntegerField() visible = models.SmallIntegerField() deleted = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_attendance_statuses' + class MdlBackupControllers(models.Model): id = models.BigIntegerField(primary_key=True) backupid = models.CharField(unique=True, max_length=32) @@ -293,10 +402,12 @@ class MdlBackupControllers(models.Model): timemodified = models.BigIntegerField() controller = models.TextField() operation = models.CharField(max_length=20) + class Meta: managed = False db_table = 'mdl_backup_controllers' + class MdlBackupCourses(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField(unique=True) @@ -304,51 +415,28 @@ class MdlBackupCourses(models.Model): lastendtime = models.BigIntegerField() laststatus = models.CharField(max_length=1) nextstarttime = models.BigIntegerField() - class Meta: - managed = False - db_table = 'mdl_backup_courses' -class MdlBackupFilesTemplate(models.Model): - id = models.BigIntegerField(primary_key=True) - backupid = models.CharField(max_length=32) - contextid = models.BigIntegerField() - component = models.CharField(max_length=100) - filearea = models.CharField(max_length=50) - itemid = models.BigIntegerField() - info = models.TextField(blank=True) - newcontextid = models.BigIntegerField(blank=True, null=True) - newitemid = models.BigIntegerField(blank=True, null=True) class Meta: managed = False - db_table = 'mdl_backup_files_template' + db_table = 'mdl_backup_courses' -class MdlBackupIdsTemplate(models.Model): - id = models.BigIntegerField(primary_key=True) - backupid = models.CharField(max_length=32) - itemname = models.CharField(max_length=160) - itemid = models.BigIntegerField() - parentitemid = models.BigIntegerField(blank=True, null=True) - newitemid = models.BigIntegerField() - info = models.TextField(blank=True) - class Meta: - managed = False - db_table = 'mdl_backup_ids_template' class MdlBackupLogs(models.Model): id = models.BigIntegerField(primary_key=True) backupid = models.CharField(max_length=32) loglevel = models.SmallIntegerField() - message = models.CharField(max_length=255) + message = models.TextField() timecreated = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_backup_logs' + class MdlBadge(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) description = models.TextField(blank=True) - image = models.BigIntegerField() timecreated = models.BigIntegerField() timemodified = models.BigIntegerField() usercreated = models.BigIntegerField() @@ -366,10 +454,12 @@ class MdlBadge(models.Model): notification = models.SmallIntegerField() status = models.SmallIntegerField() nextcron = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_badge' + class MdlBadgeBackpack(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -378,46 +468,56 @@ class MdlBadgeBackpack(models.Model): backpackuid = models.BigIntegerField() autosync = models.SmallIntegerField() password = models.CharField(max_length=50, blank=True) + class Meta: managed = False db_table = 'mdl_badge_backpack' + class MdlBadgeCriteria(models.Model): id = models.BigIntegerField(primary_key=True) badgeid = models.BigIntegerField() criteriatype = models.BigIntegerField(blank=True, null=True) method = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_badge_criteria' + class MdlBadgeCriteriaMet(models.Model): id = models.BigIntegerField(primary_key=True) issuedid = models.BigIntegerField(blank=True, null=True) critid = models.BigIntegerField() userid = models.BigIntegerField() datemet = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_badge_criteria_met' + class MdlBadgeCriteriaParam(models.Model): id = models.BigIntegerField(primary_key=True) critid = models.BigIntegerField() name = models.CharField(max_length=255) value = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_badge_criteria_param' + class MdlBadgeExternal(models.Model): id = models.BigIntegerField(primary_key=True) backpackid = models.BigIntegerField() collectionid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_badge_external' + class MdlBadgeIssued(models.Model): id = models.BigIntegerField(primary_key=True) badgeid = models.BigIntegerField() @@ -427,10 +527,12 @@ class MdlBadgeIssued(models.Model): dateexpire = models.BigIntegerField(blank=True, null=True) visible = models.SmallIntegerField() issuernotified = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_badge_issued' + class MdlBadgeManualAward(models.Model): id = models.BigIntegerField(primary_key=True) badgeid = models.BigIntegerField() @@ -438,21 +540,24 @@ class MdlBadgeManualAward(models.Model): issuerid = models.BigIntegerField() issuerrole = models.BigIntegerField() datemet = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_badge_manual_award' + class MdlBlock(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(unique=True, max_length=40) - version = models.BigIntegerField() cron = models.BigIntegerField() lastcron = models.BigIntegerField() visible = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_block' + class MdlBlockCommunity(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -460,10 +565,12 @@ class MdlBlockCommunity(models.Model): coursedescription = models.TextField(blank=True) courseurl = models.CharField(max_length=255) imageurl = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_block_community' + class MdlBlockConfigurableReports(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -476,10 +583,16 @@ class MdlBlockConfigurableReports(models.Model): components = models.TextField(blank=True) export = models.CharField(max_length=255, blank=True) jsordering = models.SmallIntegerField(blank=True, null=True) + global_field = models.SmallIntegerField(db_column='global', blank=True, null=True) # Field renamed because it was a Python reserved word. + lastexecutiontime = models.BigIntegerField(blank=True, null=True) + cron = models.BigIntegerField(blank=True, null=True) + remote = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_block_configurable_reports' + class MdlBlockInstances(models.Model): id = models.BigIntegerField(primary_key=True) pagetypepattern = models.CharField(max_length=64) @@ -490,10 +603,12 @@ class MdlBlockInstances(models.Model): parentcontextid = models.BigIntegerField() showinsubcontexts = models.SmallIntegerField() subpagepattern = models.CharField(max_length=16, blank=True) + class Meta: managed = False db_table = 'mdl_block_instances' + class MdlBlockPositions(models.Model): id = models.BigIntegerField(primary_key=True) blockinstanceid = models.BigIntegerField() @@ -503,10 +618,26 @@ class MdlBlockPositions(models.Model): visible = models.SmallIntegerField() region = models.CharField(max_length=16) weight = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_block_positions' + +class MdlBlockRecentActivity(models.Model): + id = models.BigIntegerField(primary_key=True) + courseid = models.BigIntegerField() + cmid = models.BigIntegerField() + timecreated = models.BigIntegerField() + userid = models.BigIntegerField() + action = models.SmallIntegerField() + modname = models.CharField(max_length=20, blank=True) + + class Meta: + managed = False + db_table = 'mdl_block_recent_activity' + + class MdlBlockRssClient(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -515,18 +646,22 @@ class MdlBlockRssClient(models.Model): description = models.TextField() shared = models.SmallIntegerField() url = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_block_rss_client' + class MdlBlogAssociation(models.Model): id = models.BigIntegerField(primary_key=True) contextid = models.BigIntegerField() blogid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_blog_association' + class MdlBlogExternal(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -537,10 +672,12 @@ class MdlBlogExternal(models.Model): failedlastsync = models.SmallIntegerField() timemodified = models.BigIntegerField(blank=True, null=True) timefetched = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_blog_external' + class MdlBook(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -552,10 +689,12 @@ class MdlBook(models.Model): timemodified = models.BigIntegerField() introformat = models.SmallIntegerField() revision = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_book' + class MdlBookChapters(models.Model): id = models.BigIntegerField(primary_key=True) bookid = models.BigIntegerField() @@ -568,10 +707,12 @@ class MdlBookChapters(models.Model): timemodified = models.BigIntegerField() importsrc = models.CharField(max_length=255) contentformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_book_chapters' + class MdlCacheFilters(models.Model): id = models.BigIntegerField(primary_key=True) filter = models.CharField(max_length=32) @@ -579,10 +720,12 @@ class MdlCacheFilters(models.Model): md5key = models.CharField(max_length=32) rawtext = models.TextField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_cache_filters' + class MdlCacheFlags(models.Model): id = models.BigIntegerField(primary_key=True) flagtype = models.CharField(max_length=255) @@ -590,18 +733,11 @@ class MdlCacheFlags(models.Model): timemodified = models.BigIntegerField() value = models.TextField() expiry = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_cache_flags' -class MdlCacheText(models.Model): - id = models.BigIntegerField(primary_key=True) - md5key = models.CharField(max_length=32) - formattedtext = models.TextField() - timemodified = models.BigIntegerField() - class Meta: - managed = False - db_table = 'mdl_cache_text' class MdlCapabilities(models.Model): id = models.BigIntegerField(primary_key=True) @@ -610,10 +746,12 @@ class MdlCapabilities(models.Model): contextlevel = models.BigIntegerField() component = models.CharField(max_length=100) riskbitmask = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_capabilities' + class MdlCertificate(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -644,20 +782,24 @@ class MdlCertificate(models.Model): orientation = models.CharField(max_length=10) requiredtime = models.BigIntegerField() timecreated = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_certificate' + class MdlCertificateIssues(models.Model): id = models.BigIntegerField(primary_key=True) certificateid = models.BigIntegerField() userid = models.BigIntegerField() timecreated = models.BigIntegerField() code = models.CharField(max_length=40, blank=True) + class Meta: managed = False db_table = 'mdl_certificate_issues' + class MdlChat(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -669,10 +811,12 @@ class MdlChat(models.Model): schedule = models.SmallIntegerField() timemodified = models.BigIntegerField() introformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_chat' + class MdlChatMessages(models.Model): id = models.BigIntegerField(primary_key=True) chatid = models.BigIntegerField() @@ -681,10 +825,12 @@ class MdlChatMessages(models.Model): system = models.SmallIntegerField() message = models.TextField() timestamp = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_chat_messages' + class MdlChatMessagesCurrent(models.Model): id = models.BigIntegerField(primary_key=True) chatid = models.BigIntegerField() @@ -693,10 +839,12 @@ class MdlChatMessagesCurrent(models.Model): system = models.SmallIntegerField() message = models.TextField() timestamp = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_chat_messages_current' + class MdlChatUsers(models.Model): id = models.BigIntegerField(primary_key=True) chatid = models.BigIntegerField() @@ -710,10 +858,12 @@ class MdlChatUsers(models.Model): sid = models.CharField(max_length=32) course = models.BigIntegerField() lang = models.CharField(max_length=30) + class Meta: managed = False db_table = 'mdl_chat_users' + class MdlChoice(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -730,30 +880,37 @@ class MdlChoice(models.Model): timeclose = models.BigIntegerField() timemodified = models.BigIntegerField() completionsubmit = models.SmallIntegerField() + allowmultiple = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_choice' + class MdlChoiceAnswers(models.Model): id = models.BigIntegerField(primary_key=True) choiceid = models.BigIntegerField() userid = models.BigIntegerField() optionid = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_choice_answers' + class MdlChoiceOptions(models.Model): id = models.BigIntegerField(primary_key=True) choiceid = models.BigIntegerField() text = models.TextField(blank=True) maxanswers = models.BigIntegerField(blank=True, null=True) timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_choice_options' + class MdlCohort(models.Model): id = models.BigIntegerField(primary_key=True) contextid = models.BigIntegerField() @@ -764,19 +921,24 @@ class MdlCohort(models.Model): component = models.CharField(max_length=100) timecreated = models.BigIntegerField() timemodified = models.BigIntegerField() + visible = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_cohort' + class MdlCohortMembers(models.Model): id = models.BigIntegerField(primary_key=True) cohortid = models.BigIntegerField() userid = models.BigIntegerField() timeadded = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_cohort_members' + class MdlComments(models.Model): id = models.BigIntegerField(primary_key=True) contextid = models.BigIntegerField() @@ -786,18 +948,22 @@ class MdlComments(models.Model): format = models.SmallIntegerField() userid = models.BigIntegerField() timecreated = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_comments' + class MdlConfig(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(unique=True, max_length=255) value = models.TextField() + class Meta: managed = False db_table = 'mdl_config' + class MdlConfigLog(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -806,37 +972,45 @@ class MdlConfigLog(models.Model): name = models.CharField(max_length=100) value = models.TextField(blank=True) oldvalue = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_config_log' + class MdlConfigPlugins(models.Model): id = models.BigIntegerField(primary_key=True) plugin = models.CharField(max_length=100) name = models.CharField(max_length=100) value = models.TextField() + class Meta: managed = False db_table = 'mdl_config_plugins' + class MdlContext(models.Model): id = models.BigIntegerField(primary_key=True) contextlevel = models.BigIntegerField() instanceid = models.BigIntegerField() path = models.CharField(max_length=255, blank=True) depth = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_context' + class MdlContextTemp(models.Model): id = models.BigIntegerField(primary_key=True) path = models.CharField(max_length=255) depth = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_context_temp' + class MdlCourse(models.Model): id = models.BigIntegerField(primary_key=True) category = models.BigIntegerField() @@ -847,7 +1021,6 @@ class MdlCourse(models.Model): summary = models.TextField(blank=True) format = models.CharField(max_length=21) showgrades = models.SmallIntegerField() - modinfo = models.TextField(blank=True) newsitems = models.IntegerField() startdate = models.BigIntegerField() marker = models.BigIntegerField() @@ -868,11 +1041,14 @@ class MdlCourse(models.Model): summaryformat = models.SmallIntegerField() completionnotify = models.SmallIntegerField() visibleold = models.SmallIntegerField() - sectioncache = models.TextField(blank=True) + calendartype = models.CharField(max_length=30) + cacherev = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_course' + class MdlCourseCategories(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) @@ -888,20 +1064,24 @@ class MdlCourseCategories(models.Model): descriptionformat = models.SmallIntegerField() visibleold = models.SmallIntegerField() idnumber = models.CharField(max_length=100, blank=True) + class Meta: managed = False db_table = 'mdl_course_categories' + class MdlCourseCompletionAggrMethd(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() criteriatype = models.BigIntegerField(blank=True, null=True) method = models.SmallIntegerField() value = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) + class Meta: managed = False db_table = 'mdl_course_completion_aggr_methd' + class MdlCourseCompletionCritCompl(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -910,10 +1090,12 @@ class MdlCourseCompletionCritCompl(models.Model): gradefinal = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) unenroled = models.BigIntegerField(blank=True, null=True) timecompleted = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_course_completion_crit_compl' + class MdlCourseCompletionCriteria(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -925,10 +1107,12 @@ class MdlCourseCompletionCriteria(models.Model): timeend = models.BigIntegerField(blank=True, null=True) gradepass = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) role = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_course_completion_criteria' + class MdlCourseCompletions(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -937,10 +1121,12 @@ class MdlCourseCompletions(models.Model): timestarted = models.BigIntegerField() timecompleted = models.BigIntegerField(blank=True, null=True) reaggregate = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_course_completions' + class MdlCourseFormatOptions(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -948,10 +1134,12 @@ class MdlCourseFormatOptions(models.Model): sectionid = models.BigIntegerField() name = models.CharField(max_length=100) value = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_course_format_options' + class MdlCourseModules(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -966,41 +1154,17 @@ class MdlCourseModules(models.Model): groupmode = models.SmallIntegerField() idnumber = models.CharField(max_length=100, blank=True) groupingid = models.BigIntegerField() - groupmembersonly = models.SmallIntegerField() completion = models.SmallIntegerField() completiongradeitemnumber = models.BigIntegerField(blank=True, null=True) completionview = models.SmallIntegerField() completionexpected = models.BigIntegerField() - availablefrom = models.BigIntegerField() - availableuntil = models.BigIntegerField() - showavailability = models.SmallIntegerField() showdescription = models.SmallIntegerField() - class Meta: - managed = False - db_table = 'mdl_course_modules' + availability = models.TextField(blank=True) -class MdlCourseModulesAvailFields(models.Model): - id = models.BigIntegerField(primary_key=True) - coursemoduleid = models.BigIntegerField() - userfield = models.CharField(max_length=50, blank=True) - customfieldid = models.BigIntegerField(blank=True, null=True) - operator = models.CharField(max_length=20) - value = models.CharField(max_length=255) class Meta: managed = False - db_table = 'mdl_course_modules_avail_fields' + db_table = 'mdl_course_modules' -class MdlCourseModulesAvailability(models.Model): - id = models.BigIntegerField(primary_key=True) - coursemoduleid = models.BigIntegerField() - sourcecmid = models.BigIntegerField(blank=True, null=True) - requiredcompletion = models.SmallIntegerField(blank=True, null=True) - gradeitemid = models.BigIntegerField(blank=True, null=True) - grademin = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) - grademax = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) - class Meta: - managed = False - db_table = 'mdl_course_modules_availability' class MdlCourseModulesCompletion(models.Model): id = models.BigIntegerField(primary_key=True) @@ -1009,10 +1173,12 @@ class MdlCourseModulesCompletion(models.Model): completionstate = models.SmallIntegerField() viewed = models.SmallIntegerField(blank=True, null=True) timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_course_modules_completion' + class MdlCoursePublished(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -1022,10 +1188,12 @@ class MdlCoursePublished(models.Model): status = models.SmallIntegerField(blank=True, null=True) timechecked = models.BigIntegerField(blank=True, null=True) huburl = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_course_published' + class MdlCourseRequest(models.Model): id = models.BigIntegerField(primary_key=True) fullname = models.CharField(max_length=254) @@ -1036,10 +1204,12 @@ class MdlCourseRequest(models.Model): password = models.CharField(max_length=50) summaryformat = models.SmallIntegerField() category = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_course_request' + class MdlCourseSections(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -1049,36 +1219,12 @@ class MdlCourseSections(models.Model): visible = models.SmallIntegerField() name = models.CharField(max_length=255, blank=True) summaryformat = models.SmallIntegerField() - availablefrom = models.BigIntegerField() - availableuntil = models.BigIntegerField() - showavailability = models.SmallIntegerField() - groupingid = models.BigIntegerField() - class Meta: - managed = False - db_table = 'mdl_course_sections' + availability = models.TextField(blank=True) -class MdlCourseSectionsAvailFields(models.Model): - id = models.BigIntegerField(primary_key=True) - coursesectionid = models.BigIntegerField() - userfield = models.CharField(max_length=50, blank=True) - customfieldid = models.BigIntegerField(blank=True, null=True) - operator = models.CharField(max_length=20) - value = models.CharField(max_length=255) class Meta: managed = False - db_table = 'mdl_course_sections_avail_fields' + db_table = 'mdl_course_sections' -class MdlCourseSectionsAvailability(models.Model): - id = models.BigIntegerField(primary_key=True) - coursesectionid = models.BigIntegerField() - sourcecmid = models.BigIntegerField(blank=True, null=True) - requiredcompletion = models.SmallIntegerField(blank=True, null=True) - gradeitemid = models.BigIntegerField(blank=True, null=True) - grademin = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) - grademax = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) - class Meta: - managed = False - db_table = 'mdl_course_sections_availability' class MdlData(models.Model): id = models.BigIntegerField(primary_key=True) @@ -1114,10 +1260,12 @@ class MdlData(models.Model): introformat = models.SmallIntegerField() assesstimestart = models.BigIntegerField() assesstimefinish = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_data' + class MdlDataContent(models.Model): id = models.BigIntegerField(primary_key=True) fieldid = models.BigIntegerField() @@ -1127,10 +1275,12 @@ class MdlDataContent(models.Model): content2 = models.TextField(blank=True) content3 = models.TextField(blank=True) content4 = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_data_content' + class MdlDataFields(models.Model): id = models.BigIntegerField(primary_key=True) dataid = models.BigIntegerField() @@ -1147,10 +1297,12 @@ class MdlDataFields(models.Model): param8 = models.TextField(blank=True) param9 = models.TextField(blank=True) param10 = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_data_fields' + class MdlDataRecords(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -1159,10 +1311,28 @@ class MdlDataRecords(models.Model): timecreated = models.BigIntegerField() timemodified = models.BigIntegerField() approved = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_data_records' + +class MdlEditorAttoAutosave(models.Model): + id = models.BigIntegerField(primary_key=True) + elementid = models.CharField(max_length=255) + contextid = models.BigIntegerField() + pagehash = models.CharField(max_length=64) + userid = models.BigIntegerField() + drafttext = models.TextField() + draftid = models.BigIntegerField(blank=True, null=True) + pageinstance = models.CharField(max_length=64) + timemodified = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_editor_atto_autosave' + + class MdlEnrol(models.Model): id = models.BigIntegerField(primary_key=True) enrol = models.CharField(max_length=20) @@ -1199,40 +1369,13 @@ class MdlEnrol(models.Model): customchar3 = models.CharField(max_length=1333, blank=True) customtext3 = models.TextField(blank=True) customtext4 = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_enrol' -class MdlEnrolAuthorize(models.Model): - id = models.BigIntegerField(primary_key=True) - paymentmethod = models.CharField(max_length=6) - refundinfo = models.SmallIntegerField() - ccname = models.CharField(max_length=255) - courseid = models.BigIntegerField() - userid = models.BigIntegerField() - status = models.BigIntegerField() - timecreated = models.BigIntegerField() - settletime = models.BigIntegerField() - amount = models.CharField(max_length=10) - currency = models.CharField(max_length=3) - transid = models.BigIntegerField() - instanceid = models.BigIntegerField() - class Meta: - managed = False - db_table = 'mdl_enrol_authorize' -class MdlEnrolAuthorizeRefunds(models.Model): - id = models.BigIntegerField(primary_key=True) - orderid = models.BigIntegerField() - status = models.SmallIntegerField() - amount = models.CharField(max_length=10) - settletime = models.BigIntegerField() - transid = models.BigIntegerField(blank=True, null=True) - class Meta: - managed = False - db_table = 'mdl_enrol_authorize_refunds' - -class MdlEnrolFlatfile(models.Model): +class MdlEnrolFlatfile(models.Model): id = models.BigIntegerField(primary_key=True) action = models.CharField(max_length=30) roleid = models.BigIntegerField() @@ -1241,10 +1384,12 @@ class MdlEnrolFlatfile(models.Model): timestart = models.BigIntegerField() timeend = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_enrol_flatfile' + class MdlEnrolPaypal(models.Model): id = models.BigIntegerField(primary_key=True) business = models.CharField(max_length=255) @@ -1267,10 +1412,12 @@ class MdlEnrolPaypal(models.Model): payment_type = models.CharField(max_length=30) timeupdated = models.BigIntegerField() instanceid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_enrol_paypal' + class MdlEvent(models.Model): id = models.BigIntegerField(primary_key=True) name = models.TextField() @@ -1290,10 +1437,12 @@ class MdlEvent(models.Model): sequence = models.BigIntegerField() timemodified = models.BigIntegerField() subscriptionid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_event' + class MdlEventSubscriptions(models.Model): id = models.BigIntegerField(primary_key=True) url = models.CharField(max_length=255) @@ -1304,10 +1453,12 @@ class MdlEventSubscriptions(models.Model): lastupdated = models.BigIntegerField(blank=True, null=True) name = models.CharField(max_length=255) eventtype = models.CharField(max_length=20) + class Meta: managed = False db_table = 'mdl_event_subscriptions' + class MdlEventsHandlers(models.Model): id = models.BigIntegerField(primary_key=True) eventname = models.CharField(max_length=166) @@ -1317,20 +1468,24 @@ class MdlEventsHandlers(models.Model): schedule = models.CharField(max_length=255, blank=True) status = models.BigIntegerField() internal = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_events_handlers' + class MdlEventsQueue(models.Model): id = models.BigIntegerField(primary_key=True) eventdata = models.TextField() stackdump = models.TextField(blank=True) userid = models.BigIntegerField(blank=True, null=True) timecreated = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_events_queue' + class MdlEventsQueueHandlers(models.Model): id = models.BigIntegerField(primary_key=True) queuedeventid = models.BigIntegerField() @@ -1338,10 +1493,12 @@ class MdlEventsQueueHandlers(models.Model): status = models.BigIntegerField(blank=True, null=True) errormessage = models.TextField(blank=True) timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_events_queue_handlers' + class MdlExternalFunctions(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(unique=True, max_length=200) @@ -1350,10 +1507,12 @@ class MdlExternalFunctions(models.Model): classpath = models.CharField(max_length=255, blank=True) component = models.CharField(max_length=100) capabilities = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_external_functions' + class MdlExternalServices(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(unique=True, max_length=200) @@ -1365,18 +1524,23 @@ class MdlExternalServices(models.Model): timemodified = models.BigIntegerField(blank=True, null=True) shortname = models.CharField(max_length=255, blank=True) downloadfiles = models.SmallIntegerField() + uploadfiles = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_external_services' + class MdlExternalServicesFunctions(models.Model): id = models.BigIntegerField(primary_key=True) externalserviceid = models.BigIntegerField() functionname = models.CharField(max_length=200) + class Meta: managed = False db_table = 'mdl_external_services_functions' + class MdlExternalServicesUsers(models.Model): id = models.BigIntegerField(primary_key=True) externalserviceid = models.BigIntegerField() @@ -1384,10 +1548,12 @@ class MdlExternalServicesUsers(models.Model): iprestriction = models.CharField(max_length=255, blank=True) validuntil = models.BigIntegerField(blank=True, null=True) timecreated = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_external_services_users' + class MdlExternalTokens(models.Model): id = models.BigIntegerField(primary_key=True) token = models.CharField(max_length=128) @@ -1401,10 +1567,12 @@ class MdlExternalTokens(models.Model): validuntil = models.BigIntegerField(blank=True, null=True) timecreated = models.BigIntegerField() lastaccess = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_external_tokens' + class MdlFeedback(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -1423,10 +1591,12 @@ class MdlFeedback(models.Model): timeclose = models.BigIntegerField() timemodified = models.BigIntegerField() completionsubmit = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_feedback' + class MdlFeedbackCompleted(models.Model): id = models.BigIntegerField(primary_key=True) feedback = models.BigIntegerField() @@ -1434,10 +1604,12 @@ class MdlFeedbackCompleted(models.Model): timemodified = models.BigIntegerField() random_response = models.BigIntegerField() anonymous_response = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_feedback_completed' + class MdlFeedbackCompletedtmp(models.Model): id = models.BigIntegerField(primary_key=True) feedback = models.BigIntegerField() @@ -1446,10 +1618,12 @@ class MdlFeedbackCompletedtmp(models.Model): timemodified = models.BigIntegerField() random_response = models.BigIntegerField() anonymous_response = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_feedback_completedtmp' + class MdlFeedbackItem(models.Model): id = models.BigIntegerField(primary_key=True) feedback = models.BigIntegerField() @@ -1464,37 +1638,45 @@ class MdlFeedbackItem(models.Model): dependitem = models.BigIntegerField() dependvalue = models.CharField(max_length=255) options = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_feedback_item' + class MdlFeedbackSitecourseMap(models.Model): id = models.BigIntegerField(primary_key=True) feedbackid = models.BigIntegerField() courseid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_feedback_sitecourse_map' + class MdlFeedbackTemplate(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() ispublic = models.SmallIntegerField() name = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_feedback_template' + class MdlFeedbackTracking(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() feedback = models.BigIntegerField() completed = models.BigIntegerField() tmp_completed = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_feedback_tracking' + class MdlFeedbackValue(models.Model): id = models.BigIntegerField(primary_key=True) course_id = models.BigIntegerField() @@ -1502,10 +1684,12 @@ class MdlFeedbackValue(models.Model): completed = models.BigIntegerField() tmp_completed = models.BigIntegerField() value = models.TextField() + class Meta: managed = False db_table = 'mdl_feedback_value' + class MdlFeedbackValuetmp(models.Model): id = models.BigIntegerField(primary_key=True) course_id = models.BigIntegerField() @@ -1513,10 +1697,12 @@ class MdlFeedbackValuetmp(models.Model): completed = models.BigIntegerField() tmp_completed = models.BigIntegerField() value = models.TextField() + class Meta: managed = False db_table = 'mdl_feedback_valuetmp' + class MdlFiles(models.Model): id = models.BigIntegerField(primary_key=True) contenthash = models.CharField(max_length=40) @@ -1538,43 +1724,48 @@ class MdlFiles(models.Model): timemodified = models.BigIntegerField() sortorder = models.BigIntegerField() referencefileid = models.BigIntegerField(blank=True, null=True) - referencelastsync = models.BigIntegerField(blank=True, null=True) - referencelifetime = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_files' + class MdlFilesReference(models.Model): id = models.BigIntegerField(primary_key=True) repositoryid = models.BigIntegerField() lastsync = models.BigIntegerField(blank=True, null=True) - lifetime = models.BigIntegerField(blank=True, null=True) reference = models.TextField(blank=True) referencehash = models.CharField(max_length=40) + class Meta: managed = False db_table = 'mdl_files_reference' + class MdlFilterActive(models.Model): id = models.BigIntegerField(primary_key=True) filter = models.CharField(max_length=32) contextid = models.BigIntegerField() active = models.SmallIntegerField() sortorder = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_filter_active' + class MdlFilterConfig(models.Model): id = models.BigIntegerField(primary_key=True) filter = models.CharField(max_length=32) contextid = models.BigIntegerField() name = models.CharField(max_length=255) value = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_filter_config' + class MdlFolder(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -1585,10 +1776,12 @@ class MdlFolder(models.Model): timemodified = models.BigIntegerField() display = models.SmallIntegerField() showexpanded = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_folder' + class MdlFormatPage(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -1602,10 +1795,12 @@ class MdlFormatPage(models.Model): sortorder = models.SmallIntegerField(blank=True, null=True) template = models.SmallIntegerField(blank=True, null=True) showbuttons = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_format_page' + class MdlFormatPageItems(models.Model): id = models.BigIntegerField(primary_key=True) pageid = models.BigIntegerField() @@ -1614,10 +1809,12 @@ class MdlFormatPageItems(models.Model): position = models.CharField(max_length=3) sortorder = models.SmallIntegerField() visible = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_format_page_items' + class MdlForum(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -1643,10 +1840,35 @@ class MdlForum(models.Model): maxattachments = models.BigIntegerField() introformat = models.SmallIntegerField() displaywordcount = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_forum' + +class MdlForumDigests(models.Model): + id = models.BigIntegerField(primary_key=True) + userid = models.BigIntegerField() + forum = models.BigIntegerField() + maildigest = models.SmallIntegerField() + + class Meta: + managed = False + db_table = 'mdl_forum_digests' + + +class MdlForumDiscussionSubs(models.Model): + id = models.BigIntegerField(primary_key=True) + forum = models.BigIntegerField() + userid = models.BigIntegerField() + discussion = models.BigIntegerField() + preference = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_forum_discussion_subs' + + class MdlForumDiscussions(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -1660,10 +1882,12 @@ class MdlForumDiscussions(models.Model): usermodified = models.BigIntegerField() timestart = models.BigIntegerField() timeend = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_forum_discussions' + class MdlForumPosts(models.Model): id = models.BigIntegerField(primary_key=True) discussion = models.BigIntegerField() @@ -1679,20 +1903,24 @@ class MdlForumPosts(models.Model): totalscore = models.SmallIntegerField() mailnow = models.BigIntegerField() messagetrust = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_forum_posts' + class MdlForumQueue(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() discussionid = models.BigIntegerField() postid = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_forum_queue' + class MdlForumRead(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -1701,26 +1929,32 @@ class MdlForumRead(models.Model): postid = models.BigIntegerField() firstread = models.BigIntegerField() lastread = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_forum_read' + class MdlForumSubscriptions(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() forum = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_forum_subscriptions' + class MdlForumTrackPrefs(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() forumid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_forum_track_prefs' + class MdlGlossary(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -1750,27 +1984,33 @@ class MdlGlossary(models.Model): introformat = models.SmallIntegerField() completionentries = models.IntegerField() approvaldisplayformat = models.CharField(max_length=50) + class Meta: managed = False db_table = 'mdl_glossary' + class MdlGlossaryAlias(models.Model): id = models.BigIntegerField(primary_key=True) entryid = models.BigIntegerField() alias = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_glossary_alias' + class MdlGlossaryCategories(models.Model): id = models.BigIntegerField(primary_key=True) glossaryid = models.BigIntegerField() name = models.CharField(max_length=255) usedynalink = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_glossary_categories' + class MdlGlossaryEntries(models.Model): id = models.BigIntegerField(primary_key=True) glossaryid = models.BigIntegerField() @@ -1788,18 +2028,22 @@ class MdlGlossaryEntries(models.Model): fullmatch = models.SmallIntegerField() approved = models.SmallIntegerField() definitiontrust = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_glossary_entries' + class MdlGlossaryEntriesCategories(models.Model): id = models.BigIntegerField(primary_key=True) categoryid = models.BigIntegerField() entryid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_glossary_entries_categories' + class MdlGlossaryFormats(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=50) @@ -1810,10 +2054,12 @@ class MdlGlossaryFormats(models.Model): defaulthook = models.CharField(max_length=50) sortkey = models.CharField(max_length=50) sortorder = models.CharField(max_length=50) + class Meta: managed = False db_table = 'mdl_glossary_formats' + class MdlGradeCategories(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -1826,14 +2072,15 @@ class MdlGradeCategories(models.Model): droplow = models.BigIntegerField() aggregateonlygraded = models.SmallIntegerField() aggregateoutcomes = models.SmallIntegerField() - aggregatesubcats = models.SmallIntegerField() timecreated = models.BigIntegerField() timemodified = models.BigIntegerField() hidden = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_grade_categories' + class MdlGradeCategoriesHistory(models.Model): id = models.BigIntegerField(primary_key=True) action = models.BigIntegerField() @@ -1853,10 +2100,12 @@ class MdlGradeCategoriesHistory(models.Model): aggregateoutcomes = models.SmallIntegerField() aggregatesubcats = models.SmallIntegerField() hidden = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_grade_categories_history' + class MdlGradeGrades(models.Model): id = models.BigIntegerField(primary_key=True) itemid = models.BigIntegerField() @@ -1880,10 +2129,14 @@ class MdlGradeGrades(models.Model): timecreated = models.BigIntegerField(blank=True, null=True) timemodified = models.BigIntegerField(blank=True, null=True) notacesar = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) + aggregationstatus = models.CharField(max_length=10) + aggregationweight = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) + class Meta: managed = False db_table = 'mdl_grade_grades' + class MdlGradeGradesHistory(models.Model): id = models.BigIntegerField(primary_key=True) action = models.BigIntegerField() @@ -1909,19 +2162,23 @@ class MdlGradeGradesHistory(models.Model): feedbackformat = models.BigIntegerField() information = models.TextField(blank=True) informationformat = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_grade_grades_history' + class MdlGradeImportNewitem(models.Model): id = models.BigIntegerField(primary_key=True) itemname = models.CharField(max_length=255) importcode = models.BigIntegerField() importer = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_grade_import_newitem' + class MdlGradeImportValues(models.Model): id = models.BigIntegerField(primary_key=True) itemid = models.BigIntegerField(blank=True, null=True) @@ -1931,10 +2188,12 @@ class MdlGradeImportValues(models.Model): feedback = models.TextField(blank=True) importcode = models.BigIntegerField() importer = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_grade_import_values' + class MdlGradeItems(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField(blank=True, null=True) @@ -1965,10 +2224,14 @@ class MdlGradeItems(models.Model): timemodified = models.BigIntegerField(blank=True, null=True) display = models.BigIntegerField() decimals = models.SmallIntegerField(blank=True, null=True) + aggregationcoef2 = models.DecimalField(max_digits=10, decimal_places=5) + weightoverride = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_grade_items' + class MdlGradeItemsHistory(models.Model): id = models.BigIntegerField(primary_key=True) action = models.BigIntegerField() @@ -2002,19 +2265,25 @@ class MdlGradeItemsHistory(models.Model): locked = models.BigIntegerField() locktime = models.BigIntegerField() needsupdate = models.BigIntegerField() + aggregationcoef2 = models.DecimalField(max_digits=10, decimal_places=5) + weightoverride = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_grade_items_history' + class MdlGradeLetters(models.Model): id = models.BigIntegerField(primary_key=True) contextid = models.BigIntegerField() lowerboundary = models.DecimalField(max_digits=10, decimal_places=5) letter = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_grade_letters' + class MdlGradeOutcomes(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField(blank=True, null=True) @@ -2026,18 +2295,22 @@ class MdlGradeOutcomes(models.Model): timemodified = models.BigIntegerField(blank=True, null=True) usermodified = models.BigIntegerField(blank=True, null=True) descriptionformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_grade_outcomes' + class MdlGradeOutcomesCourses(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() outcomeid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_grade_outcomes_courses' + class MdlGradeOutcomesHistory(models.Model): id = models.BigIntegerField(primary_key=True) action = models.BigIntegerField() @@ -2051,29 +2324,35 @@ class MdlGradeOutcomesHistory(models.Model): scaleid = models.BigIntegerField(blank=True, null=True) description = models.TextField(blank=True) descriptionformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_grade_outcomes_history' + class MdlGradeSettings(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() name = models.CharField(max_length=255) value = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_grade_settings' + class MdlGradingAreas(models.Model): id = models.BigIntegerField(primary_key=True) contextid = models.BigIntegerField() component = models.CharField(max_length=100) areaname = models.CharField(max_length=100) activemethod = models.CharField(max_length=100, blank=True) + class Meta: managed = False db_table = 'mdl_grading_areas' + class MdlGradingDefinitions(models.Model): id = models.BigIntegerField(primary_key=True) areaid = models.BigIntegerField() @@ -2089,10 +2368,12 @@ class MdlGradingDefinitions(models.Model): usermodified = models.BigIntegerField() timecopied = models.BigIntegerField(blank=True, null=True) options = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_grading_definitions' + class MdlGradingInstances(models.Model): id = models.BigIntegerField(primary_key=True) definitionid = models.BigIntegerField() @@ -2103,20 +2384,24 @@ class MdlGradingInstances(models.Model): feedback = models.TextField(blank=True) feedbackformat = models.SmallIntegerField(blank=True, null=True) timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_grading_instances' + class MdlGradingformGuideComments(models.Model): id = models.BigIntegerField(primary_key=True) definitionid = models.BigIntegerField() sortorder = models.BigIntegerField() description = models.TextField(blank=True) descriptionformat = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_gradingform_guide_comments' + class MdlGradingformGuideCriteria(models.Model): id = models.BigIntegerField(primary_key=True) definitionid = models.BigIntegerField() @@ -2127,10 +2412,12 @@ class MdlGradingformGuideCriteria(models.Model): descriptionmarkers = models.TextField(blank=True) descriptionmarkersformat = models.SmallIntegerField(blank=True, null=True) maxscore = models.DecimalField(max_digits=10, decimal_places=5) + class Meta: managed = False db_table = 'mdl_gradingform_guide_criteria' + class MdlGradingformGuideFillings(models.Model): id = models.BigIntegerField(primary_key=True) instanceid = models.BigIntegerField() @@ -2138,20 +2425,24 @@ class MdlGradingformGuideFillings(models.Model): remark = models.TextField(blank=True) remarkformat = models.SmallIntegerField(blank=True, null=True) score = models.DecimalField(max_digits=10, decimal_places=5) + class Meta: managed = False db_table = 'mdl_gradingform_guide_fillings' + class MdlGradingformRubricCriteria(models.Model): id = models.BigIntegerField(primary_key=True) definitionid = models.BigIntegerField() sortorder = models.BigIntegerField() description = models.TextField(blank=True) descriptionformat = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_gradingform_rubric_criteria' + class MdlGradingformRubricFillings(models.Model): id = models.BigIntegerField(primary_key=True) instanceid = models.BigIntegerField() @@ -2159,20 +2450,24 @@ class MdlGradingformRubricFillings(models.Model): levelid = models.BigIntegerField(blank=True, null=True) remark = models.TextField(blank=True) remarkformat = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_gradingform_rubric_fillings' + class MdlGradingformRubricLevels(models.Model): id = models.BigIntegerField(primary_key=True) criterionid = models.BigIntegerField() score = models.DecimalField(max_digits=10, decimal_places=5) definition = models.TextField(blank=True) definitionformat = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_gradingform_rubric_levels' + class MdlGroupings(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) @@ -2183,19 +2478,23 @@ class MdlGroupings(models.Model): timemodified = models.BigIntegerField() descriptionformat = models.SmallIntegerField() idnumber = models.CharField(max_length=100) + class Meta: managed = False db_table = 'mdl_groupings' + class MdlGroupingsGroups(models.Model): id = models.BigIntegerField(primary_key=True) groupingid = models.BigIntegerField() groupid = models.BigIntegerField() timeadded = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_groupings_groups' + class MdlGroups(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=254) @@ -2208,10 +2507,12 @@ class MdlGroups(models.Model): courseid = models.BigIntegerField() descriptionformat = models.SmallIntegerField() idnumber = models.CharField(max_length=100) + class Meta: managed = False db_table = 'mdl_groups' + class MdlGroupsMembers(models.Model): id = models.BigIntegerField(primary_key=True) groupid = models.BigIntegerField() @@ -2219,10 +2520,12 @@ class MdlGroupsMembers(models.Model): timeadded = models.BigIntegerField() component = models.CharField(max_length=100) itemid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_groups_members' + class MdlHotpot(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -2270,10 +2573,13 @@ class MdlHotpot(models.Model): delay3 = models.BigIntegerField() discarddetails = models.SmallIntegerField() exitgrade = models.IntegerField() + allowpaste = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_hotpot' + class MdlHotpotAttempts(models.Model): id = models.BigIntegerField(primary_key=True) hotpotid = models.BigIntegerField() @@ -2288,10 +2594,12 @@ class MdlHotpotAttempts(models.Model): status = models.SmallIntegerField() clickreportid = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_hotpot_attempts' + class MdlHotpotCache(models.Model): id = models.BigIntegerField(primary_key=True) hotpotid = models.BigIntegerField() @@ -2325,18 +2633,24 @@ class MdlHotpotCache(models.Model): md5key = models.CharField(max_length=32) sourcerepositoryid = models.BigIntegerField() configrepositoryid = models.BigIntegerField() + hotpot_bodystyles = models.CharField(max_length=8) + allowpaste = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_hotpot_cache' + class MdlHotpotDetails(models.Model): id = models.BigIntegerField(primary_key=True) attemptid = models.BigIntegerField() details = models.TextField() + class Meta: managed = False db_table = 'mdl_hotpot_details' + class MdlHotpotQuestions(models.Model): id = models.BigIntegerField(primary_key=True) name = models.TextField() @@ -2344,10 +2658,12 @@ class MdlHotpotQuestions(models.Model): text = models.BigIntegerField() hotpotid = models.BigIntegerField() md5key = models.CharField(max_length=32) + class Meta: managed = False db_table = 'mdl_hotpot_questions' + class MdlHotpotResponses(models.Model): id = models.BigIntegerField(primary_key=True) attemptid = models.BigIntegerField() @@ -2360,18 +2676,22 @@ class MdlHotpotResponses(models.Model): hints = models.IntegerField() clues = models.IntegerField() checks = models.IntegerField() + class Meta: managed = False db_table = 'mdl_hotpot_responses' + class MdlHotpotStrings(models.Model): id = models.BigIntegerField(primary_key=True) string = models.TextField() md5key = models.CharField(max_length=32) + class Meta: managed = False db_table = 'mdl_hotpot_strings' + class MdlImscp(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -2382,10 +2702,12 @@ class MdlImscp(models.Model): keepold = models.BigIntegerField() structure = models.TextField(blank=True) timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_imscp' + class MdlJournal(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -2395,10 +2717,12 @@ class MdlJournal(models.Model): days = models.IntegerField() grade = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_journal' + class MdlJournalEntries(models.Model): id = models.BigIntegerField(primary_key=True) journal = models.BigIntegerField() @@ -2411,10 +2735,12 @@ class MdlJournalEntries(models.Model): teacher = models.BigIntegerField() timemarked = models.BigIntegerField() mailed = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_journal_entries' + class MdlLabel(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -2422,10 +2748,12 @@ class MdlLabel(models.Model): intro = models.TextField() timemodified = models.BigIntegerField() introformat = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_label' + class MdlLesson(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -2436,7 +2764,7 @@ class MdlLesson(models.Model): password = models.CharField(max_length=32) dependency = models.BigIntegerField() conditions = models.TextField() - grade = models.SmallIntegerField() + grade = models.BigIntegerField() custom = models.SmallIntegerField() ongoing = models.SmallIntegerField() usemaxgrade = models.SmallIntegerField() @@ -2467,10 +2795,14 @@ class MdlLesson(models.Model): available = models.BigIntegerField() deadline = models.BigIntegerField() timemodified = models.BigIntegerField() + intro = models.TextField(blank=True) + introformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_lesson' + class MdlLessonAnswers(models.Model): id = models.BigIntegerField(primary_key=True) lessonid = models.BigIntegerField() @@ -2485,10 +2817,12 @@ class MdlLessonAnswers(models.Model): response = models.TextField(blank=True) answerformat = models.SmallIntegerField() responseformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_lesson_answers' + class MdlLessonAttempts(models.Model): id = models.BigIntegerField(primary_key=True) lessonid = models.BigIntegerField() @@ -2499,10 +2833,12 @@ class MdlLessonAttempts(models.Model): correct = models.BigIntegerField() useranswer = models.TextField(blank=True) timeseen = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_lesson_attempts' + class MdlLessonBranch(models.Model): id = models.BigIntegerField(primary_key=True) lessonid = models.BigIntegerField() @@ -2511,10 +2847,12 @@ class MdlLessonBranch(models.Model): retry = models.BigIntegerField() flag = models.SmallIntegerField() timeseen = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_lesson_branch' + class MdlLessonGrades(models.Model): id = models.BigIntegerField(primary_key=True) lessonid = models.BigIntegerField() @@ -2522,20 +2860,24 @@ class MdlLessonGrades(models.Model): grade = models.FloatField() late = models.SmallIntegerField() completed = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_lesson_grades' + class MdlLessonHighScores(models.Model): id = models.BigIntegerField(primary_key=True) lessonid = models.BigIntegerField() userid = models.BigIntegerField() gradeid = models.BigIntegerField() nickname = models.CharField(max_length=5) + class Meta: managed = False db_table = 'mdl_lesson_high_scores' + class MdlLessonPages(models.Model): id = models.BigIntegerField(primary_key=True) lessonid = models.BigIntegerField() @@ -2550,20 +2892,24 @@ class MdlLessonPages(models.Model): title = models.CharField(max_length=255) contents = models.TextField() contentsformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_lesson_pages' + class MdlLessonTimer(models.Model): id = models.BigIntegerField(primary_key=True) lessonid = models.BigIntegerField() userid = models.BigIntegerField() starttime = models.BigIntegerField() lessontime = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_lesson_timer' + class MdlLicense(models.Model): id = models.BigIntegerField(primary_key=True) shortname = models.CharField(max_length=255, blank=True) @@ -2571,10 +2917,23 @@ class MdlLicense(models.Model): source = models.CharField(max_length=255, blank=True) enabled = models.SmallIntegerField() version = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_license' + +class MdlLockDb(models.Model): + id = models.BigIntegerField(primary_key=True) + resourcekey = models.CharField(unique=True, max_length=255) + expires = models.BigIntegerField(blank=True, null=True) + owner = models.CharField(max_length=36, blank=True) + + class Meta: + managed = False + db_table = 'mdl_lock_db' + + class MdlLog(models.Model): id = models.BigIntegerField(primary_key=True) time = models.BigIntegerField() @@ -2586,10 +2945,12 @@ class MdlLog(models.Model): action = models.CharField(max_length=40) url = models.CharField(max_length=100) info = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_log' + class MdlLogDisplay(models.Model): id = models.BigIntegerField(primary_key=True) module = models.CharField(max_length=20) @@ -2597,10 +2958,12 @@ class MdlLogDisplay(models.Model): mtable = models.CharField(max_length=30) field = models.CharField(max_length=200) component = models.CharField(max_length=100) + class Meta: managed = False db_table = 'mdl_log_display' + class MdlLogQueries(models.Model): id = models.BigIntegerField(primary_key=True) qtype = models.IntegerField() @@ -2611,10 +2974,40 @@ class MdlLogQueries(models.Model): backtrace = models.TextField(blank=True) exectime = models.DecimalField(max_digits=10, decimal_places=5) timelogged = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_log_queries' + +class MdlLogstoreStandardLog(models.Model): + id = models.BigIntegerField(primary_key=True) + eventname = models.CharField(max_length=255) + component = models.CharField(max_length=100) + action = models.CharField(max_length=100) + target = models.CharField(max_length=100) + objecttable = models.CharField(max_length=50, blank=True) + objectid = models.BigIntegerField(blank=True, null=True) + crud = models.CharField(max_length=1) + edulevel = models.SmallIntegerField() + contextid = models.BigIntegerField() + contextlevel = models.BigIntegerField() + contextinstanceid = models.BigIntegerField() + userid = models.BigIntegerField() + courseid = models.BigIntegerField(blank=True, null=True) + relateduserid = models.BigIntegerField(blank=True, null=True) + anonymous = models.SmallIntegerField() + other = models.TextField(blank=True) + timecreated = models.BigIntegerField() + origin = models.CharField(max_length=10, blank=True) + ip = models.CharField(max_length=45, blank=True) + realuserid = models.BigIntegerField(blank=True, null=True) + + class Meta: + managed = False + db_table = 'mdl_logstore_standard_log' + + class MdlLti(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -2632,7 +3025,7 @@ class MdlLti(models.Model): instructorchoiceallowsetting = models.SmallIntegerField(blank=True, null=True) instructorcustomparameters = models.CharField(max_length=255, blank=True) instructorchoiceacceptgrades = models.SmallIntegerField(blank=True, null=True) - grade = models.DecimalField(max_digits=10, decimal_places=5) + grade = models.BigIntegerField() launchcontainer = models.SmallIntegerField() resourcekey = models.CharField(max_length=255, blank=True) password = models.CharField(max_length=255, blank=True) @@ -2642,10 +3035,12 @@ class MdlLti(models.Model): servicesalt = models.CharField(max_length=40, blank=True) icon = models.TextField(blank=True) secureicon = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_lti' + class MdlLtiSubmission(models.Model): id = models.BigIntegerField(primary_key=True) ltiid = models.BigIntegerField() @@ -2656,38 +3051,83 @@ class MdlLtiSubmission(models.Model): originalgrade = models.DecimalField(max_digits=10, decimal_places=5) launchid = models.BigIntegerField() state = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_lti_submission' -class MdlLtiTypes(models.Model): + +class MdlLtiToolProxies(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) - baseurl = models.TextField() - tooldomain = models.CharField(max_length=255) + regurl = models.TextField(blank=True) state = models.SmallIntegerField() - course = models.BigIntegerField() - coursevisible = models.SmallIntegerField() + guid = models.CharField(unique=True, max_length=255, blank=True) + secret = models.CharField(max_length=255, blank=True) + vendorcode = models.CharField(max_length=255, blank=True) + capabilityoffered = models.TextField() + serviceoffered = models.TextField() + toolproxy = models.TextField(blank=True) createdby = models.BigIntegerField() timecreated = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False - db_table = 'mdl_lti_types' + db_table = 'mdl_lti_tool_proxies' -class MdlLtiTypesConfig(models.Model): + +class MdlLtiToolSettings(models.Model): id = models.BigIntegerField(primary_key=True) - typeid = models.BigIntegerField() - name = models.CharField(max_length=100) - value = models.CharField(max_length=255) + toolproxyid = models.BigIntegerField() + course = models.BigIntegerField(blank=True, null=True) + coursemoduleid = models.BigIntegerField(blank=True, null=True) + settings = models.TextField() + timecreated = models.BigIntegerField() + timemodified = models.BigIntegerField() + class Meta: managed = False - db_table = 'mdl_lti_types_config' + db_table = 'mdl_lti_tool_settings' -class MdlMessage(models.Model): + +class MdlLtiTypes(models.Model): id = models.BigIntegerField(primary_key=True) - useridfrom = models.BigIntegerField() - useridto = models.BigIntegerField() + name = models.CharField(max_length=255) + baseurl = models.TextField() + tooldomain = models.CharField(max_length=255) + state = models.SmallIntegerField() + course = models.BigIntegerField() + coursevisible = models.SmallIntegerField() + createdby = models.BigIntegerField() + timecreated = models.BigIntegerField() + timemodified = models.BigIntegerField() + toolproxyid = models.BigIntegerField(blank=True, null=True) + enabledcapability = models.TextField(blank=True) + parameter = models.TextField(blank=True) + icon = models.TextField(blank=True) + secureicon = models.TextField(blank=True) + + class Meta: + managed = False + db_table = 'mdl_lti_types' + + +class MdlLtiTypesConfig(models.Model): + id = models.BigIntegerField(primary_key=True) + typeid = models.BigIntegerField() + name = models.CharField(max_length=100) + value = models.CharField(max_length=255) + + class Meta: + managed = False + db_table = 'mdl_lti_types_config' + + +class MdlMessage(models.Model): + id = models.BigIntegerField(primary_key=True) + useridfrom = models.BigIntegerField() + useridto = models.BigIntegerField() fullmessage = models.TextField() fullmessageformat = models.SmallIntegerField() timecreated = models.BigIntegerField() @@ -2697,36 +3137,54 @@ class MdlMessage(models.Model): notification = models.SmallIntegerField(blank=True, null=True) contexturl = models.TextField(blank=True) contexturlname = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_message' + +class MdlMessageAirnotifierDevices(models.Model): + id = models.BigIntegerField(primary_key=True) + userdeviceid = models.BigIntegerField(unique=True) + enable = models.SmallIntegerField() + + class Meta: + managed = False + db_table = 'mdl_message_airnotifier_devices' + + class MdlMessageContacts(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() contactid = models.BigIntegerField() blocked = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_message_contacts' + class MdlMessageProcessors(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=166) enabled = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_message_processors' + class MdlMessageProviders(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=100) component = models.CharField(max_length=200) capability = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_message_providers' + class MdlMessageRead(models.Model): id = models.BigIntegerField(primary_key=True) useridfrom = models.BigIntegerField() @@ -2741,18 +3199,60 @@ class MdlMessageRead(models.Model): notification = models.SmallIntegerField(blank=True, null=True) contexturl = models.TextField(blank=True) contexturlname = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_message_read' + class MdlMessageWorking(models.Model): id = models.BigIntegerField(primary_key=True) unreadmessageid = models.BigIntegerField() processorid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_message_working' + +class MdlMessageinboundDatakeys(models.Model): + id = models.BigIntegerField(primary_key=True) + handler = models.BigIntegerField() + datavalue = models.BigIntegerField() + datakey = models.CharField(max_length=64, blank=True) + timecreated = models.BigIntegerField() + expires = models.BigIntegerField(blank=True, null=True) + + class Meta: + managed = False + db_table = 'mdl_messageinbound_datakeys' + + +class MdlMessageinboundHandlers(models.Model): + id = models.BigIntegerField(primary_key=True) + component = models.CharField(max_length=100) + classname = models.CharField(unique=True, max_length=255) + defaultexpiration = models.BigIntegerField() + validateaddress = models.SmallIntegerField() + enabled = models.SmallIntegerField() + + class Meta: + managed = False + db_table = 'mdl_messageinbound_handlers' + + +class MdlMessageinboundMessagelist(models.Model): + id = models.BigIntegerField(primary_key=True) + messageid = models.TextField() + userid = models.BigIntegerField() + address = models.TextField() + timecreated = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_messageinbound_messagelist' + + class MdlMnetApplication(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=50) @@ -2760,10 +3260,12 @@ class MdlMnetApplication(models.Model): xmlrpc_server_url = models.CharField(max_length=255) sso_land_url = models.CharField(max_length=255) sso_jump_url = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_mnet_application' + class MdlMnetHost(models.Model): id = models.BigIntegerField(primary_key=True) deleted = models.SmallIntegerField() @@ -2779,20 +3281,24 @@ class MdlMnetHost(models.Model): force_theme = models.SmallIntegerField() theme = models.CharField(max_length=100, blank=True) portno = models.IntegerField() + class Meta: managed = False db_table = 'mdl_mnet_host' + class MdlMnetHost2Service(models.Model): id = models.BigIntegerField(primary_key=True) hostid = models.BigIntegerField() serviceid = models.BigIntegerField() publish = models.SmallIntegerField() subscribe = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_mnet_host2service' + class MdlMnetLog(models.Model): id = models.BigIntegerField(primary_key=True) hostid = models.BigIntegerField() @@ -2807,10 +3313,12 @@ class MdlMnetLog(models.Model): action = models.CharField(max_length=40) url = models.CharField(max_length=100) info = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_mnet_log' + class MdlMnetRemoteRpc(models.Model): id = models.BigIntegerField(primary_key=True) functionname = models.CharField(max_length=40) @@ -2818,18 +3326,22 @@ class MdlMnetRemoteRpc(models.Model): plugintype = models.CharField(max_length=20) pluginname = models.CharField(max_length=20) enabled = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_mnet_remote_rpc' + class MdlMnetRemoteService2Rpc(models.Model): id = models.BigIntegerField(primary_key=True) serviceid = models.BigIntegerField() rpcid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_mnet_remote_service2rpc' + class MdlMnetRpc(models.Model): id = models.BigIntegerField(primary_key=True) functionname = models.CharField(max_length=40) @@ -2842,28 +3354,34 @@ class MdlMnetRpc(models.Model): filename = models.CharField(max_length=100) classname = models.CharField(max_length=150, blank=True) static = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_mnet_rpc' + class MdlMnetService(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=40) description = models.CharField(max_length=40) apiversion = models.CharField(max_length=10) offer = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_mnet_service' + class MdlMnetService2Rpc(models.Model): id = models.BigIntegerField(primary_key=True) serviceid = models.BigIntegerField() rpcid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_mnet_service2rpc' + class MdlMnetSession(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -2874,19 +3392,23 @@ class MdlMnetSession(models.Model): confirm_timeout = models.BigIntegerField() session_id = models.CharField(max_length=40) expires = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_mnet_session' + class MdlMnetSsoAccessControl(models.Model): id = models.BigIntegerField(primary_key=True) username = models.CharField(max_length=100) mnet_host_id = models.BigIntegerField() accessctrl = models.CharField(max_length=20) + class Meta: managed = False db_table = 'mdl_mnet_sso_access_control' + class MdlMnetserviceEnrolCourses(models.Model): id = models.BigIntegerField(primary_key=True) hostid = models.BigIntegerField() @@ -2902,10 +3424,12 @@ class MdlMnetserviceEnrolCourses(models.Model): startdate = models.BigIntegerField() roleid = models.BigIntegerField() rolename = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_mnetservice_enrol_courses' + class MdlMnetserviceEnrolEnrolments(models.Model): id = models.BigIntegerField(primary_key=True) hostid = models.BigIntegerField() @@ -2914,50 +3438,36 @@ class MdlMnetserviceEnrolEnrolments(models.Model): rolename = models.CharField(max_length=255) enroltime = models.BigIntegerField() enroltype = models.CharField(max_length=20) + class Meta: managed = False db_table = 'mdl_mnetservice_enrol_enrolments' + class MdlModules(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=20) - version = models.BigIntegerField() cron = models.BigIntegerField() lastcron = models.BigIntegerField() search = models.CharField(max_length=255) visible = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_modules' + class MdlMyPages(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField(blank=True, null=True) name = models.CharField(max_length=200) private = models.SmallIntegerField() sortorder = models.IntegerField() + class Meta: managed = False db_table = 'mdl_my_pages' -class MdlOpenmeetings(models.Model): - id = models.BigIntegerField(primary_key=True) - course = models.BigIntegerField() - teacher = models.BigIntegerField() - type = models.BigIntegerField() - is_moderated_room = models.BigIntegerField() - max_user = models.BigIntegerField() - language = models.BigIntegerField() - name = models.CharField(max_length=255) - intro = models.TextField(blank=True) - timecreated = models.BigIntegerField() - timemodified = models.BigIntegerField() - room_id = models.BigIntegerField() - room_recording_id = models.BigIntegerField() - allow_recording = models.BigIntegerField() - class Meta: - managed = False - db_table = 'mdl_openmeetings' class MdlPage(models.Model): id = models.BigIntegerField(primary_key=True) @@ -2973,38 +3483,46 @@ class MdlPage(models.Model): displayoptions = models.TextField(blank=True) revision = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_page' + class MdlPortfolioInstance(models.Model): id = models.BigIntegerField(primary_key=True) plugin = models.CharField(max_length=50) name = models.CharField(max_length=255) visible = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_portfolio_instance' + class MdlPortfolioInstanceConfig(models.Model): id = models.BigIntegerField(primary_key=True) instance = models.BigIntegerField() name = models.CharField(max_length=255) value = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_portfolio_instance_config' + class MdlPortfolioInstanceUser(models.Model): id = models.BigIntegerField(primary_key=True) instance = models.BigIntegerField() userid = models.BigIntegerField() name = models.CharField(max_length=255) value = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_portfolio_instance_user' + class MdlPortfolioLog(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -3017,28 +3535,35 @@ class MdlPortfolioLog(models.Model): returnurl = models.CharField(max_length=255) continueurl = models.CharField(max_length=255) caller_component = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_portfolio_log' + class MdlPortfolioMaharaQueue(models.Model): id = models.BigIntegerField(primary_key=True) transferid = models.BigIntegerField() token = models.CharField(max_length=50) + class Meta: managed = False db_table = 'mdl_portfolio_mahara_queue' + class MdlPortfolioTempdata(models.Model): id = models.BigIntegerField(primary_key=True) data = models.TextField(blank=True) expirytime = models.BigIntegerField() userid = models.BigIntegerField() instance = models.BigIntegerField(blank=True, null=True) + queued = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_portfolio_tempdata' + class MdlPost(models.Model): id = models.BigIntegerField(primary_key=True) module = models.CharField(max_length=20) @@ -3059,10 +3584,12 @@ class MdlPost(models.Model): created = models.BigIntegerField() usermodified = models.BigIntegerField(blank=True, null=True) summaryformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_post' + class MdlProfiling(models.Model): id = models.BigIntegerField(primary_key=True) runid = models.CharField(unique=True, max_length=32) @@ -3075,10 +3602,12 @@ class MdlProfiling(models.Model): runreference = models.SmallIntegerField() runcomment = models.CharField(max_length=255) timecreated = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_profiling' + class MdlQtypeEssayOptions(models.Model): id = models.BigIntegerField(primary_key=True) questionid = models.BigIntegerField(unique=True) @@ -3089,10 +3618,14 @@ class MdlQtypeEssayOptions(models.Model): graderinfoformat = models.SmallIntegerField() responsetemplate = models.TextField(blank=True) responsetemplateformat = models.SmallIntegerField() + responserequired = models.SmallIntegerField() + attachmentsrequired = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_qtype_essay_options' + class MdlQtypeMatchOptions(models.Model): id = models.BigIntegerField(primary_key=True) questionid = models.BigIntegerField(unique=True) @@ -3104,28 +3637,72 @@ class MdlQtypeMatchOptions(models.Model): incorrectfeedback = models.TextField() incorrectfeedbackformat = models.SmallIntegerField() shownumcorrect = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_qtype_match_options' + class MdlQtypeMatchSubquestions(models.Model): id = models.BigIntegerField(primary_key=True) questionid = models.BigIntegerField() questiontext = models.TextField() answertext = models.CharField(max_length=255) questiontextformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_qtype_match_subquestions' + +class MdlQtypeMultichoiceOptions(models.Model): + id = models.BigIntegerField(primary_key=True) + questionid = models.BigIntegerField(unique=True) + layout = models.SmallIntegerField() + single = models.SmallIntegerField() + shuffleanswers = models.SmallIntegerField() + correctfeedback = models.TextField() + partiallycorrectfeedback = models.TextField() + incorrectfeedback = models.TextField() + answernumbering = models.CharField(max_length=10) + correctfeedbackformat = models.SmallIntegerField() + partiallycorrectfeedbackformat = models.SmallIntegerField() + incorrectfeedbackformat = models.SmallIntegerField() + shownumcorrect = models.SmallIntegerField() + + class Meta: + managed = False + db_table = 'mdl_qtype_multichoice_options' + + +class MdlQtypeRandomsamatchOptions(models.Model): + id = models.BigIntegerField(primary_key=True) + questionid = models.BigIntegerField(unique=True) + choose = models.BigIntegerField() + subcats = models.SmallIntegerField() + correctfeedback = models.TextField() + correctfeedbackformat = models.SmallIntegerField() + partiallycorrectfeedback = models.TextField() + partiallycorrectfeedbackformat = models.SmallIntegerField() + incorrectfeedback = models.TextField() + incorrectfeedbackformat = models.SmallIntegerField() + shownumcorrect = models.SmallIntegerField() + + class Meta: + managed = False + db_table = 'mdl_qtype_randomsamatch_options' + + class MdlQtypeShortanswerOptions(models.Model): id = models.BigIntegerField(primary_key=True) questionid = models.BigIntegerField(unique=True) usecase = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_qtype_shortanswer_options' + class MdlQuestion(models.Model): id = models.BigIntegerField(primary_key=True) category = models.BigIntegerField() @@ -3146,10 +3723,12 @@ class MdlQuestion(models.Model): createdby = models.BigIntegerField(blank=True, null=True) modifiedby = models.BigIntegerField(blank=True, null=True) generalfeedbackformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_question' + class MdlQuestionAnswers(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() @@ -3158,19 +3737,23 @@ class MdlQuestionAnswers(models.Model): feedback = models.TextField() answerformat = models.SmallIntegerField() feedbackformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_question_answers' + class MdlQuestionAttemptStepData(models.Model): id = models.BigIntegerField(primary_key=True) attemptstepid = models.BigIntegerField() name = models.CharField(max_length=32) value = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_question_attempt_step_data' + class MdlQuestionAttemptSteps(models.Model): id = models.BigIntegerField(primary_key=True) questionattemptid = models.BigIntegerField() @@ -3179,10 +3762,12 @@ class MdlQuestionAttemptSteps(models.Model): fraction = models.DecimalField(max_digits=12, decimal_places=7, blank=True, null=True) timecreated = models.BigIntegerField() userid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_question_attempt_steps' + class MdlQuestionAttempts(models.Model): id = models.BigIntegerField(primary_key=True) questionusageid = models.BigIntegerField() @@ -3197,10 +3782,13 @@ class MdlQuestionAttempts(models.Model): responsesummary = models.TextField(blank=True) timemodified = models.BigIntegerField() variant = models.BigIntegerField() + maxfraction = models.DecimalField(max_digits=12, decimal_places=7) + class Meta: managed = False db_table = 'mdl_question_attempts' + class MdlQuestionCalculated(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() @@ -3209,10 +3797,12 @@ class MdlQuestionCalculated(models.Model): tolerancetype = models.BigIntegerField() correctanswerlength = models.BigIntegerField() correctanswerformat = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_question_calculated' + class MdlQuestionCalculatedOptions(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() @@ -3227,10 +3817,12 @@ class MdlQuestionCalculatedOptions(models.Model): partiallycorrectfeedbackformat = models.SmallIntegerField() incorrectfeedbackformat = models.SmallIntegerField() shownumcorrect = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_question_calculated_options' + class MdlQuestionCategories(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) @@ -3240,10 +3832,12 @@ class MdlQuestionCategories(models.Model): sortorder = models.BigIntegerField() contextid = models.BigIntegerField() infoformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_question_categories' + class MdlQuestionDatasetDefinitions(models.Model): id = models.BigIntegerField(primary_key=True) category = models.BigIntegerField() @@ -3251,27 +3845,33 @@ class MdlQuestionDatasetDefinitions(models.Model): type = models.BigIntegerField() options = models.CharField(max_length=255) itemcount = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_question_dataset_definitions' + class MdlQuestionDatasetItems(models.Model): id = models.BigIntegerField(primary_key=True) definition = models.BigIntegerField() itemnumber = models.BigIntegerField() value = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_question_dataset_items' + class MdlQuestionDatasets(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() datasetdefinition = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_question_datasets' + class MdlQuestionHints(models.Model): id = models.BigIntegerField(primary_key=True) questionid = models.BigIntegerField() @@ -3280,46 +3880,33 @@ class MdlQuestionHints(models.Model): shownumcorrect = models.SmallIntegerField(blank=True, null=True) clearwrong = models.SmallIntegerField(blank=True, null=True) options = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_question_hints' + class MdlQuestionMultianswer(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() sequence = models.TextField() + class Meta: managed = False db_table = 'mdl_question_multianswer' -class MdlQuestionMultichoice(models.Model): - id = models.BigIntegerField(primary_key=True) - question = models.BigIntegerField() - layout = models.SmallIntegerField() - answers = models.CharField(max_length=255) - single = models.SmallIntegerField() - shuffleanswers = models.SmallIntegerField() - correctfeedback = models.TextField() - partiallycorrectfeedback = models.TextField() - incorrectfeedback = models.TextField() - answernumbering = models.CharField(max_length=10) - correctfeedbackformat = models.SmallIntegerField() - partiallycorrectfeedbackformat = models.SmallIntegerField() - incorrectfeedbackformat = models.SmallIntegerField() - shownumcorrect = models.SmallIntegerField() - class Meta: - managed = False - db_table = 'mdl_question_multichoice' class MdlQuestionNumerical(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() answer = models.BigIntegerField() tolerance = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_question_numerical' + class MdlQuestionNumericalOptions(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() @@ -3327,74 +3914,98 @@ class MdlQuestionNumericalOptions(models.Model): unitsleft = models.SmallIntegerField() unitgradingtype = models.SmallIntegerField() unitpenalty = models.DecimalField(max_digits=12, decimal_places=7) + class Meta: managed = False db_table = 'mdl_question_numerical_options' + class MdlQuestionNumericalUnits(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() multiplier = models.DecimalField(max_digits=40, decimal_places=20) unit = models.CharField(max_length=50) + class Meta: managed = False db_table = 'mdl_question_numerical_units' -class MdlQuestionRandomsamatch(models.Model): + +class MdlQuestionResponseAnalysis(models.Model): id = models.BigIntegerField(primary_key=True) - question = models.BigIntegerField() - choose = models.BigIntegerField() + hashcode = models.CharField(max_length=40) + timemodified = models.BigIntegerField() + questionid = models.BigIntegerField() + subqid = models.CharField(max_length=100) + aid = models.CharField(max_length=100, blank=True) + response = models.TextField(blank=True) + credit = models.DecimalField(max_digits=15, decimal_places=5) + variant = models.BigIntegerField(blank=True, null=True) + whichtries = models.CharField(max_length=255) + class Meta: managed = False - db_table = 'mdl_question_randomsamatch' + db_table = 'mdl_question_response_analysis' -class MdlQuestionSessions(models.Model): + +class MdlQuestionResponseCount(models.Model): id = models.BigIntegerField(primary_key=True) - attemptid = models.BigIntegerField() - questionid = models.BigIntegerField() - newest = models.BigIntegerField() - newgraded = models.BigIntegerField() - sumpenalty = models.DecimalField(max_digits=12, decimal_places=7) - manualcomment = models.TextField() - flagged = models.SmallIntegerField() - manualcommentformat = models.SmallIntegerField() + analysisid = models.BigIntegerField() + try_field = models.BigIntegerField(db_column='try') # Field renamed because it was a Python reserved word. + rcount = models.BigIntegerField() + class Meta: managed = False - db_table = 'mdl_question_sessions' + db_table = 'mdl_question_response_count' -class MdlQuestionStates(models.Model): + +class MdlQuestionStatistics(models.Model): id = models.BigIntegerField(primary_key=True) - attempt = models.BigIntegerField() - question = models.BigIntegerField() - seq_number = models.IntegerField() - answer = models.TextField() - timestamp = models.BigIntegerField() - event = models.SmallIntegerField() - grade = models.DecimalField(max_digits=12, decimal_places=7) - raw_grade = models.DecimalField(max_digits=12, decimal_places=7) - penalty = models.DecimalField(max_digits=12, decimal_places=7) + hashcode = models.CharField(max_length=40) + timemodified = models.BigIntegerField() + questionid = models.BigIntegerField() + slot = models.BigIntegerField(blank=True, null=True) + subquestion = models.SmallIntegerField() + s = models.BigIntegerField() + effectiveweight = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) + negcovar = models.SmallIntegerField() + discriminationindex = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) + discriminativeefficiency = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) + sd = models.DecimalField(max_digits=15, decimal_places=10, blank=True, null=True) + facility = models.DecimalField(max_digits=15, decimal_places=10, blank=True, null=True) + subquestions = models.TextField(blank=True) + maxmark = models.DecimalField(max_digits=12, decimal_places=7, blank=True, null=True) + positions = models.TextField(blank=True) + randomguessscore = models.DecimalField(max_digits=12, decimal_places=7, blank=True, null=True) + variant = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False - db_table = 'mdl_question_states' + db_table = 'mdl_question_statistics' + class MdlQuestionTruefalse(models.Model): id = models.BigIntegerField(primary_key=True) question = models.BigIntegerField() trueanswer = models.BigIntegerField() falseanswer = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_question_truefalse' + class MdlQuestionUsages(models.Model): id = models.BigIntegerField(primary_key=True) component = models.CharField(max_length=255) contextid = models.BigIntegerField() preferredbehaviour = models.CharField(max_length=32) + class Meta: managed = False db_table = 'mdl_question_usages' + class MdlQuiz(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -3409,7 +4020,6 @@ class MdlQuiz(models.Model): questionsperpage = models.BigIntegerField() shufflequestions = models.SmallIntegerField() shuffleanswers = models.SmallIntegerField() - questions = models.TextField() sumgrades = models.DecimalField(max_digits=10, decimal_places=5) grade = models.DecimalField(max_digits=10, decimal_places=5) timecreated = models.BigIntegerField() @@ -3435,10 +4045,14 @@ class MdlQuiz(models.Model): navmethod = models.CharField(max_length=16) overduehandling = models.CharField(max_length=16) graceperiod = models.BigIntegerField() + completionattemptsexhausted = models.SmallIntegerField(blank=True, null=True) + completionpass = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_quiz' + class MdlQuizAttempts(models.Model): id = models.BigIntegerField(primary_key=True) uniqueid = models.BigIntegerField(unique=True) @@ -3451,14 +4065,15 @@ class MdlQuizAttempts(models.Model): timemodified = models.BigIntegerField() layout = models.TextField() preview = models.SmallIntegerField() - needsupgradetonewqe = models.SmallIntegerField() currentpage = models.BigIntegerField() state = models.CharField(max_length=16) timecheckstate = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_quiz_attempts' + class MdlQuizFeedback(models.Model): id = models.BigIntegerField(primary_key=True) quizid = models.BigIntegerField() @@ -3466,20 +4081,24 @@ class MdlQuizFeedback(models.Model): mingrade = models.DecimalField(max_digits=10, decimal_places=5) maxgrade = models.DecimalField(max_digits=10, decimal_places=5) feedbacktextformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_quiz_feedback' + class MdlQuizGrades(models.Model): id = models.BigIntegerField(primary_key=True) quiz = models.BigIntegerField() userid = models.BigIntegerField() grade = models.DecimalField(max_digits=10, decimal_places=5) timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_quiz_grades' + class MdlQuizOverrides(models.Model): id = models.BigIntegerField(primary_key=True) quiz = models.BigIntegerField() @@ -3490,10 +4109,12 @@ class MdlQuizOverrides(models.Model): timelimit = models.BigIntegerField(blank=True, null=True) attempts = models.IntegerField(blank=True, null=True) password = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_quiz_overrides' + class MdlQuizOverviewRegrades(models.Model): id = models.BigIntegerField(primary_key=True) questionusageid = models.BigIntegerField() @@ -3502,71 +4123,48 @@ class MdlQuizOverviewRegrades(models.Model): regraded = models.SmallIntegerField() timemodified = models.BigIntegerField() slot = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_quiz_overview_regrades' -class MdlQuizQuestionInstances(models.Model): - id = models.BigIntegerField(primary_key=True) - quiz = models.BigIntegerField() - question = models.BigIntegerField() - grade = models.DecimalField(max_digits=12, decimal_places=7) - class Meta: - managed = False - db_table = 'mdl_quiz_question_instances' -class MdlQuizQuestionResponseStats(models.Model): +class MdlQuizReports(models.Model): id = models.BigIntegerField(primary_key=True) - quizstatisticsid = models.BigIntegerField() - questionid = models.BigIntegerField() - subqid = models.CharField(max_length=100) - aid = models.CharField(max_length=100, blank=True) - response = models.TextField(blank=True) - rcount = models.BigIntegerField(blank=True, null=True) - credit = models.DecimalField(max_digits=15, decimal_places=5) + name = models.CharField(unique=True, max_length=255, blank=True) + displayorder = models.BigIntegerField() + capability = models.CharField(max_length=255, blank=True) + class Meta: managed = False - db_table = 'mdl_quiz_question_response_stats' + db_table = 'mdl_quiz_reports' + -class MdlQuizQuestionStatistics(models.Model): +class MdlQuizSlots(models.Model): id = models.BigIntegerField(primary_key=True) - quizstatisticsid = models.BigIntegerField() + quizid = models.BigIntegerField() questionid = models.BigIntegerField() - subquestion = models.SmallIntegerField() - s = models.BigIntegerField() - effectiveweight = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) - negcovar = models.SmallIntegerField() - discriminationindex = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) - discriminativeefficiency = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) - sd = models.DecimalField(max_digits=15, decimal_places=10, blank=True, null=True) - facility = models.DecimalField(max_digits=15, decimal_places=10, blank=True, null=True) - subquestions = models.TextField(blank=True) - maxmark = models.DecimalField(max_digits=12, decimal_places=7, blank=True, null=True) - positions = models.TextField(blank=True) - randomguessscore = models.DecimalField(max_digits=12, decimal_places=7, blank=True, null=True) - slot = models.BigIntegerField(blank=True, null=True) - class Meta: - managed = False - db_table = 'mdl_quiz_question_statistics' + maxmark = models.DecimalField(max_digits=12, decimal_places=7) + slot = models.BigIntegerField() + page = models.BigIntegerField() -class MdlQuizReports(models.Model): - id = models.BigIntegerField(primary_key=True) - name = models.CharField(unique=True, max_length=255, blank=True) - displayorder = models.BigIntegerField() - capability = models.CharField(max_length=255, blank=True) class Meta: managed = False - db_table = 'mdl_quiz_reports' + db_table = 'mdl_quiz_slots' + class MdlQuizStatistics(models.Model): id = models.BigIntegerField(primary_key=True) - quizid = models.BigIntegerField() - groupid = models.BigIntegerField() - allattempts = models.SmallIntegerField() + hashcode = models.CharField(max_length=40) + whichattempts = models.SmallIntegerField() timemodified = models.BigIntegerField() firstattemptscount = models.BigIntegerField() + highestattemptscount = models.BigIntegerField() + lastattemptscount = models.BigIntegerField() allattemptscount = models.BigIntegerField() firstattemptsavg = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) + highestattemptsavg = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) + lastattemptsavg = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) allattemptsavg = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) median = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) standarddeviation = models.DecimalField(max_digits=15, decimal_places=5, blank=True, null=True) @@ -3575,10 +4173,12 @@ class MdlQuizStatistics(models.Model): cic = models.DecimalField(max_digits=15, decimal_places=10, blank=True, null=True) errorratio = models.DecimalField(max_digits=15, decimal_places=10, blank=True, null=True) standarderror = models.DecimalField(max_digits=15, decimal_places=10, blank=True, null=True) + class Meta: managed = False db_table = 'mdl_quiz_statistics' + class MdlRating(models.Model): id = models.BigIntegerField(primary_key=True) contextid = models.BigIntegerField() @@ -3590,10 +4190,12 @@ class MdlRating(models.Model): timemodified = models.BigIntegerField() component = models.CharField(max_length=100) ratingarea = models.CharField(max_length=50) + class Meta: managed = False db_table = 'mdl_rating' + class MdlRegistrationHubs(models.Model): id = models.BigIntegerField(primary_key=True) token = models.CharField(max_length=255) @@ -3601,28 +4203,34 @@ class MdlRegistrationHubs(models.Model): huburl = models.CharField(max_length=255) confirmed = models.SmallIntegerField() secret = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_registration_hubs' + class MdlRepository(models.Model): id = models.BigIntegerField(primary_key=True) type = models.CharField(max_length=255) visible = models.SmallIntegerField(blank=True, null=True) sortorder = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_repository' + class MdlRepositoryInstanceConfig(models.Model): id = models.BigIntegerField(primary_key=True) instanceid = models.BigIntegerField() name = models.CharField(max_length=255) value = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_repository_instance_config' + class MdlRepositoryInstances(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) @@ -3634,10 +4242,12 @@ class MdlRepositoryInstances(models.Model): timecreated = models.BigIntegerField(blank=True, null=True) timemodified = models.BigIntegerField(blank=True, null=True) readonly = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_repository_instances' + class MdlResource(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -3652,10 +4262,12 @@ class MdlResource(models.Model): displayoptions = models.TextField(blank=True) filterfiles = models.SmallIntegerField() revision = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_resource' + class MdlResourceOld(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -3673,10 +4285,12 @@ class MdlResourceOld(models.Model): newmodule = models.CharField(max_length=50, blank=True) newid = models.BigIntegerField(blank=True, null=True) migrated = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_resource_old' + class MdlRole(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) @@ -3684,34 +4298,42 @@ class MdlRole(models.Model): description = models.TextField() sortorder = models.BigIntegerField(unique=True) archetype = models.CharField(max_length=30) + class Meta: managed = False db_table = 'mdl_role' + class MdlRoleAllowAssign(models.Model): id = models.BigIntegerField(primary_key=True) roleid = models.BigIntegerField() allowassign = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_role_allow_assign' + class MdlRoleAllowOverride(models.Model): id = models.BigIntegerField(primary_key=True) roleid = models.BigIntegerField() allowoverride = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_role_allow_override' + class MdlRoleAllowSwitch(models.Model): id = models.BigIntegerField(primary_key=True) roleid = models.BigIntegerField() allowswitch = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_role_allow_switch' + class MdlRoleAssignments(models.Model): id = models.BigIntegerField(primary_key=True) roleid = models.BigIntegerField() @@ -3722,10 +4344,12 @@ class MdlRoleAssignments(models.Model): component = models.CharField(max_length=100) sortorder = models.BigIntegerField() itemid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_role_assignments' + class MdlRoleCapabilities(models.Model): id = models.BigIntegerField(primary_key=True) contextid = models.BigIntegerField() @@ -3734,37 +4358,45 @@ class MdlRoleCapabilities(models.Model): permission = models.BigIntegerField() timemodified = models.BigIntegerField() modifierid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_role_capabilities' + class MdlRoleContextLevels(models.Model): id = models.BigIntegerField(primary_key=True) roleid = models.BigIntegerField() contextlevel = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_role_context_levels' + class MdlRoleNames(models.Model): id = models.BigIntegerField(primary_key=True) roleid = models.BigIntegerField() contextid = models.BigIntegerField() name = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_role_names' + class MdlRoleSortorder(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() roleid = models.BigIntegerField() contextid = models.BigIntegerField() sortoder = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_role_sortorder' + class MdlScale(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -3774,10 +4406,12 @@ class MdlScale(models.Model): description = models.TextField() timemodified = models.BigIntegerField() descriptionformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_scale' + class MdlScaleHistory(models.Model): id = models.BigIntegerField(primary_key=True) action = models.BigIntegerField() @@ -3790,10 +4424,12 @@ class MdlScaleHistory(models.Model): name = models.CharField(max_length=255) scale = models.TextField() description = models.TextField() + class Meta: managed = False db_table = 'mdl_scale_history' + class MdlScorm(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -3810,7 +4446,6 @@ class MdlScorm(models.Model): skipview = models.SmallIntegerField() hidebrowse = models.SmallIntegerField() hidetoc = models.SmallIntegerField() - hidenav = models.SmallIntegerField() auto = models.SmallIntegerField() popup = models.SmallIntegerField() options = models.CharField(max_length=255) @@ -3831,10 +4466,17 @@ class MdlScorm(models.Model): introformat = models.SmallIntegerField() completionstatusrequired = models.SmallIntegerField(blank=True, null=True) completionscorerequired = models.SmallIntegerField(blank=True, null=True) + nav = models.SmallIntegerField() + navpositionleft = models.BigIntegerField(blank=True, null=True) + navpositiontop = models.BigIntegerField(blank=True, null=True) + displayactivityname = models.SmallIntegerField() + autocommit = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_scorm' + class MdlScormAiccSession(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -3848,10 +4490,12 @@ class MdlScormAiccSession(models.Model): sessiontime = models.CharField(max_length=255, blank=True) timecreated = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_scorm_aicc_session' + class MdlScormScoes(models.Model): id = models.BigIntegerField(primary_key=True) scorm = models.BigIntegerField() @@ -3862,19 +4506,24 @@ class MdlScormScoes(models.Model): launch = models.TextField() scormtype = models.CharField(max_length=5) title = models.CharField(max_length=255) + sortorder = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_scorm_scoes' + class MdlScormScoesData(models.Model): id = models.BigIntegerField(primary_key=True) scoid = models.BigIntegerField() name = models.CharField(max_length=255) value = models.TextField() + class Meta: managed = False db_table = 'mdl_scorm_scoes_data' + class MdlScormScoesTrack(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -3884,10 +4533,12 @@ class MdlScormScoesTrack(models.Model): element = models.CharField(max_length=255) value = models.TextField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_scorm_scoes_track' + class MdlScormSeqMapinfo(models.Model): id = models.BigIntegerField(primary_key=True) scoid = models.BigIntegerField() @@ -3897,10 +4548,12 @@ class MdlScormSeqMapinfo(models.Model): readnormalizedmeasure = models.SmallIntegerField() writesatisfiedstatus = models.SmallIntegerField() writenormalizedmeasure = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_scorm_seq_mapinfo' + class MdlScormSeqObjective(models.Model): id = models.BigIntegerField(primary_key=True) scoid = models.BigIntegerField() @@ -3908,10 +4561,12 @@ class MdlScormSeqObjective(models.Model): objectiveid = models.CharField(max_length=255) satisfiedbymeasure = models.SmallIntegerField() minnormalizedmeasure = models.FloatField() + class Meta: managed = False db_table = 'mdl_scorm_seq_objective' + class MdlScormSeqRolluprule(models.Model): id = models.BigIntegerField(primary_key=True) scoid = models.BigIntegerField() @@ -3920,20 +4575,24 @@ class MdlScormSeqRolluprule(models.Model): minimumpercent = models.FloatField() conditioncombination = models.CharField(max_length=3) action = models.CharField(max_length=15) + class Meta: managed = False db_table = 'mdl_scorm_seq_rolluprule' + class MdlScormSeqRolluprulecond(models.Model): id = models.BigIntegerField(primary_key=True) scoid = models.BigIntegerField() rollupruleid = models.BigIntegerField() operator = models.CharField(max_length=5) cond = models.CharField(max_length=25) + class Meta: managed = False db_table = 'mdl_scorm_seq_rolluprulecond' + class MdlScormSeqRulecond(models.Model): id = models.BigIntegerField(primary_key=True) scoid = models.BigIntegerField() @@ -3942,20 +4601,24 @@ class MdlScormSeqRulecond(models.Model): measurethreshold = models.FloatField() operator = models.CharField(max_length=5) cond = models.CharField(max_length=30) + class Meta: managed = False db_table = 'mdl_scorm_seq_rulecond' + class MdlScormSeqRuleconds(models.Model): id = models.BigIntegerField(primary_key=True) scoid = models.BigIntegerField() conditioncombination = models.CharField(max_length=3) ruletype = models.SmallIntegerField() action = models.CharField(max_length=25) + class Meta: managed = False db_table = 'mdl_scorm_seq_ruleconds' + class MdlSessions(models.Model): id = models.BigIntegerField(primary_key=True) state = models.BigIntegerField() @@ -3966,10 +4629,12 @@ class MdlSessions(models.Model): timemodified = models.BigIntegerField() firstip = models.CharField(max_length=45, blank=True) lastip = models.CharField(max_length=45, blank=True) + class Meta: managed = False db_table = 'mdl_sessions' + class MdlStatsDaily(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -3978,10 +4643,12 @@ class MdlStatsDaily(models.Model): stattype = models.CharField(max_length=20) stat1 = models.BigIntegerField() stat2 = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_stats_daily' + class MdlStatsMonthly(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -3990,10 +4657,12 @@ class MdlStatsMonthly(models.Model): stattype = models.CharField(max_length=20) stat1 = models.BigIntegerField() stat2 = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_stats_monthly' + class MdlStatsUserDaily(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -4003,10 +4672,12 @@ class MdlStatsUserDaily(models.Model): statsreads = models.BigIntegerField() statswrites = models.BigIntegerField() stattype = models.CharField(max_length=30) + class Meta: managed = False db_table = 'mdl_stats_user_daily' + class MdlStatsUserMonthly(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -4016,10 +4687,12 @@ class MdlStatsUserMonthly(models.Model): statsreads = models.BigIntegerField() statswrites = models.BigIntegerField() stattype = models.CharField(max_length=30) + class Meta: managed = False db_table = 'mdl_stats_user_monthly' + class MdlStatsUserWeekly(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -4029,10 +4702,12 @@ class MdlStatsUserWeekly(models.Model): statsreads = models.BigIntegerField() statswrites = models.BigIntegerField() stattype = models.CharField(max_length=30) + class Meta: managed = False db_table = 'mdl_stats_user_weekly' + class MdlStatsWeekly(models.Model): id = models.BigIntegerField(primary_key=True) courseid = models.BigIntegerField() @@ -4041,10 +4716,12 @@ class MdlStatsWeekly(models.Model): stattype = models.CharField(max_length=20) stat1 = models.BigIntegerField() stat2 = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_stats_weekly' + class MdlSurvey(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -4056,19 +4733,23 @@ class MdlSurvey(models.Model): intro = models.TextField() questions = models.CharField(max_length=255) introformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_survey' + class MdlSurveyAnalysis(models.Model): id = models.BigIntegerField(primary_key=True) survey = models.BigIntegerField() userid = models.BigIntegerField() notes = models.TextField() + class Meta: managed = False db_table = 'mdl_survey_analysis' + class MdlSurveyAnswers(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() @@ -4077,10 +4758,12 @@ class MdlSurveyAnswers(models.Model): time = models.BigIntegerField() answer1 = models.TextField() answer2 = models.TextField() + class Meta: managed = False db_table = 'mdl_survey_answers' + class MdlSurveyQuestions(models.Model): id = models.BigIntegerField(primary_key=True) text = models.CharField(max_length=255) @@ -4089,10 +4772,12 @@ class MdlSurveyQuestions(models.Model): intro = models.CharField(max_length=50) type = models.SmallIntegerField() options = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_survey_questions' + class MdlTag(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(unique=True, max_length=255) @@ -4103,18 +4788,22 @@ class MdlTag(models.Model): timemodified = models.BigIntegerField(blank=True, null=True) rawname = models.CharField(max_length=255) userid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_tag' + class MdlTagCorrelation(models.Model): id = models.BigIntegerField(primary_key=True) correlatedtags = models.TextField() tagid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_tag_correlation' + class MdlTagInstance(models.Model): id = models.BigIntegerField(primary_key=True) itemtype = models.CharField(max_length=255) @@ -4123,27 +4812,49 @@ class MdlTagInstance(models.Model): itemid = models.BigIntegerField() ordering = models.BigIntegerField(blank=True, null=True) tiuserid = models.BigIntegerField() + component = models.CharField(max_length=100, blank=True) + contextid = models.BigIntegerField(blank=True, null=True) + timecreated = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_tag_instance' -class MdlTempEnroledTemplate(models.Model): + +class MdlTaskAdhoc(models.Model): id = models.BigIntegerField(primary_key=True) - userid = models.BigIntegerField() - courseid = models.BigIntegerField() - roleid = models.BigIntegerField() + component = models.CharField(max_length=255) + classname = models.CharField(max_length=255) + nextruntime = models.BigIntegerField() + faildelay = models.BigIntegerField(blank=True, null=True) + customdata = models.TextField(blank=True) + blocking = models.SmallIntegerField() + class Meta: managed = False - db_table = 'mdl_temp_enroled_template' + db_table = 'mdl_task_adhoc' + -class MdlTempLogTemplate(models.Model): +class MdlTaskScheduled(models.Model): id = models.BigIntegerField(primary_key=True) - userid = models.BigIntegerField() - course = models.BigIntegerField() - action = models.CharField(max_length=40) + component = models.CharField(max_length=255) + classname = models.CharField(unique=True, max_length=255) + lastruntime = models.BigIntegerField(blank=True, null=True) + nextruntime = models.BigIntegerField(blank=True, null=True) + blocking = models.SmallIntegerField() + minute = models.CharField(max_length=25) + hour = models.CharField(max_length=25) + day = models.CharField(max_length=25) + month = models.CharField(max_length=25) + dayofweek = models.CharField(max_length=25) + faildelay = models.BigIntegerField(blank=True, null=True) + customised = models.SmallIntegerField() + disabled = models.SmallIntegerField() + class Meta: managed = False - db_table = 'mdl_temp_log_template' + db_table = 'mdl_task_scheduled' + class MdlTimezone(models.Model): id = models.BigIntegerField(primary_key=True) @@ -4162,10 +4873,12 @@ class MdlTimezone(models.Model): std_weekday = models.SmallIntegerField() std_skipweeks = models.SmallIntegerField() std_time = models.CharField(max_length=6) + class Meta: managed = False db_table = 'mdl_timezone' + class MdlToolCustomlang(models.Model): id = models.BigIntegerField(primary_key=True) lang = models.CharField(max_length=20) @@ -4178,18 +4891,83 @@ class MdlToolCustomlang(models.Model): timecustomized = models.BigIntegerField(blank=True, null=True) outdated = models.SmallIntegerField(blank=True, null=True) modified = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_tool_customlang' + class MdlToolCustomlangComponents(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) version = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_tool_customlang_components' + +class MdlToolMonitorEvents(models.Model): + id = models.BigIntegerField(primary_key=True) + eventname = models.CharField(max_length=254) + contextid = models.BigIntegerField() + contextlevel = models.BigIntegerField() + contextinstanceid = models.BigIntegerField() + link = models.CharField(max_length=254) + courseid = models.BigIntegerField() + timecreated = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_tool_monitor_events' + + +class MdlToolMonitorHistory(models.Model): + id = models.BigIntegerField(primary_key=True) + sid = models.BigIntegerField() + userid = models.BigIntegerField() + timesent = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_tool_monitor_history' + + +class MdlToolMonitorRules(models.Model): + id = models.BigIntegerField(primary_key=True) + description = models.TextField(blank=True) + descriptionformat = models.SmallIntegerField() + name = models.CharField(max_length=254) + userid = models.BigIntegerField() + courseid = models.BigIntegerField() + plugin = models.CharField(max_length=254) + eventname = models.CharField(max_length=254) + template = models.TextField() + templateformat = models.SmallIntegerField() + frequency = models.SmallIntegerField() + timewindow = models.IntegerField() + timemodified = models.BigIntegerField() + timecreated = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_tool_monitor_rules' + + +class MdlToolMonitorSubscriptions(models.Model): + id = models.BigIntegerField(primary_key=True) + courseid = models.BigIntegerField() + ruleid = models.BigIntegerField() + cmid = models.BigIntegerField() + userid = models.BigIntegerField() + timecreated = models.BigIntegerField() + lastnotificationsent = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_tool_monitor_subscriptions' + + class MdlUnittestCourseModules(models.Model): id = models.BigIntegerField(primary_key=True) groupmembersonly = models.SmallIntegerField() @@ -4205,10 +4983,12 @@ class MdlUnittestCourseModules(models.Model): instance = models.BigIntegerField() module = models.BigIntegerField() course = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_course_modules' + class MdlUnittestGradeCategories(models.Model): id = models.BigIntegerField(primary_key=True) timemodified = models.BigIntegerField() @@ -4224,10 +5004,12 @@ class MdlUnittestGradeCategories(models.Model): depth = models.BigIntegerField() parent = models.BigIntegerField(blank=True, null=True) courseid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_grade_categories' + class MdlUnittestGradeCategoriesHistory(models.Model): id = models.BigIntegerField(primary_key=True) aggregatesubcats = models.SmallIntegerField() @@ -4246,10 +5028,12 @@ class MdlUnittestGradeCategoriesHistory(models.Model): source = models.CharField(max_length=255, blank=True) oldid = models.BigIntegerField() action = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_grade_categories_history' + class MdlUnittestGradeGrades(models.Model): id = models.BigIntegerField(primary_key=True) timemodified = models.BigIntegerField(blank=True, null=True) @@ -4272,10 +5056,12 @@ class MdlUnittestGradeGrades(models.Model): rawgrade = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) userid = models.BigIntegerField() itemid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_grade_grades' + class MdlUnittestGradeGradesHistory(models.Model): id = models.BigIntegerField(primary_key=True) informationformat = models.BigIntegerField() @@ -4301,10 +5087,12 @@ class MdlUnittestGradeGradesHistory(models.Model): source = models.CharField(max_length=255, blank=True) oldid = models.BigIntegerField() action = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_grade_grades_history' + class MdlUnittestGradeItems(models.Model): id = models.BigIntegerField(primary_key=True) timemodified = models.BigIntegerField(blank=True, null=True) @@ -4335,10 +5123,12 @@ class MdlUnittestGradeItems(models.Model): itemname = models.CharField(max_length=255, blank=True) categoryid = models.BigIntegerField(blank=True, null=True) courseid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_unittest_grade_items' + class MdlUnittestGradeItemsHistory(models.Model): id = models.BigIntegerField(primary_key=True) needsupdate = models.BigIntegerField() @@ -4371,10 +5161,12 @@ class MdlUnittestGradeItemsHistory(models.Model): source = models.CharField(max_length=255, blank=True) oldid = models.BigIntegerField() action = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_grade_items_history' + class MdlUnittestGradeOutcomes(models.Model): id = models.BigIntegerField(primary_key=True) usermodified = models.BigIntegerField(blank=True, null=True) @@ -4384,10 +5176,12 @@ class MdlUnittestGradeOutcomes(models.Model): fullname = models.TextField() shortname = models.CharField(max_length=255) courseid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_unittest_grade_outcomes' + class MdlUnittestGradeOutcomesHistory(models.Model): id = models.BigIntegerField(primary_key=True) scaleid = models.BigIntegerField(blank=True, null=True) @@ -4399,10 +5193,12 @@ class MdlUnittestGradeOutcomesHistory(models.Model): source = models.CharField(max_length=255, blank=True) oldid = models.BigIntegerField() action = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_grade_outcomes_history' + class MdlUnittestModules(models.Model): id = models.BigIntegerField(primary_key=True) visible = models.SmallIntegerField() @@ -4411,10 +5207,12 @@ class MdlUnittestModules(models.Model): cron = models.BigIntegerField() version = models.BigIntegerField() name = models.CharField(max_length=20) + class Meta: managed = False db_table = 'mdl_unittest_modules' + class MdlUnittestQuiz(models.Model): id = models.BigIntegerField(primary_key=True) delay2 = models.BigIntegerField() @@ -4443,10 +5241,12 @@ class MdlUnittestQuiz(models.Model): intro = models.TextField() name = models.CharField(max_length=255) course = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_quiz' + class MdlUnittestScale(models.Model): id = models.BigIntegerField(primary_key=True) timemodified = models.BigIntegerField() @@ -4455,10 +5255,12 @@ class MdlUnittestScale(models.Model): name = models.CharField(max_length=255) userid = models.BigIntegerField() courseid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_scale' + class MdlUnittestScaleHistory(models.Model): id = models.BigIntegerField(primary_key=True) description = models.TextField() @@ -4471,10 +5273,12 @@ class MdlUnittestScaleHistory(models.Model): source = models.CharField(max_length=255, blank=True) oldid = models.BigIntegerField() action = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_unittest_scale_history' + class MdlUpgradeLog(models.Model): id = models.BigIntegerField(primary_key=True) type = models.BigIntegerField() @@ -4486,10 +5290,12 @@ class MdlUpgradeLog(models.Model): backtrace = models.TextField(blank=True) userid = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_upgrade_log' + class MdlUrl(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -4501,10 +5307,12 @@ class MdlUrl(models.Model): displayoptions = models.TextField(blank=True) parameters = models.TextField(blank=True) timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_url' + class MdlUser(models.Model): id = models.BigIntegerField(primary_key=True) auth = models.CharField(max_length=20) @@ -4525,9 +5333,9 @@ class MdlUser(models.Model): msn = models.CharField(max_length=50) phone1 = models.CharField(max_length=20) phone2 = models.CharField(max_length=20) - institution = models.CharField(max_length=40) - department = models.CharField(max_length=30) - address = models.CharField(max_length=70) + institution = models.CharField(max_length=255) + department = models.CharField(max_length=255) + address = models.CharField(max_length=255) city = models.CharField(max_length=120) country = models.CharField(max_length=2) lang = models.CharField(max_length=30) @@ -4545,7 +5353,6 @@ class MdlUser(models.Model): mailformat = models.SmallIntegerField() maildigest = models.SmallIntegerField() maildisplay = models.SmallIntegerField() - htmleditor = models.SmallIntegerField() autosubscribe = models.SmallIntegerField() trackforums = models.SmallIntegerField() timemodified = models.BigIntegerField() @@ -4555,10 +5362,35 @@ class MdlUser(models.Model): descriptionformat = models.SmallIntegerField() timecreated = models.BigIntegerField() suspended = models.SmallIntegerField() + lastnamephonetic = models.CharField(max_length=255, blank=True) + firstnamephonetic = models.CharField(max_length=255, blank=True) + middlename = models.CharField(max_length=255, blank=True) + alternatename = models.CharField(max_length=255, blank=True) + calendartype = models.CharField(max_length=30) + class Meta: managed = False db_table = 'mdl_user' + +class MdlUserDevices(models.Model): + id = models.BigIntegerField(primary_key=True) + userid = models.BigIntegerField() + appid = models.CharField(max_length=128) + name = models.CharField(max_length=32) + model = models.CharField(max_length=32) + platform = models.CharField(max_length=32) + version = models.CharField(max_length=32) + pushid = models.CharField(max_length=255) + uuid = models.CharField(max_length=255) + timecreated = models.BigIntegerField() + timemodified = models.BigIntegerField() + + class Meta: + managed = False + db_table = 'mdl_user_devices' + + class MdlUserEnrolments(models.Model): id = models.BigIntegerField(primary_key=True) status = models.BigIntegerField() @@ -4569,28 +5401,34 @@ class MdlUserEnrolments(models.Model): modifierid = models.BigIntegerField() timecreated = models.BigIntegerField() timemodified = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_user_enrolments' + class MdlUserInfoCategory(models.Model): id = models.BigIntegerField(primary_key=True) name = models.CharField(max_length=255) sortorder = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_user_info_category' + class MdlUserInfoData(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() fieldid = models.BigIntegerField() data = models.TextField() dataformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_user_info_data' + class MdlUserInfoField(models.Model): id = models.BigIntegerField(primary_key=True) shortname = models.CharField(max_length=255) @@ -4612,28 +5450,46 @@ class MdlUserInfoField(models.Model): signup = models.SmallIntegerField() defaultdataformat = models.SmallIntegerField() descriptionformat = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_user_info_field' + class MdlUserLastaccess(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() courseid = models.BigIntegerField() timeaccess = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_user_lastaccess' + +class MdlUserPasswordResets(models.Model): + id = models.BigIntegerField(primary_key=True) + userid = models.BigIntegerField() + timerequested = models.BigIntegerField() + timererequested = models.BigIntegerField() + token = models.CharField(max_length=32) + + class Meta: + managed = False + db_table = 'mdl_user_password_resets' + + class MdlUserPreferences(models.Model): id = models.BigIntegerField(primary_key=True) userid = models.BigIntegerField() name = models.CharField(max_length=255) value = models.CharField(max_length=1333) + class Meta: managed = False db_table = 'mdl_user_preferences' + class MdlUserPrivateKey(models.Model): id = models.BigIntegerField(primary_key=True) script = models.CharField(max_length=128) @@ -4643,10 +5499,12 @@ class MdlUserPrivateKey(models.Model): iprestriction = models.CharField(max_length=255, blank=True) validuntil = models.BigIntegerField(blank=True, null=True) timecreated = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_user_private_key' + class MdlWebdavLocks(models.Model): id = models.BigIntegerField(primary_key=True) token = models.CharField(unique=True, max_length=255) @@ -4658,10 +5516,12 @@ class MdlWebdavLocks(models.Model): created = models.BigIntegerField() modified = models.BigIntegerField() owner = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_webdav_locks' + class MdlWiki(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -4676,30 +5536,36 @@ class MdlWiki(models.Model): editbegin = models.BigIntegerField() editend = models.BigIntegerField(blank=True, null=True) timecreated = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_wiki' + class MdlWikiLinks(models.Model): id = models.BigIntegerField(primary_key=True) subwikiid = models.BigIntegerField() frompageid = models.BigIntegerField() topageid = models.BigIntegerField() tomissingpage = models.CharField(max_length=255, blank=True) + class Meta: managed = False db_table = 'mdl_wiki_links' + class MdlWikiLocks(models.Model): id = models.BigIntegerField(primary_key=True) pageid = models.BigIntegerField() sectionname = models.CharField(max_length=255, blank=True) userid = models.BigIntegerField() lockedat = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_wiki_locks' + class MdlWikiPages(models.Model): id = models.BigIntegerField(primary_key=True) subwikiid = models.BigIntegerField() @@ -4711,28 +5577,34 @@ class MdlWikiPages(models.Model): userid = models.BigIntegerField() pageviews = models.BigIntegerField() readonly = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_wiki_pages' + class MdlWikiSubwikis(models.Model): id = models.BigIntegerField(primary_key=True) wikiid = models.BigIntegerField() groupid = models.BigIntegerField() userid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_wiki_subwikis' + class MdlWikiSynonyms(models.Model): id = models.BigIntegerField(primary_key=True) subwikiid = models.BigIntegerField() pageid = models.BigIntegerField() pagesynonym = models.CharField(max_length=255) + class Meta: managed = False db_table = 'mdl_wiki_synonyms' + class MdlWikiVersions(models.Model): id = models.BigIntegerField(primary_key=True) pageid = models.BigIntegerField() @@ -4741,10 +5613,12 @@ class MdlWikiVersions(models.Model): version = models.IntegerField() timecreated = models.BigIntegerField() userid = models.BigIntegerField() + class Meta: managed = False db_table = 'mdl_wiki_versions' + class MdlWorkshop(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -4779,20 +5653,24 @@ class MdlWorkshop(models.Model): overallfeedbackmode = models.SmallIntegerField(blank=True, null=True) overallfeedbackfiles = models.SmallIntegerField(blank=True, null=True) overallfeedbackmaxbytes = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop' + class MdlWorkshopAggregations(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() userid = models.BigIntegerField() gradinggrade = models.DecimalField(max_digits=10, decimal_places=5, blank=True, null=True) timegraded = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_aggregations' + class MdlWorkshopAssessments(models.Model): id = models.BigIntegerField(primary_key=True) submissionid = models.BigIntegerField() @@ -4809,10 +5687,12 @@ class MdlWorkshopAssessments(models.Model): feedbackreviewer = models.TextField(blank=True) feedbackreviewerformat = models.SmallIntegerField(blank=True, null=True) feedbackauthorattachment = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_assessments' + class MdlWorkshopAssessmentsOld(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -4831,10 +5711,12 @@ class MdlWorkshopAssessmentsOld(models.Model): teachercomment = models.TextField() newplugin = models.CharField(max_length=28, blank=True) newid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_assessments_old' + class MdlWorkshopCommentsOld(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -4845,10 +5727,12 @@ class MdlWorkshopCommentsOld(models.Model): comments = models.TextField() newplugin = models.CharField(max_length=28, blank=True) newid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_comments_old' + class MdlWorkshopElementsOld(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -4861,10 +5745,12 @@ class MdlWorkshopElementsOld(models.Model): totalassessments = models.BigIntegerField() newplugin = models.CharField(max_length=28, blank=True) newid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_elements_old' + class MdlWorkshopGrades(models.Model): id = models.BigIntegerField(primary_key=True) assessmentid = models.BigIntegerField() @@ -4873,10 +5759,12 @@ class MdlWorkshopGrades(models.Model): grade = models.DecimalField(max_digits=10, decimal_places=5) peercomment = models.TextField(blank=True) peercommentformat = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_grades' + class MdlWorkshopGradesOld(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -4886,10 +5774,12 @@ class MdlWorkshopGradesOld(models.Model): grade = models.SmallIntegerField() newplugin = models.CharField(max_length=28, blank=True) newid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_grades_old' + class MdlWorkshopOld(models.Model): id = models.BigIntegerField(primary_key=True) course = models.BigIntegerField() @@ -4925,10 +5815,12 @@ class MdlWorkshopOld(models.Model): password = models.CharField(max_length=32) newplugin = models.CharField(max_length=28, blank=True) newid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_old' + class MdlWorkshopRubricsOld(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -4937,10 +5829,12 @@ class MdlWorkshopRubricsOld(models.Model): description = models.TextField() newplugin = models.CharField(max_length=28, blank=True) newid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_rubrics_old' + class MdlWorkshopStockcommentsOld(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -4948,10 +5842,12 @@ class MdlWorkshopStockcommentsOld(models.Model): comments = models.TextField() newplugin = models.CharField(max_length=28, blank=True) newid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_stockcomments_old' + class MdlWorkshopSubmissions(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -4972,10 +5868,12 @@ class MdlWorkshopSubmissions(models.Model): timegraded = models.BigIntegerField(blank=True, null=True) published = models.SmallIntegerField(blank=True, null=True) late = models.SmallIntegerField() + class Meta: managed = False db_table = 'mdl_workshop_submissions' + class MdlWorkshopSubmissionsOld(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -4990,10 +5888,12 @@ class MdlWorkshopSubmissionsOld(models.Model): nassessments = models.BigIntegerField() newplugin = models.CharField(max_length=28, blank=True) newid = models.BigIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshop_submissions_old' + class MdlWorkshopallocationScheduled(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField(unique=True) @@ -5004,18 +5904,22 @@ class MdlWorkshopallocationScheduled(models.Model): resultstatus = models.BigIntegerField(blank=True, null=True) resultmessage = models.CharField(max_length=1333, blank=True) resultlog = models.TextField(blank=True) + class Meta: managed = False db_table = 'mdl_workshopallocation_scheduled' + class MdlWorkshopevalBestSettings(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField(unique=True) comparison = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshopeval_best_settings' + class MdlWorkshopformAccumulative(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -5024,20 +5928,24 @@ class MdlWorkshopformAccumulative(models.Model): descriptionformat = models.SmallIntegerField(blank=True, null=True) grade = models.BigIntegerField() weight = models.IntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshopform_accumulative' + class MdlWorkshopformComments(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() sort = models.BigIntegerField(blank=True, null=True) description = models.TextField(blank=True) descriptionformat = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshopform_comments' + class MdlWorkshopformNumerrors(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() @@ -5048,44 +5956,52 @@ class MdlWorkshopformNumerrors(models.Model): grade0 = models.CharField(max_length=50, blank=True) grade1 = models.CharField(max_length=50, blank=True) weight = models.IntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshopform_numerrors' + class MdlWorkshopformNumerrorsMap(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() nonegative = models.BigIntegerField() grade = models.DecimalField(max_digits=10, decimal_places=5) + class Meta: managed = False db_table = 'mdl_workshopform_numerrors_map' + class MdlWorkshopformRubric(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField() sort = models.BigIntegerField(blank=True, null=True) description = models.TextField(blank=True) descriptionformat = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshopform_rubric' + class MdlWorkshopformRubricConfig(models.Model): id = models.BigIntegerField(primary_key=True) workshopid = models.BigIntegerField(unique=True) layout = models.CharField(max_length=30, blank=True) + class Meta: managed = False db_table = 'mdl_workshopform_rubric_config' + class MdlWorkshopformRubricLevels(models.Model): id = models.BigIntegerField(primary_key=True) dimensionid = models.BigIntegerField() grade = models.DecimalField(max_digits=10, decimal_places=5) definition = models.TextField(blank=True) definitionformat = models.SmallIntegerField(blank=True, null=True) + class Meta: managed = False db_table = 'mdl_workshopform_rubric_levels' - diff --git a/sigi/apps/mdl/models.py b/sigi/apps/mdl/models.py index 3cf129b..98833b3 100644 --- a/sigi/apps/mdl/models.py +++ b/sigi/apps/mdl/models.py @@ -61,6 +61,7 @@ class Cohort(models.Model): component = models.CharField(max_length=100) timecreated = models.BigIntegerField() timemodified = models.BigIntegerField() + visible = models.SmallIntegerField() # Manytomany members = models.ManyToManyField('User', through='CohortMembers') @@ -114,7 +115,6 @@ class Course(models.Model): summary = models.TextField(blank=True) format = models.CharField(max_length=21) showgrades = models.SmallIntegerField() - modinfo = models.TextField(blank=True) newsitems = models.IntegerField() startdate = models.BigIntegerField() marker = models.BigIntegerField() @@ -135,7 +135,8 @@ class Course(models.Model): summaryformat = models.SmallIntegerField() completionnotify = models.SmallIntegerField() visibleold = models.SmallIntegerField() - sectioncache = models.TextField(blank=True) + calendartype = models.CharField(max_length=30) + cacherev = models.BigIntegerField() class Meta: managed = False @@ -291,9 +292,9 @@ class User(models.Model): msn = models.CharField(max_length=50) phone1 = models.CharField(max_length=20) phone2 = models.CharField(max_length=20) - institution = models.CharField(max_length=40) - department = models.CharField(max_length=30) - address = models.CharField(max_length=70) + institution = models.CharField(max_length=255) + department = models.CharField(max_length=255) + address = models.CharField(max_length=255) city = models.CharField(max_length=120) country = models.CharField(max_length=2) lang = models.CharField(max_length=30) @@ -311,7 +312,6 @@ class User(models.Model): mailformat = models.SmallIntegerField() maildigest = models.SmallIntegerField() maildisplay = models.SmallIntegerField() - htmleditor = models.SmallIntegerField() autosubscribe = models.SmallIntegerField() trackforums = models.SmallIntegerField() timemodified = models.BigIntegerField() @@ -321,6 +321,11 @@ class User(models.Model): descriptionformat = models.SmallIntegerField() timecreated = models.BigIntegerField() suspended = models.SmallIntegerField() + lastnamephonetic = models.CharField(max_length=255, blank=True) + firstnamephonetic = models.CharField(max_length=255, blank=True) + middlename = models.CharField(max_length=255, blank=True) + alternatename = models.CharField(max_length=255, blank=True) + calendartype = models.CharField(max_length=30) class Meta: managed = False