12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973 |
- -- MySQL dump 10.13 Distrib 5.1.66, for debian-linux-gnu (i486)
- --
- -- Host: localhost Database: chamilo
- -- ------------------------------------------------------
- -- Server version 5.1.66-0+squeeze1
- /*!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 c_announcement
- --
- DROP TABLE IF EXISTS c_announcement;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_announcement (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title text,
- content mediumtext,
- end_date date DEFAULT NULL,
- display_order mediumint(9) NOT NULL DEFAULT '0',
- email_sent tinyint(4) DEFAULT '0',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_announcement_attachment
- --
- DROP TABLE IF EXISTS c_announcement_attachment;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_announcement_attachment (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int(11) NOT NULL DEFAULT '0',
- announcement_id int(11) NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_attendance
- --
- DROP TABLE IF EXISTS c_attendance;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_attendance (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- name text NOT NULL,
- description text,
- active tinyint(4) NOT NULL DEFAULT '1',
- attendance_qualify_title varchar(255) DEFAULT NULL,
- attendance_qualify_max int(11) NOT NULL DEFAULT '0',
- attendance_weight float(6,2) NOT NULL DEFAULT '0.00',
- session_id int(11) NOT NULL DEFAULT '0',
- locked int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id),
- KEY active (active)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_attendance_calendar
- --
- DROP TABLE IF EXISTS c_attendance_calendar;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_attendance_calendar (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- attendance_id int(11) NOT NULL,
- date_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- done_attendance tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY attendance_id (attendance_id),
- KEY done_attendance (done_attendance)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_attendance_result
- --
- DROP TABLE IF EXISTS c_attendance_result;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_attendance_result (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL,
- attendance_id int(11) NOT NULL,
- score int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY attendance_id (attendance_id),
- KEY user_id (user_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_attendance_sheet
- --
- DROP TABLE IF EXISTS c_attendance_sheet;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_attendance_sheet (
- c_id int(11) NOT NULL,
- user_id int(11) NOT NULL,
- attendance_calendar_id int(11) NOT NULL,
- presence tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,user_id,attendance_calendar_id),
- KEY presence (presence)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_attendance_sheet_log
- --
- DROP TABLE IF EXISTS c_attendance_sheet_log;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_attendance_sheet_log (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- attendance_id int(11) NOT NULL DEFAULT '0',
- lastedit_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- lastedit_type varchar(200) NOT NULL,
- lastedit_user_id int(11) NOT NULL DEFAULT '0',
- calendar_date_value datetime DEFAULT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_blog
- --
- DROP TABLE IF EXISTS c_blog;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_blog (
- c_id int(11) NOT NULL,
- blog_id int(11) NOT NULL AUTO_INCREMENT,
- blog_name varchar(250) NOT NULL DEFAULT '',
- blog_subtitle varchar(250) DEFAULT NULL,
- date_creation datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- visibility tinyint(3) unsigned NOT NULL DEFAULT '0',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,blog_id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with blogs in this course';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_blog_attachment
- --
- DROP TABLE IF EXISTS c_blog_attachment;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_blog_attachment (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL COMMENT 'the real filename',
- comment text,
- size int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL,
- filename varchar(255) NOT NULL COMMENT 'the user s file name',
- blog_id int(11) NOT NULL,
- comment_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_blog_comment
- --
- DROP TABLE IF EXISTS c_blog_comment;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_blog_comment (
- c_id int(11) NOT NULL,
- comment_id int(11) NOT NULL AUTO_INCREMENT,
- title varchar(250) NOT NULL DEFAULT '',
- comment longtext NOT NULL,
- author_id int(11) NOT NULL DEFAULT '0',
- date_creation datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- blog_id int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL DEFAULT '0',
- task_id int(11) DEFAULT NULL,
- parent_comment_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,comment_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with comments on posts in a blog';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_blog_post
- --
- DROP TABLE IF EXISTS c_blog_post;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_blog_post (
- c_id int(11) NOT NULL,
- post_id int(11) NOT NULL AUTO_INCREMENT,
- title varchar(250) NOT NULL DEFAULT '',
- full_text longtext NOT NULL,
- date_creation datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- blog_id int(11) NOT NULL DEFAULT '0',
- author_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,post_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with posts / blog.';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_blog_rating
- --
- DROP TABLE IF EXISTS c_blog_rating;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_blog_rating (
- c_id int(11) NOT NULL,
- rating_id int(11) NOT NULL AUTO_INCREMENT,
- blog_id int(11) NOT NULL DEFAULT '0',
- rating_type enum('post','comment') NOT NULL DEFAULT 'post',
- item_id int(11) NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL DEFAULT '0',
- rating int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,rating_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with ratings for post/comments in a certain blog';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_blog_rel_user
- --
- DROP TABLE IF EXISTS c_blog_rel_user;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_blog_rel_user (
- c_id int(11) NOT NULL,
- blog_id int(11) NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,blog_id,user_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table representing users subscribed to a blog';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_blog_task
- --
- DROP TABLE IF EXISTS c_blog_task;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_blog_task (
- c_id int(11) NOT NULL,
- task_id int(11) NOT NULL AUTO_INCREMENT,
- blog_id int(11) NOT NULL DEFAULT '0',
- title varchar(250) NOT NULL DEFAULT '',
- description text NOT NULL,
- color varchar(10) NOT NULL DEFAULT '',
- system_task tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,task_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with tasks for a blog';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_blog_task_rel_user
- --
- DROP TABLE IF EXISTS c_blog_task_rel_user;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_blog_task_rel_user (
- c_id int(11) NOT NULL,
- blog_id int(11) NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL DEFAULT '0',
- task_id int(11) NOT NULL DEFAULT '0',
- target_date date NOT NULL DEFAULT '0000-00-00',
- PRIMARY KEY (c_id,blog_id,user_id,task_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with tasks assigned to a user in a blog';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_calendar_event
- --
- DROP TABLE IF EXISTS c_calendar_event;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_calendar_event (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL,
- content text,
- start_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- end_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- parent_event_id int(11) DEFAULT NULL,
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- all_day int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_calendar_event_attachment
- --
- DROP TABLE IF EXISTS c_calendar_event_attachment;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_calendar_event_attachment (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int(11) NOT NULL DEFAULT '0',
- agenda_id int(11) NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_calendar_event_repeat
- --
- DROP TABLE IF EXISTS c_calendar_event_repeat;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_calendar_event_repeat (
- c_id int(11) NOT NULL,
- cal_id int(11) NOT NULL DEFAULT '0',
- cal_type varchar(20) DEFAULT NULL,
- cal_end int(11) DEFAULT NULL,
- cal_frequency int(11) DEFAULT '1',
- cal_days char(7) DEFAULT NULL,
- PRIMARY KEY (c_id,cal_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_calendar_event_repeat_not
- --
- DROP TABLE IF EXISTS c_calendar_event_repeat_not;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_calendar_event_repeat_not (
- c_id int(11) NOT NULL,
- cal_id int(11) NOT NULL,
- cal_date int(11) NOT NULL,
- PRIMARY KEY (c_id,cal_id,cal_date)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_chat_connected
- --
- DROP TABLE IF EXISTS c_chat_connected;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_chat_connected (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL DEFAULT '0',
- last_connection datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- session_id int(11) NOT NULL DEFAULT '0',
- to_group_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id,user_id,last_connection),
- KEY char_connected_index (user_id,session_id,to_group_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_course_description
- --
- DROP TABLE IF EXISTS c_course_description;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_course_description (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(255) DEFAULT NULL,
- content text,
- session_id int(11) DEFAULT '0',
- description_type tinyint(3) unsigned NOT NULL DEFAULT '0',
- progress int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_course_setting
- --
- DROP TABLE IF EXISTS c_course_setting;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_course_setting (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- variable varchar(255) NOT NULL DEFAULT '',
- subkey varchar(255) DEFAULT NULL,
- type varchar(255) DEFAULT NULL,
- category varchar(255) DEFAULT NULL,
- value varchar(255) NOT NULL DEFAULT '',
- title varchar(255) NOT NULL DEFAULT '',
- comment varchar(255) DEFAULT NULL,
- subkeytext varchar(255) DEFAULT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_document
- --
- DROP TABLE IF EXISTS c_document;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_document (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL DEFAULT '',
- comment text,
- title varchar(255) DEFAULT NULL,
- filetype set('file','folder') NOT NULL DEFAULT 'file',
- size int(11) NOT NULL DEFAULT '0',
- readonly tinyint(3) unsigned NOT NULL,
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_dropbox_category
- --
- DROP TABLE IF EXISTS c_dropbox_category;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_dropbox_category (
- c_id int(11) NOT NULL,
- cat_id int(11) NOT NULL AUTO_INCREMENT,
- cat_name text NOT NULL,
- received tinyint(3) unsigned NOT NULL DEFAULT '0',
- sent tinyint(3) unsigned NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL DEFAULT '0',
- session_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,cat_id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_dropbox_feedback
- --
- DROP TABLE IF EXISTS c_dropbox_feedback;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_dropbox_feedback (
- c_id int(11) NOT NULL,
- feedback_id int(11) NOT NULL AUTO_INCREMENT,
- file_id int(11) NOT NULL DEFAULT '0',
- author_user_id int(11) NOT NULL DEFAULT '0',
- feedback text NOT NULL,
- feedback_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,feedback_id),
- KEY file_id (file_id),
- KEY author_user_id (author_user_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_dropbox_file
- --
- DROP TABLE IF EXISTS c_dropbox_file;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_dropbox_file (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- uploader_id int(10) unsigned NOT NULL DEFAULT '0',
- filename varchar(250) NOT NULL DEFAULT '',
- filesize int(10) unsigned NOT NULL,
- title varchar(250) DEFAULT '',
- description varchar(250) DEFAULT '',
- author varchar(250) DEFAULT '',
- upload_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- last_upload_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- cat_id int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL,
- PRIMARY KEY (c_id,id),
- UNIQUE KEY UN_filename (filename),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_dropbox_person
- --
- DROP TABLE IF EXISTS c_dropbox_person;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_dropbox_person (
- c_id int(11) NOT NULL,
- file_id int(10) unsigned NOT NULL,
- user_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,file_id,user_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_dropbox_post
- --
- DROP TABLE IF EXISTS c_dropbox_post;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_dropbox_post (
- c_id int(11) NOT NULL,
- file_id int(10) unsigned NOT NULL,
- dest_user_id int(10) unsigned NOT NULL DEFAULT '0',
- feedback_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- feedback text,
- cat_id int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL,
- PRIMARY KEY (c_id,file_id,dest_user_id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_attachment
- --
- DROP TABLE IF EXISTS c_forum_attachment;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_attachment (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_category
- --
- DROP TABLE IF EXISTS c_forum_category;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_category (
- c_id int(11) NOT NULL,
- cat_id int(11) NOT NULL AUTO_INCREMENT,
- cat_title varchar(255) NOT NULL DEFAULT '',
- cat_comment text,
- cat_order int(11) NOT NULL DEFAULT '0',
- locked int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,cat_id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_forum
- --
- DROP TABLE IF EXISTS c_forum_forum;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_forum (
- c_id int(11) NOT NULL,
- forum_id int(11) NOT NULL AUTO_INCREMENT,
- forum_title varchar(255) NOT NULL DEFAULT '',
- forum_comment text,
- forum_threads int(11) DEFAULT '0',
- forum_posts int(11) DEFAULT '0',
- forum_last_post int(11) DEFAULT '0',
- forum_category int(11) DEFAULT NULL,
- allow_anonymous int(11) DEFAULT NULL,
- allow_edit int(11) DEFAULT NULL,
- approval_direct_post varchar(20) DEFAULT NULL,
- allow_attachments int(11) DEFAULT NULL,
- allow_new_threads int(11) DEFAULT NULL,
- default_view varchar(20) DEFAULT NULL,
- forum_of_group varchar(20) DEFAULT NULL,
- forum_group_public_private varchar(20) DEFAULT 'public',
- forum_order int(11) DEFAULT NULL,
- locked int(11) NOT NULL DEFAULT '0',
- session_id int(11) NOT NULL DEFAULT '0',
- forum_image varchar(255) NOT NULL DEFAULT '',
- start_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- end_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,forum_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_mailcue
- --
- DROP TABLE IF EXISTS c_forum_mailcue;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_mailcue (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL DEFAULT '0',
- thread_id int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (id,c_id,thread_id,user_id,post_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_notification
- --
- DROP TABLE IF EXISTS c_forum_notification;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_notification (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL DEFAULT '0',
- forum_id int(11) NOT NULL DEFAULT '0',
- thread_id int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (id,c_id,user_id,forum_id,thread_id,post_id),
- KEY user_id (user_id),
- KEY forum_id (forum_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_post
- --
- DROP TABLE IF EXISTS c_forum_post;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_post (
- c_id int(11) NOT NULL,
- post_id int(11) NOT NULL AUTO_INCREMENT,
- post_title varchar(250) DEFAULT NULL,
- post_text text,
- thread_id int(11) DEFAULT '0',
- forum_id int(11) DEFAULT '0',
- poster_id int(11) DEFAULT '0',
- poster_name varchar(100) DEFAULT '',
- post_date datetime DEFAULT '0000-00-00 00:00:00',
- post_notification tinyint(4) DEFAULT '0',
- post_parent_id int(11) DEFAULT '0',
- visible tinyint(4) DEFAULT '1',
- PRIMARY KEY (c_id,post_id),
- KEY poster_id (poster_id),
- KEY forum_id (forum_id),
- KEY idx_forum_post_thread_id (thread_id),
- KEY idx_forum_post_visible (visible)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_thread
- --
- DROP TABLE IF EXISTS c_forum_thread;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_thread (
- c_id int(11) NOT NULL,
- thread_id int(11) NOT NULL AUTO_INCREMENT,
- thread_title varchar(255) DEFAULT NULL,
- forum_id int(11) DEFAULT NULL,
- thread_replies int(11) DEFAULT '0',
- thread_poster_id int(11) DEFAULT NULL,
- thread_poster_name varchar(100) DEFAULT '',
- thread_views int(11) DEFAULT '0',
- thread_last_post int(11) DEFAULT NULL,
- thread_date datetime DEFAULT '0000-00-00 00:00:00',
- thread_sticky tinyint(3) unsigned DEFAULT '0',
- locked int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned DEFAULT NULL,
- thread_title_qualify varchar(255) DEFAULT '',
- thread_qualify_max float(6,2) unsigned NOT NULL DEFAULT '0.00',
- thread_close_date datetime DEFAULT '0000-00-00 00:00:00',
- thread_weight float(6,2) unsigned NOT NULL DEFAULT '0.00',
- PRIMARY KEY (c_id,thread_id),
- KEY idx_forum_thread_forum_id (forum_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_thread_qualify
- --
- DROP TABLE IF EXISTS c_forum_thread_qualify;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_thread_qualify (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- thread_id int(11) NOT NULL,
- qualify float(6,2) NOT NULL DEFAULT '0.00',
- qualify_user_id int(11) DEFAULT NULL,
- qualify_time datetime DEFAULT '0000-00-00 00:00:00',
- session_id int(11) DEFAULT NULL,
- PRIMARY KEY (c_id,id),
- KEY user_id (user_id,thread_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_forum_thread_qualify_log
- --
- DROP TABLE IF EXISTS c_forum_thread_qualify_log;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_forum_thread_qualify_log (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- thread_id int(11) NOT NULL,
- qualify float(6,2) NOT NULL DEFAULT '0.00',
- qualify_user_id int(11) DEFAULT NULL,
- qualify_time datetime DEFAULT '0000-00-00 00:00:00',
- session_id int(11) DEFAULT NULL,
- PRIMARY KEY (c_id,id),
- KEY user_id (user_id,thread_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_glossary
- --
- DROP TABLE IF EXISTS c_glossary;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_glossary (
- c_id int(11) NOT NULL,
- glossary_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name varchar(255) NOT NULL,
- description text NOT NULL,
- display_order int(11) DEFAULT NULL,
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,glossary_id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_group_category
- --
- DROP TABLE IF EXISTS c_group_category;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_group_category (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL DEFAULT '',
- description text NOT NULL,
- doc_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- calendar_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- work_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- announcements_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- forum_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- wiki_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- chat_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- max_student int(10) unsigned NOT NULL DEFAULT '8',
- self_reg_allowed tinyint(3) unsigned NOT NULL DEFAULT '0',
- self_unreg_allowed tinyint(3) unsigned NOT NULL DEFAULT '0',
- groups_per_user int(10) unsigned NOT NULL DEFAULT '0',
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_group_info
- --
- DROP TABLE IF EXISTS c_group_info;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_group_info (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL,
- name varchar(100) DEFAULT NULL,
- category_id int(10) unsigned NOT NULL DEFAULT '0',
- description text,
- max_student int(10) unsigned NOT NULL DEFAULT '8',
- doc_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- calendar_state tinyint(3) unsigned NOT NULL DEFAULT '0',
- work_state tinyint(3) unsigned NOT NULL DEFAULT '0',
- announcements_state tinyint(3) unsigned NOT NULL DEFAULT '0',
- forum_state tinyint(3) unsigned NOT NULL DEFAULT '0',
- wiki_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- chat_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- secret_directory varchar(255) DEFAULT NULL,
- self_registration_allowed tinyint(3) unsigned NOT NULL DEFAULT '0',
- self_unregistration_allowed tinyint(3) unsigned NOT NULL DEFAULT '0',
- session_id int(11) NOT NULL,
- iid int(10) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (iid),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_group_rel_tutor
- --
- DROP TABLE IF EXISTS c_group_rel_tutor;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_group_rel_tutor (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL,
- group_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_group_rel_user
- --
- DROP TABLE IF EXISTS c_group_rel_user;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_group_rel_user (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- group_id int(10) unsigned NOT NULL DEFAULT '0',
- status int(11) NOT NULL DEFAULT '0',
- role char(50) NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_item_property
- --
- DROP TABLE IF EXISTS c_item_property;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_item_property (
- c_id int(11) NOT NULL,
- tool varchar(100) NOT NULL DEFAULT '',
- insert_user_id int(10) unsigned NOT NULL DEFAULT '0',
- insert_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- lastedit_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- ref int(11) NOT NULL DEFAULT '0',
- lastedit_type varchar(100) NOT NULL DEFAULT '',
- lastedit_user_id int(10) unsigned NOT NULL DEFAULT '0',
- to_group_id int(10) unsigned DEFAULT NULL,
- to_user_id int(10) unsigned DEFAULT NULL,
- visibility tinyint(4) NOT NULL DEFAULT '1',
- start_visible datetime DEFAULT NULL,
- end_visible datetime DEFAULT NULL,
- id_session int(11) DEFAULT NULL,
- id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (id),
- KEY idx_item_property_toolref (tool,ref)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_link
- --
- DROP TABLE IF EXISTS c_link;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_link (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- url text NOT NULL,
- title varchar(150) DEFAULT NULL,
- description text,
- category_id int(10) unsigned DEFAULT NULL,
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- on_homepage enum('0','1') NOT NULL DEFAULT '0',
- target char(10) DEFAULT '_self',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_link_category
- --
- DROP TABLE IF EXISTS c_link_category;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_link_category (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- category_title varchar(255) NOT NULL,
- description text,
- display_order mediumint(8) unsigned NOT NULL DEFAULT '0',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_lp
- --
- DROP TABLE IF EXISTS c_lp;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_lp (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- lp_type int(10) unsigned NOT NULL,
- name varchar(255) NOT NULL,
- ref tinytext,
- description text,
- path text NOT NULL,
- force_commit tinyint(3) unsigned NOT NULL DEFAULT '0',
- default_view_mod char(32) NOT NULL DEFAULT 'embedded',
- default_encoding char(32) NOT NULL DEFAULT 'UTF-8',
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- content_maker tinytext NOT NULL,
- content_local varchar(32) NOT NULL DEFAULT 'local',
- content_license text NOT NULL,
- prevent_reinit tinyint(3) unsigned NOT NULL DEFAULT '1',
- js_lib tinytext NOT NULL,
- debug tinyint(3) unsigned NOT NULL DEFAULT '0',
- theme varchar(255) NOT NULL DEFAULT '',
- preview_image varchar(255) NOT NULL DEFAULT '',
- author varchar(255) NOT NULL DEFAULT '',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- prerequisite int(10) unsigned NOT NULL DEFAULT '0',
- hide_toc_frame tinyint(4) NOT NULL DEFAULT '0',
- seriousgame_mode tinyint(4) NOT NULL DEFAULT '0',
- use_max_score int(10) unsigned NOT NULL DEFAULT '1',
- autolunch int(10) unsigned NOT NULL DEFAULT '0',
- created_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- modified_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- publicated_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- expired_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- max_attempts int(11) NOT NULL DEFAULT '0',
- category_id int(10) unsigned NOT NULL DEFAULT '0',
- subscribe_users int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_lp_category
- --
- DROP TABLE IF EXISTS c_lp_category;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_lp_category (
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- c_id int(10) unsigned NOT NULL,
- name varchar(255) DEFAULT NULL,
- position int(11) DEFAULT NULL,
- PRIMARY KEY (id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_lp_item
- --
- DROP TABLE IF EXISTS c_lp_item;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_lp_item (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- lp_id int(10) unsigned NOT NULL,
- item_type char(32) NOT NULL DEFAULT 'dokeos_document',
- ref tinytext NOT NULL,
- title varchar(511) NOT NULL,
- description varchar(511) NOT NULL DEFAULT '',
- path text NOT NULL,
- min_score float unsigned NOT NULL DEFAULT '0',
- max_score float unsigned DEFAULT '100',
- mastery_score float unsigned DEFAULT NULL,
- parent_item_id int(10) unsigned NOT NULL DEFAULT '0',
- previous_item_id int(10) unsigned NOT NULL DEFAULT '0',
- next_item_id int(10) unsigned NOT NULL DEFAULT '0',
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- prerequisite text,
- parameters text,
- launch_data text NOT NULL,
- max_time_allowed char(13) DEFAULT '',
- terms text,
- search_did int(11) DEFAULT NULL,
- audio varchar(250) DEFAULT NULL,
- PRIMARY KEY (c_id,id),
- KEY lp_id (lp_id),
- KEY idx_c_lp_item_cid_lp_id (c_id,lp_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_lp_item_view
- --
- DROP TABLE IF EXISTS c_lp_item_view;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_lp_item_view (
- c_id int(11) NOT NULL,
- id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- lp_item_id int(10) unsigned NOT NULL,
- lp_view_id int(10) unsigned NOT NULL,
- view_count int(10) unsigned NOT NULL DEFAULT '0',
- start_time int(10) unsigned NOT NULL,
- total_time int(10) unsigned NOT NULL DEFAULT '0',
- score float unsigned NOT NULL DEFAULT '0',
- status char(32) NOT NULL DEFAULT 'not attempted',
- suspend_data longtext,
- lesson_location text,
- core_exit varchar(32) NOT NULL DEFAULT 'none',
- max_score varchar(8) DEFAULT '',
- PRIMARY KEY (c_id,id),
- KEY lp_item_id (lp_item_id),
- KEY lp_view_id (lp_view_id),
- KEY idx_c_lp_item_view_cid_lp_view_id_lp_item_id (c_id,lp_view_id,lp_item_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_lp_iv_interaction
- --
- DROP TABLE IF EXISTS c_lp_iv_interaction;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_lp_iv_interaction (
- c_id int(11) NOT NULL,
- id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- order_id int(10) unsigned NOT NULL DEFAULT '0',
- lp_iv_id bigint(20) unsigned NOT NULL,
- interaction_id varchar(255) NOT NULL DEFAULT '',
- interaction_type varchar(255) NOT NULL DEFAULT '',
- weighting double NOT NULL DEFAULT '0',
- completion_time varchar(16) NOT NULL DEFAULT '',
- correct_responses text NOT NULL,
- student_response text NOT NULL,
- result varchar(255) NOT NULL DEFAULT '',
- latency varchar(16) NOT NULL DEFAULT '',
- PRIMARY KEY (c_id,id),
- KEY lp_iv_id (lp_iv_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_lp_iv_objective
- --
- DROP TABLE IF EXISTS c_lp_iv_objective;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_lp_iv_objective (
- c_id int(11) NOT NULL,
- id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- lp_iv_id bigint(20) unsigned NOT NULL,
- order_id int(10) unsigned NOT NULL DEFAULT '0',
- objective_id varchar(255) NOT NULL DEFAULT '',
- score_raw float unsigned NOT NULL DEFAULT '0',
- score_max float unsigned NOT NULL DEFAULT '0',
- score_min float unsigned NOT NULL DEFAULT '0',
- status char(32) NOT NULL DEFAULT 'not attempted',
- PRIMARY KEY (c_id,id),
- KEY lp_iv_id (lp_iv_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_lp_view
- --
- DROP TABLE IF EXISTS c_lp_view;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_lp_view (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- lp_id int(10) unsigned NOT NULL,
- user_id int(10) unsigned NOT NULL,
- view_count int(10) unsigned NOT NULL DEFAULT '0',
- last_item int(10) unsigned NOT NULL DEFAULT '0',
- progress int(10) unsigned DEFAULT '0',
- session_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY lp_id (lp_id),
- KEY user_id (user_id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_metadata
- --
- DROP TABLE IF EXISTS c_metadata;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_metadata (
- c_id int(11) NOT NULL,
- eid varchar(250) NOT NULL,
- mdxmltext text,
- md5 char(32) DEFAULT '',
- htmlcache1 text,
- htmlcache2 text,
- indexabletext text,
- PRIMARY KEY (c_id,eid)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_notebook
- --
- DROP TABLE IF EXISTS c_notebook;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_notebook (
- c_id int(11) NOT NULL,
- notebook_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- course varchar(40) NOT NULL,
- session_id int(11) NOT NULL DEFAULT '0',
- title varchar(255) NOT NULL,
- description text NOT NULL,
- creation_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- update_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- status int(11) DEFAULT NULL,
- PRIMARY KEY (c_id,notebook_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_online_connected
- --
- DROP TABLE IF EXISTS c_online_connected;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_online_connected (
- c_id int(11) NOT NULL,
- user_id int(10) unsigned NOT NULL,
- last_connection datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,user_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_online_link
- --
- DROP TABLE IF EXISTS c_online_link;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_online_link (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name char(50) NOT NULL DEFAULT '',
- url char(100) NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_permission_group
- --
- DROP TABLE IF EXISTS c_permission_group;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_permission_group (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- group_id int(11) NOT NULL DEFAULT '0',
- tool varchar(250) NOT NULL DEFAULT '',
- action varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_permission_task
- --
- DROP TABLE IF EXISTS c_permission_task;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_permission_task (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- task_id int(11) NOT NULL DEFAULT '0',
- tool varchar(250) NOT NULL DEFAULT '',
- action varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_permission_user
- --
- DROP TABLE IF EXISTS c_permission_user;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_permission_user (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL DEFAULT '0',
- tool varchar(250) NOT NULL DEFAULT '',
- action varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_quiz
- --
- DROP TABLE IF EXISTS c_quiz;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_quiz (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL,
- description text,
- sound varchar(255) DEFAULT NULL,
- type tinyint(3) unsigned NOT NULL DEFAULT '1',
- random int(11) NOT NULL DEFAULT '0',
- random_answers tinyint(3) unsigned NOT NULL DEFAULT '0',
- active tinyint(4) NOT NULL DEFAULT '0',
- results_disabled int(10) unsigned NOT NULL DEFAULT '0',
- access_condition text,
- max_attempt int(11) NOT NULL DEFAULT '0',
- start_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- end_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- feedback_type int(11) NOT NULL DEFAULT '0',
- expired_time int(11) NOT NULL DEFAULT '0',
- session_id int(11) DEFAULT '0',
- propagate_neg int(11) NOT NULL DEFAULT '0',
- review_answers int(11) NOT NULL DEFAULT '0',
- random_by_category int(11) NOT NULL DEFAULT '0',
- text_when_finished text,
- display_category_name int(11) NOT NULL DEFAULT '1',
- pass_percentage int(11) DEFAULT NULL,
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_quiz_answer
- --
- DROP TABLE IF EXISTS c_quiz_answer;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_quiz_answer (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL,
- id_auto int(11) NOT NULL AUTO_INCREMENT,
- question_id int(10) unsigned NOT NULL,
- answer text NOT NULL,
- correct mediumint(8) unsigned DEFAULT NULL,
- comment text,
- ponderation float(6,2) NOT NULL DEFAULT '0.00',
- position mediumint(8) unsigned NOT NULL DEFAULT '1',
- hotspot_coordinates text,
- hotspot_type enum('square','circle','poly','delineation','oar') DEFAULT NULL,
- destination text NOT NULL,
- answer_code char(10) DEFAULT '',
- PRIMARY KEY (c_id,id_auto),
- KEY idx_quiz_answer_c_q (c_id,question_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_quiz_order
- --
- DROP TABLE IF EXISTS c_quiz_order;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_quiz_order (
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- c_id int(10) unsigned NOT NULL,
- session_id int(10) unsigned NOT NULL,
- exercise_id int(11) NOT NULL,
- exercise_order int(11) NOT NULL,
- PRIMARY KEY (id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_quiz_question
- --
- DROP TABLE IF EXISTS c_quiz_question;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_quiz_question (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- question text NOT NULL,
- description text,
- ponderation float(6,2) NOT NULL DEFAULT '0.00',
- position mediumint(8) unsigned NOT NULL DEFAULT '1',
- type tinyint(3) unsigned NOT NULL DEFAULT '2',
- picture varchar(50) DEFAULT NULL,
- level int(10) unsigned NOT NULL DEFAULT '0',
- extra varchar(255) DEFAULT NULL,
- question_code char(10) DEFAULT '',
- parent_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY position (position)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_quiz_question_category
- --
- DROP TABLE IF EXISTS c_quiz_question_category;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_quiz_question_category (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL,
- description text NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_quiz_question_option
- --
- DROP TABLE IF EXISTS c_quiz_question_option;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_quiz_question_option (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- question_id int(11) NOT NULL,
- name varchar(255) DEFAULT NULL,
- position int(10) unsigned NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_quiz_question_rel_category
- --
- DROP TABLE IF EXISTS c_quiz_question_rel_category;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_quiz_question_rel_category (
- c_id int(11) NOT NULL,
- question_id int(11) NOT NULL,
- category_id int(11) NOT NULL,
- PRIMARY KEY (c_id,question_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_quiz_rel_question
- --
- DROP TABLE IF EXISTS c_quiz_rel_question;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_quiz_rel_question (
- c_id int(11) NOT NULL,
- question_id int(10) unsigned NOT NULL,
- exercice_id int(10) unsigned NOT NULL,
- question_order int(10) unsigned NOT NULL DEFAULT '1',
- PRIMARY KEY (c_id,question_id,exercice_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_resource
- --
- DROP TABLE IF EXISTS c_resource;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_resource (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- source_type varchar(50) DEFAULT NULL,
- source_id int(10) unsigned DEFAULT NULL,
- resource_type varchar(50) DEFAULT NULL,
- resource_id int(10) unsigned DEFAULT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_role
- --
- DROP TABLE IF EXISTS c_role;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_role (
- c_id int(11) NOT NULL,
- role_id int(11) NOT NULL AUTO_INCREMENT,
- role_name varchar(250) NOT NULL DEFAULT '',
- role_comment text,
- default_role tinyint(4) DEFAULT '0',
- PRIMARY KEY (c_id,role_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_role_group
- --
- DROP TABLE IF EXISTS c_role_group;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_role_group (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- role_id int(11) NOT NULL DEFAULT '0',
- scope varchar(20) NOT NULL DEFAULT 'course',
- group_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (id,c_id,group_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_role_permissions
- --
- DROP TABLE IF EXISTS c_role_permissions;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_role_permissions (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- role_id int(11) NOT NULL DEFAULT '0',
- tool varchar(250) NOT NULL DEFAULT '',
- action varchar(50) NOT NULL DEFAULT '',
- default_perm tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (id,c_id,role_id,tool,action)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_role_user
- --
- DROP TABLE IF EXISTS c_role_user;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_role_user (
- c_id int(11) NOT NULL,
- role_id int(11) NOT NULL DEFAULT '0',
- scope varchar(20) NOT NULL DEFAULT 'course',
- user_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,role_id,user_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_student_publication
- --
- DROP TABLE IF EXISTS c_student_publication;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_student_publication (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- url varchar(255) DEFAULT NULL,
- title varchar(255) DEFAULT NULL,
- description text,
- author varchar(255) DEFAULT NULL,
- active tinyint(4) DEFAULT NULL,
- accepted tinyint(4) DEFAULT '0',
- post_group_id int(11) NOT NULL DEFAULT '0',
- sent_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- filetype set('file','folder') NOT NULL DEFAULT 'file',
- has_properties int(10) unsigned NOT NULL DEFAULT '0',
- view_properties tinyint(4) DEFAULT NULL,
- qualification float(6,2) unsigned NOT NULL DEFAULT '0.00',
- date_of_qualification datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- parent_id int(10) unsigned NOT NULL DEFAULT '0',
- qualificator_id int(10) unsigned NOT NULL DEFAULT '0',
- weight float(6,2) unsigned NOT NULL DEFAULT '0.00',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL,
- allow_text_assignment int(11) NOT NULL DEFAULT '0',
- contains_file int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_student_publication_assignment
- --
- DROP TABLE IF EXISTS c_student_publication_assignment;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_student_publication_assignment (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- expires_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- ends_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- add_to_calendar tinyint(4) NOT NULL,
- enable_qualification tinyint(4) NOT NULL,
- publication_id int(11) NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_survey
- --
- DROP TABLE IF EXISTS c_survey;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_survey (
- c_id int(11) NOT NULL,
- survey_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- code varchar(20) DEFAULT NULL,
- title text,
- subtitle text,
- author varchar(20) DEFAULT NULL,
- lang varchar(20) DEFAULT NULL,
- avail_from date DEFAULT NULL,
- avail_till date DEFAULT NULL,
- is_shared char(1) DEFAULT '1',
- template varchar(20) DEFAULT NULL,
- intro text,
- surveythanks text,
- creation_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- invited int(11) NOT NULL,
- answered int(11) NOT NULL,
- invite_mail text NOT NULL,
- reminder_mail text NOT NULL,
- mail_subject varchar(255) NOT NULL,
- anonymous enum('0','1') NOT NULL DEFAULT '0',
- access_condition text,
- shuffle tinyint(1) NOT NULL DEFAULT '0',
- one_question_per_page tinyint(1) NOT NULL DEFAULT '0',
- survey_version varchar(255) NOT NULL DEFAULT '',
- parent_id int(10) unsigned NOT NULL,
- survey_type int(11) NOT NULL DEFAULT '0',
- show_form_profile int(11) NOT NULL DEFAULT '0',
- form_fields text NOT NULL,
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,survey_id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_survey_answer
- --
- DROP TABLE IF EXISTS c_survey_answer;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_survey_answer (
- c_id int(11) NOT NULL,
- answer_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- survey_id int(10) unsigned NOT NULL,
- question_id int(10) unsigned NOT NULL,
- option_id text NOT NULL,
- value int(10) unsigned NOT NULL,
- user varchar(250) NOT NULL,
- PRIMARY KEY (c_id,answer_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_survey_group
- --
- DROP TABLE IF EXISTS c_survey_group;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_survey_group (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name varchar(20) NOT NULL,
- description varchar(255) NOT NULL,
- survey_id int(10) unsigned NOT NULL,
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_survey_invitation
- --
- DROP TABLE IF EXISTS c_survey_invitation;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_survey_invitation (
- c_id int(11) NOT NULL,
- survey_invitation_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- survey_code varchar(20) NOT NULL,
- user varchar(250) NOT NULL,
- invitation_code varchar(250) NOT NULL,
- invitation_date datetime NOT NULL,
- reminder_date datetime NOT NULL,
- answered int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- group_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,survey_invitation_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_survey_question
- --
- DROP TABLE IF EXISTS c_survey_question;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_survey_question (
- c_id int(11) NOT NULL,
- question_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- survey_id int(10) unsigned NOT NULL,
- survey_question text NOT NULL,
- survey_question_comment text NOT NULL,
- type varchar(250) NOT NULL,
- display varchar(10) NOT NULL,
- sort int(11) NOT NULL,
- shared_question_id int(11) DEFAULT NULL,
- max_value int(11) DEFAULT NULL,
- survey_group_pri int(10) unsigned NOT NULL DEFAULT '0',
- survey_group_sec1 int(10) unsigned NOT NULL DEFAULT '0',
- survey_group_sec2 int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,question_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_survey_question_option
- --
- DROP TABLE IF EXISTS c_survey_question_option;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_survey_question_option (
- c_id int(11) NOT NULL,
- question_option_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- question_id int(10) unsigned NOT NULL,
- survey_id int(10) unsigned NOT NULL,
- option_text text NOT NULL,
- sort int(11) NOT NULL,
- value int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,question_option_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_thematic
- --
- DROP TABLE IF EXISTS c_thematic;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_thematic (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL,
- content text,
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- active tinyint(4) NOT NULL DEFAULT '0',
- session_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY active (active,session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_thematic_advance
- --
- DROP TABLE IF EXISTS c_thematic_advance;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_thematic_advance (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- thematic_id int(11) NOT NULL,
- attendance_id int(11) NOT NULL DEFAULT '0',
- content text,
- start_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- duration int(11) NOT NULL DEFAULT '0',
- done_advance tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY thematic_id (thematic_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_thematic_plan
- --
- DROP TABLE IF EXISTS c_thematic_plan;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_thematic_plan (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- thematic_id int(11) NOT NULL,
- title varchar(255) NOT NULL,
- description text,
- description_type int(11) NOT NULL,
- PRIMARY KEY (c_id,id),
- KEY thematic_id (thematic_id,description_type)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_tool
- --
- DROP TABLE IF EXISTS c_tool;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_tool (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name varchar(255) NOT NULL,
- link varchar(255) NOT NULL,
- image varchar(255) DEFAULT NULL,
- visibility tinyint(3) unsigned DEFAULT '0',
- admin varchar(255) DEFAULT NULL,
- address varchar(255) DEFAULT NULL,
- added_tool tinyint(3) unsigned DEFAULT '1',
- target enum('_self','_blank') NOT NULL DEFAULT '_self',
- category varchar(20) NOT NULL DEFAULT 'authoring',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_tool_intro
- --
- DROP TABLE IF EXISTS c_tool_intro;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_tool_intro (
- c_id int(11) NOT NULL,
- id varchar(50) NOT NULL,
- intro_text mediumtext NOT NULL,
- session_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id,session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_userinfo_content
- --
- DROP TABLE IF EXISTS c_userinfo_content;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_userinfo_content (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- definition_id int(10) unsigned NOT NULL,
- editor_ip varchar(39) DEFAULT NULL,
- edition_time datetime DEFAULT NULL,
- content text NOT NULL,
- PRIMARY KEY (c_id,id),
- KEY user_id (user_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_userinfo_def
- --
- DROP TABLE IF EXISTS c_userinfo_def;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_userinfo_def (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(80) NOT NULL DEFAULT '',
- comment text,
- line_count tinyint(3) unsigned NOT NULL DEFAULT '5',
- rank tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_wiki
- --
- DROP TABLE IF EXISTS c_wiki;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_wiki (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- page_id int(11) NOT NULL DEFAULT '0',
- reflink varchar(255) NOT NULL DEFAULT 'index',
- title varchar(255) NOT NULL,
- content mediumtext NOT NULL,
- user_id int(11) NOT NULL DEFAULT '0',
- group_id int(11) DEFAULT NULL,
- dtime datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- addlock int(11) NOT NULL DEFAULT '1',
- editlock int(11) NOT NULL DEFAULT '0',
- visibility int(11) NOT NULL DEFAULT '1',
- addlock_disc int(11) NOT NULL DEFAULT '1',
- visibility_disc int(11) NOT NULL DEFAULT '1',
- ratinglock_disc int(11) NOT NULL DEFAULT '1',
- assignment int(11) NOT NULL DEFAULT '0',
- comment text NOT NULL,
- progress text NOT NULL,
- score int(11) DEFAULT '0',
- version int(11) DEFAULT NULL,
- is_editing int(11) NOT NULL DEFAULT '0',
- time_edit datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- hits int(11) DEFAULT '0',
- linksto text NOT NULL,
- tag text NOT NULL,
- user_ip varchar(39) NOT NULL,
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY reflink (reflink),
- KEY group_id (group_id),
- KEY page_id (page_id),
- KEY session_id (session_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_wiki_conf
- --
- DROP TABLE IF EXISTS c_wiki_conf;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_wiki_conf (
- c_id int(11) NOT NULL,
- page_id int(11) NOT NULL DEFAULT '0',
- task text NOT NULL,
- feedback1 text NOT NULL,
- feedback2 text NOT NULL,
- feedback3 text NOT NULL,
- fprogress1 varchar(3) NOT NULL,
- fprogress2 varchar(3) NOT NULL,
- fprogress3 varchar(3) NOT NULL,
- max_size int(11) DEFAULT NULL,
- max_text int(11) DEFAULT NULL,
- max_version int(11) DEFAULT NULL,
- startdate_assig datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- enddate_assig datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- delayedsubmit int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,page_id),
- KEY page_id (page_id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_wiki_discuss
- --
- DROP TABLE IF EXISTS c_wiki_discuss;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_wiki_discuss (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- publication_id int(11) NOT NULL DEFAULT '0',
- userc_id int(11) NOT NULL DEFAULT '0',
- comment text NOT NULL,
- p_score varchar(255) DEFAULT NULL,
- dtime datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table c_wiki_mailcue
- --
- DROP TABLE IF EXISTS c_wiki_mailcue;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE c_wiki_mailcue (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL,
- user_id int(11) NOT NULL,
- type text NOT NULL,
- group_id int(11) DEFAULT NULL,
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id,user_id),
- KEY c_id (c_id,id)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
|