-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (i686)
--
-- Host: localhost Database: yn2014
-- ------------------------------------------------------
-- Server version 5.5.37-0+wheezy1-log
/*!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 */;
--
-- Table structure for table `access`
--
DROP TABLE IF EXISTS `access`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `access` (
`accessid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`accessname` varchar(255) DEFAULT NULL,
`accesslevel` int(4) DEFAULT NULL,
PRIMARY KEY (`accessid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `acls`
--
DROP TABLE IF EXISTS `acls`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acls` (
`aclid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`folderid` int(10) unsigned NOT NULL DEFAULT '0',
`groupid` int(10) unsigned DEFAULT '0',
`userid` int(10) unsigned DEFAULT '0',
`accessid` int(4) DEFAULT NULL,
PRIMARY KEY (`aclid`),
KEY `IXFOLDER` (`folderid`),
KEY `IXGROUP` (`groupid`),
KEY `IXUSER` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `announce`
--
DROP TABLE IF EXISTS `announce`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `announce` (
`announceid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`hFrom` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`hSubject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`body` blob,
`publish` int(4) DEFAULT NULL,
PRIMARY KEY (`announceid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `course`
--
DROP TABLE IF EXISTS `course`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `course` (
`courseid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tutor` varchar(255) DEFAULT NULL,
`course` varchar(255) DEFAULT NULL,
`room` varchar(255) DEFAULT NULL,
`datetime` int(10) DEFAULT '0',
`talk` int(2) DEFAULT '0',
`actuserid` int(10) unsigned NOT NULL DEFAULT '0',
`acttalkid` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`courseid`),
KEY `IXTALK` (`acttalkid`),
KEY `IXTUTOR` (`actuserid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `evaluation`
--
DROP TABLE IF EXISTS `evaluation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `evaluation` (
`evalid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`courseid` int(10) unsigned NOT NULL,
`name` varchar(32) DEFAULT NULL,
`code` int(10) unsigned DEFAULT NULL,
`value` text,
PRIMARY KEY (`evalid`),
KEY `IXCOURSE` (`courseid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `folders`
--
DROP TABLE IF EXISTS `folders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `folders` (
`folderid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent` int(10) DEFAULT NULL,
`accessid` int(10) NOT NULL DEFAULT '5',
PRIMARY KEY (`folderid`),
KEY `IXPATH` (`path`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `groups`
--
DROP TABLE IF EXISTS `groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `groups` (
`groupid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`groupname` varchar(255) DEFAULT NULL,
`master` int(2) DEFAULT '0',
`member` varchar(255) DEFAULT NULL,
PRIMARY KEY (`groupid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `images`
--
DROP TABLE IF EXISTS `images`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `images` (
`imageid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tag` varchar(255) DEFAULT NULL,
`link` varchar(255) DEFAULT NULL,
`href` varchar(255) DEFAULT NULL,
`type` int(4) DEFAULT NULL,
`dimensions` varchar(32) DEFAULT NULL,
PRIMARY KEY (`imageid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `imagestock`
--
DROP TABLE IF EXISTS `imagestock`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `imagestock` (
`stockid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`path` varchar(255) DEFAULT NULL,
PRIMARY KEY (`stockid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `imetadata`
--
DROP TABLE IF EXISTS `imetadata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `imetadata` (
`imageid` int(10) unsigned NOT NULL DEFAULT '0',
`tag` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`imageid`,`tag`),
KEY `IXTAG` (`tag`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `inbox`
--
DROP TABLE IF EXISTS `inbox`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `inbox` (
`inboxid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`message` varchar(255) DEFAULT NULL,
PRIMARY KEY (`inboxid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ixannounce`
--
DROP TABLE IF EXISTS `ixannounce`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ixannounce` (
`announceid` int(10) unsigned NOT NULL,
`userid` int(10) unsigned NOT NULL,
`sentdate` int(10) NOT NULL DEFAULT '0',
PRIMARY KEY (`announceid`,`userid`,`sentdate`),
KEY `IXUSER` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ixcourse`
--
DROP TABLE IF EXISTS `ixcourse`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ixcourse` (
`courseid` int(10) unsigned NOT NULL,
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`completed` int(10) DEFAULT '0',
PRIMARY KEY (`courseid`,`userid`),
KEY `IXUSER` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ixfolderrealm`
--
DROP TABLE IF EXISTS `ixfolderrealm`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ixfolderrealm` (
`folderid` int(10) unsigned NOT NULL DEFAULT '0',
`realmid` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`folderid`,`realmid`),
KEY `IXREALM` (`realmid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ixsurvey`
--
DROP TABLE IF EXISTS `ixsurvey`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ixsurvey` (
`code` varchar(255) NOT NULL DEFAULT '',
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`completed` int(10) DEFAULT '0',
`sentdate` int(10) DEFAULT '0',
PRIMARY KEY (`code`),
KEY `IXUSER` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ixusergroup`
--
DROP TABLE IF EXISTS `ixusergroup`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ixusergroup` (
`indexid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` int(1) unsigned NOT NULL DEFAULT '0',
`linkid` int(10) unsigned NOT NULL DEFAULT '0',
`groupid` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`indexid`),
KEY `IXTYPE` (`type`),
KEY `IXLINK` (`linkid`),
KEY `IXGROUP` (`groupid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `realms`
--
DROP TABLE IF EXISTS `realms`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `realms` (
`realmid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`realm` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`realmid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sections`
--
DROP TABLE IF EXISTS `sections`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sections` (
`sectionid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sectionkey` varchar(8) DEFAULT NULL,
`sectionname` varchar(255) DEFAULT NULL,
`orderno` int(4) DEFAULT '0',
PRIMARY KEY (`sectionid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sessions`
--
DROP TABLE IF EXISTS `sessions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sessions` (
`sessionid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`labyrinth` varchar(255) DEFAULT NULL,
`userid` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(255) DEFAULT NULL,
`realm` varchar(255) DEFAULT NULL,
`folderid` int(10) unsigned NOT NULL DEFAULT '0',
`optionid` int(10) unsigned NOT NULL DEFAULT '0',
`timeout` int(10) unsigned NOT NULL DEFAULT '0',
`langcode` char(2) NOT NULL DEFAULT 'en',
`query` blob,
PRIMARY KEY (`sessionid`),
KEY `IXLAB` (`labyrinth`),
KEY `IXTIMEOUT` (`timeout`),
KEY `IXUSER` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `survey`
--
DROP TABLE IF EXISTS `survey`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `survey` (
`surveyid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) DEFAULT NULL,
`code` int(10) unsigned DEFAULT NULL,
`value` text,
PRIMARY KEY (`surveyid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`userid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`accessid` int(10) unsigned NOT NULL DEFAULT '1',
`nickname` varchar(255) DEFAULT NULL,
`realname` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`realm` varchar(20) DEFAULT NULL,
`search` int(1) DEFAULT NULL,
`confirmed` int(1) DEFAULT '0',
`mailed` int(1) DEFAULT '0',
`password` varchar(255) DEFAULT NULL,
`imageid` int(10) unsigned DEFAULT '0',
`aboutme` blob,
`actuserid` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`userid`),
KEY `IXACCESS` (`accessid`),
KEY `IXIMAGE` (`imageid`),
KEY `IXUSER` (`actuserid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 2014-07-15 21:52:27