-- MySQL dump 10.13  Distrib 5.5.49, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: claro_release
-- ------------------------------------------------------
-- Server version	5.5.49-0+deb8u1

/*!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 `StepConditionsGroup`
--

DROP TABLE IF EXISTS `StepConditionsGroup`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `StepConditionsGroup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `StepConditionsGroup`
--

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

--
-- Table structure for table `cardtype_fieldlabel_answer`
--

DROP TABLE IF EXISTS `cardtype_fieldlabel_answer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cardtype_fieldlabel_answer` (
  `cardtype_id` int(11) NOT NULL,
  `fieldlabel_id` int(11) NOT NULL,
  PRIMARY KEY (`cardtype_id`,`fieldlabel_id`),
  KEY `IDX_73F017734E403864` (`cardtype_id`),
  KEY `IDX_73F01773A9D5EBE4` (`fieldlabel_id`),
  CONSTRAINT `FK_73F01773A9D5EBE4` FOREIGN KEY (`fieldlabel_id`) REFERENCES `claro_fcbundle_field_label` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_73F017734E403864` FOREIGN KEY (`cardtype_id`) REFERENCES `claro_fcbundle_card_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `cardtype_fieldlabel_answer`
--

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

--
-- Table structure for table `cardtype_fieldlabel_question`
--

DROP TABLE IF EXISTS `cardtype_fieldlabel_question`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cardtype_fieldlabel_question` (
  `cardtype_id` int(11) NOT NULL,
  `fieldlabel_id` int(11) NOT NULL,
  PRIMARY KEY (`cardtype_id`,`fieldlabel_id`),
  KEY `IDX_4FCC37F84E403864` (`cardtype_id`),
  KEY `IDX_4FCC37F8A9D5EBE4` (`fieldlabel_id`),
  CONSTRAINT `FK_4FCC37F8A9D5EBE4` FOREIGN KEY (`fieldlabel_id`) REFERENCES `claro_fcbundle_field_label` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_4FCC37F84E403864` FOREIGN KEY (`cardtype_id`) REFERENCES `claro_fcbundle_card_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `cardtype_fieldlabel_question`
--

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

--
-- Table structure for table `claro__event`
--

DROP TABLE IF EXISTS `claro__event`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__event` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  `time_slot_id` int(11) NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  KEY `IDX_42A594A4A76ED395` (`user_id`),
  KEY `IDX_42A594A482D40A1F` (`workspace_id`),
  KEY `IDX_42A594A4D62B0FA` (`time_slot_id`),
  KEY `name_idx` (`name`),
  CONSTRAINT `FK_42A594A4D62B0FA` FOREIGN KEY (`time_slot_id`) REFERENCES `claro__time_slot` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_42A594A482D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_42A594A4A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__event`
--

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

--
-- Table structure for table `claro__leave`
--

DROP TABLE IF EXISTS `claro__leave`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__leave` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `year_id` int(11) NOT NULL,
  `date` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_E2BB1ED340C1FEA7` (`year_id`),
  CONSTRAINT `FK_E2BB1ED340C1FEA7` FOREIGN KEY (`year_id`) REFERENCES `claro__year` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__leave`
--

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

--
-- Table structure for table `claro__location`
--

DROP TABLE IF EXISTS `claro__location`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__location` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `street` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `streetNumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `boxNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pc` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `town` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `country` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `latitude` double DEFAULT NULL,
  `longitude` double DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__location`
--

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

--
-- Table structure for table `claro__location_organization`
--

DROP TABLE IF EXISTS `claro__location_organization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__location_organization` (
  `organization_id` int(11) NOT NULL,
  `location_id` int(11) NOT NULL,
  PRIMARY KEY (`organization_id`,`location_id`),
  KEY `IDX_C4EBDE032C8A3DE` (`organization_id`),
  KEY `IDX_C4EBDE064D218E` (`location_id`),
  CONSTRAINT `FK_C4EBDE064D218E` FOREIGN KEY (`location_id`) REFERENCES `claro__location` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_C4EBDE032C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `claro__organization` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__location_organization`
--

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

--
-- Table structure for table `claro__organization`
--

DROP TABLE IF EXISTS `claro__organization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__organization` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `parent_id` int(11) DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lft` int(11) NOT NULL,
  `lvl` int(11) NOT NULL,
  `rgt` int(11) NOT NULL,
  `root` int(11) DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B68DD0D5727ACA70` (`parent_id`),
  CONSTRAINT `FK_B68DD0D5727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `claro__organization` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__organization`
--

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

--
-- Table structure for table `claro__period`
--

DROP TABLE IF EXISTS `claro__period`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__period` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `year_id` int(11) NOT NULL,
  `start` datetime NOT NULL,
  `end` datetime NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_5CC844EA40C1FEA7` (`year_id`),
  CONSTRAINT `FK_5CC844EA40C1FEA7` FOREIGN KEY (`year_id`) REFERENCES `claro__year` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__period`
--

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

--
-- Table structure for table `claro__schedule_template`
--

DROP TABLE IF EXISTS `claro__schedule_template`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__schedule_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `start` datetime NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `startHour` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `endHour` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__schedule_template`
--

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

--
-- Table structure for table `claro__time_slot`
--

DROP TABLE IF EXISTS `claro__time_slot`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__time_slot` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `period_id` int(11) NOT NULL,
  `start` datetime NOT NULL,
  `end` datetime NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  `baseTemplateName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2EA6030D32C8A3DE` (`organization_id`),
  KEY `IDX_2EA6030DEC8B7ADE` (`period_id`),
  CONSTRAINT `FK_2EA6030DEC8B7ADE` FOREIGN KEY (`period_id`) REFERENCES `claro__period` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_2EA6030D32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `claro__organization` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__time_slot`
--

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

--
-- Table structure for table `claro__year`
--

DROP TABLE IF EXISTS `claro__year`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro__year` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `start` datetime NOT NULL,
  `end` datetime NOT NULL,
  `openHour` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `closeHour` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6CA4D43E32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_6CA4D43E32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `claro__organization` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro__year`
--

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

--
-- Table structure for table `claro_activity`
--

DROP TABLE IF EXISTS `claro_activity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_activity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `parameters_id` int(11) DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci NOT NULL,
  `primaryResource_id` int(11) DEFAULT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_E4A67CAC88BD9C1F` (`parameters_id`),
  UNIQUE KEY `UNIQ_E4A67CACB87FAB32` (`resourceNode_id`),
  KEY `IDX_E4A67CAC52410EEC` (`primaryResource_id`),
  CONSTRAINT `FK_E4A67CACB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_E4A67CAC52410EEC` FOREIGN KEY (`primaryResource_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_E4A67CAC88BD9C1F` FOREIGN KEY (`parameters_id`) REFERENCES `claro_activity_parameters` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_activity`
--

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

--
-- Table structure for table `claro_activity_evaluation`
--

DROP TABLE IF EXISTS `claro_activity_evaluation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_activity_evaluation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `activity_parameters_id` int(11) NOT NULL,
  `log_id` int(11) DEFAULT NULL,
  `lastest_evaluation_date` datetime DEFAULT NULL,
  `evaluation_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `evaluation_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `duration` int(11) DEFAULT NULL,
  `score` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `score_num` int(11) DEFAULT NULL,
  `score_min` int(11) DEFAULT NULL,
  `score_max` int(11) DEFAULT NULL,
  `evaluation_comment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `total_duration` int(11) DEFAULT NULL,
  `attempts_count` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_activity_unique_evaluation` (`user_id`,`activity_parameters_id`),
  KEY `IDX_F75EC869A76ED395` (`user_id`),
  KEY `IDX_F75EC869896F55DB` (`activity_parameters_id`),
  KEY `IDX_F75EC869EA675D86` (`log_id`),
  CONSTRAINT `FK_F75EC869EA675D86` FOREIGN KEY (`log_id`) REFERENCES `claro_log` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_F75EC869896F55DB` FOREIGN KEY (`activity_parameters_id`) REFERENCES `claro_activity_parameters` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F75EC869A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_activity_evaluation`
--

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

--
-- Table structure for table `claro_activity_parameters`
--

DROP TABLE IF EXISTS `claro_activity_parameters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_activity_parameters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `activity_id` int(11) DEFAULT NULL,
  `max_duration` int(11) DEFAULT NULL,
  `max_attempts` int(11) DEFAULT NULL,
  `who` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `activity_where` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `with_tutor` tinyint(1) DEFAULT NULL,
  `evaluation_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_E2EE25E281C06096` (`activity_id`),
  CONSTRAINT `FK_E2EE25E281C06096` FOREIGN KEY (`activity_id`) REFERENCES `claro_activity` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_activity_parameters`
--

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

--
-- Table structure for table `claro_activity_past_evaluation`
--

DROP TABLE IF EXISTS `claro_activity_past_evaluation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_activity_past_evaluation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `activity_parameters_id` int(11) DEFAULT NULL,
  `log_id` int(11) DEFAULT NULL,
  `evaluation_date` datetime DEFAULT NULL,
  `evaluation_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `evaluation_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `duration` int(11) DEFAULT NULL,
  `score` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `score_num` int(11) DEFAULT NULL,
  `score_min` int(11) DEFAULT NULL,
  `score_max` int(11) DEFAULT NULL,
  `evaluation_comment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  KEY `IDX_F1A76182A76ED395` (`user_id`),
  KEY `IDX_F1A76182896F55DB` (`activity_parameters_id`),
  KEY `IDX_F1A76182EA675D86` (`log_id`),
  CONSTRAINT `FK_F1A76182EA675D86` FOREIGN KEY (`log_id`) REFERENCES `claro_log` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_F1A76182896F55DB` FOREIGN KEY (`activity_parameters_id`) REFERENCES `claro_activity_parameters` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_F1A76182A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_activity_past_evaluation`
--

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

--
-- Table structure for table `claro_activity_rule`
--

DROP TABLE IF EXISTS `claro_activity_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_activity_rule` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `activity_parameters_id` int(11) NOT NULL,
  `resource_id` int(11) DEFAULT NULL,
  `result_visible` tinyint(1) DEFAULT NULL,
  `occurrence` smallint(6) NOT NULL,
  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `result` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resultMax` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resultComparison` smallint(6) DEFAULT NULL,
  `userType` smallint(6) NOT NULL,
  `active_from` datetime DEFAULT NULL,
  `active_until` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6824A65E896F55DB` (`activity_parameters_id`),
  KEY `IDX_6824A65E89329D25` (`resource_id`),
  CONSTRAINT `FK_6824A65E89329D25` FOREIGN KEY (`resource_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6824A65E896F55DB` FOREIGN KEY (`activity_parameters_id`) REFERENCES `claro_activity_parameters` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_activity_rule`
--

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

--
-- Table structure for table `claro_activity_rule_action`
--

DROP TABLE IF EXISTS `claro_activity_rule_action`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_activity_rule_action` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `resource_type_id` int(11) DEFAULT NULL,
  `log_action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `activity_rule_unique_action_resource_type` (`log_action`,`resource_type_id`),
  KEY `IDX_C8835D2098EC6B7B` (`resource_type_id`),
  CONSTRAINT `FK_C8835D2098EC6B7B` FOREIGN KEY (`resource_type_id`) REFERENCES `claro_resource_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_activity_rule_action`
--

LOCK TABLES `claro_activity_rule_action` WRITE;
/*!40000 ALTER TABLE `claro_activity_rule_action` DISABLE KEYS */;
INSERT INTO `claro_activity_rule_action` VALUES (3,NULL,'badge-awarding'),(5,6,'resource-claroline_forum-create_message'),(6,7,'resource-claroline_survey-answer'),(19,14,'resource-icap_blog-comment_create'),(17,14,'resource-icap_blog-post_create'),(18,14,'resource-icap_blog-post_read'),(20,15,'resource-icap_dropzone-drop_evaluate'),(25,25,'resource-icap_lesson-chapter_read'),(22,16,'resource-icap_wiki-contribution_create'),(10,12,'resource-innova_collecticiel-drop_evaluate'),(12,12,'resource-innova_collecticiel-dropzone_add_comment'),(14,12,'resource-innova_collecticiel-dropzone_add_document'),(11,12,'resource-innova_collecticiel-dropzone_manual_state_changed'),(15,12,'resource-innova_collecticiel-dropzone_return_receipt'),(13,12,'resource-innova_collecticiel-dropzone_validate_document'),(1,1,'resource-read'),(2,3,'resource-read'),(4,6,'resource-read'),(9,11,'resource-read'),(16,14,'resource-read'),(21,16,'resource-read'),(24,25,'resource-read'),(7,9,'resource-scorm_12-sco_result'),(8,10,'resource-scorm_2004-sco_result'),(23,24,'resource-ujm_exercise-exercise_evaluated');
/*!40000 ALTER TABLE `claro_activity_rule_action` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_activity_secondary_resources`
--

DROP TABLE IF EXISTS `claro_activity_secondary_resources`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_activity_secondary_resources` (
  `activityparameters_id` int(11) NOT NULL,
  `resourcenode_id` int(11) NOT NULL,
  PRIMARY KEY (`activityparameters_id`,`resourcenode_id`),
  KEY `IDX_713242A7DB5E3CF7` (`activityparameters_id`),
  KEY `IDX_713242A777C292AE` (`resourcenode_id`),
  CONSTRAINT `FK_713242A777C292AE` FOREIGN KEY (`resourcenode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_713242A7DB5E3CF7` FOREIGN KEY (`activityparameters_id`) REFERENCES `claro_activity_parameters` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_activity_secondary_resources`
--

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

--
-- Table structure for table `claro_additonal_action`
--

DROP TABLE IF EXISTS `claro_additonal_action`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_additonal_action` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `displayedName` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_additonal_action`
--

LOCK TABLES `claro_additonal_action` WRITE;
/*!40000 ALTER TABLE `claro_additonal_action` DISABLE KEYS */;
INSERT INTO `claro_additonal_action` VALUES (1,'edit','edit','fa-pencil','admin_user_action'),(2,'show_workspaces','show_workspaces','fa-book','admin_user_action');
/*!40000 ALTER TABLE `claro_additonal_action` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_admin_tool_role`
--

DROP TABLE IF EXISTS `claro_admin_tool_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_admin_tool_role` (
  `admintool_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  PRIMARY KEY (`admintool_id`,`role_id`),
  KEY `IDX_940800692B80F4B6` (`admintool_id`),
  KEY `IDX_94080069D60322AC` (`role_id`),
  CONSTRAINT `FK_94080069D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_940800692B80F4B6` FOREIGN KEY (`admintool_id`) REFERENCES `claro_admin_tools` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_admin_tool_role`
--

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

--
-- Table structure for table `claro_admin_tools`
--

DROP TABLE IF EXISTS `claro_admin_tools`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_admin_tools` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `plugin_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `admin_tool_plugin_unique` (`name`,`plugin_id`),
  KEY `IDX_C10C14ECEC942BCF` (`plugin_id`),
  CONSTRAINT `FK_C10C14ECEC942BCF` FOREIGN KEY (`plugin_id`) REFERENCES `claro_plugin` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_admin_tools`
--

LOCK TABLES `claro_admin_tools` WRITE;
/*!40000 ALTER TABLE `claro_admin_tools` DISABLE KEYS */;
INSERT INTO `claro_admin_tools` VALUES (1,NULL,'platform_parameters','cog'),(2,NULL,'user_management','user'),(3,NULL,'workspace_management','book'),(4,NULL,'registration_to_workspace','book'),(5,NULL,'desktop_and_home','home'),(6,NULL,'platform_logs','bars'),(7,NULL,'platform_analytics','bar-chart-o'),(8,NULL,'roles_management','users'),(9,NULL,'widgets_management','list-alt'),(10,NULL,'organization_management','institution'),(11,2,'formalibre_reservation_tool','calendar'),(12,6,'claroline_tag_admin_tool','tags'),(13,7,'formalibre_support_management_tool','exclamation-triangle'),(14,9,'notification_configuration','bell'),(15,12,'LDAP','database'),(16,15,'claroline_cursus_tool','list-alt'),(17,15,'claroline_cursus_tool_registration','list-alt'),(18,18,'formalibre_presence_admin_tool','check-square-o'),(19,25,'competencies','graduation-cap'),(20,25,'learning-objectives','arrow-up'),(21,28,'badges_management','trophy'),(22,44,'claroline_chat_management_admin_tool','comments-o');
/*!40000 ALTER TABLE `claro_admin_tools` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_announcement`
--

DROP TABLE IF EXISTS `claro_announcement`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_announcement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `creator_id` int(11) NOT NULL,
  `aggregate_id` int(11) NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `announcer` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creation_date` datetime NOT NULL,
  `publication_date` datetime DEFAULT NULL,
  `visible` tinyint(1) NOT NULL,
  `visible_from` datetime DEFAULT NULL,
  `visible_until` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_778754E361220EA6` (`creator_id`),
  KEY `IDX_778754E3D0BBCCBE` (`aggregate_id`),
  CONSTRAINT `FK_778754E361220EA6` FOREIGN KEY (`creator_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_778754E3D0BBCCBE` FOREIGN KEY (`aggregate_id`) REFERENCES `claro_announcement_aggregate` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_announcement`
--

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

--
-- Table structure for table `claro_announcement_aggregate`
--

DROP TABLE IF EXISTS `claro_announcement_aggregate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_announcement_aggregate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_79BF2C8CB87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_79BF2C8CB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_announcement_aggregate`
--

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

--
-- Table structure for table `claro_announcements_widget_config`
--

DROP TABLE IF EXISTS `claro_announcements_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_announcements_widget_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `widgetInstance_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_30B4863CAB7B5A55` (`widgetInstance_id`),
  CONSTRAINT `FK_30B4863CAB7B5A55` FOREIGN KEY (`widgetInstance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_announcements_widget_config`
--

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

--
-- Table structure for table `claro_api_access_token`
--

DROP TABLE IF EXISTS `claro_api_access_token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_api_access_token` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `client_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `expires_at` int(11) DEFAULT NULL,
  `scope` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_CE948285F37A13B` (`token`),
  KEY `IDX_CE9482819EB6921` (`client_id`),
  KEY `IDX_CE94828A76ED395` (`user_id`),
  CONSTRAINT `FK_CE94828A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`),
  CONSTRAINT `FK_CE9482819EB6921` FOREIGN KEY (`client_id`) REFERENCES `claro_api_client` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_api_access_token`
--

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

--
-- Table structure for table `claro_api_auth_code`
--

DROP TABLE IF EXISTS `claro_api_auth_code`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_api_auth_code` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `client_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `redirect_uri` longtext COLLATE utf8_unicode_ci NOT NULL,
  `expires_at` int(11) DEFAULT NULL,
  `scope` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_9DFA4575F37A13B` (`token`),
  KEY `IDX_9DFA45719EB6921` (`client_id`),
  KEY `IDX_9DFA457A76ED395` (`user_id`),
  CONSTRAINT `FK_9DFA457A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`),
  CONSTRAINT `FK_9DFA45719EB6921` FOREIGN KEY (`client_id`) REFERENCES `claro_api_client` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_api_auth_code`
--

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

--
-- Table structure for table `claro_api_claroline_access`
--

DROP TABLE IF EXISTS `claro_api_claroline_access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_api_claroline_access` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `friend_request_id` int(11) DEFAULT NULL,
  `random_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `secret` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `access_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_2B10E8B1EC394CA1` (`friend_request_id`),
  CONSTRAINT `FK_2B10E8B1EC394CA1` FOREIGN KEY (`friend_request_id`) REFERENCES `claro_friend_request` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_api_claroline_access`
--

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

--
-- Table structure for table `claro_api_client`
--

DROP TABLE IF EXISTS `claro_api_client`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_api_client` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `random_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `redirect_uris` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
  `secret` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `allowed_grant_types` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_hidden` tinyint(1) NOT NULL,
  `friendRequest_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_233AC88FD6215480` (`friendRequest_id`),
  CONSTRAINT `FK_233AC88FD6215480` FOREIGN KEY (`friendRequest_id`) REFERENCES `claro_friend_request` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_api_client`
--

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

--
-- Table structure for table `claro_api_refresh_token`
--

DROP TABLE IF EXISTS `claro_api_refresh_token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_api_refresh_token` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `client_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `expires_at` int(11) DEFAULT NULL,
  `scope` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_B1292B905F37A13B` (`token`),
  KEY `IDX_B1292B9019EB6921` (`client_id`),
  KEY `IDX_B1292B90A76ED395` (`user_id`),
  CONSTRAINT `FK_B1292B90A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`),
  CONSTRAINT `FK_B1292B9019EB6921` FOREIGN KEY (`client_id`) REFERENCES `claro_api_client` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_api_refresh_token`
--

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

--
-- Table structure for table `claro_badge`
--

DROP TABLE IF EXISTS `claro_badge`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_badge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) DEFAULT NULL,
  `version` smallint(6) NOT NULL,
  `automatic_award` tinyint(1) DEFAULT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_expiring` tinyint(1) NOT NULL DEFAULT '0',
  `expire_duration` int(11) DEFAULT NULL,
  `expire_period` smallint(6) DEFAULT NULL,
  `deletedAt` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_74F39F0F82D40A1F` (`workspace_id`),
  CONSTRAINT `FK_74F39F0F82D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_badge`
--

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

--
-- Table structure for table `claro_badge_claim`
--

DROP TABLE IF EXISTS `claro_badge_claim`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_badge_claim` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `badge_id` int(11) NOT NULL,
  `claimed_at` datetime NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `badge_claim_unique` (`user_id`,`badge_id`),
  KEY `IDX_487A496AA76ED395` (`user_id`),
  KEY `IDX_487A496AF7A2C2FC` (`badge_id`),
  CONSTRAINT `FK_487A496AF7A2C2FC` FOREIGN KEY (`badge_id`) REFERENCES `claro_badge` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_487A496AA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_badge_claim`
--

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

--
-- Table structure for table `claro_badge_collection`
--

DROP TABLE IF EXISTS `claro_badge_collection`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_badge_collection` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `slug` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
  `is_shared` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `slug_idx` (`slug`),
  KEY `IDX_BB3FD2DDA76ED395` (`user_id`),
  CONSTRAINT `FK_BB3FD2DDA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_badge_collection`
--

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

--
-- Table structure for table `claro_badge_collection_user_badges`
--

DROP TABLE IF EXISTS `claro_badge_collection_user_badges`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_badge_collection_user_badges` (
  `badgecollection_id` int(11) NOT NULL,
  `userbadge_id` int(11) NOT NULL,
  PRIMARY KEY (`badgecollection_id`,`userbadge_id`),
  KEY `IDX_85F018D4134B8A11` (`badgecollection_id`),
  KEY `IDX_85F018D4DBE73D8B` (`userbadge_id`),
  CONSTRAINT `FK_85F018D4DBE73D8B` FOREIGN KEY (`userbadge_id`) REFERENCES `claro_user_badge` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_85F018D4134B8A11` FOREIGN KEY (`badgecollection_id`) REFERENCES `claro_badge_collection` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_badge_collection_user_badges`
--

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

--
-- Table structure for table `claro_badge_rule`
--

DROP TABLE IF EXISTS `claro_badge_rule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_badge_rule` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `badge_id` int(11) DEFAULT NULL,
  `associated_badge` int(11) NOT NULL,
  `resource_id` int(11) DEFAULT NULL,
  `occurrence` smallint(6) NOT NULL,
  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `result` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resultMax` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resultComparison` smallint(6) DEFAULT NULL,
  `userType` smallint(6) NOT NULL,
  `active_from` datetime DEFAULT NULL,
  `active_until` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_805FCB8FF7A2C2FC` (`badge_id`),
  KEY `IDX_805FCB8F16F956BA` (`associated_badge`),
  KEY `IDX_805FCB8F89329D25` (`resource_id`),
  CONSTRAINT `FK_805FCB8F89329D25` FOREIGN KEY (`resource_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_805FCB8F16F956BA` FOREIGN KEY (`associated_badge`) REFERENCES `claro_badge` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_805FCB8FF7A2C2FC` FOREIGN KEY (`badge_id`) REFERENCES `claro_badge` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_badge_rule`
--

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

--
-- Table structure for table `claro_badge_translation`
--

DROP TABLE IF EXISTS `claro_badge_translation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_badge_translation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `badge_id` int(11) DEFAULT NULL,
  `locale` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
  `description` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
  `slug` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
  `criteria` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `badge_translation_unique_idx` (`locale`,`badge_id`),
  UNIQUE KEY `badge_name_translation_unique_idx` (`name`,`locale`,`badge_id`),
  UNIQUE KEY `badge_slug_translation_unique_idx` (`slug`,`locale`,`badge_id`),
  KEY `IDX_849BC831F7A2C2FC` (`badge_id`),
  CONSTRAINT `FK_849BC831F7A2C2FC` FOREIGN KEY (`badge_id`) REFERENCES `claro_badge` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_badge_translation`
--

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

--
-- Table structure for table `claro_bundle`
--

DROP TABLE IF EXISTS `claro_bundle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_bundle` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `version` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `authors` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:json_array)',
  `description` longtext COLLATE utf8_unicode_ci,
  `targetDir` longtext COLLATE utf8_unicode_ci NOT NULL,
  `basePath` longtext COLLATE utf8_unicode_ci NOT NULL,
  `license` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:json_array)',
  `isInstalled` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_bundle`
--

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

--
-- Table structure for table `claro_chatbundle_chat_user`
--

DROP TABLE IF EXISTS `claro_chatbundle_chat_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_chatbundle_chat_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `chat_username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `chat_password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `options` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_63EF42F2CC7CD147` (`chat_username`),
  UNIQUE KEY `UNIQ_63EF42F2A76ED395` (`user_id`),
  CONSTRAINT `FK_63EF42F2A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_chatbundle_chat_user`
--

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

--
-- Table structure for table `claro_chatbundle_room_message`
--

DROP TABLE IF EXISTS `claro_chatbundle_room_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_chatbundle_room_message` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `chat_room_id` int(11) NOT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `user_full_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci,
  `creation_date` datetime NOT NULL,
  `message_type` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_930423E01819BCFA` (`chat_room_id`),
  CONSTRAINT `FK_930423E01819BCFA` FOREIGN KEY (`chat_room_id`) REFERENCES `claro_chatbundle_room_resource` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_chatbundle_room_message`
--

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

--
-- Table structure for table `claro_chatbundle_room_resource`
--

DROP TABLE IF EXISTS `claro_chatbundle_room_resource`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_chatbundle_room_resource` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `room_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `room_status` int(11) NOT NULL,
  `room_type` int(11) NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_DC04C3D0B87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_DC04C3D0B87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_chatbundle_room_resource`
--

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

--
-- Table structure for table `claro_clacoformbundle_category`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `claco_form_id` int(11) NOT NULL,
  `category_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  KEY `IDX_E2D499A8F7D9CC0C` (`claco_form_id`),
  CONSTRAINT `FK_E2D499A8F7D9CC0C` FOREIGN KEY (`claco_form_id`) REFERENCES `claro_clacoformbundle_claco_form` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_category`
--

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

--
-- Table structure for table `claro_clacoformbundle_category_manager`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_category_manager`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_category_manager` (
  `category_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`category_id`,`user_id`),
  KEY `IDX_562FC19412469DE2` (`category_id`),
  KEY `IDX_562FC194A76ED395` (`user_id`),
  CONSTRAINT `FK_562FC194A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_562FC19412469DE2` FOREIGN KEY (`category_id`) REFERENCES `claro_clacoformbundle_category` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_category_manager`
--

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

--
-- Table structure for table `claro_clacoformbundle_claco_form`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_claco_form`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_claco_form` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `template` longtext COLLATE utf8_unicode_ci,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_ACB82378B87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_ACB82378B87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_claco_form`
--

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

--
-- Table structure for table `claro_clacoformbundle_claco_form_widget_config`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_claco_form_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_claco_form_widget_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `claco_form_id` int(11) DEFAULT NULL,
  `options` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `widgetInstance_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_D1521187AB7B5A55` (`widgetInstance_id`),
  KEY `IDX_D1521187F7D9CC0C` (`claco_form_id`),
  CONSTRAINT `FK_D1521187F7D9CC0C` FOREIGN KEY (`claco_form_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_D1521187AB7B5A55` FOREIGN KEY (`widgetInstance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_claco_form_widget_config`
--

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

--
-- Table structure for table `claro_clacoformbundle_claco_form_widget_config_field`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_claco_form_widget_config_field`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_claco_form_widget_config_field` (
  `clacoformwidgetconfig_id` int(11) NOT NULL,
  `field_id` int(11) NOT NULL,
  PRIMARY KEY (`clacoformwidgetconfig_id`,`field_id`),
  KEY `IDX_62B7ABB86C88DEB0` (`clacoformwidgetconfig_id`),
  KEY `IDX_62B7ABB8443707B0` (`field_id`),
  CONSTRAINT `FK_62B7ABB8443707B0` FOREIGN KEY (`field_id`) REFERENCES `claro_clacoformbundle_field` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_62B7ABB86C88DEB0` FOREIGN KEY (`clacoformwidgetconfig_id`) REFERENCES `claro_clacoformbundle_claco_form_widget_config` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_claco_form_widget_config_field`
--

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

--
-- Table structure for table `claro_clacoformbundle_comment`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_comment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_comment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `entry_id` int(11) DEFAULT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `creation_date` datetime NOT NULL,
  `edition_date` datetime DEFAULT NULL,
  `comment_status` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_23B30E0A76ED395` (`user_id`),
  KEY `IDX_23B30E0BA364942` (`entry_id`),
  CONSTRAINT `FK_23B30E0BA364942` FOREIGN KEY (`entry_id`) REFERENCES `claro_clacoformbundle_entry` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_23B30E0A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_comment`
--

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

--
-- Table structure for table `claro_clacoformbundle_entry`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_entry`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_entry` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `claco_form_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `entry_status` int(11) NOT NULL,
  `creation_date` datetime NOT NULL,
  `edition_date` datetime DEFAULT NULL,
  `publication_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_889DAEDFF7D9CC0C` (`claco_form_id`),
  KEY `IDX_889DAEDFA76ED395` (`user_id`),
  CONSTRAINT `FK_889DAEDFA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_889DAEDFF7D9CC0C` FOREIGN KEY (`claco_form_id`) REFERENCES `claro_clacoformbundle_claco_form` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_entry`
--

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

--
-- Table structure for table `claro_clacoformbundle_entry_category`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_entry_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_entry_category` (
  `entry_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  PRIMARY KEY (`entry_id`,`category_id`),
  KEY `IDX_2009A6BEBA364942` (`entry_id`),
  KEY `IDX_2009A6BE12469DE2` (`category_id`),
  CONSTRAINT `FK_2009A6BE12469DE2` FOREIGN KEY (`category_id`) REFERENCES `claro_clacoformbundle_category` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_2009A6BEBA364942` FOREIGN KEY (`entry_id`) REFERENCES `claro_clacoformbundle_entry` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_entry_category`
--

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

--
-- Table structure for table `claro_clacoformbundle_entry_keyword`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_entry_keyword`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_entry_keyword` (
  `entry_id` int(11) NOT NULL,
  `keyword_id` int(11) NOT NULL,
  PRIMARY KEY (`entry_id`,`keyword_id`),
  KEY `IDX_C61CA20BBA364942` (`entry_id`),
  KEY `IDX_C61CA20B115D4552` (`keyword_id`),
  CONSTRAINT `FK_C61CA20B115D4552` FOREIGN KEY (`keyword_id`) REFERENCES `claro_clacoformbundle_keyword` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_C61CA20BBA364942` FOREIGN KEY (`entry_id`) REFERENCES `claro_clacoformbundle_entry` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_entry_keyword`
--

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

--
-- Table structure for table `claro_clacoformbundle_field`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_field`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_field` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `claco_form_id` int(11) NOT NULL,
  `field_facet_id` int(11) DEFAULT NULL,
  `field_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `field_type` int(11) NOT NULL,
  `required` tinyint(1) NOT NULL,
  `is_metadata` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `field_unique_name` (`claco_form_id`,`field_name`),
  UNIQUE KEY `UNIQ_F84976F72AB018E9` (`field_facet_id`),
  KEY `IDX_F84976F7F7D9CC0C` (`claco_form_id`),
  CONSTRAINT `FK_F84976F72AB018E9` FOREIGN KEY (`field_facet_id`) REFERENCES `claro_field_facet` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F84976F7F7D9CC0C` FOREIGN KEY (`claco_form_id`) REFERENCES `claro_clacoformbundle_claco_form` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_field`
--

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

--
-- Table structure for table `claro_clacoformbundle_field_choice_category`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_field_choice_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_field_choice_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `field_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `field_facet_choice_id` int(11) DEFAULT NULL,
  `field_value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1F7C5EF7443707B0` (`field_id`),
  KEY `IDX_1F7C5EF712469DE2` (`category_id`),
  KEY `IDX_1F7C5EF7E07710C3` (`field_facet_choice_id`),
  CONSTRAINT `FK_1F7C5EF7E07710C3` FOREIGN KEY (`field_facet_choice_id`) REFERENCES `claro_field_facet_choice` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_1F7C5EF712469DE2` FOREIGN KEY (`category_id`) REFERENCES `claro_clacoformbundle_category` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_1F7C5EF7443707B0` FOREIGN KEY (`field_id`) REFERENCES `claro_clacoformbundle_field` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_field_choice_category`
--

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

--
-- Table structure for table `claro_clacoformbundle_field_value`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_field_value`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_field_value` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entry_id` int(11) DEFAULT NULL,
  `field_id` int(11) DEFAULT NULL,
  `field_facet_value_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_B481BDB9D4EE0DAB` (`field_facet_value_id`),
  UNIQUE KEY `field_unique_name` (`entry_id`,`field_id`),
  KEY `IDX_B481BDB9BA364942` (`entry_id`),
  KEY `IDX_B481BDB9443707B0` (`field_id`),
  CONSTRAINT `FK_B481BDB9D4EE0DAB` FOREIGN KEY (`field_facet_value_id`) REFERENCES `claro_field_facet_value` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B481BDB9443707B0` FOREIGN KEY (`field_id`) REFERENCES `claro_clacoformbundle_field` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B481BDB9BA364942` FOREIGN KEY (`entry_id`) REFERENCES `claro_clacoformbundle_entry` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_field_value`
--

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

--
-- Table structure for table `claro_clacoformbundle_keyword`
--

DROP TABLE IF EXISTS `claro_clacoformbundle_keyword`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_clacoformbundle_keyword` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `claco_form_id` int(11) NOT NULL,
  `keyword_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `field_unique_name` (`claco_form_id`,`keyword_name`),
  KEY `IDX_CCDC13B7F7D9CC0C` (`claco_form_id`),
  CONSTRAINT `FK_CCDC13B7F7D9CC0C` FOREIGN KEY (`claco_form_id`) REFERENCES `claro_clacoformbundle_claco_form` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_clacoformbundle_keyword`
--

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

--
-- Table structure for table `claro_contact`
--

DROP TABLE IF EXISTS `claro_contact`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_contact` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `contact_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `contact_unique_user_contact` (`user_id`,`contact_id`),
  KEY `IDX_2C215B9FA76ED395` (`user_id`),
  KEY `IDX_2C215B9FE7A1254A` (`contact_id`),
  CONSTRAINT `FK_2C215B9FE7A1254A` FOREIGN KEY (`contact_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_2C215B9FA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_contact`
--

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

--
-- Table structure for table `claro_contact_categories`
--

DROP TABLE IF EXISTS `claro_contact_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_contact_categories` (
  `contact_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  PRIMARY KEY (`contact_id`,`category_id`),
  KEY `IDX_69F02FC4E7A1254A` (`contact_id`),
  KEY `IDX_69F02FC412469DE2` (`category_id`),
  CONSTRAINT `FK_69F02FC412469DE2` FOREIGN KEY (`category_id`) REFERENCES `claro_contact_category` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_69F02FC4E7A1254A` FOREIGN KEY (`contact_id`) REFERENCES `claro_contact` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_contact_categories`
--

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

--
-- Table structure for table `claro_contact_category`
--

DROP TABLE IF EXISTS `claro_contact_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_contact_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `category_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `category_order` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `contact_unique_user_category` (`user_id`,`category_name`),
  KEY `IDX_2C48C9BBA76ED395` (`user_id`),
  CONSTRAINT `FK_2C48C9BBA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_contact_category`
--

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

--
-- Table structure for table `claro_contact_options`
--

DROP TABLE IF EXISTS `claro_contact_options`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_contact_options` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `options` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_BBCE147CA76ED395` (`user_id`),
  CONSTRAINT `FK_BBCE147CA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_contact_options`
--

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

--
-- Table structure for table `claro_content`
--

DROP TABLE IF EXISTS `claro_content`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_content` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `content` longtext COLLATE utf8_unicode_ci,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created` datetime NOT NULL,
  `modified` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_content`
--

LOCK TABLES `claro_content` WRITE;
/*!40000 ALTER TABLE `claro_content` DISABLE KEYS */;
INSERT INTO `claro_content` VALUES (1,'Registration to %platform_name%','<div>You username is %username%</div></br><div>Your password is %password%</div><div>%validation_mail%</div>','claro_mail_registration','2017-02-16 14:56:25','2017-02-16 14:56:25'),(2,NULL,'<div></div>%content%<div></hr>Powered by %platform_name%</div>','claro_mail_layout','2017-02-16 14:56:25','2017-02-16 14:56:25'),(3,'Registration confirmation','<div>You have been registered to course %course% in session %session% from %start_date% to %end_date%.</div>','claro_cursusbundle_mail_confirmation','2017-02-16 14:57:50','2017-02-16 14:57:50');
/*!40000 ALTER TABLE `claro_content` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_content2region`
--

DROP TABLE IF EXISTS `claro_content2region`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_content2region` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `content_id` int(11) NOT NULL,
  `region_id` int(11) NOT NULL,
  `next_id` int(11) DEFAULT NULL,
  `back_id` int(11) DEFAULT NULL,
  `size` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8D18942E84A0A3ED` (`content_id`),
  KEY `IDX_8D18942E98260155` (`region_id`),
  KEY `IDX_8D18942EAA23F6C8` (`next_id`),
  KEY `IDX_8D18942EE9583FF0` (`back_id`),
  CONSTRAINT `FK_8D18942EE9583FF0` FOREIGN KEY (`back_id`) REFERENCES `claro_content2region` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_8D18942E84A0A3ED` FOREIGN KEY (`content_id`) REFERENCES `claro_content` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_8D18942E98260155` FOREIGN KEY (`region_id`) REFERENCES `claro_region` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_8D18942EAA23F6C8` FOREIGN KEY (`next_id`) REFERENCES `claro_content2region` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_content2region`
--

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

--
-- Table structure for table `claro_content2type`
--

DROP TABLE IF EXISTS `claro_content2type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_content2type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `content_id` int(11) NOT NULL,
  `type_id` int(11) NOT NULL,
  `next_id` int(11) DEFAULT NULL,
  `back_id` int(11) DEFAULT NULL,
  `size` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `collapse` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1A2084EF84A0A3ED` (`content_id`),
  KEY `IDX_1A2084EFC54C8C93` (`type_id`),
  KEY `IDX_1A2084EFAA23F6C8` (`next_id`),
  KEY `IDX_1A2084EFE9583FF0` (`back_id`),
  CONSTRAINT `FK_1A2084EFE9583FF0` FOREIGN KEY (`back_id`) REFERENCES `claro_content2type` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_1A2084EF84A0A3ED` FOREIGN KEY (`content_id`) REFERENCES `claro_content` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_1A2084EFAA23F6C8` FOREIGN KEY (`next_id`) REFERENCES `claro_content2type` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_1A2084EFC54C8C93` FOREIGN KEY (`type_id`) REFERENCES `claro_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_content2type`
--

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

--
-- Table structure for table `claro_content_translation`
--

DROP TABLE IF EXISTS `claro_content_translation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_content_translation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `locale` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
  `object_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `field` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
  `foreign_key` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `content_translation_idx` (`locale`,`object_class`,`field`,`foreign_key`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_content_translation`
--

LOCK TABLES `claro_content_translation` WRITE;
/*!40000 ALTER TABLE `claro_content_translation` DISABLE KEYS */;
INSERT INTO `claro_content_translation` VALUES (1,'fr','Claroline\\CoreBundle\\Entity\\Content','title','1','Inscription à %platform_name%'),(2,'fr','Claroline\\CoreBundle\\Entity\\Content','content','1','<div>Votre nom d\'utilisateur est %username%</div></br><div>Votre mot de passe est %password%</div><div>%validation_mail%</div>'),(3,'fr','Claroline\\CoreBundle\\Entity\\Content','content','2','<div></div>%content%<div></hr>Powered by %platform_name%</div>'),(4,'fr','Claroline\\CoreBundle\\Entity\\Content','title','3','Confirmation de votre inscription'),(5,'fr','Claroline\\CoreBundle\\Entity\\Content','content','3','<div>Vous avez bien été inscrit au cours %course% pour la session %session% du %start_date% au %end_date%.</div>');
/*!40000 ALTER TABLE `claro_content_translation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_cursus_sessions`
--

DROP TABLE IF EXISTS `claro_cursus_sessions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursus_sessions` (
  `coursesession_id` int(11) NOT NULL,
  `cursus_id` int(11) NOT NULL,
  PRIMARY KEY (`coursesession_id`,`cursus_id`),
  KEY `IDX_5256A813AE020D6E` (`coursesession_id`),
  KEY `IDX_5256A81340AEF4B9` (`cursus_id`),
  CONSTRAINT `FK_5256A81340AEF4B9` FOREIGN KEY (`cursus_id`) REFERENCES `claro_cursusbundle_cursus` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_5256A813AE020D6E` FOREIGN KEY (`coursesession_id`) REFERENCES `claro_cursusbundle_course_session` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursus_sessions`
--

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

--
-- Table structure for table `claro_cursusbundle_course`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_model_id` int(11) DEFAULT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `public_registration` tinyint(1) NOT NULL,
  `public_unregistration` tinyint(1) NOT NULL,
  `registration_validation` tinyint(1) NOT NULL,
  `tutor_role_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `learner_role_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  `user_validation` tinyint(1) NOT NULL,
  `organization_validation` tinyint(1) NOT NULL,
  `max_users` int(11) DEFAULT NULL,
  `session_duration` int(11) NOT NULL DEFAULT '1',
  `with_session_event` tinyint(1) NOT NULL DEFAULT '1',
  `display_order` int(11) NOT NULL DEFAULT '500',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_3359D34977153098` (`code`),
  KEY `IDX_3359D349EE7F5384` (`workspace_model_id`),
  KEY `IDX_3359D34982D40A1F` (`workspace_id`),
  CONSTRAINT `FK_3359D34982D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_3359D349EE7F5384` FOREIGN KEY (`workspace_model_id`) REFERENCES `claro_workspace_model` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course`
--

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

--
-- Table structure for table `claro_cursusbundle_course_organizations`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course_organizations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course_organizations` (
  `course_id` int(11) NOT NULL,
  `organization_id` int(11) NOT NULL,
  PRIMARY KEY (`course_id`,`organization_id`),
  KEY `IDX_6B367C8591CC992` (`course_id`),
  KEY `IDX_6B367C832C8A3DE` (`organization_id`),
  CONSTRAINT `FK_6B367C832C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `claro__organization` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6B367C8591CC992` FOREIGN KEY (`course_id`) REFERENCES `claro_cursusbundle_course` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course_organizations`
--

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

--
-- Table structure for table `claro_cursusbundle_course_registration_queue`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course_registration_queue`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course_registration_queue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `course_id` int(11) NOT NULL,
  `application_date` datetime NOT NULL,
  `validator_id` int(11) DEFAULT NULL,
  `organization_admin_id` int(11) DEFAULT NULL,
  `queue_status` int(11) NOT NULL,
  `validation_date` datetime DEFAULT NULL,
  `user_validation_date` datetime DEFAULT NULL,
  `validator_validation_date` datetime DEFAULT NULL,
  `organization_validation_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `course_queue_unique_course_user` (`course_id`,`user_id`),
  KEY `IDX_E068776EA76ED395` (`user_id`),
  KEY `IDX_E068776E591CC992` (`course_id`),
  KEY `IDX_E068776EB0644AEC` (`validator_id`),
  KEY `IDX_E068776E8B3340B2` (`organization_admin_id`),
  CONSTRAINT `FK_E068776E8B3340B2` FOREIGN KEY (`organization_admin_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_E068776E591CC992` FOREIGN KEY (`course_id`) REFERENCES `claro_cursusbundle_course` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_E068776EA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_E068776EB0644AEC` FOREIGN KEY (`validator_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course_registration_queue`
--

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

--
-- Table structure for table `claro_cursusbundle_course_session`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course_session`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course_session` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `course_id` int(11) NOT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  `learner_role_id` int(11) DEFAULT NULL,
  `tutor_role_id` int(11) DEFAULT NULL,
  `session_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `session_status` int(11) NOT NULL,
  `default_session` tinyint(1) NOT NULL,
  `creation_date` datetime NOT NULL,
  `public_registration` tinyint(1) NOT NULL,
  `public_unregistration` tinyint(1) NOT NULL,
  `registration_validation` tinyint(1) NOT NULL,
  `start_date` datetime DEFAULT NULL,
  `end_date` datetime DEFAULT NULL,
  `user_validation` tinyint(1) NOT NULL,
  `organization_validation` tinyint(1) NOT NULL,
  `max_users` int(11) DEFAULT NULL,
  `session_type` int(11) NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `event_registration_type` int(11) NOT NULL DEFAULT '0',
  `display_order` int(11) NOT NULL DEFAULT '500',
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  KEY `IDX_C5F56FDE591CC992` (`course_id`),
  KEY `IDX_C5F56FDE82D40A1F` (`workspace_id`),
  KEY `IDX_C5F56FDEEF2297F5` (`learner_role_id`),
  KEY `IDX_C5F56FDEBEFB2F13` (`tutor_role_id`),
  CONSTRAINT `FK_C5F56FDE591CC992` FOREIGN KEY (`course_id`) REFERENCES `claro_cursusbundle_course` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_C5F56FDE82D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_C5F56FDEBEFB2F13` FOREIGN KEY (`tutor_role_id`) REFERENCES `claro_role` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_C5F56FDEEF2297F5` FOREIGN KEY (`learner_role_id`) REFERENCES `claro_role` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course_session`
--

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

--
-- Table structure for table `claro_cursusbundle_course_session_group`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course_session_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course_session_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) NOT NULL,
  `session_id` int(11) NOT NULL,
  `registration_date` datetime NOT NULL,
  `group_type` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `cursus_group_unique_course_session_group` (`session_id`,`group_id`,`group_type`),
  KEY `IDX_F27287A4FE54D947` (`group_id`),
  KEY `IDX_F27287A4613FECDF` (`session_id`),
  CONSTRAINT `FK_F27287A4613FECDF` FOREIGN KEY (`session_id`) REFERENCES `claro_cursusbundle_course_session` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F27287A4FE54D947` FOREIGN KEY (`group_id`) REFERENCES `claro_group` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course_session_group`
--

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

--
-- Table structure for table `claro_cursusbundle_course_session_registration_queue`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course_session_registration_queue`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course_session_registration_queue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `session_id` int(11) NOT NULL,
  `application_date` datetime NOT NULL,
  `validator_id` int(11) DEFAULT NULL,
  `organization_admin_id` int(11) DEFAULT NULL,
  `queue_status` int(11) NOT NULL,
  `validation_date` datetime DEFAULT NULL,
  `user_validation_date` datetime DEFAULT NULL,
  `validator_validation_date` datetime DEFAULT NULL,
  `organization_validation_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `session_queue_unique_session_user` (`session_id`,`user_id`),
  KEY `IDX_334FC296A76ED395` (`user_id`),
  KEY `IDX_334FC296613FECDF` (`session_id`),
  KEY `IDX_334FC296B0644AEC` (`validator_id`),
  KEY `IDX_334FC2968B3340B2` (`organization_admin_id`),
  CONSTRAINT `FK_334FC2968B3340B2` FOREIGN KEY (`organization_admin_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_334FC296613FECDF` FOREIGN KEY (`session_id`) REFERENCES `claro_cursusbundle_course_session` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_334FC296A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_334FC296B0644AEC` FOREIGN KEY (`validator_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course_session_registration_queue`
--

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

--
-- Table structure for table `claro_cursusbundle_course_session_user`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course_session_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course_session_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `session_id` int(11) NOT NULL,
  `registration_date` datetime NOT NULL,
  `user_type` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `cursus_user_unique_course_session_user` (`session_id`,`user_id`,`user_type`),
  KEY `IDX_80B4120FA76ED395` (`user_id`),
  KEY `IDX_80B4120F613FECDF` (`session_id`),
  CONSTRAINT `FK_80B4120F613FECDF` FOREIGN KEY (`session_id`) REFERENCES `claro_cursusbundle_course_session` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_80B4120FA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course_session_user`
--

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

--
-- Table structure for table `claro_cursusbundle_course_session_validators`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course_session_validators`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course_session_validators` (
  `coursesession_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`coursesession_id`,`user_id`),
  KEY `IDX_7EE284A7AE020D6E` (`coursesession_id`),
  KEY `IDX_7EE284A7A76ED395` (`user_id`),
  CONSTRAINT `FK_7EE284A7A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_7EE284A7AE020D6E` FOREIGN KEY (`coursesession_id`) REFERENCES `claro_cursusbundle_course_session` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course_session_validators`
--

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

--
-- Table structure for table `claro_cursusbundle_course_validators`
--

DROP TABLE IF EXISTS `claro_cursusbundle_course_validators`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_course_validators` (
  `course_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`course_id`,`user_id`),
  KEY `IDX_219067F2591CC992` (`course_id`),
  KEY `IDX_219067F2A76ED395` (`user_id`),
  CONSTRAINT `FK_219067F2A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_219067F2591CC992` FOREIGN KEY (`course_id`) REFERENCES `claro_cursusbundle_course` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_course_validators`
--

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

--
-- Table structure for table `claro_cursusbundle_courses_widget_config`
--

DROP TABLE IF EXISTS `claro_cursusbundle_courses_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_courses_widget_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cursus_id` int(11) DEFAULT NULL,
  `widgetInstance_id` int(11) DEFAULT NULL,
  `default_mode` int(11) NOT NULL DEFAULT '0',
  `public_sessions_only` tinyint(1) NOT NULL DEFAULT '0',
  `extra` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_1724E274AB7B5A55` (`widgetInstance_id`),
  KEY `IDX_1724E27440AEF4B9` (`cursus_id`),
  CONSTRAINT `FK_1724E27440AEF4B9` FOREIGN KEY (`cursus_id`) REFERENCES `claro_cursusbundle_cursus` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1724E274AB7B5A55` FOREIGN KEY (`widgetInstance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_courses_widget_config`
--

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

--
-- Table structure for table `claro_cursusbundle_cursus`
--

DROP TABLE IF EXISTS `claro_cursusbundle_cursus`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_cursus` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `course_id` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `blocking` tinyint(1) NOT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `cursus_order` int(11) NOT NULL,
  `root` int(11) DEFAULT NULL,
  `lvl` int(11) NOT NULL,
  `lft` int(11) NOT NULL,
  `rgt` int(11) NOT NULL,
  `icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_27921C3377153098` (`code`),
  KEY `IDX_27921C33591CC992` (`course_id`),
  KEY `IDX_27921C33727ACA70` (`parent_id`),
  KEY `IDX_27921C3382D40A1F` (`workspace_id`),
  CONSTRAINT `FK_27921C3382D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_27921C33591CC992` FOREIGN KEY (`course_id`) REFERENCES `claro_cursusbundle_course` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_27921C33727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `claro_cursusbundle_cursus` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_cursus`
--

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

--
-- Table structure for table `claro_cursusbundle_cursus_displayed_word`
--

DROP TABLE IF EXISTS `claro_cursusbundle_cursus_displayed_word`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_cursus_displayed_word` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `word` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `displayed_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_14E7B098C3F17511` (`word`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_cursus_displayed_word`
--

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

--
-- Table structure for table `claro_cursusbundle_cursus_group`
--

DROP TABLE IF EXISTS `claro_cursusbundle_cursus_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_cursus_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) NOT NULL,
  `cursus_id` int(11) NOT NULL,
  `registration_date` datetime NOT NULL,
  `group_type` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `cursus_group_unique_cursus_group` (`cursus_id`,`group_id`,`group_type`),
  KEY `IDX_EA4DDE93FE54D947` (`group_id`),
  KEY `IDX_EA4DDE9340AEF4B9` (`cursus_id`),
  CONSTRAINT `FK_EA4DDE9340AEF4B9` FOREIGN KEY (`cursus_id`) REFERENCES `claro_cursusbundle_cursus` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_EA4DDE93FE54D947` FOREIGN KEY (`group_id`) REFERENCES `claro_group` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_cursus_group`
--

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

--
-- Table structure for table `claro_cursusbundle_cursus_organizations`
--

DROP TABLE IF EXISTS `claro_cursusbundle_cursus_organizations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_cursus_organizations` (
  `cursus_id` int(11) NOT NULL,
  `organization_id` int(11) NOT NULL,
  PRIMARY KEY (`cursus_id`,`organization_id`),
  KEY `IDX_3B65A4C840AEF4B9` (`cursus_id`),
  KEY `IDX_3B65A4C832C8A3DE` (`organization_id`),
  CONSTRAINT `FK_3B65A4C832C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `claro__organization` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_3B65A4C840AEF4B9` FOREIGN KEY (`cursus_id`) REFERENCES `claro_cursusbundle_cursus` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_cursus_organizations`
--

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

--
-- Table structure for table `claro_cursusbundle_cursus_user`
--

DROP TABLE IF EXISTS `claro_cursusbundle_cursus_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_cursus_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `cursus_id` int(11) NOT NULL,
  `registration_date` datetime NOT NULL,
  `user_type` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `cursus_user_unique_cursus_user` (`cursus_id`,`user_id`,`user_type`),
  KEY `IDX_8AA52D8A76ED395` (`user_id`),
  KEY `IDX_8AA52D840AEF4B9` (`cursus_id`),
  CONSTRAINT `FK_8AA52D840AEF4B9` FOREIGN KEY (`cursus_id`) REFERENCES `claro_cursusbundle_cursus` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_8AA52D8A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_cursus_user`
--

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

--
-- Table structure for table `claro_cursusbundle_document_model`
--

DROP TABLE IF EXISTS `claro_cursusbundle_document_model`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_document_model` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` longtext COLLATE utf8_unicode_ci NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `document_type` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_document_model`
--

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

--
-- Table structure for table `claro_cursusbundle_presence_status`
--

DROP TABLE IF EXISTS `claro_cursusbundle_presence_status`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_presence_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `presence_type` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_presence_status`
--

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

--
-- Table structure for table `claro_cursusbundle_session_event`
--

DROP TABLE IF EXISTS `claro_cursusbundle_session_event`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_session_event` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `session_id` int(11) NOT NULL,
  `location_id` int(11) DEFAULT NULL,
  `location_resource_id` int(11) DEFAULT NULL,
  `reservation_id` int(11) DEFAULT NULL,
  `event_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `location_extra` longtext COLLATE utf8_unicode_ci,
  `max_users` int(11) DEFAULT NULL,
  `registration_type` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `IDX_257C3061613FECDF` (`session_id`),
  KEY `IDX_257C306164D218E` (`location_id`),
  KEY `IDX_257C30619FE77A61` (`location_resource_id`),
  KEY `IDX_257C3061B83297E7` (`reservation_id`),
  CONSTRAINT `FK_257C3061613FECDF` FOREIGN KEY (`session_id`) REFERENCES `claro_cursusbundle_course_session` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_257C306164D218E` FOREIGN KEY (`location_id`) REFERENCES `claro__location` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_257C30619FE77A61` FOREIGN KEY (`location_resource_id`) REFERENCES `formalibre_reservation_resource` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_257C3061B83297E7` FOREIGN KEY (`reservation_id`) REFERENCES `formalibre_reservation` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_session_event`
--

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

--
-- Table structure for table `claro_cursusbundle_session_event_comment`
--

DROP TABLE IF EXISTS `claro_cursusbundle_session_event_comment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_session_event_comment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `session_event_id` int(11) NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `creation_date` datetime NOT NULL,
  `edition_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_21DFDBA8A76ED395` (`user_id`),
  KEY `IDX_21DFDBA8FA5B88E3` (`session_event_id`),
  CONSTRAINT `FK_21DFDBA8FA5B88E3` FOREIGN KEY (`session_event_id`) REFERENCES `claro_cursusbundle_session_event` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_21DFDBA8A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_session_event_comment`
--

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

--
-- Table structure for table `claro_cursusbundle_session_event_tutors`
--

DROP TABLE IF EXISTS `claro_cursusbundle_session_event_tutors`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_session_event_tutors` (
  `sessionevent_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`sessionevent_id`,`user_id`),
  KEY `IDX_18D6F45217678BAC` (`sessionevent_id`),
  KEY `IDX_18D6F452A76ED395` (`user_id`),
  CONSTRAINT `FK_18D6F452A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_18D6F45217678BAC` FOREIGN KEY (`sessionevent_id`) REFERENCES `claro_cursusbundle_session_event` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_session_event_tutors`
--

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

--
-- Table structure for table `claro_cursusbundle_session_event_user`
--

DROP TABLE IF EXISTS `claro_cursusbundle_session_event_user`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_cursusbundle_session_event_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `session_event_id` int(11) NOT NULL,
  `presence_status_id` int(11) DEFAULT NULL,
  `registration_status` int(11) NOT NULL,
  `registration_date` datetime DEFAULT NULL,
  `application_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_31D741DDA76ED395` (`user_id`),
  KEY `IDX_31D741DDFA5B88E3` (`session_event_id`),
  KEY `IDX_31D741DDD079F0B` (`presence_status_id`),
  CONSTRAINT `FK_31D741DDD079F0B` FOREIGN KEY (`presence_status_id`) REFERENCES `claro_cursusbundle_presence_status` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_31D741DDA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_31D741DDFA5B88E3` FOREIGN KEY (`session_event_id`) REFERENCES `claro_cursusbundle_session_event` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_cursusbundle_session_event_user`
--

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

--
-- Table structure for table `claro_dashboard`
--

DROP TABLE IF EXISTS `claro_dashboard`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_dashboard` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `creator_id` int(11) DEFAULT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `creation_date` datetime NOT NULL,
  `modification_date` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8027AA461220EA6` (`creator_id`),
  KEY `IDX_8027AA482D40A1F` (`workspace_id`),
  CONSTRAINT `FK_8027AA482D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`),
  CONSTRAINT `FK_8027AA461220EA6` FOREIGN KEY (`creator_id`) REFERENCES `claro_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_dashboard`
--

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

--
-- Table structure for table `claro_directory`
--

DROP TABLE IF EXISTS `claro_directory`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_directory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `is_upload_destination` tinyint(1) NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_12EEC186B87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_12EEC186B87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_directory`
--

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

--
-- Table structure for table `claro_event`
--

DROP TABLE IF EXISTS `claro_event`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_event` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `title` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` int(11) DEFAULT NULL,
  `end_date` int(11) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `priority` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_all_day` tinyint(1) NOT NULL,
  `is_task` tinyint(1) NOT NULL,
  `is_task_done` tinyint(1) NOT NULL,
  `is_editable` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B1ADDDB582D40A1F` (`workspace_id`),
  KEY `IDX_B1ADDDB5A76ED395` (`user_id`),
  CONSTRAINT `FK_B1ADDDB582D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B1ADDDB5A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_event`
--

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

--
-- Table structure for table `claro_event_category`
--

DROP TABLE IF EXISTS `claro_event_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_event_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_408DC8C05E237E06` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_event_category`
--

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

--
-- Table structure for table `claro_event_event_category`
--

DROP TABLE IF EXISTS `claro_event_event_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_event_event_category` (
  `event_id` int(11) NOT NULL,
  `eventcategory_id` int(11) NOT NULL,
  PRIMARY KEY (`event_id`,`eventcategory_id`),
  KEY `IDX_858F0D4C71F7E88B` (`event_id`),
  KEY `IDX_858F0D4C29E3B4B5` (`eventcategory_id`),
  CONSTRAINT `FK_858F0D4C29E3B4B5` FOREIGN KEY (`eventcategory_id`) REFERENCES `claro_event_category` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_858F0D4C71F7E88B` FOREIGN KEY (`event_id`) REFERENCES `claro_event` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_event_event_category`
--

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

--
-- Table structure for table `claro_event_invitation`
--

DROP TABLE IF EXISTS `claro_event_invitation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_event_invitation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `event` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `status` smallint(6) NOT NULL,
  `title` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_19D2F4603BAE0AA7` (`event`),
  KEY `IDX_19D2F460A76ED395` (`user_id`),
  CONSTRAINT `FK_19D2F460A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_19D2F4603BAE0AA7` FOREIGN KEY (`event`) REFERENCES `claro_event` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_event_invitation`
--

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

--
-- Table structure for table `claro_facet`
--

DROP TABLE IF EXISTS `claro_facet`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_facet` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `position` int(11) NOT NULL,
  `isMain` tinyint(1) NOT NULL,
  `forceCreationForm` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_DCBA6D3A5E237E06` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_facet`
--

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

--
-- Table structure for table `claro_facet_role`
--

DROP TABLE IF EXISTS `claro_facet_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_facet_role` (
  `facet_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  PRIMARY KEY (`facet_id`,`role_id`),
  KEY `IDX_CDD5845DFC889F24` (`facet_id`),
  KEY `IDX_CDD5845DD60322AC` (`role_id`),
  CONSTRAINT `FK_CDD5845DD60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_CDD5845DFC889F24` FOREIGN KEY (`facet_id`) REFERENCES `claro_facet` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_facet_role`
--

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

--
-- Table structure for table `claro_fcbundle_card`
--

DROP TABLE IF EXISTS `claro_fcbundle_card`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_card` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `note_id` int(11) DEFAULT NULL,
  `cardType_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_92721E0681FD01F8` (`cardType_id`),
  KEY `IDX_92721E0626ED0855` (`note_id`),
  CONSTRAINT `FK_92721E0626ED0855` FOREIGN KEY (`note_id`) REFERENCES `claro_fcbundle_note` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_92721E0681FD01F8` FOREIGN KEY (`cardType_id`) REFERENCES `claro_fcbundle_card_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_card`
--

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

--
-- Table structure for table `claro_fcbundle_card_learning`
--

DROP TABLE IF EXISTS `claro_fcbundle_card_learning`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_card_learning` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `card_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `factor` double NOT NULL,
  `painful` tinyint(1) NOT NULL,
  `number_repeated` int(11) NOT NULL,
  `due_date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D0B7CD7B4ACC9A20` (`card_id`),
  KEY `IDX_D0B7CD7BA76ED395` (`user_id`),
  CONSTRAINT `FK_D0B7CD7B4ACC9A20` FOREIGN KEY (`card_id`) REFERENCES `claro_fcbundle_card` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_D0B7CD7BA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_card_learning`
--

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

--
-- Table structure for table `claro_fcbundle_card_log`
--

DROP TABLE IF EXISTS `claro_fcbundle_card_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_card_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `card_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `date` date NOT NULL,
  `factor` double NOT NULL,
  `painful` tinyint(1) NOT NULL,
  `number_repeated` int(11) NOT NULL,
  `due_date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F28F49854ACC9A20` (`card_id`),
  KEY `IDX_F28F4985A76ED395` (`user_id`),
  CONSTRAINT `FK_F28F49854ACC9A20` FOREIGN KEY (`card_id`) REFERENCES `claro_fcbundle_card` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F28F4985A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_card_log`
--

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

--
-- Table structure for table `claro_fcbundle_card_type`
--

DROP TABLE IF EXISTS `claro_fcbundle_card_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_card_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `noteType_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_FA7FA698EB100558` (`noteType_id`),
  CONSTRAINT `FK_FA7FA698EB100558` FOREIGN KEY (`noteType_id`) REFERENCES `claro_fcbundle_note_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_card_type`
--

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

--
-- Table structure for table `claro_fcbundle_deck`
--

DROP TABLE IF EXISTS `claro_fcbundle_deck`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_deck` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `new_card_day_default` int(11) NOT NULL,
  `session_duration_default` int(11) NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  `theme` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_CBCAB0E2B87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_CBCAB0E2B87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_deck`
--

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

--
-- Table structure for table `claro_fcbundle_field_label`
--

DROP TABLE IF EXISTS `claro_fcbundle_field_label`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_field_label` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `noteType_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_605BBEB5EB100558` (`noteType_id`),
  CONSTRAINT `FK_605BBEB5EB100558` FOREIGN KEY (`noteType_id`) REFERENCES `claro_fcbundle_note_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_field_label`
--

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

--
-- Table structure for table `claro_fcbundle_field_value`
--

DROP TABLE IF EXISTS `claro_fcbundle_field_value`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_field_value` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `note_id` int(11) DEFAULT NULL,
  `value` longtext COLLATE utf8_unicode_ci NOT NULL,
  `fieldLabel_id` int(11) DEFAULT NULL,
  `mimetype` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type_discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `alt` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_738BB66950A389B2` (`fieldLabel_id`),
  KEY `IDX_738BB66926ED0855` (`note_id`),
  CONSTRAINT `FK_738BB66926ED0855` FOREIGN KEY (`note_id`) REFERENCES `claro_fcbundle_note` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_738BB66950A389B2` FOREIGN KEY (`fieldLabel_id`) REFERENCES `claro_fcbundle_field_label` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_field_value`
--

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

--
-- Table structure for table `claro_fcbundle_note`
--

DROP TABLE IF EXISTS `claro_fcbundle_note`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_note` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `deck_id` int(11) DEFAULT NULL,
  `noteType_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_4BDB7CC1EB100558` (`noteType_id`),
  KEY `IDX_4BDB7CC1111948DC` (`deck_id`),
  CONSTRAINT `FK_4BDB7CC1111948DC` FOREIGN KEY (`deck_id`) REFERENCES `claro_fcbundle_deck` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_4BDB7CC1EB100558` FOREIGN KEY (`noteType_id`) REFERENCES `claro_fcbundle_note_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_note`
--

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

--
-- Table structure for table `claro_fcbundle_note_type`
--

DROP TABLE IF EXISTS `claro_fcbundle_note_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_note_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_note_type`
--

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

--
-- Table structure for table `claro_fcbundle_session`
--

DROP TABLE IF EXISTS `claro_fcbundle_session`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_session` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `deck_id` int(11) DEFAULT NULL,
  `due_date` date NOT NULL,
  `duration` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_920ED92BA76ED395` (`user_id`),
  KEY `IDX_920ED92B111948DC` (`deck_id`),
  CONSTRAINT `FK_920ED92B111948DC` FOREIGN KEY (`deck_id`) REFERENCES `claro_fcbundle_deck` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_920ED92BA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_session`
--

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

--
-- Table structure for table `claro_fcbundle_user_preference`
--

DROP TABLE IF EXISTS `claro_fcbundle_user_preference`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_fcbundle_user_preference` (
  `deck` int(11) NOT NULL,
  `user` int(11) NOT NULL,
  `new_card_day` int(11) NOT NULL,
  `session_duration` int(11) NOT NULL,
  `theme` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`deck`,`user`),
  UNIQUE KEY `uniq` (`user`,`deck`),
  KEY `IDX_9715380E4FAC3637` (`deck`),
  KEY `IDX_9715380E8D93D649` (`user`),
  CONSTRAINT `FK_9715380E4FAC3637` FOREIGN KEY (`deck`) REFERENCES `claro_fcbundle_deck` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_9715380E8D93D649` FOREIGN KEY (`user`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_fcbundle_user_preference`
--

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

--
-- Table structure for table `claro_field_facet`
--

DROP TABLE IF EXISTS `claro_field_facet`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_field_facet` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` int(11) NOT NULL,
  `position` int(11) DEFAULT NULL,
  `panelFacet_id` int(11) DEFAULT NULL,
  `isRequired` tinyint(1) NOT NULL,
  `resource_node` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F6C21DB2E99038C0` (`panelFacet_id`),
  KEY `IDX_F6C21DB28A5F48FF` (`resource_node`),
  CONSTRAINT `FK_F6C21DB28A5F48FF` FOREIGN KEY (`resource_node`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F6C21DB2E99038C0` FOREIGN KEY (`panelFacet_id`) REFERENCES `claro_panel_facet` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_field_facet`
--

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

--
-- Table structure for table `claro_field_facet_choice`
--

DROP TABLE IF EXISTS `claro_field_facet_choice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_field_facet_choice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `position` int(11) NOT NULL,
  `fieldFacet_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_E2001D9F9239AF` (`fieldFacet_id`),
  CONSTRAINT `FK_E2001D9F9239AF` FOREIGN KEY (`fieldFacet_id`) REFERENCES `claro_field_facet` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_field_facet_choice`
--

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

--
-- Table structure for table `claro_field_facet_role`
--

DROP TABLE IF EXISTS `claro_field_facet_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_field_facet_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `canOpen` tinyint(1) NOT NULL,
  `canEdit` tinyint(1) NOT NULL,
  `fieldFacet_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_12F52A52D60322AC` (`role_id`),
  KEY `IDX_12F52A529F9239AF` (`fieldFacet_id`),
  CONSTRAINT `FK_12F52A529F9239AF` FOREIGN KEY (`fieldFacet_id`) REFERENCES `claro_field_facet` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_12F52A52D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_field_facet_role`
--

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

--
-- Table structure for table `claro_field_facet_value`
--

DROP TABLE IF EXISTS `claro_field_facet_value`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_field_facet_value` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `stringValue` longtext COLLATE utf8_unicode_ci,
  `floatValue` double DEFAULT NULL,
  `dateValue` datetime DEFAULT NULL,
  `fieldFacet_id` int(11) NOT NULL,
  `arrayValue` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  KEY `IDX_35307C0AA76ED395` (`user_id`),
  KEY `IDX_35307C0A9F9239AF` (`fieldFacet_id`),
  CONSTRAINT `FK_35307C0A9F9239AF` FOREIGN KEY (`fieldFacet_id`) REFERENCES `claro_field_facet` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_35307C0AA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_field_facet_value`
--

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

--
-- Table structure for table `claro_file`
--

DROP TABLE IF EXISTS `claro_file`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_file` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `size` int(11) NOT NULL,
  `hash_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_EA81C80BE1F029B6` (`hash_name`),
  UNIQUE KEY `UNIQ_EA81C80BB87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_EA81C80BB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_file`
--

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

--
-- Table structure for table `claro_forum`
--

DROP TABLE IF EXISTS `claro_forum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_forum` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `resourceNode_id` int(11) DEFAULT NULL,
  `activate_notifications` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_F2869DFB87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_F2869DFB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_forum`
--

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

--
-- Table structure for table `claro_forum_category`
--

DROP TABLE IF EXISTS `claro_forum_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_forum_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `forum_id` int(11) DEFAULT NULL,
  `created` datetime NOT NULL,
  `modificationDate` datetime NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2192ACF729CCBAD0` (`forum_id`),
  CONSTRAINT `FK_2192ACF729CCBAD0` FOREIGN KEY (`forum_id`) REFERENCES `claro_forum` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_forum_category`
--

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

--
-- Table structure for table `claro_forum_last_message_widget_config`
--

DROP TABLE IF EXISTS `claro_forum_last_message_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_forum_last_message_widget_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `widget_instance_id` int(11) NOT NULL,
  `display_my_last_messages` tinyint(1) NOT NULL,
  `forum_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_F68C6FF444BF891` (`widget_instance_id`),
  KEY `IDX_F68C6FF429CCBAD0` (`forum_id`),
  CONSTRAINT `FK_F68C6FF429CCBAD0` FOREIGN KEY (`forum_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_F68C6FF444BF891` FOREIGN KEY (`widget_instance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_forum_last_message_widget_config`
--

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

--
-- Table structure for table `claro_forum_message`
--

DROP TABLE IF EXISTS `claro_forum_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_forum_message` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `subject_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  `author` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6A49AC0E23EDC87` (`subject_id`),
  KEY `IDX_6A49AC0EA76ED395` (`user_id`),
  CONSTRAINT `FK_6A49AC0E23EDC87` FOREIGN KEY (`subject_id`) REFERENCES `claro_forum_subject` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6A49AC0EA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_forum_message`
--

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

--
-- Table structure for table `claro_forum_notification`
--

DROP TABLE IF EXISTS `claro_forum_notification`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_forum_notification` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `forum_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `self_activation` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `IDX_1330B0B629CCBAD0` (`forum_id`),
  KEY `IDX_1330B0B6A76ED395` (`user_id`),
  CONSTRAINT `FK_1330B0B629CCBAD0` FOREIGN KEY (`forum_id`) REFERENCES `claro_forum` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_1330B0B6A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_forum_notification`
--

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

--
-- Table structure for table `claro_forum_options`
--

DROP TABLE IF EXISTS `claro_forum_options`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_forum_options` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `subjects` int(11) NOT NULL,
  `messages` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_forum_options`
--

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

--
-- Table structure for table `claro_forum_subject`
--

DROP TABLE IF EXISTS `claro_forum_subject`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_forum_subject` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created` datetime NOT NULL,
  `updated` datetime NOT NULL,
  `isSticked` tinyint(1) NOT NULL,
  `isClosed` tinyint(1) NOT NULL,
  `author` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_273AA20BA76ED395` (`user_id`),
  KEY `IDX_273AA20B12469DE2` (`category_id`),
  CONSTRAINT `FK_273AA20B12469DE2` FOREIGN KEY (`category_id`) REFERENCES `claro_forum_category` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_273AA20BA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_forum_subject`
--

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

--
-- Table structure for table `claro_friend_request`
--

DROP TABLE IF EXISTS `claro_friend_request`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_friend_request` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_activated` tinyint(1) NOT NULL,
  `allow_authentication` tinyint(1) NOT NULL,
  `create_user_if_missing` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_friend_request`
--

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

--
-- Table structure for table `claro_general_facet_preference`
--

DROP TABLE IF EXISTS `claro_general_facet_preference`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_general_facet_preference` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `baseData` tinyint(1) NOT NULL,
  `mail` tinyint(1) NOT NULL,
  `phone` tinyint(1) NOT NULL,
  `sendMail` tinyint(1) NOT NULL,
  `sendMessage` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_38AACF88D60322AC` (`role_id`),
  CONSTRAINT `FK_38AACF88D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_general_facet_preference`
--

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

--
-- Table structure for table `claro_group`
--

DROP TABLE IF EXISTS `claro_group`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `guid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `group_unique_name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_group`
--

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

--
-- Table structure for table `claro_group_organization`
--

DROP TABLE IF EXISTS `claro_group_organization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_group_organization` (
  `organization_id` int(11) NOT NULL,
  `group_id` int(11) NOT NULL,
  PRIMARY KEY (`organization_id`,`group_id`),
  KEY `IDX_B912197E32C8A3DE` (`organization_id`),
  KEY `IDX_B912197EFE54D947` (`group_id`),
  CONSTRAINT `FK_B912197EFE54D947` FOREIGN KEY (`group_id`) REFERENCES `claro_group` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B912197E32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `claro__organization` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_group_organization`
--

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

--
-- Table structure for table `claro_group_role`
--

DROP TABLE IF EXISTS `claro_group_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_group_role` (
  `group_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  PRIMARY KEY (`group_id`,`role_id`),
  KEY `IDX_1CBA5A40FE54D947` (`group_id`),
  KEY `IDX_1CBA5A40D60322AC` (`role_id`),
  CONSTRAINT `FK_1CBA5A40D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_1CBA5A40FE54D947` FOREIGN KEY (`group_id`) REFERENCES `claro_group` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_group_role`
--

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

--
-- Table structure for table `claro_home_tab`
--

DROP TABLE IF EXISTS `claro_home_tab`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_home_tab` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_A9744CCEA76ED395` (`user_id`),
  KEY `IDX_A9744CCE82D40A1F` (`workspace_id`),
  CONSTRAINT `FK_A9744CCE82D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_A9744CCEA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_home_tab`
--

LOCK TABLES `claro_home_tab` WRITE;
/*!40000 ALTER TABLE `claro_home_tab` DISABLE KEYS */;
INSERT INTO `claro_home_tab` VALUES (1,NULL,NULL,'Informations','admin_desktop',NULL),(2,NULL,NULL,'Informations','admin_workspace',NULL);
/*!40000 ALTER TABLE `claro_home_tab` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_home_tab_config`
--

DROP TABLE IF EXISTS `claro_home_tab_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_home_tab_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `home_tab_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_visible` tinyint(1) NOT NULL,
  `is_locked` tinyint(1) NOT NULL,
  `tab_order` int(11) NOT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  UNIQUE KEY `home_tab_config_unique_home_tab_user_workspace_type` (`home_tab_id`,`user_id`,`workspace_id`,`type`),
  KEY `IDX_F530F6BE7D08FA9E` (`home_tab_id`),
  KEY `IDX_F530F6BEA76ED395` (`user_id`),
  KEY `IDX_F530F6BE82D40A1F` (`workspace_id`),
  CONSTRAINT `FK_F530F6BE7D08FA9E` FOREIGN KEY (`home_tab_id`) REFERENCES `claro_home_tab` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F530F6BE82D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F530F6BEA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_home_tab_config`
--

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

--
-- Table structure for table `claro_home_tab_roles`
--

DROP TABLE IF EXISTS `claro_home_tab_roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_home_tab_roles` (
  `hometab_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  PRIMARY KEY (`hometab_id`,`role_id`),
  KEY `IDX_B81359F3CCE862F` (`hometab_id`),
  KEY `IDX_B81359F3D60322AC` (`role_id`),
  CONSTRAINT `FK_B81359F3D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B81359F3CCE862F` FOREIGN KEY (`hometab_id`) REFERENCES `claro_home_tab` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_home_tab_roles`
--

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

--
-- Table structure for table `claro_list_type_creation`
--

DROP TABLE IF EXISTS `claro_list_type_creation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_list_type_creation` (
  `resource_rights_id` int(11) NOT NULL,
  `resource_type_id` int(11) NOT NULL,
  PRIMARY KEY (`resource_rights_id`,`resource_type_id`),
  KEY `IDX_84B4BEBA195FBDF1` (`resource_rights_id`),
  KEY `IDX_84B4BEBA98EC6B7B` (`resource_type_id`),
  CONSTRAINT `FK_84B4BEBA98EC6B7B` FOREIGN KEY (`resource_type_id`) REFERENCES `claro_resource_type` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_84B4BEBA195FBDF1` FOREIGN KEY (`resource_rights_id`) REFERENCES `claro_resource_rights` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_list_type_creation`
--

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

--
-- Table structure for table `claro_log`
--

DROP TABLE IF EXISTS `claro_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `doer_id` int(11) DEFAULT NULL,
  `receiver_id` int(11) DEFAULT NULL,
  `receiver_group_id` int(11) DEFAULT NULL,
  `owner_id` int(11) DEFAULT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  `resource_type_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `date_log` datetime NOT NULL,
  `short_date_log` date NOT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `doer_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `doer_ip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `doer_session_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tool_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_displayed_in_admin` tinyint(1) NOT NULL,
  `is_displayed_in_workspace` tinyint(1) NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  `other_element_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_97FAB91F12D3860F` (`doer_id`),
  KEY `IDX_97FAB91FCD53EDB6` (`receiver_id`),
  KEY `IDX_97FAB91FC6F122B2` (`receiver_group_id`),
  KEY `IDX_97FAB91F7E3C61F9` (`owner_id`),
  KEY `IDX_97FAB91F82D40A1F` (`workspace_id`),
  KEY `IDX_97FAB91FB87FAB32` (`resourceNode_id`),
  KEY `IDX_97FAB91F98EC6B7B` (`resource_type_id`),
  KEY `IDX_97FAB91FD60322AC` (`role_id`),
  KEY `action_idx` (`action`),
  KEY `tool_idx` (`tool_name`),
  KEY `doer_type_idx` (`doer_type`),
  CONSTRAINT `FK_97FAB91F12D3860F` FOREIGN KEY (`doer_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_97FAB91F7E3C61F9` FOREIGN KEY (`owner_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_97FAB91F82D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_97FAB91F98EC6B7B` FOREIGN KEY (`resource_type_id`) REFERENCES `claro_resource_type` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_97FAB91FB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_97FAB91FC6F122B2` FOREIGN KEY (`receiver_group_id`) REFERENCES `claro_group` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_97FAB91FCD53EDB6` FOREIGN KEY (`receiver_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_97FAB91FD60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_log`
--

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

--
-- Table structure for table `claro_log_doer_platform_roles`
--

DROP TABLE IF EXISTS `claro_log_doer_platform_roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_log_doer_platform_roles` (
  `log_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  PRIMARY KEY (`log_id`,`role_id`),
  KEY `IDX_706568A5EA675D86` (`log_id`),
  KEY `IDX_706568A5D60322AC` (`role_id`),
  CONSTRAINT `FK_706568A5D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_706568A5EA675D86` FOREIGN KEY (`log_id`) REFERENCES `claro_log` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_log_doer_platform_roles`
--

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

--
-- Table structure for table `claro_log_doer_workspace_roles`
--

DROP TABLE IF EXISTS `claro_log_doer_workspace_roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_log_doer_workspace_roles` (
  `log_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  PRIMARY KEY (`log_id`,`role_id`),
  KEY `IDX_8A8D2F47EA675D86` (`log_id`),
  KEY `IDX_8A8D2F47D60322AC` (`role_id`),
  CONSTRAINT `FK_8A8D2F47D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_8A8D2F47EA675D86` FOREIGN KEY (`log_id`) REFERENCES `claro_log` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_log_doer_workspace_roles`
--

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

--
-- Table structure for table `claro_log_hidden_workspace_widget_config`
--

DROP TABLE IF EXISTS `claro_log_hidden_workspace_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_log_hidden_workspace_widget_config` (
  `workspace_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`workspace_id`,`user_id`),
  KEY `IDX_BC83196EA76ED395` (`user_id`),
  CONSTRAINT `FK_BC83196EA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_log_hidden_workspace_widget_config`
--

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

--
-- Table structure for table `claro_log_widget_config`
--

DROP TABLE IF EXISTS `claro_log_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_log_widget_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `amount` int(11) NOT NULL,
  `restrictions` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:simple_array)',
  `widgetInstance_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C16334B2AB7B5A55` (`widgetInstance_id`),
  CONSTRAINT `FK_C16334B2AB7B5A55` FOREIGN KEY (`widgetInstance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_log_widget_config`
--

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

--
-- Table structure for table `claro_menu_action`
--

DROP TABLE IF EXISTS `claro_menu_action`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_menu_action` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `resource_type_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `async` tinyint(1) DEFAULT NULL,
  `is_custom` tinyint(1) NOT NULL,
  `is_form` tinyint(1) NOT NULL,
  `value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1F57E52B98EC6B7B` (`resource_type_id`),
  CONSTRAINT `FK_1F57E52B98EC6B7B` FOREIGN KEY (`resource_type_id`) REFERENCES `claro_resource_type` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=182 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_menu_action`
--

LOCK TABLES `claro_menu_action` WRITE;
/*!40000 ALTER TABLE `claro_menu_action` DISABLE KEYS */;
INSERT INTO `claro_menu_action` VALUES (1,1,'download',1,0,0,'4'),(2,1,'delete',1,0,0,'8'),(3,1,'edit-rights',1,0,1,'32'),(4,1,'open-tracking',1,0,0,'32'),(5,1,'rename',1,0,1,'32'),(6,1,'edit-properties',1,0,1,'32'),(7,2,'download',1,0,0,'4'),(8,2,'delete',1,0,0,'8'),(9,2,'edit-rights',1,0,1,'32'),(10,2,'open-tracking',1,0,0,'32'),(11,2,'rename',1,0,1,'32'),(12,2,'edit-properties',1,0,1,'32'),(13,3,'download',1,0,0,'4'),(14,3,'delete',1,0,0,'8'),(15,3,'edit-rights',1,0,1,'32'),(16,3,'open-tracking',1,0,0,'32'),(17,3,'rename',1,0,1,'32'),(18,3,'edit-properties',1,0,1,'32'),(19,4,'download',1,0,0,'4'),(20,4,'delete',1,0,0,'8'),(21,4,'edit-rights',1,0,1,'32'),(22,4,'open-tracking',1,0,0,'32'),(23,4,'rename',1,0,1,'32'),(24,4,'edit-properties',1,0,1,'32'),(25,5,'download',1,0,0,'4'),(26,5,'delete',1,0,0,'8'),(27,5,'edit-rights',1,0,1,'32'),(28,5,'open-tracking',1,0,0,'32'),(29,5,'rename',1,0,1,'32'),(30,5,'edit-properties',1,0,1,'32'),(31,5,'compose',0,1,0,'1024'),(32,1,'update_file',1,1,0,'16'),(33,6,'download',1,0,0,'4'),(34,6,'delete',1,0,0,'8'),(35,6,'edit-rights',1,0,1,'32'),(36,6,'open-tracking',1,0,0,'32'),(37,6,'rename',1,0,1,'32'),(38,6,'edit-properties',1,0,1,'32'),(39,NULL,'tag_action',1,1,1,'1'),(40,7,'download',1,0,0,'4'),(41,7,'delete',1,0,0,'8'),(42,7,'edit-rights',1,0,1,'32'),(43,7,'open-tracking',1,0,0,'32'),(44,7,'rename',1,0,1,'32'),(45,7,'edit-properties',1,0,1,'32'),(46,8,'download',1,0,0,'4'),(47,8,'delete',1,0,0,'8'),(48,8,'edit-rights',1,0,1,'32'),(49,8,'open-tracking',1,0,0,'32'),(50,8,'rename',1,0,1,'32'),(51,8,'edit-properties',1,0,1,'32'),(52,9,'download',1,0,0,'4'),(53,9,'delete',1,0,0,'8'),(54,9,'edit-rights',1,0,1,'32'),(55,9,'open-tracking',1,0,0,'32'),(56,9,'rename',1,0,1,'32'),(57,9,'edit-properties',1,0,1,'32'),(58,10,'download',1,0,0,'4'),(59,10,'delete',1,0,0,'8'),(60,10,'edit-rights',1,0,1,'32'),(61,10,'open-tracking',1,0,0,'32'),(62,10,'rename',1,0,1,'32'),(63,10,'edit-properties',1,0,1,'32'),(64,11,'download',1,0,0,'4'),(65,11,'delete',1,0,0,'8'),(66,11,'edit-rights',1,0,1,'32'),(67,11,'open-tracking',1,0,0,'32'),(68,11,'rename',1,0,1,'32'),(69,11,'edit-properties',1,0,1,'32'),(70,12,'download',1,0,0,'4'),(71,12,'delete',1,0,0,'8'),(72,12,'edit-rights',1,0,1,'32'),(73,12,'open-tracking',1,0,0,'32'),(74,12,'rename',1,0,1,'32'),(75,12,'edit-properties',1,0,1,'32'),(76,12,'open_dropzone',NULL,1,0,'1'),(77,12,'edit_dropzone',NULL,1,0,'16'),(78,NULL,'hevinci_favourite',1,1,1,'1'),(79,5,'manage-competencies',NULL,1,0,'1'),(80,13,'download',1,0,0,'4'),(81,13,'delete',1,0,0,'8'),(82,13,'edit-rights',1,0,1,'32'),(83,13,'open-tracking',1,0,0,'32'),(84,13,'rename',1,0,1,'32'),(85,13,'edit-properties',1,0,1,'32'),(86,13,'change_url_menu',NULL,1,1,'16'),(87,14,'download',1,0,0,'4'),(88,14,'delete',1,0,0,'8'),(89,14,'edit-rights',1,0,1,'32'),(90,14,'open-tracking',1,0,0,'32'),(91,14,'rename',1,0,1,'32'),(92,14,'edit-properties',1,0,1,'32'),(93,14,'configure_blog',NULL,1,0,'32'),(94,15,'download',1,0,0,'4'),(95,15,'delete',1,0,0,'8'),(96,15,'edit-rights',1,0,1,'32'),(97,15,'open-tracking',1,0,0,'32'),(98,15,'rename',1,0,1,'32'),(99,15,'edit-properties',1,0,1,'32'),(100,15,'open_dropzone',NULL,1,0,'1'),(101,15,'edit_dropzone',NULL,1,0,'16'),(102,15,'list_dropzone',NULL,1,0,'16'),(103,NULL,'like_action',1,1,1,'1'),(104,NULL,'share_action',1,1,1,'1'),(105,NULL,'comment_action',1,1,1,'1'),(106,NULL,'note_action',1,1,1,'1'),(107,16,'download',1,0,0,'4'),(108,16,'delete',1,0,0,'8'),(109,16,'edit-rights',1,0,1,'32'),(110,16,'open-tracking',1,0,0,'32'),(111,16,'rename',1,0,1,'32'),(112,16,'edit-properties',1,0,1,'32'),(113,17,'download',1,0,0,'4'),(114,17,'delete',1,0,0,'8'),(115,17,'edit-rights',1,0,1,'32'),(116,17,'open-tracking',1,0,0,'32'),(117,17,'rename',1,0,1,'32'),(118,17,'edit-properties',1,0,1,'32'),(119,18,'download',1,0,0,'4'),(120,18,'delete',1,0,0,'8'),(121,18,'edit-rights',1,0,1,'32'),(122,18,'open-tracking',1,0,0,'32'),(123,18,'rename',1,0,1,'32'),(124,18,'edit-properties',1,0,1,'32'),(125,18,'administrate',NULL,1,0,'64'),(126,18,'manageresults',NULL,1,0,'128'),(127,19,'download',1,0,0,'4'),(128,19,'delete',1,0,0,'8'),(129,19,'edit-rights',1,0,1,'32'),(130,19,'open-tracking',1,0,0,'32'),(131,19,'rename',1,0,1,'32'),(132,19,'edit-properties',1,0,1,'32'),(133,20,'download',1,0,0,'4'),(134,20,'delete',1,0,0,'8'),(135,20,'edit-rights',1,0,1,'32'),(136,20,'open-tracking',1,0,0,'32'),(137,20,'rename',1,0,1,'32'),(138,20,'edit-properties',1,0,1,'32'),(139,21,'download',1,0,0,'4'),(140,21,'delete',1,0,0,'8'),(141,21,'edit-rights',1,0,1,'32'),(142,21,'open-tracking',1,0,0,'32'),(143,21,'rename',1,0,1,'32'),(144,21,'edit-properties',1,0,1,'32'),(145,22,'download',1,0,0,'4'),(146,22,'delete',1,0,0,'8'),(147,22,'edit-rights',1,0,1,'32'),(148,22,'open-tracking',1,0,0,'32'),(149,22,'rename',1,0,1,'32'),(150,22,'edit-properties',1,0,1,'32'),(151,22,'innova_media_resource_administrate',NULL,1,0,'32'),(152,23,'download',1,0,0,'4'),(153,23,'delete',1,0,0,'8'),(154,23,'edit-rights',1,0,1,'32'),(155,23,'open-tracking',1,0,0,'32'),(156,23,'rename',1,0,1,'32'),(157,23,'edit-properties',1,0,1,'32'),(158,24,'download',1,0,0,'4'),(159,24,'delete',1,0,0,'8'),(160,24,'edit-rights',1,0,1,'32'),(161,24,'open-tracking',1,0,0,'32'),(162,24,'rename',1,0,1,'32'),(163,24,'edit-properties',1,0,1,'32'),(164,25,'download',1,0,0,'4'),(165,25,'delete',1,0,0,'8'),(166,25,'edit-rights',1,0,1,'32'),(167,25,'open-tracking',1,0,0,'32'),(168,25,'rename',1,0,1,'32'),(169,25,'edit-properties',1,0,1,'32'),(170,26,'download',1,0,0,'4'),(171,26,'delete',1,0,0,'8'),(172,26,'edit-rights',1,0,1,'32'),(173,26,'open-tracking',1,0,0,'32'),(174,26,'rename',1,0,1,'32'),(175,26,'edit-properties',1,0,1,'32'),(176,27,'download',1,0,0,'4'),(177,27,'delete',1,0,0,'8'),(178,27,'edit-rights',1,0,1,'32'),(179,27,'open-tracking',1,0,0,'32'),(180,27,'rename',1,0,1,'32'),(181,27,'edit-properties',1,0,1,'32');
/*!40000 ALTER TABLE `claro_menu_action` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_message`
--

DROP TABLE IF EXISTS `claro_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_message` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sender_id` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `object` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `date` datetime NOT NULL,
  `is_removed` tinyint(1) NOT NULL,
  `lft` int(11) NOT NULL,
  `lvl` int(11) NOT NULL,
  `rgt` int(11) NOT NULL,
  `root` int(11) DEFAULT NULL,
  `sender_username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `receiver_string` varchar(16000) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D6FE8DD8F624B39D` (`sender_id`),
  KEY `IDX_D6FE8DD8727ACA70` (`parent_id`),
  KEY `level_idx` (`lvl`),
  KEY `root_idx` (`root`),
  CONSTRAINT `FK_D6FE8DD8727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `claro_message` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_D6FE8DD8F624B39D` FOREIGN KEY (`sender_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_message`
--

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

--
-- Table structure for table `claro_ordered_tool`
--

DROP TABLE IF EXISTS `claro_ordered_tool`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_ordered_tool` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) DEFAULT NULL,
  `tool_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `display_order` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_visible_in_desktop` tinyint(1) NOT NULL,
  `ordered_tool_type` int(11) NOT NULL,
  `is_locked` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `ordered_tool_unique_tool_user_type` (`tool_id`,`user_id`,`ordered_tool_type`),
  UNIQUE KEY `ordered_tool_unique_tool_ws_type` (`tool_id`,`workspace_id`,`ordered_tool_type`),
  UNIQUE KEY `ordered_tool_unique_name_by_workspace` (`workspace_id`,`name`),
  KEY `IDX_6CF1320E82D40A1F` (`workspace_id`),
  KEY `IDX_6CF1320E8F7B22CC` (`tool_id`),
  KEY `IDX_6CF1320EA76ED395` (`user_id`),
  CONSTRAINT `FK_6CF1320EA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6CF1320E82D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6CF1320E8F7B22CC` FOREIGN KEY (`tool_id`) REFERENCES `claro_tools` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_ordered_tool`
--

LOCK TABLES `claro_ordered_tool` WRITE;
/*!40000 ALTER TABLE `claro_ordered_tool` DISABLE KEYS */;
INSERT INTO `claro_ordered_tool` VALUES (1,NULL,2,NULL,1,'parameters',1,0,0),(2,NULL,3,NULL,1,'resource_manager',1,0,0),(3,NULL,7,NULL,1,'my_contacts',1,0,0),(4,NULL,10,NULL,1,'message',1,0,0);
/*!40000 ALTER TABLE `claro_ordered_tool` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_panel_facet`
--

DROP TABLE IF EXISTS `claro_panel_facet`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_panel_facet` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `facet_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `position` int(11) NOT NULL,
  `isDefaultCollapsed` tinyint(1) NOT NULL,
  `isEditable` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DA3985FFC889F24` (`facet_id`),
  CONSTRAINT `FK_DA3985FFC889F24` FOREIGN KEY (`facet_id`) REFERENCES `claro_facet` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_panel_facet`
--

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

--
-- Table structure for table `claro_panel_facet_role`
--

DROP TABLE IF EXISTS `claro_panel_facet_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_panel_facet_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `canOpen` tinyint(1) NOT NULL,
  `canEdit` tinyint(1) NOT NULL,
  `panelFacet_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_A66BF654D60322AC` (`role_id`),
  KEY `IDX_A66BF654E99038C0` (`panelFacet_id`),
  CONSTRAINT `FK_A66BF654E99038C0` FOREIGN KEY (`panelFacet_id`) REFERENCES `claro_panel_facet` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_A66BF654D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_panel_facet_role`
--

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

--
-- Table structure for table `claro_pdf_generator`
--

DROP TABLE IF EXISTS `claro_pdf_generator`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_pdf_generator` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `creator_id` int(11) NOT NULL,
  `creation_date` datetime NOT NULL,
  `guid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `path` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_6F3552112B6FCFB2` (`guid`),
  UNIQUE KEY `UNIQ_6F355211B548B0F` (`path`),
  KEY `IDX_6F35521161220EA6` (`creator_id`),
  CONSTRAINT `FK_6F35521161220EA6` FOREIGN KEY (`creator_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_pdf_generator`
--

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

--
-- Table structure for table `claro_pending_friend`
--

DROP TABLE IF EXISTS `claro_pending_friend`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_pending_friend` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_pending_friend`
--

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

--
-- Table structure for table `claro_personal_workspace_resource_rights_management_access`
--

DROP TABLE IF EXISTS `claro_personal_workspace_resource_rights_management_access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_personal_workspace_resource_rights_management_access` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `is_accessible` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_A3AE069AD60322AC` (`role_id`),
  CONSTRAINT `FK_A3AE069AD60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_personal_workspace_resource_rights_management_access`
--

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

--
-- Table structure for table `claro_personnal_workspace_tool_config`
--

DROP TABLE IF EXISTS `claro_personnal_workspace_tool_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_personnal_workspace_tool_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `tool_id` int(11) NOT NULL,
  `mask` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pws_unique_tool_config` (`tool_id`,`role_id`),
  KEY `IDX_7A4A6A64D60322AC` (`role_id`),
  KEY `IDX_7A4A6A648F7B22CC` (`tool_id`),
  CONSTRAINT `FK_7A4A6A648F7B22CC` FOREIGN KEY (`tool_id`) REFERENCES `claro_tools` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_7A4A6A64D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_personnal_workspace_tool_config`
--

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

--
-- Table structure for table `claro_plugin`
--

DROP TABLE IF EXISTS `claro_plugin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_plugin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `short_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `has_options` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `plugin_unique_name` (`vendor_name`,`short_name`)
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_plugin`
--

LOCK TABLES `claro_plugin` WRITE;
/*!40000 ALTER TABLE `claro_plugin` DISABLE KEYS */;
INSERT INTO `claro_plugin` VALUES (1,'Claroline','AgendaBundle',0),(2,'FormaLibre','ReservationBundle',0),(3,'Claroline','ImagePlayerBundle',0),(4,'Claroline','MessageBundle',0),(5,'Claroline','ForumBundle',0),(6,'Claroline','TagBundle',0),(7,'FormaLibre','SupportBundle',1),(8,'Claroline','RssReaderBundle',0),(9,'Icap','NotificationBundle',0),(10,'Claroline','SurveyBundle',0),(11,'Claroline','AnnouncementBundle',0),(12,'Claroline','LdapBundle',0),(13,'Claroline','ScormBundle',0),(14,'Claroline','PdfPlayerBundle',0),(15,'Claroline','CursusBundle',1),(16,'Claroline','TeamBundle',0),(17,'Claroline','PdfGeneratorBundle',0),(18,'FormaLibre','PresenceBundle',0),(19,'Claroline','VideoPlayerBundle',0),(20,'Claroline','ActivityToolBundle',0),(21,'Claroline','WebResourceBundle',0),(22,'Claroline','TextPlayerBundle',0),(23,'Innova','CollecticielBundle',0),(24,'HeVinci','FavouriteBundle',0),(25,'HeVinci','CompetencyBundle',0),(26,'HeVinci','UrlBundle',0),(27,'Icap','PortfolioBundle',0),(28,'Icap','BadgeBundle',0),(29,'Icap','BlogBundle',0),(30,'Icap','DropzoneBundle',0),(31,'Icap','SocialmediaBundle',0),(32,'Icap','WikiBundle',0),(33,'Icap','OAuthBundle',0),(34,'Icap','FormulaPluginBundle',0),(35,'Claroline','ResultBundle',0),(36,'Innova','PathBundle',0),(37,'Icap','WebsiteBundle',0),(38,'Innova','VideoRecorderBundle',1),(39,'Innova','AudioRecorderBundle',1),(40,'Innova','MediaResourceBundle',0),(41,'Claroline','FlashCardBundle',0),(42,'UJM','ExoBundle',0),(43,'Icap','LessonBundle',0),(44,'Claroline','ChatBundle',0),(45,'Claroline','DashboardBundle',0),(46,'Claroline','ClacoFormBundle',0),(47,'Claroline','RemoteUserSynchronizationBundle',0);
/*!40000 ALTER TABLE `claro_plugin` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_profile_property`
--

DROP TABLE IF EXISTS `claro_profile_property`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_profile_property` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) DEFAULT NULL,
  `is_editable` tinyint(1) NOT NULL,
  `property` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C2B93182D60322AC` (`role_id`),
  CONSTRAINT `FK_C2B93182D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_profile_property`
--

LOCK TABLES `claro_profile_property` WRITE;
/*!40000 ALTER TABLE `claro_profile_property` DISABLE KEYS */;
INSERT INTO `claro_profile_property` VALUES (1,1,0,'username'),(2,2,0,'username'),(3,3,0,'username'),(4,5,0,'username'),(5,1,0,'firstName'),(6,2,0,'firstName'),(7,3,0,'firstName'),(8,5,0,'firstName'),(9,1,0,'lastName'),(10,2,0,'lastName'),(11,3,0,'lastName'),(12,5,0,'lastName'),(13,1,0,'administrativeCode'),(14,2,0,'administrativeCode'),(15,3,0,'administrativeCode'),(16,5,0,'administrativeCode'),(17,1,0,'email'),(18,2,0,'email'),(19,3,0,'email'),(20,5,0,'email'),(21,1,1,'phone'),(22,2,1,'phone'),(23,3,1,'phone'),(24,5,1,'phone'),(25,1,1,'picture'),(26,2,1,'picture'),(27,3,1,'picture'),(28,5,1,'picture'),(29,1,1,'description'),(30,2,1,'description'),(31,3,1,'description'),(32,5,1,'description'),(33,6,0,'username'),(34,6,0,'firstName'),(35,6,0,'lastName'),(36,6,0,'administrativeCode'),(37,6,0,'email'),(38,6,1,'phone'),(39,6,1,'picture'),(40,6,1,'description');
/*!40000 ALTER TABLE `claro_profile_property` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_region`
--

DROP TABLE IF EXISTS `claro_region`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_region` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_region`
--

LOCK TABLES `claro_region` WRITE;
/*!40000 ALTER TABLE `claro_region` DISABLE KEYS */;
INSERT INTO `claro_region` VALUES (1,'header'),(2,'left'),(3,'content'),(4,'right'),(5,'footer');
/*!40000 ALTER TABLE `claro_region` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_rel_workspace_tag`
--

DROP TABLE IF EXISTS `claro_rel_workspace_tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_rel_workspace_tag` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rel_workspace_tag_unique_combination` (`workspace_id`,`tag_id`),
  KEY `IDX_7883931082D40A1F` (`workspace_id`),
  KEY `IDX_78839310BAD26311` (`tag_id`),
  CONSTRAINT `FK_78839310BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `claro_workspace_tag` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_7883931082D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_rel_workspace_tag`
--

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

--
-- Table structure for table `claro_resource_icon`
--

DROP TABLE IF EXISTS `claro_resource_icon`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_resource_icon` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shortcut_id` int(11) DEFAULT NULL,
  `mimeType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_shortcut` tinyint(1) NOT NULL,
  `relative_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_478C586179F0D498` (`shortcut_id`),
  CONSTRAINT `FK_478C586179F0D498` FOREIGN KEY (`shortcut_id`) REFERENCES `claro_resource_icon` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=161 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_resource_icon`
--

LOCK TABLES `claro_resource_icon` WRITE;
/*!40000 ALTER TABLE `claro_resource_icon` DISABLE KEYS */;
INSERT INTO `claro_resource_icon` VALUES (1,2,'custom/default',0,'bundles/clarolinecore/images/resources/icons/res_default.png'),(2,2,'custom/default',1,'uploads/thumbnails/2CC74522-5B4A-444E-9292-6367985DB152.png'),(3,4,'custom/activity',0,'bundles/clarolinecore/images/resources/icons/res_activity.png'),(4,4,'custom/activity',1,'uploads/thumbnails/1D241DE2-6E12-4BEA-8C19-B0A94994B557.png'),(5,6,'custom/file',0,'bundles/clarolinecore/images/resources/icons/res_file.png'),(6,6,'custom/file',1,'uploads/thumbnails/63CB2A2D-9ADD-430D-8B27-466966A4025F.png'),(7,8,'custom/directory',0,'bundles/clarolinecore/images/resources/icons/res_folder.png'),(8,8,'custom/directory',1,'uploads/thumbnails/7862005C-CE7D-4081-9DBF-67BB7EF7EBDD.png'),(9,10,'text/plain',0,'bundles/clarolinecore/images/resources/icons/res_text.png'),(10,10,'text/plain',1,'uploads/thumbnails/968BD6A6-683D-43ED-9E4E-8FDEC846A11F.png'),(11,12,'custom/text',0,'bundles/clarolinecore/images/resources/icons/res_text.png'),(12,12,'custom/text',1,'uploads/thumbnails/D7768B51-1889-45FD-B951-25072F0600C7.png'),(13,14,'image',0,'bundles/clarolinecore/images/resources/icons/res_jpeg.png'),(14,14,'image',1,'uploads/thumbnails/26F4BB19-0B01-4E7C-A62C-C235B0538442.png'),(15,16,'audio',0,'bundles/clarolinecore/images/resources/icons/res_audio.png'),(16,16,'audio',1,'uploads/thumbnails/C7AF3382-7236-4E82-ADEA-A0EFAC13CBA9.png'),(17,18,'video',0,'bundles/clarolinecore/images/resources/icons/res_avi.png'),(18,18,'video',1,'uploads/thumbnails/05CABCF1-7DA4-469C-B4D6-CD14466C1ABE.png'),(19,20,'image/bmp',0,'bundles/clarolinecore/images/resources/icons/res_bmp.png'),(20,20,'image/bmp',1,'uploads/thumbnails/BA1B8853-8FCF-49BD-915A-F37714B873C7.png'),(21,22,'image/x-windows-bmp',0,'bundles/clarolinecore/images/resources/icons/res_bmp.png'),(22,22,'image/x-windows-bmp',1,'uploads/thumbnails/0C86CC8A-9387-4B1D-80D4-DB2864384876.png'),(23,24,'image/jpeg',0,'bundles/clarolinecore/images/resources/icons/res_jpeg.png'),(24,24,'image/jpeg',1,'uploads/thumbnails/6FF156B9-3C71-4E66-A78A-1FDF7B62D86A.png'),(25,26,'image/pjpeg',0,'bundles/clarolinecore/images/resources/icons/res_jpeg.png'),(26,26,'image/pjpeg',1,'uploads/thumbnails/C4F9DD23-9981-4148-9671-102066644F97.png'),(27,28,'image/gif',0,'bundles/clarolinecore/images/resources/icons/res_gif.png'),(28,28,'image/gif',1,'uploads/thumbnails/5D8127FC-8098-4240-B358-743FACC95388.png'),(29,30,'image/tiff',0,'bundles/clarolinecore/images/resources/icons/res_tiff.png'),(30,30,'image/tiff',1,'uploads/thumbnails/E9BCC041-37D5-4DB0-AB24-45522165A0E0.png'),(31,32,'image/x-tiff',0,'bundles/clarolinecore/images/resources/icons/res_tiff.png'),(32,32,'image/x-tiff',1,'uploads/thumbnails/5DC03E44-AA34-40D9-861A-866994B275F9.png'),(33,34,'video/mp4',0,'bundles/clarolinecore/images/resources/icons/res_mp4.png'),(34,34,'video/mp4',1,'uploads/thumbnails/9ED0462C-5ABE-46A6-BF57-17CAB558A952.png'),(35,36,'video/mpeg',0,'bundles/clarolinecore/images/resources/icons/res_mpeg.png'),(36,36,'video/mpeg',1,'uploads/thumbnails/350FF091-D6C1-4BF1-A22B-C58037A7CB3C.png'),(37,38,'audio/mpeg',0,'bundles/clarolinecore/images/resources/icons/res_mpeg.png'),(38,38,'audio/mpeg',1,'uploads/thumbnails/8CFA5822-836D-4807-ACCC-41D35C8E7E0B.png'),(39,40,'audio/wav',0,'bundles/clarolinecore/images/resources/icons/res_wav.png'),(40,40,'audio/wav',1,'uploads/thumbnails/3C3CE64D-769A-47B8-A95B-09FDAD769FD3.png'),(41,42,'audio/x-wav',0,'bundles/clarolinecore/images/resources/icons/res_wav.png'),(42,42,'audio/x-wav',1,'uploads/thumbnails/9B177659-BE39-4D3C-A5B3-A9DB5E5467C9.png'),(43,44,'audio/mpeg3',0,'bundles/clarolinecore/images/resources/icons/res_mp3.png'),(44,44,'audio/mpeg3',1,'uploads/thumbnails/279375E1-5E99-4AAC-9B86-5C22614C815B.png'),(45,46,'audio/x-mpeg3',0,'bundles/clarolinecore/images/resources/icons/res_mp3.png'),(46,46,'audio/x-mpeg3',1,'uploads/thumbnails/573E1472-92D7-46F9-AB6D-FC385660ED17.png'),(47,48,'audio/mp3',0,'bundles/clarolinecore/images/resources/icons/res_mp3.png'),(48,48,'audio/mp3',1,'uploads/thumbnails/467224AC-015F-469F-9964-17724FC7C442.png'),(49,50,'audio/mpeg',0,'bundles/clarolinecore/images/resources/icons/res_mp3.png'),(50,50,'audio/mpeg',1,'uploads/thumbnails/8EB822E8-6F06-4789-B99E-2ACA28F1642A.png'),(51,52,'text/html',0,'bundles/clarolinecore/images/resources/icons/res_html.png'),(52,52,'text/html',1,'uploads/thumbnails/E36707AC-BA3D-45B4-B30C-4FC287D8C643.png'),(53,54,'application/excel',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(54,54,'application/excel',1,'uploads/thumbnails/323ABCDC-9CF5-4D60-B676-DBC54CF44897.png'),(55,56,'application/vnd.ms-excel',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(56,56,'application/vnd.ms-excel',1,'uploads/thumbnails/477ED3DE-7CC8-4996-90F3-E8FF6BFA8078.png'),(57,58,'application/msexcel',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(58,58,'application/msexcel',1,'uploads/thumbnails/1878C8A9-9A17-49BC-A53F-B28B25BBEE98.png'),(59,60,'application/x-msexcel',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(60,60,'application/x-msexcel',1,'uploads/thumbnails/06940C16-3ABD-4565-8350-0E99F0BA51B0.png'),(61,62,'application/x-ms-excel',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(62,62,'application/x-ms-excel',1,'uploads/thumbnails/8C00F704-0C3D-44AE-96CE-559038081267.png'),(63,64,'application/x-excel',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(64,64,'application/x-excel',1,'uploads/thumbnails/60BC4547-75E5-4ED0-BA47-9782D26FD80A.png'),(65,66,'application/xls',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(66,66,'application/xls',1,'uploads/thumbnails/9C7D22F8-37B6-41F8-ADB0-FDB572E1FC09.png'),(67,68,'application/x-xls',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(68,68,'application/x-xls',1,'uploads/thumbnails/74FB8905-3E1F-4E5E-8021-42639A37CE36.png'),(69,70,'application/x-dos_ms_excel',0,'bundles/clarolinecore/images/resources/icons/res_xls.png'),(70,70,'application/x-dos_ms_excel',1,'uploads/thumbnails/8F8B76DF-7F9C-4343-9F36-2DD54F26C96B.png'),(71,72,'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',0,'bundles/clarolinecore/images/resources/icons/res_xlsx.png'),(72,72,'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',1,'uploads/thumbnails/B58A0FCE-F2CC-4893-AF56-AD544C702C32.png'),(73,74,'application/vnd.oasis.opendocument.text ',0,'bundles/clarolinecore/images/resources/icons/res_odt.png'),(74,74,'application/vnd.oasis.opendocument.text ',1,'uploads/thumbnails/954F1E59-B9F5-4B86-84FE-1EB619FCE079.png'),(75,76,'application/mspowerpoint',0,'bundles/clarolinecore/images/resources/icons/res_ppt.png'),(76,76,'application/mspowerpoint',1,'uploads/thumbnails/FD4E4866-E9E4-4028-8669-0F1E9233CD39.png'),(77,78,'application/powerpoint',0,'bundles/clarolinecore/images/resources/icons/res_ppt.png'),(78,78,'application/powerpoint',1,'uploads/thumbnails/5E5E8D61-8BFE-4E1E-B9C2-F609A7392ABC.png'),(79,80,'application/vnd.ms-powerpoint',0,'bundles/clarolinecore/images/resources/icons/res_ppt.png'),(80,80,'application/vnd.ms-powerpoint',1,'uploads/thumbnails/7C4833E7-6B63-4F63-8408-94DE961FD881.png'),(81,82,'application/application/x-mspowerpoint',0,'bundles/clarolinecore/images/resources/icons/res_ppt.png'),(82,82,'application/application/x-mspowerpoint',1,'uploads/thumbnails/06DDB1B6-B581-4117-88F8-902AB13FAE17.png'),(83,84,'application/vnd.openxmlformats-officedocument.presentationml.presentation',0,'bundles/clarolinecore/images/resources/icons/res_pptx.png'),(84,84,'application/vnd.openxmlformats-officedocument.presentationml.presentation',1,'uploads/thumbnails/262FA9F1-654B-492D-9127-E959838ECACD.png'),(85,86,'application/msword',0,'bundles/clarolinecore/images/resources/icons/res_doc.png'),(86,86,'application/msword',1,'uploads/thumbnails/7575023A-6A43-4FEC-8337-3D3699FB5F5A.png'),(87,88,'application/vnd.openxmlformats-officedocument.wordprocessingml.document',0,'bundles/clarolinecore/images/resources/icons/res_docx.png'),(88,88,'application/vnd.openxmlformats-officedocument.wordprocessingml.document',1,'uploads/thumbnails/1A2B5D47-E7C6-4968-9384-C3855B3F58B8.png'),(89,90,'application/pdf',0,'bundles/clarolinecore/images/resources/icons/res_pdf.png'),(90,90,'application/pdf',1,'uploads/thumbnails/3737A071-D3C1-4930-88F4-169F4C08F544.png'),(91,92,'application/zip',0,'bundles/clarolinecore/images/resources/icons/res_zip.png'),(92,92,'application/zip',1,'uploads/thumbnails/2C4E434E-8461-4F3E-BEA0-9BEC9E82511A.png'),(93,94,'application/x-rar-compressed',0,'bundles/clarolinecore/images/resources/icons/res_rar.png'),(94,94,'application/x-rar-compressed',1,'uploads/thumbnails/058602C9-4218-4332-BA3C-11CD1A431533.png'),(95,96,'application/x-gtar',0,'bundles/clarolinecore/images/resources/icons/res_archive.png'),(96,96,'application/x-gtar',1,'uploads/thumbnails/10C7F41A-D21A-48B4-85FE-5E25329DD04E.png'),(97,98,'application/x-7z-compressed',0,'bundles/clarolinecore/images/resources/icons/res_archive.png'),(98,98,'application/x-7z-compressed',1,'uploads/thumbnails/75FD07BB-D3FD-4013-9FAC-54884CF6C88D.png'),(99,100,'application/x-compressed',0,'bundles/clarolinecore/images/resources/icons/res_gz.png'),(100,100,'application/x-compressed',1,'uploads/thumbnails/D2B4BD10-5A2C-491C-81E3-08DBD3F756D0.png'),(101,102,'application/x-gzip',0,'bundles/clarolinecore/images/resources/icons/res_gz.png'),(102,102,'application/x-gzip',1,'uploads/thumbnails/53FE9148-34F2-4D56-A9E5-E2A7FFD08516.png'),(103,104,'multipart/x-gzip',0,'bundles/clarolinecore/images/resources/icons/res_gz.png'),(104,104,'multipart/x-gzip',1,'uploads/thumbnails/FCD90C81-1B8C-4A25-A9CA-B7118AD81907.png'),(105,106,'application/x-tar',0,'bundles/clarolinecore/images/resources/icons/res_tar.png'),(106,106,'application/x-tar',1,'uploads/thumbnails/B8D7C00A-DBF8-40E5-95A0-6736E9E580D8.png'),(107,108,'application/vnd.oasis.opendocument.presentation',0,'bundles/clarolinecore/images/resources/icons/res_odp.png'),(108,108,'application/vnd.oasis.opendocument.presentation',1,'uploads/thumbnails/41BA9B5B-80A1-46E6-B06F-9F4A378A04CD.png'),(109,110,'application/vnd.oasis.opendocument.spreadsheet',0,'bundles/clarolinecore/images/resources/icons/res_ods.png'),(110,110,'application/vnd.oasis.opendocument.spreadsheet',1,'uploads/thumbnails/72E00B2E-85D9-4F25-81BF-B33FD45BC011.png'),(111,112,'application/rtf',0,'bundles/clarolinecore/images/resources/icons/res_rtf.png'),(112,112,'application/rtf',1,'uploads/thumbnails/B0E97B1B-A8B3-47C7-BAD1-DDAC6569BFB8.png'),(113,114,'application/x-rtf',0,'bundles/clarolinecore/images/resources/icons/res_rtf.png'),(114,114,'application/x-rtf',1,'uploads/thumbnails/B9276441-ECD9-4204-979C-47F43D9654D9.png'),(115,116,'text/richtext',0,'bundles/clarolinecore/images/resources/icons/res_rtf.png'),(116,116,'text/richtext',1,'uploads/thumbnails/1D49FBD4-383C-4344-8ADB-2422EF332F1B.png'),(117,118,'custom/claroline_forum',0,'bundles/clarolineforum/images/icons/res_forum.png'),(118,118,'custom/claroline_forum',1,'uploads/thumbnails/028897E9-D125-4D34-BAC8-9F119B0E7BE2.png'),(119,120,'custom/claroline_survey',0,'bundles/clarolinesurvey/images/icons/res_survey.png'),(120,120,'custom/claroline_survey',1,'uploads/thumbnails/E5309D77-2A27-4AF2-AD82-487C65AD1217.png'),(121,122,'custom/claroline_announcement_aggregate',0,'bundles/clarolineannouncement/images/icons/res_announcement.png'),(122,122,'custom/claroline_announcement_aggregate',1,'uploads/thumbnails/629023CA-ED75-4B6C-8065-85EEA7C7A062.png'),(123,124,'custom/claroline_scorm_12',0,'bundles/clarolinescorm/images/icons/scorm_12_icon.png'),(124,124,'custom/claroline_scorm_12',1,'uploads/thumbnails/165FCB85-EB63-40CB-B9D9-15C88B3E7504.png'),(125,126,'custom/claroline_scorm_2004',0,'bundles/clarolinescorm/images/icons/scorm_2004_icon.png'),(126,126,'custom/claroline_scorm_2004',1,'uploads/thumbnails/9480CC30-0229-4C63-8D9D-E3A4E030CF5F.png'),(127,128,'custom/claroline_web_resource',0,'bundles/clarolinewebresource/images/icons/res_web.png'),(128,128,'custom/claroline_web_resource',1,'uploads/thumbnails/BA0C04BD-F10E-4513-8128-2BC5F64E232D.png'),(129,130,'custom/innova_collecticiel',0,'bundles/innovacollecticiel/images/icons/icap_eval_icon.png'),(130,130,'custom/innova_collecticiel',1,'uploads/thumbnails/CC3F2797-4654-46A3-B456-5ED29D58B55C.png'),(131,132,'custom/hevinci_url',0,'bundles/hevinciurl/images/icons/res_url.png'),(132,132,'custom/hevinci_url',1,'uploads/thumbnails/FA43808C-5614-4EE8-BF4E-7548120A36BE.png'),(133,134,'custom/icap_blog',0,'bundles/icapblog/images/icons/icap_blog_icon.png'),(134,134,'custom/icap_blog',1,'uploads/thumbnails/C6FA5940-C4D3-40DF-A909-EB61C3636BAF.png'),(135,136,'custom/icap_dropzone',0,'bundles/icapdropzone/images/icons/icap_eval_icon.png'),(136,136,'custom/icap_dropzone',1,'uploads/thumbnails/76F20879-7FBC-479A-85F9-5FDF484817A6.png'),(137,138,'custom/icap_wiki',0,'bundles/icapwiki/images/icons/icap_wiki_icon.png'),(138,138,'custom/icap_wiki',1,'uploads/thumbnails/DB874B67-B968-4AD8-9E6A-18C3CF447B03.png'),(139,140,'custom/claroline_result',0,'bundles/clarolinecore/images/resources/icons/res_default.png'),(140,140,'custom/claroline_result',1,'uploads/thumbnails/3A08C9DA-DE49-475F-9971-74729471BF14.png'),(141,142,'custom/innova_path',0,'bundles/innovapath/images/icons/res_file.png'),(142,142,'custom/innova_path',1,'uploads/thumbnails/A96A5707-41F3-4137-B03E-3661BF4FB11A.png'),(143,144,'custom/icap_website',0,'bundles/icapwebsite/images/icons/icap_website_icon.png'),(144,144,'custom/icap_website',1,'uploads/thumbnails/E59F3657-3CE7-4E03-95C4-BA7C8F783D88.png'),(145,146,'custom/innova_video_recorder',0,'bundles/clarolinecore/images/resources/icons/res_default.png'),(146,146,'custom/innova_video_recorder',1,'uploads/thumbnails/BCC86EA6-5CD3-4572-B611-0111BACE9E86.png'),(147,148,'custom/innova_audio_recorder',0,'bundles/clarolinecore/images/resources/icons/res_default.png'),(148,148,'custom/innova_audio_recorder',1,'uploads/thumbnails/1CABA3FA-AF1E-48BF-92A2-BB36C058DF13.png'),(149,150,'custom/innova_media_resource',0,'bundles/innovamediaresource/images/icons/res_file.png'),(150,150,'custom/innova_media_resource',1,'uploads/thumbnails/8CB7FAEF-2B0C-4821-9183-E44C483ECD73.png'),(151,152,'custom/claroline_flashcard',0,'bundles/clarolinecore/images/resources/icons/res_default.png'),(152,152,'custom/claroline_flashcard',1,'uploads/thumbnails/818121F7-3A12-4F1C-9315-F320BEB15575.png'),(153,154,'custom/ujm_exercise',0,'bundles/ujmexo/images/icons/res_exo.png'),(154,154,'custom/ujm_exercise',1,'uploads/thumbnails/C223BCBB-4D65-4775-AB1B-EFB61FEBD49C.png'),(155,156,'custom/icap_lesson',0,'bundles/icaplesson/images/icons/icap_lesson_icon.png'),(156,156,'custom/icap_lesson',1,'uploads/thumbnails/8CC0C09E-D7ED-4747-8B70-67D3D1E62BD6.png'),(157,158,'custom/claroline_chat_room',0,'bundles/clarolinechat/images/icons/IC-Chat.png'),(158,158,'custom/claroline_chat_room',1,'uploads/thumbnails/BB34E393-C859-4D06-880A-2AAC494CB426.png'),(159,160,'custom/claroline_claco_form',0,'bundles/clarolineclacoform/images/icons/claco_form_icon.png'),(160,160,'custom/claroline_claco_form',1,'uploads/thumbnails/D758D27B-2966-45FE-984B-BEF23D31DA14.png');
/*!40000 ALTER TABLE `claro_resource_icon` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_resource_mask_decoder`
--

DROP TABLE IF EXISTS `claro_resource_mask_decoder`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_resource_mask_decoder` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `resource_type_id` int(11) NOT NULL,
  `value` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_39D93F4298EC6B7B` (`resource_type_id`),
  CONSTRAINT `FK_39D93F4298EC6B7B` FOREIGN KEY (`resource_type_id`) REFERENCES `claro_resource_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=169 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_resource_mask_decoder`
--

LOCK TABLES `claro_resource_mask_decoder` WRITE;
/*!40000 ALTER TABLE `claro_resource_mask_decoder` DISABLE KEYS */;
INSERT INTO `claro_resource_mask_decoder` VALUES (1,1,1,'open'),(2,1,2,'copy'),(3,1,4,'export'),(4,1,8,'delete'),(5,1,16,'edit'),(6,1,32,'administrate'),(7,2,1,'open'),(8,2,2,'copy'),(9,2,4,'export'),(10,2,8,'delete'),(11,2,16,'edit'),(12,2,32,'administrate'),(13,3,1,'open'),(14,3,2,'copy'),(15,3,4,'export'),(16,3,8,'delete'),(17,3,16,'edit'),(18,3,32,'administrate'),(19,4,1,'open'),(20,4,2,'copy'),(21,4,4,'export'),(22,4,8,'delete'),(23,4,16,'edit'),(24,4,32,'administrate'),(25,5,1,'open'),(26,5,2,'copy'),(27,5,4,'export'),(28,5,8,'delete'),(29,5,16,'edit'),(30,5,32,'administrate'),(31,5,1024,'compose'),(32,6,1,'open'),(33,6,2,'copy'),(34,6,4,'export'),(35,6,8,'delete'),(36,6,16,'edit'),(37,6,32,'administrate'),(38,6,64,'post'),(39,6,128,'moderate'),(40,7,1,'open'),(41,7,2,'copy'),(42,7,4,'export'),(43,7,8,'delete'),(44,7,16,'edit'),(45,7,32,'administrate'),(46,8,1,'open'),(47,8,2,'copy'),(48,8,4,'export'),(49,8,8,'delete'),(50,8,16,'edit'),(51,8,32,'administrate'),(52,9,1,'open'),(53,9,2,'copy'),(54,9,4,'export'),(55,9,8,'delete'),(56,9,16,'edit'),(57,9,32,'administrate'),(58,10,1,'open'),(59,10,2,'copy'),(60,10,4,'export'),(61,10,8,'delete'),(62,10,16,'edit'),(63,10,32,'administrate'),(64,11,1,'open'),(65,11,2,'copy'),(66,11,4,'export'),(67,11,8,'delete'),(68,11,16,'edit'),(69,11,32,'administrate'),(70,12,1,'open'),(71,12,2,'copy'),(72,12,4,'export'),(73,12,8,'delete'),(74,12,16,'edit'),(75,12,32,'administrate'),(76,13,1,'open'),(77,13,2,'copy'),(78,13,4,'export'),(79,13,8,'delete'),(80,13,16,'edit'),(81,13,32,'administrate'),(82,14,1,'open'),(83,14,2,'copy'),(84,14,4,'export'),(85,14,8,'delete'),(86,14,16,'edit'),(87,14,32,'administrate'),(88,14,64,'post'),(89,15,1,'open'),(90,15,2,'copy'),(91,15,4,'export'),(92,15,8,'delete'),(93,15,16,'edit'),(94,15,32,'administrate'),(95,16,1,'open'),(96,16,2,'copy'),(97,16,4,'export'),(98,16,8,'delete'),(99,16,16,'edit'),(100,16,32,'administrate'),(101,17,1,'open'),(102,17,2,'copy'),(103,17,4,'export'),(104,17,8,'delete'),(105,17,16,'edit'),(106,17,32,'administrate'),(107,18,1,'open'),(108,18,2,'copy'),(109,18,4,'export'),(110,18,8,'delete'),(111,18,16,'edit'),(112,18,32,'administrate'),(113,18,64,'path_administrate'),(114,18,128,'manageresults'),(115,19,1,'open'),(116,19,2,'copy'),(117,19,4,'export'),(118,19,8,'delete'),(119,19,16,'edit'),(120,19,32,'administrate'),(121,20,1,'open'),(122,20,2,'copy'),(123,20,4,'export'),(124,20,8,'delete'),(125,20,16,'edit'),(126,20,32,'administrate'),(127,21,1,'open'),(128,21,2,'copy'),(129,21,4,'export'),(130,21,8,'delete'),(131,21,16,'edit'),(132,21,32,'administrate'),(133,22,1,'open'),(134,22,2,'copy'),(135,22,4,'export'),(136,22,8,'delete'),(137,22,16,'edit'),(138,22,32,'administrate'),(139,23,1,'open'),(140,23,2,'copy'),(141,23,4,'export'),(142,23,8,'delete'),(143,23,16,'edit'),(144,23,32,'administrate'),(145,24,1,'open'),(146,24,2,'copy'),(147,24,4,'export'),(148,24,8,'delete'),(149,24,16,'edit'),(150,24,32,'administrate'),(151,25,1,'open'),(152,25,2,'copy'),(153,25,4,'export'),(154,25,8,'delete'),(155,25,16,'edit'),(156,25,32,'administrate'),(157,26,1,'open'),(158,26,2,'copy'),(159,26,4,'export'),(160,26,8,'delete'),(161,26,16,'edit'),(162,26,32,'administrate'),(163,27,1,'open'),(164,27,2,'copy'),(165,27,4,'export'),(166,27,8,'delete'),(167,27,16,'edit'),(168,27,32,'administrate');
/*!40000 ALTER TABLE `claro_resource_mask_decoder` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_resource_node`
--

DROP TABLE IF EXISTS `claro_resource_node`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_resource_node` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `resource_type_id` int(11) NOT NULL,
  `creator_id` int(11) NOT NULL,
  `icon_id` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `workspace_id` int(11) DEFAULT NULL,
  `license` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creation_date` datetime NOT NULL,
  `modification_date` datetime NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `lvl` int(11) DEFAULT NULL,
  `path` varchar(3000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `value` int(11) DEFAULT NULL,
  `mime_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `class` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
  `accessible_from` datetime DEFAULT NULL,
  `accessible_until` datetime DEFAULT NULL,
  `published` tinyint(1) NOT NULL DEFAULT '1',
  `author` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '1',
  `guid` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `published_to_portal` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `IDX_A76799FF98EC6B7B` (`resource_type_id`),
  KEY `IDX_A76799FF61220EA6` (`creator_id`),
  KEY `IDX_A76799FF54B9D732` (`icon_id`),
  KEY `IDX_A76799FF727ACA70` (`parent_id`),
  KEY `IDX_A76799FF82D40A1F` (`workspace_id`),
  CONSTRAINT `FK_A76799FF54B9D732` FOREIGN KEY (`icon_id`) REFERENCES `claro_resource_icon` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_A76799FF61220EA6` FOREIGN KEY (`creator_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_A76799FF727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_A76799FF82D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_A76799FF98EC6B7B` FOREIGN KEY (`resource_type_id`) REFERENCES `claro_resource_type` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_resource_node`
--

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

--
-- Table structure for table `claro_resource_rights`
--

DROP TABLE IF EXISTS `claro_resource_rights`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_resource_rights` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `mask` int(11) NOT NULL,
  `resourceNode_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `resource_rights_unique_resource_role` (`resourceNode_id`,`role_id`),
  KEY `IDX_3848F483D60322AC` (`role_id`),
  KEY `IDX_3848F483B87FAB32` (`resourceNode_id`),
  KEY `mask_idx` (`mask`),
  CONSTRAINT `FK_3848F483B87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_3848F483D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_resource_rights`
--

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

--
-- Table structure for table `claro_resource_shortcut`
--

DROP TABLE IF EXISTS `claro_resource_shortcut`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_resource_shortcut` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `target_id` int(11) NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_5E7F4AB8B87FAB32` (`resourceNode_id`),
  KEY `IDX_5E7F4AB8158E0B66` (`target_id`),
  CONSTRAINT `FK_5E7F4AB8B87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_5E7F4AB8158E0B66` FOREIGN KEY (`target_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_resource_shortcut`
--

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

--
-- Table structure for table `claro_resource_type`
--

DROP TABLE IF EXISTS `claro_resource_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_resource_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `plugin_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_exportable` tinyint(1) NOT NULL,
  `defaultMask` int(11) NOT NULL,
  `is_enabled` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_AEC626935E237E06` (`name`),
  KEY `IDX_AEC62693EC942BCF` (`plugin_id`),
  CONSTRAINT `FK_AEC62693EC942BCF` FOREIGN KEY (`plugin_id`) REFERENCES `claro_plugin` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_resource_type`
--

LOCK TABLES `claro_resource_type` WRITE;
/*!40000 ALTER TABLE `claro_resource_type` DISABLE KEYS */;
INSERT INTO `claro_resource_type` VALUES (1,NULL,'file',1,1,1),(2,NULL,'directory',1,1,1),(3,NULL,'text',1,1,1),(4,NULL,'resource_shortcut',0,1,1),(5,NULL,'activity',1,1,1),(6,5,'claroline_forum',1,65,1),(7,10,'claroline_survey',0,1,1),(8,11,'claroline_announcement_aggregate',0,1,1),(9,13,'claroline_scorm_12',0,1,1),(10,13,'claroline_scorm_2004',0,1,1),(11,21,'claroline_web_resource',0,1,1),(12,23,'innova_collecticiel',1,1,1),(13,26,'hevinci_url',0,1,1),(14,29,'icap_blog',0,1,1),(15,30,'icap_dropzone',0,1,1),(16,32,'icap_wiki',0,1,1),(17,35,'claroline_result',0,1,1),(18,36,'innova_path',1,1,1),(19,37,'icap_website',0,1,1),(20,38,'innova_video_recorder',0,1,1),(21,39,'innova_audio_recorder',0,1,1),(22,40,'innova_media_resource',0,1,1),(23,41,'claroline_flashcard',0,1,1),(24,42,'ujm_exercise',0,1,1),(25,43,'icap_lesson',0,1,1),(26,44,'claroline_chat_room',0,1,0),(27,46,'claroline_claco_form',0,1,1);
/*!40000 ALTER TABLE `claro_resource_type` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_resources_widget_config`
--

DROP TABLE IF EXISTS `claro_resources_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_resources_widget_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `widgetInstance_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CB15C56DAB7B5A55` (`widgetInstance_id`),
  CONSTRAINT `FK_CB15C56DAB7B5A55` FOREIGN KEY (`widgetInstance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_resources_widget_config`
--

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

--
-- Table structure for table `claro_result`
--

DROP TABLE IF EXISTS `claro_result`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_result` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` datetime DEFAULT NULL,
  `total` int(11) NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_E059B38CB87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_E059B38CB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_result`
--

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

--
-- Table structure for table `claro_result_mark`
--

DROP TABLE IF EXISTS `claro_result_mark`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_result_mark` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `result_id` int(11) DEFAULT NULL,
  `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_7D93D85EA76ED395` (`user_id`),
  KEY `IDX_7D93D85E7A7B643` (`result_id`),
  CONSTRAINT `FK_7D93D85E7A7B643` FOREIGN KEY (`result_id`) REFERENCES `claro_result` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_7D93D85EA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_result_mark`
--

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

--
-- Table structure for table `claro_role`
--

DROP TABLE IF EXISTS `claro_role`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `translation_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_read_only` tinyint(1) NOT NULL,
  `type` int(11) NOT NULL,
  `maxUsers` int(11) DEFAULT NULL,
  `personal_workspace_creation_enabled` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_317774715E237E06` (`name`),
  KEY `IDX_3177747182D40A1F` (`workspace_id`),
  CONSTRAINT `FK_3177747182D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_role`
--

LOCK TABLES `claro_role` WRITE;
/*!40000 ALTER TABLE `claro_role` DISABLE KEYS */;
INSERT INTO `claro_role` VALUES (1,NULL,'ROLE_USER','user',1,1,NULL,1),(2,NULL,'ROLE_WS_CREATOR','ws_creator',1,1,NULL,1),(3,NULL,'ROLE_ADMIN','admin',1,1,NULL,1),(4,NULL,'ROLE_ANONYMOUS','anonymous',1,1,NULL,1),(5,NULL,'ROLE_HOME_MANAGER','home_manager',1,1,NULL,1),(6,NULL,'ROLE_COMPETENCY_MANAGER','competency_manager',1,1,NULL,1);
/*!40000 ALTER TABLE `claro_role` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_role_options`
--

DROP TABLE IF EXISTS `claro_role_options`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_role_options` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) DEFAULT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_56C6D283D60322AC` (`role_id`),
  CONSTRAINT `FK_56C6D283D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_role_options`
--

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

--
-- Table structure for table `claro_rssreader_configuration`
--

DROP TABLE IF EXISTS `claro_rssreader_configuration`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_rssreader_configuration` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `widgetInstance_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8D6D1C54AB7B5A55` (`widgetInstance_id`),
  CONSTRAINT `FK_8D6D1C54AB7B5A55` FOREIGN KEY (`widgetInstance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_rssreader_configuration`
--

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

--
-- Table structure for table `claro_scorm_12_resource`
--

DROP TABLE IF EXISTS `claro_scorm_12_resource`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_scorm_12_resource` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hash_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  `hide_top_bar` tinyint(1) NOT NULL DEFAULT '0',
  `exit_mode` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_DB7E0F7CB87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_DB7E0F7CB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_scorm_12_resource`
--

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

--
-- Table structure for table `claro_scorm_12_sco`
--

DROP TABLE IF EXISTS `claro_scorm_12_sco`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_scorm_12_sco` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `scorm_resource_id` int(11) NOT NULL,
  `sco_parent_id` int(11) DEFAULT NULL,
  `entry_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `scorm_identifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `visible` tinyint(1) NOT NULL,
  `parameters` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `prerequisites` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `max_time_allowed` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_limit_action` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `launch_data` varchar(4096) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mastery_score` int(11) DEFAULT NULL,
  `is_block` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F900C289167AFF3D` (`scorm_resource_id`),
  KEY `IDX_F900C28948C689D5` (`sco_parent_id`),
  CONSTRAINT `FK_F900C28948C689D5` FOREIGN KEY (`sco_parent_id`) REFERENCES `claro_scorm_12_sco` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F900C289167AFF3D` FOREIGN KEY (`scorm_resource_id`) REFERENCES `claro_scorm_12_resource` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_scorm_12_sco`
--

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

--
-- Table structure for table `claro_scorm_12_sco_tracking`
--

DROP TABLE IF EXISTS `claro_scorm_12_sco_tracking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_scorm_12_sco_tracking` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `sco_id` int(11) NOT NULL,
  `score_raw` int(11) DEFAULT NULL,
  `score_min` int(11) DEFAULT NULL,
  `score_max` int(11) DEFAULT NULL,
  `lesson_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `session_time` int(11) DEFAULT NULL,
  `total_time` int(11) DEFAULT NULL,
  `entry` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `suspend_data` varchar(4096) COLLATE utf8_unicode_ci DEFAULT NULL,
  `credit` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `exit_mode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lesson_location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lesson_mode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `best_score_raw` int(11) DEFAULT NULL,
  `best_lesson_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_locked` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_465499F3A76ED395` (`user_id`),
  KEY `IDX_465499F318A32826` (`sco_id`),
  CONSTRAINT `FK_465499F318A32826` FOREIGN KEY (`sco_id`) REFERENCES `claro_scorm_12_sco` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_465499F3A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_scorm_12_sco_tracking`
--

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

--
-- Table structure for table `claro_scorm_2004_resource`
--

DROP TABLE IF EXISTS `claro_scorm_2004_resource`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_scorm_2004_resource` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hash_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  `hide_top_bar` tinyint(1) NOT NULL DEFAULT '0',
  `exit_mode` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_D16AB015B87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_D16AB015B87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_scorm_2004_resource`
--

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

--
-- Table structure for table `claro_scorm_2004_sco`
--

DROP TABLE IF EXISTS `claro_scorm_2004_sco`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_scorm_2004_sco` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `scorm_resource_id` int(11) NOT NULL,
  `sco_parent_id` int(11) DEFAULT NULL,
  `entry_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `scorm_identifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `title` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `visible` tinyint(1) NOT NULL,
  `parameters` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time_limit_action` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `launch_data` varchar(4000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_block` tinyint(1) NOT NULL,
  `max_time_allowed` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `completion_threshold` decimal(10,7) DEFAULT NULL,
  `scaled_passing_score` decimal(10,7) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_E88F1DDD167AFF3D` (`scorm_resource_id`),
  KEY `IDX_E88F1DDD48C689D5` (`sco_parent_id`),
  CONSTRAINT `FK_E88F1DDD48C689D5` FOREIGN KEY (`sco_parent_id`) REFERENCES `claro_scorm_2004_sco` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_E88F1DDD167AFF3D` FOREIGN KEY (`scorm_resource_id`) REFERENCES `claro_scorm_2004_resource` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_scorm_2004_sco`
--

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

--
-- Table structure for table `claro_scorm_2004_sco_tracking`
--

DROP TABLE IF EXISTS `claro_scorm_2004_sco_tracking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_scorm_2004_sco_tracking` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `sco_id` int(11) NOT NULL,
  `score_raw` int(11) DEFAULT NULL,
  `score_min` int(11) DEFAULT NULL,
  `score_max` int(11) DEFAULT NULL,
  `score_scaled` decimal(10,7) DEFAULT NULL,
  `completion_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `success_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `total_time` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`),
  KEY `IDX_3A61CA76ED395` (`user_id`),
  KEY `IDX_3A61C18A32826` (`sco_id`),
  CONSTRAINT `FK_3A61C18A32826` FOREIGN KEY (`sco_id`) REFERENCES `claro_scorm_2004_sco` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_3A61CA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_scorm_2004_sco_tracking`
--

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

--
-- Table structure for table `claro_security_token`
--

DROP TABLE IF EXISTS `claro_security_token`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_security_token` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `client_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `client_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_B3A67A408FBFBD64` (`client_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_security_token`
--

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

--
-- Table structure for table `claro_session`
--

DROP TABLE IF EXISTS `claro_session`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_session` (
  `session_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `session_data` longtext COLLATE utf8_unicode_ci NOT NULL,
  `session_time` int(11) NOT NULL,
  PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_session`
--

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

--
-- Table structure for table `claro_simple_text_widget_config`
--

DROP TABLE IF EXISTS `claro_simple_text_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_simple_text_widget_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `widgetInstance_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C389EBCCAB7B5A55` (`widgetInstance_id`),
  CONSTRAINT `FK_C389EBCCAB7B5A55` FOREIGN KEY (`widgetInstance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_simple_text_widget_config`
--

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

--
-- Table structure for table `claro_subcontent`
--

DROP TABLE IF EXISTS `claro_subcontent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_subcontent` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `father_id` int(11) NOT NULL,
  `child_id` int(11) NOT NULL,
  `next_id` int(11) DEFAULT NULL,
  `back_id` int(11) DEFAULT NULL,
  `size` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_D72E133C2055B9A2` (`father_id`),
  KEY `IDX_D72E133CDD62C21B` (`child_id`),
  KEY `IDX_D72E133CAA23F6C8` (`next_id`),
  KEY `IDX_D72E133CE9583FF0` (`back_id`),
  CONSTRAINT `FK_D72E133CE9583FF0` FOREIGN KEY (`back_id`) REFERENCES `claro_subcontent` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_D72E133C2055B9A2` FOREIGN KEY (`father_id`) REFERENCES `claro_content` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_D72E133CAA23F6C8` FOREIGN KEY (`next_id`) REFERENCES `claro_subcontent` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_D72E133CDD62C21B` FOREIGN KEY (`child_id`) REFERENCES `claro_content` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_subcontent`
--

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

--
-- Table structure for table `claro_survey_answer`
--

DROP TABLE IF EXISTS `claro_survey_answer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_answer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `survey_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `answer_date` datetime NOT NULL,
  `nb_answers` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DFEB5349B3FE509D` (`survey_id`),
  KEY `IDX_DFEB5349A76ED395` (`user_id`),
  CONSTRAINT `FK_DFEB5349A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_DFEB5349B3FE509D` FOREIGN KEY (`survey_id`) REFERENCES `claro_survey_resource` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_answer`
--

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

--
-- Table structure for table `claro_survey_choice`
--

DROP TABLE IF EXISTS `claro_survey_choice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_choice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `choice_question_id` int(11) NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  `other` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C49D43FEA46B3B4F` (`choice_question_id`),
  CONSTRAINT `FK_C49D43FEA46B3B4F` FOREIGN KEY (`choice_question_id`) REFERENCES `claro_survey_multiple_choice_question` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_choice`
--

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

--
-- Table structure for table `claro_survey_multiple_choice_question`
--

DROP TABLE IF EXISTS `claro_survey_multiple_choice_question`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_multiple_choice_question` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `question_id` int(11) DEFAULT NULL,
  `horizontal` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_388E4C251E27F6BF` (`question_id`),
  CONSTRAINT `FK_388E4C251E27F6BF` FOREIGN KEY (`question_id`) REFERENCES `claro_survey_question` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_multiple_choice_question`
--

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

--
-- Table structure for table `claro_survey_multiple_choice_question_answer`
--

DROP TABLE IF EXISTS `claro_survey_multiple_choice_question_answer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_multiple_choice_question_answer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `question_answer_id` int(11) NOT NULL,
  `choice_id` int(11) NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_FDB8AF37A3E60C9C` (`question_answer_id`),
  KEY `IDX_FDB8AF37998666D1` (`choice_id`),
  CONSTRAINT `FK_FDB8AF37998666D1` FOREIGN KEY (`choice_id`) REFERENCES `claro_survey_choice` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_FDB8AF37A3E60C9C` FOREIGN KEY (`question_answer_id`) REFERENCES `claro_survey_question_answer` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_multiple_choice_question_answer`
--

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

--
-- Table structure for table `claro_survey_open_ended_question_answer`
--

DROP TABLE IF EXISTS `claro_survey_open_ended_question_answer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_open_ended_question_answer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `question_answer_id` int(11) NOT NULL,
  `answer_content` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_F2616BBEA3E60C9C` (`question_answer_id`),
  CONSTRAINT `FK_F2616BBEA3E60C9C` FOREIGN KEY (`question_answer_id`) REFERENCES `claro_survey_question_answer` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_open_ended_question_answer`
--

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

--
-- Table structure for table `claro_survey_question`
--

DROP TABLE IF EXISTS `claro_survey_question`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_question` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) NOT NULL,
  `title` longtext COLLATE utf8_unicode_ci NOT NULL,
  `question` longtext COLLATE utf8_unicode_ci NOT NULL,
  `question_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `comment_allowed` tinyint(1) NOT NULL,
  `comment_label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rich_text` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1BD4C01382D40A1F` (`workspace_id`),
  CONSTRAINT `FK_1BD4C01382D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_question`
--

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

--
-- Table structure for table `claro_survey_question_answer`
--

DROP TABLE IF EXISTS `claro_survey_question_answer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_question_answer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `answer_survey_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `answer_comment` longtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `IDX_9F5D3C468E018F4B` (`answer_survey_id`),
  KEY `IDX_9F5D3C461E27F6BF` (`question_id`),
  CONSTRAINT `FK_9F5D3C461E27F6BF` FOREIGN KEY (`question_id`) REFERENCES `claro_survey_question` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_9F5D3C468E018F4B` FOREIGN KEY (`answer_survey_id`) REFERENCES `claro_survey_answer` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_question_answer`
--

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

--
-- Table structure for table `claro_survey_question_model`
--

DROP TABLE IF EXISTS `claro_survey_question_model`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_question_model` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) NOT NULL,
  `title` longtext COLLATE utf8_unicode_ci NOT NULL,
  `question_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `rich_text` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_88BF64F482D40A1F` (`workspace_id`),
  CONSTRAINT `FK_88BF64F482D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_question_model`
--

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

--
-- Table structure for table `claro_survey_question_relation`
--

DROP TABLE IF EXISTS `claro_survey_question_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_question_relation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `survey_id` int(11) NOT NULL,
  `question_id` int(11) NOT NULL,
  `question_order` int(11) NOT NULL,
  `mandatory` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `survey_unique_survey_question_relation` (`survey_id`,`question_id`),
  KEY `IDX_953FEEA4B3FE509D` (`survey_id`),
  KEY `IDX_953FEEA41E27F6BF` (`question_id`),
  CONSTRAINT `FK_953FEEA41E27F6BF` FOREIGN KEY (`question_id`) REFERENCES `claro_survey_question` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_953FEEA4B3FE509D` FOREIGN KEY (`survey_id`) REFERENCES `claro_survey_resource` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_question_relation`
--

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

--
-- Table structure for table `claro_survey_resource`
--

DROP TABLE IF EXISTS `claro_survey_resource`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_resource` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `description` longtext COLLATE utf8_unicode_ci,
  `published` tinyint(1) NOT NULL,
  `closed` tinyint(1) NOT NULL,
  `has_public_result` tinyint(1) NOT NULL,
  `allow_answer_edition` tinyint(1) NOT NULL,
  `start_date` datetime DEFAULT NULL,
  `end_date` datetime DEFAULT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_11B27D4BB87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_11B27D4BB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_resource`
--

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

--
-- Table structure for table `claro_survey_simple_text_question_answer`
--

DROP TABLE IF EXISTS `claro_survey_simple_text_question_answer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_survey_simple_text_question_answer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `question_answer_id` int(11) NOT NULL,
  `answer_content` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_62C24A08A3E60C9C` (`question_answer_id`),
  CONSTRAINT `FK_62C24A08A3E60C9C` FOREIGN KEY (`question_answer_id`) REFERENCES `claro_survey_question_answer` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_survey_simple_text_question_answer`
--

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

--
-- Table structure for table `claro_tagbundle_resources_tags_widget_config`
--

DROP TABLE IF EXISTS `claro_tagbundle_resources_tags_widget_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_tagbundle_resources_tags_widget_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `details` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:json_array)',
  `widgetInstance_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_5F11BDA4AB7B5A55` (`widgetInstance_id`),
  CONSTRAINT `FK_5F11BDA4AB7B5A55` FOREIGN KEY (`widgetInstance_id`) REFERENCES `claro_widget_instance` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_tagbundle_resources_tags_widget_config`
--

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

--
-- Table structure for table `claro_tagbundle_tag`
--

DROP TABLE IF EXISTS `claro_tagbundle_tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_tagbundle_tag` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `tag_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6E5EC9DA76ED395` (`user_id`),
  CONSTRAINT `FK_6E5EC9DA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_tagbundle_tag`
--

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

--
-- Table structure for table `claro_tagbundle_tagged_object`
--

DROP TABLE IF EXISTS `claro_tagbundle_tagged_object`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_tagbundle_tagged_object` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tag_id` int(11) NOT NULL,
  `object_id` int(11) NOT NULL,
  `object_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `object_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1EA1E15DBAD26311` (`tag_id`),
  CONSTRAINT `FK_1EA1E15DBAD26311` FOREIGN KEY (`tag_id`) REFERENCES `claro_tagbundle_tag` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_tagbundle_tagged_object`
--

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

--
-- Table structure for table `claro_team`
--

DROP TABLE IF EXISTS `claro_team`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_team` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) NOT NULL,
  `role_id` int(11) DEFAULT NULL,
  `team_manager` int(11) DEFAULT NULL,
  `team_manager_role` int(11) DEFAULT NULL,
  `directory_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci,
  `max_users` int(11) DEFAULT NULL,
  `self_registration` tinyint(1) NOT NULL,
  `self_unregistration` tinyint(1) NOT NULL,
  `is_public` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_A2FE5804D60322AC` (`role_id`),
  UNIQUE KEY `UNIQ_A2FE580459E625D1` (`team_manager_role`),
  UNIQUE KEY `UNIQ_A2FE58042C94069F` (`directory_id`),
  KEY `IDX_A2FE580482D40A1F` (`workspace_id`),
  KEY `IDX_A2FE580455D548E` (`team_manager`),
  CONSTRAINT `FK_A2FE58042C94069F` FOREIGN KEY (`directory_id`) REFERENCES `claro_directory` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_A2FE580455D548E` FOREIGN KEY (`team_manager`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_A2FE580459E625D1` FOREIGN KEY (`team_manager_role`) REFERENCES `claro_role` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_A2FE580482D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_A2FE5804D60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_team`
--

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

--
-- Table structure for table `claro_team_parameters`
--

DROP TABLE IF EXISTS `claro_team_parameters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_team_parameters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `workspace_id` int(11) NOT NULL,
  `self_registration` tinyint(1) NOT NULL,
  `self_unregistration` tinyint(1) NOT NULL,
  `is_public` tinyint(1) NOT NULL,
  `max_teams` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_C99EF54182D40A1F` (`workspace_id`),
  CONSTRAINT `FK_C99EF54182D40A1F` FOREIGN KEY (`workspace_id`) REFERENCES `claro_workspace` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_team_parameters`
--

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

--
-- Table structure for table `claro_team_users`
--

DROP TABLE IF EXISTS `claro_team_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_team_users` (
  `team_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`team_id`,`user_id`),
  KEY `IDX_B10C67F3296CD8AE` (`team_id`),
  KEY `IDX_B10C67F3A76ED395` (`user_id`),
  CONSTRAINT `FK_B10C67F3A76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B10C67F3296CD8AE` FOREIGN KEY (`team_id`) REFERENCES `claro_team` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_team_users`
--

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

--
-- Table structure for table `claro_text`
--

DROP TABLE IF EXISTS `claro_text`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_text` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `version` int(11) NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_5D9559DCB87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_5D9559DCB87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_text`
--

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

--
-- Table structure for table `claro_text_revision`
--

DROP TABLE IF EXISTS `claro_text_revision`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_text_revision` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `text_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `version` int(11) NOT NULL,
  `content` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F61948DE698D3548` (`text_id`),
  KEY `IDX_F61948DEA76ED395` (`user_id`),
  CONSTRAINT `FK_F61948DEA76ED395` FOREIGN KEY (`user_id`) REFERENCES `claro_user` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_F61948DE698D3548` FOREIGN KEY (`text_id`) REFERENCES `claro_text` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_text_revision`
--

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

--
-- Table structure for table `claro_theme`
--

DROP TABLE IF EXISTS `claro_theme`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_theme` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `plugin_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `extending_default` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `IDX_1D76301AEC942BCF` (`plugin_id`),
  CONSTRAINT `FK_1D76301AEC942BCF` FOREIGN KEY (`plugin_id`) REFERENCES `claro_plugin` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_theme`
--

LOCK TABLES `claro_theme` WRITE;
/*!40000 ALTER TABLE `claro_theme` DISABLE KEYS */;
INSERT INTO `claro_theme` VALUES (1,NULL,'Claroline',0),(2,NULL,'Claroline Black',0),(3,NULL,'Claroline Mint',0),(4,NULL,'Claroline Ruby',0);
/*!40000 ALTER TABLE `claro_theme` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_tool_mask_decoder`
--

DROP TABLE IF EXISTS `claro_tool_mask_decoder`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_tool_mask_decoder` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tool_id` int(11) NOT NULL,
  `value` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `granted_icon_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `denied_icon_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tool_mask_decoder_unique_tool_and_name` (`tool_id`,`name`),
  KEY `IDX_323623448F7B22CC` (`tool_id`),
  CONSTRAINT `FK_323623448F7B22CC` FOREIGN KEY (`tool_id`) REFERENCES `claro_tools` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_tool_mask_decoder`
--

LOCK TABLES `claro_tool_mask_decoder` WRITE;
/*!40000 ALTER TABLE `claro_tool_mask_decoder` DISABLE KEYS */;
INSERT INTO `claro_tool_mask_decoder` VALUES (1,1,1,'open','fa fa-eye','fa fa-eye-slash'),(2,1,2,'edit','fa fa-edit','fa fa-edit'),(3,2,1,'open','fa fa-eye','fa fa-eye-slash'),(4,2,2,'edit','fa fa-edit','fa fa-edit'),(5,3,1,'open','fa fa-eye','fa fa-eye-slash'),(6,3,2,'edit','fa fa-edit','fa fa-edit'),(7,4,1,'open','fa fa-eye','fa fa-eye-slash'),(8,4,2,'edit','fa fa-edit','fa fa-edit'),(9,5,1,'open','fa fa-eye','fa fa-eye-slash'),(10,5,2,'edit','fa fa-edit','fa fa-edit'),(11,6,1,'open','fa fa-eye','fa fa-eye-slash'),(12,6,2,'edit','fa fa-edit','fa fa-edit'),(13,7,1,'open','fa fa-eye','fa fa-eye-slash'),(14,7,2,'edit','fa fa-edit','fa fa-edit'),(15,8,1,'open','fa fa-eye','fa fa-eye-slash'),(16,8,2,'edit','fa fa-edit','fa fa-edit'),(17,9,1,'open','fa fa-eye','fa fa-eye-slash'),(18,9,2,'edit','fa fa-edit','fa fa-edit'),(19,11,1,'open','fa fa-eye','fa fa-eye-slash'),(20,11,2,'edit','fa fa-edit','fa fa-edit'),(21,12,1,'open','fa fa-eye','fa fa-eye-slash'),(22,12,2,'edit','fa fa-edit','fa fa-edit'),(23,13,1,'open','fa fa-eye','fa fa-eye-slash'),(24,13,2,'edit','fa fa-edit','fa fa-edit'),(25,14,1,'open','fa fa-eye','fa fa-eye-slash'),(26,14,2,'edit','fa fa-edit','fa fa-edit'),(27,15,1,'open','fa fa-eye','fa fa-eye-slash'),(28,15,2,'edit','fa fa-edit','fa fa-edit'),(29,16,1,'open','fa fa-eye','fa fa-eye-slash'),(30,16,2,'edit','fa fa-edit','fa fa-edit'),(31,17,1,'open','fa fa-eye','fa fa-eye-slash'),(32,17,2,'edit','fa fa-edit','fa fa-edit'),(33,18,1,'open','fa fa-eye','fa fa-eye-slash'),(34,18,2,'edit','fa fa-edit','fa fa-edit'),(35,19,1,'open','fa fa-eye','fa fa-eye-slash'),(36,19,2,'edit','fa fa-edit','fa fa-edit'),(37,20,1,'open','fa fa-eye','fa fa-eye-slash'),(38,20,2,'edit','fa fa-edit','fa fa-edit'),(39,21,1,'open','fa fa-eye','fa fa-eye-slash'),(40,21,2,'edit','fa fa-edit','fa fa-edit');
/*!40000 ALTER TABLE `claro_tool_mask_decoder` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_tool_rights`
--

DROP TABLE IF EXISTS `claro_tool_rights`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_tool_rights` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `ordered_tool_id` int(11) NOT NULL,
  `mask` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tool_rights_unique_ordered_tool_role` (`ordered_tool_id`,`role_id`),
  KEY `IDX_EFEDEC7ED60322AC` (`role_id`),
  KEY `IDX_EFEDEC7EBAC1B1D7` (`ordered_tool_id`),
  CONSTRAINT `FK_EFEDEC7EBAC1B1D7` FOREIGN KEY (`ordered_tool_id`) REFERENCES `claro_ordered_tool` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_EFEDEC7ED60322AC` FOREIGN KEY (`role_id`) REFERENCES `claro_role` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_tool_rights`
--

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

--
-- Table structure for table `claro_tools`
--

DROP TABLE IF EXISTS `claro_tools`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_tools` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `plugin_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `display_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `is_workspace_required` tinyint(1) NOT NULL,
  `is_desktop_required` tinyint(1) NOT NULL,
  `is_displayable_in_workspace` tinyint(1) NOT NULL,
  `is_displayable_in_desktop` tinyint(1) NOT NULL,
  `is_exportable` tinyint(1) NOT NULL,
  `is_configurable_in_workspace` tinyint(1) NOT NULL,
  `is_configurable_in_desktop` tinyint(1) NOT NULL,
  `is_locked_for_admin` tinyint(1) NOT NULL,
  `is_anonymous_excluded` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tool_plugin_unique` (`name`,`plugin_id`),
  KEY `IDX_60F90965EC942BCF` (`plugin_id`),
  CONSTRAINT `FK_60F90965EC942BCF` FOREIGN KEY (`plugin_id`) REFERENCES `claro_plugin` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_tools`
--

LOCK TABLES `claro_tools` WRITE;
/*!40000 ALTER TABLE `claro_tools` DISABLE KEYS */;
INSERT INTO `claro_tools` VALUES (1,NULL,'home',NULL,'home',0,0,1,1,1,0,0,0,0),(2,NULL,'parameters',NULL,'cogs',0,0,1,1,0,0,0,1,1),(3,NULL,'resource_manager',NULL,'folder-open',0,0,1,1,1,1,0,0,0),(4,NULL,'logs',NULL,'list',0,0,1,0,0,0,0,0,1),(5,NULL,'analytics',NULL,'bar-chart-o',0,0,1,0,0,0,0,0,1),(6,NULL,'users',NULL,'user',1,0,1,0,0,0,0,0,1),(7,NULL,'my_contacts',NULL,'users',0,0,0,1,0,0,0,0,1),(8,1,'agenda_',NULL,'calendar',0,0,1,1,0,0,0,0,1),(9,2,'formalibre_reservation_agenda',NULL,'pencil-square-o',0,0,0,1,0,0,0,0,1),(10,4,'message',NULL,'envelope',0,0,0,1,0,0,0,0,1),(11,7,'formalibre_support_tool',NULL,'exclamation-triangle',0,0,0,1,0,0,0,0,1),(12,16,'claroline_team_tool',NULL,'users',0,0,1,0,0,0,0,0,1),(13,18,'formalibre_presence_tool',NULL,'check-square-o',0,0,0,1,0,0,0,0,1),(14,20,'claroline_activity_tool',NULL,'tasks',0,0,1,1,0,0,0,0,1),(15,25,'my-learning-objectives',NULL,'arrow-up',0,0,0,1,0,0,0,0,1),(16,27,'my_portfolios',NULL,'list-alt',0,0,0,1,0,0,0,0,1),(17,28,'badges',NULL,'trophy',0,0,1,0,0,0,0,0,1),(18,28,'my_badges',NULL,'trophy',0,0,1,0,0,0,0,0,1),(19,28,'all_my_badges',NULL,'trophy',0,0,0,1,0,0,0,0,1),(20,42,'ujm_questions',NULL,'database',0,0,0,1,0,0,0,0,1),(21,45,'dashboard',NULL,'area-chart',0,0,0,1,0,0,0,0,1);
/*!40000 ALTER TABLE `claro_tools` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_type`
--

DROP TABLE IF EXISTS `claro_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `max_content_page` int(11) NOT NULL,
  `publish` tinyint(1) DEFAULT NULL,
  `template` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_type`
--

LOCK TABLES `claro_type` WRITE;
/*!40000 ALTER TABLE `claro_type` DISABLE KEYS */;
INSERT INTO `claro_type` VALUES (1,'home',100,1,NULL),(2,'menu',100,1,NULL);
/*!40000 ALTER TABLE `claro_type` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `claro_url`
--

DROP TABLE IF EXISTS `claro_url`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claro_url` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nom` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `resourceNode_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_ECB39474B87FAB32` (`resourceNode_id`),
  CONSTRAINT `FK_ECB39474B87FAB32` FOREIGN KEY (`resourceNode_id`) REFERENCES `claro_resource_node` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `claro_url`
--

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

--
