mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Updated DB structure
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
-- phpMyAdmin SQL Dump
|
-- phpMyAdmin SQL Dump
|
||||||
-- version 3.4.10.1deb1
|
-- version 4.0.10deb1
|
||||||
-- http://www.phpmyadmin.net
|
-- http://www.phpmyadmin.net
|
||||||
--
|
--
|
||||||
-- Host: localhost
|
-- Host: localhost
|
||||||
-- Generation Time: Aug 03, 2015 at 12:47 PM
|
-- Generation Time: Feb 09, 2017 at 02:02 PM
|
||||||
-- Server version: 5.5.44
|
-- Server version: 5.5.54-0ubuntu0.14.04.1-log
|
||||||
-- PHP Version: 5.3.10-1ubuntu3.19
|
-- PHP Version: 5.5.9-1ubuntu4.20
|
||||||
|
|
||||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||||
SET time_zone = "+00:00";
|
SET time_zone = "+00:00";
|
||||||
@@ -17,7 +17,7 @@ SET time_zone = "+00:00";
|
|||||||
/*!40101 SET NAMES utf8 */;
|
/*!40101 SET NAMES utf8 */;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Database: `quexs`
|
-- Database: `quexs-remotelime`
|
||||||
--
|
--
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
@@ -367,40 +367,17 @@ CREATE TABLE `extension` (
|
|||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `lime_users`
|
-- Table structure for table `failed_login_attempts`
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `lime_users` (
|
CREATE TABLE `failed_login_attempts` (
|
||||||
`uid` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`users_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
|
`ip` varchar(37) COLLATE utf8_unicode_ci NOT NULL,
|
||||||
`password` blob NOT NULL,
|
`last_attempt` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
|
||||||
`full_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
`number_attempts` int(11) NOT NULL,
|
||||||
`parent_id` int(11) NOT NULL,
|
PRIMARY KEY (`id`)
|
||||||
`lang` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
||||||
`email` varchar(320) COLLATE utf8_unicode_ci DEFAULT NULL,
|
|
||||||
`create_survey` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
`create_user` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
`participant_panel` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
`delete_user` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
`superadmin` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
`configurator` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
`manage_template` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
`manage_label` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
`htmleditormode` varchar(7) COLLATE utf8_unicode_ci DEFAULT 'default',
|
|
||||||
`templateeditormode` varchar(7) COLLATE utf8_unicode_ci DEFAULT 'default',
|
|
||||||
`questionselectormode` varchar(7) COLLATE utf8_unicode_ci DEFAULT 'default',
|
|
||||||
`one_time_pw` blob,
|
|
||||||
`dateformat` int(11) NOT NULL DEFAULT '1',
|
|
||||||
PRIMARY KEY (`uid`),
|
|
||||||
UNIQUE KEY `users_name` (`users_name`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
--
|
|
||||||
-- Dumping data for table `lime_users`
|
|
||||||
--
|
|
||||||
|
|
||||||
INSERT INTO `lime_users` (`uid`, `users_name`, `password`, `full_name`, `parent_id`, `lang`, `email`, `create_survey`, `create_user`, `participant_panel`, `delete_user`, `superadmin`, `configurator`, `manage_template`, `manage_label`, `htmleditormode`, `templateeditormode`, `questionselectormode`, `one_time_pw`, `dateformat`) VALUES(1, 'admin', 0x35653838343839386461323830343731353164306535366638646336323932373733363033643064366161626264643632613131656637323164313534326438, 'Your Name', 0, 'auto', 'your-email@example.net', 1, 1, 0, 1, 1, 1, 1, 1, 'default', 'default', 'default', NULL, 1);
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
@@ -423,10 +400,13 @@ CREATE TABLE `operator` (
|
|||||||
UNIQUE KEY `username` (`username`)
|
UNIQUE KEY `username` (`username`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
--
|
||||||
INSERT INTO `operator` (`operator_id`, `username`, `firstName`, `lastName`, `Time_zone_name`, `enabled`, `voip`, `next_case_id`, `chat_enable`, `chat_user`, `chat_password`) VALUES
|
-- Dumping data for table `operator`
|
||||||
(1, 'admin', 'CATI', 'Admin', 'Australia/Victoria', 1, 0, NULL, 0, '', '');
|
--
|
||||||
|
|
||||||
|
INSERT INTO `operator` (`operator_id`, `username`, `firstName`, `lastName`, `Time_zone_name`, `enabled`, `voip`, `next_case_id`, `chat_enable`, `chat_user`, `chat_password`) VALUES(1, 'admin', 'CATI', 'Admin', 'Australia/Victoria', 1, 0, NULL, 0, '', '');
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `operator_questionnaire`
|
-- Table structure for table `operator_questionnaire`
|
||||||
@@ -450,11 +430,14 @@ CREATE TABLE `operator_skill` (
|
|||||||
PRIMARY KEY (`operator_id`,`outcome_type_id`)
|
PRIMARY KEY (`operator_id`,`outcome_type_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
--
|
||||||
|
-- Dumping data for table `operator_skill`
|
||||||
|
--
|
||||||
|
|
||||||
INSERT INTO `operator_skill` (`operator_id`, `outcome_type_id`) VALUES
|
INSERT INTO `operator_skill` (`operator_id`, `outcome_type_id`) VALUES(1, 1);
|
||||||
(1, 1),
|
INSERT INTO `operator_skill` (`operator_id`, `outcome_type_id`) VALUES(1, 5);
|
||||||
(1, 5);
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `outcome`
|
-- Table structure for table `outcome`
|
||||||
@@ -472,11 +455,11 @@ CREATE TABLE `outcome` (
|
|||||||
`eligible` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'If the respondent is eligible to participate',
|
`eligible` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'If the respondent is eligible to participate',
|
||||||
`require_note` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Whether to require a note to be entered',
|
`require_note` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Whether to require a note to be entered',
|
||||||
`calc` char(2) COLLATE utf8_unicode_ci NOT NULL,
|
`calc` char(2) COLLATE utf8_unicode_ci NOT NULL,
|
||||||
`default` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Used as default for questionnaire outcomes',
|
`default` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT 'Used as default for questionnaire outcomes',
|
||||||
`permanent` TINYINT(1) UNSIGNED NOT NULL COMMENT 'Permanent outcome, used for all questionnaires, not possible to de-select',
|
`permanent` tinyint(1) unsigned NOT NULL COMMENT 'Permanent outcome, used for all questionnaires, not possible to de-select',
|
||||||
PRIMARY KEY (`outcome_id`),
|
PRIMARY KEY (`outcome_id`),
|
||||||
KEY `calc` (`calc`)
|
KEY `calc` (`calc`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=100;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `outcome`
|
-- Dumping data for table `outcome`
|
||||||
@@ -522,10 +505,11 @@ INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_m
|
|||||||
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`, `default`, `permanent`) VALUES(44, '2.30', 'Max call attempts reached (Eligible)', 0, 1, 0, 1, 1, 1, 0, 'O', 1, 0);
|
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`, `default`, `permanent`) VALUES(44, '2.30', 'Max call attempts reached (Eligible)', 0, 1, 0, 1, 1, 1, 0, 'O', 1, 0);
|
||||||
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`, `default`, `permanent`) VALUES(45, '2.30', 'Max calls reached (Eligible)', 0, 1, 0, 1, 1, 1, 0, 'O', 1, 0);
|
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`, `default`, `permanent`) VALUES(45, '2.30', 'Max calls reached (Eligible)', 0, 1, 0, 1, 1, 1, 0, 'O', 1, 0);
|
||||||
|
|
||||||
-- Auto increment start from 100 for manual entries
|
--- Auto increment start from 100 for manual entries
|
||||||
|
|
||||||
ALTER TABLE `outcome` AUTO_INCREMENT = 100;
|
ALTER TABLE `outcome` AUTO_INCREMENT = 100;
|
||||||
|
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
@@ -642,7 +626,7 @@ CREATE TABLE `questionnaire` (
|
|||||||
`lime_template` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Limesurvey template for respondent self completion',
|
`lime_template` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Limesurvey template for respondent self completion',
|
||||||
`lime_endurl` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Forwarding end URL for respondent self completion',
|
`lime_endurl` varchar(256) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Forwarding end URL for respondent self completion',
|
||||||
`enabled` tinyint(1) NOT NULL DEFAULT '1',
|
`enabled` tinyint(1) NOT NULL DEFAULT '1',
|
||||||
`outcomes` varchar(256) COLLATE utf8_unicode_ci NULL DEFAULT '1,2,3,7,9,10,14,17,18,19' COMMENT 'Comma-separated string of outcomes defined for the questionnaire',
|
`outcomes` varchar(256) COLLATE utf8_unicode_ci DEFAULT '1,2,3,7,9,10,14,17,18,19' COMMENT 'Comma-separated string of outcomes defined for the questionnaire',
|
||||||
`remote_id` int(11) NOT NULL,
|
`remote_id` int(11) NOT NULL,
|
||||||
PRIMARY KEY (`questionnaire_id`),
|
PRIMARY KEY (`questionnaire_id`),
|
||||||
KEY `remote_id` (`remote_id`)
|
KEY `remote_id` (`remote_id`)
|
||||||
@@ -793,6 +777,23 @@ CREATE TABLE `questionnaire_timeslot` (
|
|||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `remote`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `remote` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`description` text COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
`rpc_url` text COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
`username` text COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
`password` text COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
`type` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'limesurvey' COMMENT 'type of host',
|
||||||
|
`entry_url` text COLLATE utf8_unicode_ci NOT NULL COMMENT 'entry url for interviewers',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `respondent`
|
-- Table structure for table `respondent`
|
||||||
--
|
--
|
||||||
@@ -867,7 +868,7 @@ CREATE TABLE `sample_import_var_restrict` (
|
|||||||
PRIMARY KEY (`var_id`)
|
PRIMARY KEY (`var_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
--- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `sample_postcode_timezone`
|
-- Table structure for table `sample_postcode_timezone`
|
||||||
@@ -917,7 +918,7 @@ CREATE TABLE `sample_var` (
|
|||||||
KEY `sample_id` (`sample_id`)
|
KEY `sample_id` (`sample_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
--- --------------------------------------------------------
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `sample_var_type`
|
-- Table structure for table `sample_var_type`
|
||||||
@@ -1031,6 +1032,29 @@ CREATE TABLE `timezone_template` (
|
|||||||
PRIMARY KEY (`Time_zone_name`)
|
PRIMARY KEY (`Time_zone_name`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `users`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `users` (
|
||||||
|
`uid` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`users_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
|
||||||
|
`password` blob NOT NULL,
|
||||||
|
`full_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||||
|
`email` varchar(320) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||||
|
`superadmin` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`uid`),
|
||||||
|
UNIQUE KEY `users_name` (`users_name`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `users`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `users` (`uid`, `users_name`, `password`, `full_name`, `email`, `superadmin`) VALUES(1, 'admin', 0x35653838343839386461323830343731353164306535366638646336323932373733363033643064366161626264643632613131656637323164313534326438, 'Your Name', 'your-email@example.net', 1);
|
||||||
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
|
|||||||
Reference in New Issue
Block a user