SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 */;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]answers`
CREATE TABLE `[[dbprefix]]answers` (
`aid` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL,
`sortorder` int(11) NOT NULL,
`assessment_value` int(11) NOT NULL DEFAULT '0',
`scale_id` int(11) NOT NULL DEFAULT '0',
KEY `[[dbprefix]]answers_idx` (`qid`,`code`,`scale_id`),
KEY `[[dbprefix]]answers_idx2` (`sortorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]answer_l10ns`
CREATE TABLE `[[dbprefix]]answer_l10ns` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`answer` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`language` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
UNIQUE KEY `[[dbprefix]]answer_l10ns_idx` (`aid`,`language`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]archived_table_settings`
CREATE TABLE `[[dbprefix]]archived_table_settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`survey_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`tbl_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tbl_type` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`created` datetime NOT NULL,
`properties` text COLLATE utf8mb4_unicode_ci NOT NULL,
`attributes` text COLLATE utf8mb4_unicode_ci,
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]assessments`
CREATE TABLE `[[dbprefix]]assessments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL DEFAULT '0',
`scope` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL,
`gid` int(11) NOT NULL DEFAULT '0',
`name` text COLLATE utf8mb4_unicode_ci NOT NULL,
`minimum` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`maximum` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`message` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`language` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'en',
PRIMARY KEY (`id`,`language`),
KEY `[[dbprefix]]assessments_idx2` (`sid`),
KEY `[[dbprefix]]assessments_idx3` (`gid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]asset_version`
CREATE TABLE `[[dbprefix]]asset_version` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`path` text COLLATE utf8mb4_unicode_ci NOT NULL,
`version` int(11) NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]boxes`
CREATE TABLE `[[dbprefix]]boxes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`position` int(11) DEFAULT NULL,
`url` text COLLATE utf8mb4_unicode_ci NOT NULL,
`title` text COLLATE utf8mb4_unicode_ci NOT NULL,
`buttontext` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ico` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`desc` text COLLATE utf8mb4_unicode_ci NOT NULL,
`page` text COLLATE utf8mb4_unicode_ci NOT NULL,
`usergroup` int(11) NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=7 ;
-- Dumping data for table `[[dbprefix]]boxes`
INSERT INTO `[[dbprefix]]boxes` VALUES
(1, 1, 'surveyAdministration/newSurvey', 'Create survey', 'Create survey', 'ri-add-line', 'Create a new survey from scratch. Or simply copy or import an existing survey.', 'welcome', -2),
(2, 2, 'surveyAdministration/listsurveys', 'List surveys', NULL, 'ri-list-unordered', 'List available surveys', 'welcome', -1),
(3, 3, 'admin/globalsettings', 'Global settings', 'View global settings', 'ri-settings-5-line', 'Edit global settings', 'welcome', -2),
(4, 4, 'userManagement/index', 'Manage survey administrators', 'Manage administrators', 'ri-user-line', 'The user management allows you to add additional users to your survey administration.', 'welcome', -2),
(5, 5, 'admin/labels/sa/view', 'Label sets', 'Edit label sets', 'ri-price-tag-3-line', 'Label sets can be used as answer options or subquestions to speed up creation of similar questions.', 'welcome', -2),
(6, 6, 'themeOptions', 'Themes', 'Edit themes', 'ri-brush-line', 'The themes functionality allows you to edit survey-, admin- or question themes.', 'welcome', -2);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]conditions`
CREATE TABLE `[[dbprefix]]conditions` (
`cid` int(11) NOT NULL AUTO_INCREMENT,
`qid` int(11) NOT NULL DEFAULT '0',
`cqid` int(11) NOT NULL DEFAULT '0',
`cfieldname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`method` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`value` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`scenario` int(11) NOT NULL DEFAULT '1',
KEY `[[dbprefix]]conditions_idx` (`qid`),
KEY `[[dbprefix]]conditions_idx3` (`cqid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]defaultvalues`
CREATE TABLE `[[dbprefix]]defaultvalues` (
`dvid` int(11) NOT NULL AUTO_INCREMENT,
`qid` int(11) NOT NULL DEFAULT '0',
`scale_id` int(11) NOT NULL DEFAULT '0',
`sqid` int(11) NOT NULL DEFAULT '0',
`specialtype` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
KEY `[[dbprefix]]idx1_defaultvalue` (`qid`,`scale_id`,`sqid`,`specialtype`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]defaultvalue_l10ns`
CREATE TABLE `[[dbprefix]]defaultvalue_l10ns` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dvid` int(11) NOT NULL DEFAULT '0',
`language` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`defaultvalue` text COLLATE utf8mb4_unicode_ci,
KEY `[[dbprefix]]idx1_defaultvalue_ls` (`dvid`,`language`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]expression_errors`
CREATE TABLE `[[dbprefix]]expression_errors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`errortime` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sid` int(11) DEFAULT NULL,
`gid` int(11) DEFAULT NULL,
`qid` int(11) DEFAULT NULL,
`gseq` int(11) DEFAULT NULL,
`qseq` int(11) DEFAULT NULL,
`type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`eqn` text COLLATE utf8mb4_unicode_ci,
`prettyprint` text COLLATE utf8mb4_unicode_ci,
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]failed_emails`
CREATE TABLE `[[dbprefix]]failed_emails` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`surveyid` int(11) NOT NULL,
`responseid` int(11) NOT NULL,
`email_type` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`recipient` varchar(320) COLLATE utf8mb4_unicode_ci NOT NULL,
`language` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'en',
`error_message` text COLLATE utf8mb4_unicode_ci,
`created` datetime NOT NULL,
`status` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT 'SEND FAILED',
`updated` datetime DEFAULT NULL,
`resend_vars` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]failed_login_attempts`
CREATE TABLE `[[dbprefix]]failed_login_attempts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_attempt` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`number_attempts` int(11) NOT NULL,
`is_frontend` tinyint(1) NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]groups`
CREATE TABLE `[[dbprefix]]groups` (
`gid` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL DEFAULT '0',
`group_order` int(11) NOT NULL DEFAULT '0',
`randomization_group` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`grelevance` text COLLATE utf8mb4_unicode_ci,
KEY `[[dbprefix]]idx1_groups` (`sid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]group_l10ns`
CREATE TABLE `[[dbprefix]]group_l10ns` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_name` text COLLATE utf8mb4_unicode_ci NOT NULL,
`description` mediumtext COLLATE utf8mb4_unicode_ci,
`language` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
UNIQUE KEY `[[dbprefix]]idx1_group_ls` (`gid`,`language`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]labels`
CREATE TABLE `[[dbprefix]]labels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lid` int(11) NOT NULL DEFAULT '0',
`code` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`sortorder` int(11) NOT NULL,
`assessment_value` int(11) NOT NULL DEFAULT '0',
UNIQUE KEY `[[dbprefix]]idx5_labels` (`lid`,`code`),
KEY `[[dbprefix]]idx1_labels` (`code`),
KEY `[[dbprefix]]idx2_labels` (`sortorder`),
KEY `[[dbprefix]]idx4_labels` (`lid`,`sortorder`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]labelsets`
CREATE TABLE `[[dbprefix]]labelsets` (
`lid` int(11) NOT NULL AUTO_INCREMENT,
`owner_id` int(11) DEFAULT NULL,
`label_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`languages` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
KEY `[[dbprefix]]idx1_labelsets` (`owner_id`),
KEY `[[dbprefix]]idx2_labelsets` (`lid`,`owner_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]label_l10ns`
CREATE TABLE `[[dbprefix]]label_l10ns` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`label_id` int(11) NOT NULL,
`title` text COLLATE utf8mb4_unicode_ci,
`language` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'en',
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]map_tutorial_users`
CREATE TABLE `[[dbprefix]]map_tutorial_users` (
`taken` int(11) DEFAULT '1',
PRIMARY KEY (`uid`,`tid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]message`
CREATE TABLE `[[dbprefix]]message` (
`language` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`translation` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`,`language`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]notifications`
CREATE TABLE `[[dbprefix]]notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
`entity_id` int(11) NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`message` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`status` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'new',
`importance` int(11) NOT NULL DEFAULT '1',
`display_class` varchar(31) COLLATE utf8mb4_unicode_ci DEFAULT 'default',
`hash` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created` datetime DEFAULT NULL,
`first_read` datetime DEFAULT NULL,
KEY `[[dbprefix]]notifications_pk` (`entity`,`entity_id`,`status`),
KEY `[[dbprefix]]idx1_notifications` (`hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]participants`
CREATE TABLE `[[dbprefix]]participants` (
`participant_id` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`firstname` text COLLATE utf8mb4_unicode_ci,
`lastname` text COLLATE utf8mb4_unicode_ci,
`email` text COLLATE utf8mb4_unicode_ci,
`language` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`blacklisted` varchar(1) COLLATE utf8mb4_unicode_ci NOT NULL,
`owner_uid` int(11) NOT NULL,
`created_by` int(11) NOT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`participant_id`),
KEY `[[dbprefix]]idx3_participants` (`language`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]participant_attribute`
CREATE TABLE `[[dbprefix]]participant_attribute` (
`participant_id` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`attribute_id` int(11) NOT NULL,
`value` text COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`participant_id`,`attribute_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]participant_attribute_names`
CREATE TABLE `[[dbprefix]]participant_attribute_names` (
`attribute_id` int(11) NOT NULL AUTO_INCREMENT,
`attribute_type` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL,
`defaultname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`visible` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL,
`encrypted` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL,
`core_attribute` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`attribute_id`,`attribute_type`),
KEY `[[dbprefix]]idx_participant_attribute_names` (`attribute_id`,`attribute_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=4 ;
-- Dumping data for table `[[dbprefix]]participant_attribute_names`
INSERT INTO `[[dbprefix]]participant_attribute_names` VALUES
(1, 'TB', 'firstname', 'TRUE', 'Y', 'Y'),
(2, 'TB', 'lastname', 'TRUE', 'Y', 'Y'),
(3, 'TB', 'email', 'TRUE', 'Y', 'Y');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]participant_attribute_names_lang`
CREATE TABLE `[[dbprefix]]participant_attribute_names_lang` (
`attribute_id` int(11) NOT NULL,
`attribute_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lang` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`attribute_id`,`lang`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]participant_attribute_values`
CREATE TABLE `[[dbprefix]]participant_attribute_values` (
`value_id` int(11) NOT NULL AUTO_INCREMENT,
`attribute_id` int(11) NOT NULL,
`value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]participant_shares`
CREATE TABLE `[[dbprefix]]participant_shares` (
`participant_id` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`share_uid` int(11) NOT NULL,
`date_added` datetime NOT NULL,
`can_edit` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`participant_id`,`share_uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]permissions`
CREATE TABLE `[[dbprefix]]permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`entity_id` int(11) NOT NULL,
`permission` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`create_p` int(11) NOT NULL DEFAULT '0',
`read_p` int(11) NOT NULL DEFAULT '0',
`update_p` int(11) NOT NULL DEFAULT '0',
`delete_p` int(11) NOT NULL DEFAULT '0',
`import_p` int(11) NOT NULL DEFAULT '0',
`export_p` int(11) NOT NULL DEFAULT '0',
UNIQUE KEY `[[dbprefix]]idx1_permissions` (`entity_id`,`entity`,`permission`,`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=2 ;
-- Dumping data for table `[[dbprefix]]permissions`
INSERT INTO `[[dbprefix]]permissions` VALUES
(1, 'global', 0, 1, 'superadmin', 0, 1, 0, 0, 0, 0);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]permissiontemplates`